#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.67. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software # Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="saga" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='LTLIBOBJS LIBOBJS SAGA_CONFIGURE_OK SAGA_RPM_CONTROL SAGA_RPM_PACKAGE SAGA_RPM_LICENSE SAGA_RPM_RELEASE SAGA_RPM_VERSION SAGA_RPM_ARCH SAGA_RPM_DEPENDENCIES SAGA_RPMBUILD SAGA_RPM SAGA_DEB_CONTROL SAGA_DEB_PACKAGE SAGA_DEB_VERSION SAGA_DEB_ARCH SAGA_DEB_DEPENDENCIES SAGA_DPKG SAGA_DBTYPE BUILD_ADAPTOR_STREAM BUILD_ADAPTOR_URL BUILD_ADAPTOR_SD BUILD_ADAPTOR_CPR BUILD_ADAPTOR_RPC BUILD_ADAPTOR_JOB BUILD_ADAPTOR_FILESYSTEM BUILD_ADAPTOR_REPLICA BUILD_ADAPTOR_ADVERT OPENSSL_S_LIBS OPENSSL_LDFLAGS OPENSSL_CPPFLAGS OPENSSL_VERSION HAVE_OPENSSL OPENSSL_LOCATION XMLRPC_NEEDS_BOOL XMLRPC_S_LIBS XMLRPC_HEADER XMLRPC_LDFLAGS XMLRPC_CPPFLAGS XMLRPC_VERSION HAVE_XMLRPC XMLRPC_LOCATION CPP_HAVE_SOCI_POSTGRESQL CPP_HAVE_SOCI_SQLITE3 CPP_HAVE_SOCI_MYSQL CPP_HAVE_INTERNAL_SOCI CPP_HAVE_SOCI SOCI_LOCATION SOCI_S_LIBS SOCI_LDFLAGS SOCI_CPPFLAGS SOCI_BACKENDS HAVE_SOCI_FIREBIRD HAVE_SOCI_ORACLE HAVE_SOCI_ODBC HAVE_SOCI_MYSQL HAVE_SOCI_POSTGRESQL HAVE_SOCI_SQLITE3 HAVE_INTERNAL_SOCI HAVE_SOCI POSTGRESQL_S_LIBS POSTGRESQL_LDFLAGS POSTGRESQL_CPPFLAGS POSTGRESQL_VERSION HAVE_POSTGRESQL POSTGRESQL_LOCATION HAVE_SQLITE3_DTOR_TYPE SQLITE3_S_LIBS SQLITE3_LDFLAGS SQLITE3_CPPFLAGS SQLITE3_VERSION HAVE_SQLITE3 SQLITE3_LOCATION SAGA_DAT_ROOT SAGA_MAN_ROOT SAGA_INC_ROOT SAGA_LIB_ROOT SAGA_BIN_ROOT SAGA_LOCATION BOOST_IOSTREAM_VERSION BOOST_S_LIBS BOOST_LIBS BOOST_LDFLAGS BOOST_HAVE_PROGRAM_OPTIONS BOOST_IOSTREAMS_VERSION BOOST_HAVE_IOSTREAMS BOOST_FILESYSTEM_VERSION BOOST_HAVE_FILESYSTEM BOOST_HAVE_SYSTEM BOOST_HAVE_LOG BOOST_HAVE_TEST BOOST_HAVE_UUID BOOST_HAVE_ASIO HAVE_BOOST BOOST_HEADER_PROGRAM_OPTIONS BOOST_PROGRAM_OPTIONS_S_LIBS BOOST_PROGRAM_OPTIONS_LIBS BOOST_PROGRAM_OPTIONS_LDFLAGS BOOST_HAVE_LIB_PROGRAM_OPTIONS BOOST_HEADER_UNIT_TEST_FRAMEWORK BOOST_UNIT_TEST_FRAMEWORK_S_LIBS BOOST_UNIT_TEST_FRAMEWORK_LIBS BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS BOOST_HAVE_LIB_UNIT_TEST_FRAMEWORK BOOST_HEADER_IOSTREAMS BOOST_IOSTREAMS_S_LIBS BOOST_IOSTREAMS_LIBS BOOST_IOSTREAMS_LDFLAGS BOOST_HAVE_LIB_IOSTREAMS BOOST_HEADER_SERIALIZATION BOOST_SERIALIZATION_S_LIBS BOOST_SERIALIZATION_LIBS BOOST_SERIALIZATION_LDFLAGS BOOST_HAVE_LIB_SERIALIZATION BOOST_HEADER_REGEX BOOST_REGEX_S_LIBS BOOST_REGEX_LIBS BOOST_REGEX_LDFLAGS BOOST_HAVE_LIB_REGEX BOOST_HEADER_FILESYSTEM BOOST_FILESYSTEM_S_LIBS BOOST_FILESYSTEM_LIBS BOOST_FILESYSTEM_LDFLAGS BOOST_HAVE_LIB_FILESYSTEM BOOST_HEADER_THREAD BOOST_THREAD_S_LIBS BOOST_THREAD_LIBS BOOST_THREAD_LDFLAGS BOOST_HAVE_LIB_THREAD host_os host_vendor host_cpu host build_os build_vendor build_cpu build BOOST_HEADER_SYSTEM BOOST_SYSTEM_S_LIBS BOOST_SYSTEM_LIBS BOOST_SYSTEM_LDFLAGS BOOST_HAVE_LIB_SYSTEM BOOST_VERSION_SUB BOOST_VERSION_MIN BOOST_VERSION_MAJ BOOST_VERSION_NATIVE BOOST_VERSION BOOST_INCPATH BOOST_HEADER_VERSION BOOST_VERSION_HPP BOOST_CPPFLAGS DISTCHECK_CONFIGURE_FLAGS LIBADD_DL BOOST_LOCATION SAGA_HAVE_ADAPTOR_ISN SAGA_HAVE_ADAPTOR_MESSAGES SAGA_HAVE_ADAPTOR_CPR SAGA_HAVE_ADAPTOR_SD SAGA_HAVE_ADAPTOR_ADVERT SAGA_HAVE_ADAPTOR_RPC SAGA_HAVE_ADAPTOR_STREAM SAGA_HAVE_ADAPTOR_NAMESPACE SAGA_HAVE_ADAPTOR_REPLICA SAGA_HAVE_ADAPTOR_FILESYSTEM SAGA_HAVE_ADAPTOR_JOB SAGA_BUILD_PACKAGES SAGA_PACKAGE_LDFLAGS SAGA_HAVE_PACKAGE_ISN SAGA_HAVE_PACKAGE_MESSAGES SAGA_HAVE_PACKAGE_CPR SAGA_HAVE_PACKAGE_SD SAGA_HAVE_PACKAGE_ADVERT SAGA_HAVE_PACKAGE_RPC SAGA_HAVE_PACKAGE_STREAM SAGA_HAVE_PACKAGE_NAMESPACE SAGA_HAVE_PACKAGE_REPLICA SAGA_HAVE_PACKAGE_FILESYSTEM SAGA_HAVE_PACKAGE_JOB SAGA_DEVNULL SAGA_EPYDOC SAGA_DOXYGEN SAGA_HTLATEX SAGA_BIBTEX SAGA_PDFLATEX SAGA_XARGS SAGA_SLEEP SAGA_FALSE SAGA_TOUCH SAGA_RMDIR SAGA_MKDIR SAGA_UNIQ SAGA_TRUE SAGA_TEST SAGA_SORT SAGA_FIND SAGA_ECHO SAGA_GZIP SAGA_GREP SAGA_EXPR SAGA_DATE SAGA_TAR SAGA_SSH SAGA_SCP SAGA_SED SAGA_PWD SAGA_ENV SAGA_CUT SAGA_CAT SAGA_AWK SAGA_TR SAGA_SH SAGA_RM SAGA_MV SAGA_LS SAGA_LN SAGA_CP SAGA_BC SAGA_AR SAGA_ARFLAGS SAGA_LDFLAGS_SYS SAGA_LDFLAGS_READLINE SAGA_LDFLAGS_GOOGLE_PROFILER SAGA_CCFLAGS SAGA_CXXFLAGS SAGA_CPPFLAGS SAGA_CPPINCS_SYS SAGA_CPPINCS SAGA_LD SAGA_CC SAGA_CPP SAGA_CXX SAGA_BUILD_LIB_DYNAMIC SAGA_BUILD_LIB_STATIC LIBADD_READLINE EGREP GREP SAGA_CCACHE SAGA_PROFILER_EVAL LIBADD_GOOGLE_PROFILER SAGA_ALLOW_DEPRECATED SAGA_HAVE_DEBUG CC_BIT SAGA_GCC_VISIBILITY LD_VERSION CC_VERSION CXX_VERSION CPP_VERSION ac_ct_CC CFLAGS CC CXXCPP OBJEXT EXEEXT ac_ct_CXX CPPFLAGS LDFLAGS CXXFLAGS CXX SAGA_ARCH SAGA_OSDIST SAGA_OSTYPE SAGA_VERSION_DATE SAGA_VERSION_FULL SAGA_VERSION_SUBMINOR SAGA_VERSION_MINOR SAGA_VERSION_MAJOR SAGA_REVISION SAGA_VERSION SAGA_MODULE_NAME CONFDIR target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_1 with_2 enable_debug enable_deprecated with_google_profiler with_ccache with_readline with_libs with_packages with_boost with_sqlite3 with_postgresql with_xmlrpc with_openssl ' ac_precious_vars='build_alias host_alias target_alias CXX CXXFLAGS LDFLAGS LIBS CPPFLAGS CCC CXXCPP CC CFLAGS BOOST_LOCATION SQLITE3_LOCATION POSTGRESQL_LOCATION XMLRPC_LOCATION OPENSSL_LOCATION' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-debug build debug version (default: enabled) --enable-deprecated allow deprecated calls (default: enabled) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-google-profiler=DIR link against googles libprofiler[default=no] --with-ccache=DIR speed up repeated compiles with ccache[default=no] --with-readline=DIR support fancy command line editing [default=check] --with-libs=LIST define which lib types are build: static, dynamic, all (default=all) --with-packages=LIST comma separated list of SAGA API packages to build. possible values: job, namespace, filesystem, replica, advert, sd, isn, all (default is all). --with-boost=DIR prefix of Boost version >= 1.33 [guess] --with-sqlite3=DIR use sqlite3 (default is YES) at DIR (optional) --with-postgresql=DIR use postgresql (default is YES) at DIR (optional) --with-xmlrpc=DIR use xmlrpc (default is YES) at DIR (optional) --with-openssl=DIR use openssl (default is YES) at DIR (optional) Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CXXCPP C++ preprocessor CC C compiler command CFLAGS C compiler flags BOOST_LOCATION BOOST installation directory SQLITE3_LOCATION SQLITE3 installation directory POSTGRESQL_LOCATION POSTGRESQL installation directory XMLRPC_LOCATION XMLRPC installation directory OPENSSL_LOCATION OPENSSL installation directory Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.67 Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_cxx_try_link # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES # --------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_cxx_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval "test \"\${$3+set}\"" = set; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_cxx_check_header_mongrel # ac_fn_cxx_try_run LINENO # ------------------------ # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_cxx_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_cxx_try_run # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES # --------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_cxx_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_cxx_check_header_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.67. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5 ; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu as_fn_error $? "code base is deprecated" "$LINENO" 5 ac_aux_dir= for ac_dir in config "$srcdir"/config; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # ########################################################### ###################################################################### # # empty lines as help output separators # # Check whether --enable-1 was given. if test "${enable_1+set}" = set; then : enableval=$enable_1; fi # Check whether --with-2 was given. if test "${with_2+set}" = set; then : withval=$with_2; fi # ########################################################### ########################################################### # # saga configuration # if test "$prefix" = "NONE"; then prefix=$ac_default_prefix fi # flag is evaluated by AX_SAGA_CHECK_BASE export SAGA_CORE_CONFIGURE=yes # basic compiler settings ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CXX+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 $as_echo_n "checking whether the C++ compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C++ compiler cannot create executables See \`config.log' for more details" "$LINENO" 5 ; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 $as_echo_n "checking for C++ compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5 ; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5 ; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if test "${ac_cv_objext+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5 ; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5 ; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if test "${ac_cv_path_GREP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if test "${ac_cv_path_EGREP+set}" = set; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "x$SAGA_CORE_CONFIGURE" == "x"; then as_fn_error $? "AX-SAGA_CHECK_BASE should *only* be called from saga_core's main configure!" "$LINENO" 5 fi CONFDIR=`pwd`/config/ export CONFDIR { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAGA Package" >&5 $as_echo_n "checking SAGA Package... " >&6; } # get version test -f PACKAGE && SAGA_MODULE_NAME=` grep -e '^PACKAGE:' PACKAGE | sed -e 's/^PACKAGE: *//'` test -f PACKAGE && SAGA_VERSION=` grep -e '^VERSION:' PACKAGE | sed -e 's/^VERSION: *//'` test -f PACKAGE && SAGA_REVISION=` grep -e '^REVISION:' PACKAGE | cut -f 2 -d '$' | cut -f 2 -d ' '` # svn info supercedes the revision info from the PACKAGE file svnrevision=`svn info 2>&1 | grep Revision | cut -f 2 -d ' '` if ! test "$svnrevision" = ""; then SAGA_REVISION=$svnrevision fi SAGA_VERSION_MAJOR=`echo $SAGA_VERSION | cut -f 1 -d . | cut -f 1 -d '-'` SAGA_VERSION_MINOR=`echo $SAGA_VERSION | cut -f 2 -d . | cut -f 1 -d '-'` SAGA_VERSION_SUBMINOR=`echo $SAGA_VERSION | cut -f 3 -d . | cut -f 1 -d '-'` if test "$SAGA_VERSION_SUBMINOR" == ""; then SAGA_VERSION_SUBMINOR=0 fi SAGA_VERSION_FULL="0x" if test `expr $SAGA_VERSION_MAJOR : '.*'` == 1; then SAGA_VERSION_FULL="${SAGA_VERSION_FULL}0$SAGA_VERSION_MAJOR" else SAGA_VERSION_FULL="$SAGA_VERSION_FULL$SAGA_VERSION_MAJOR" fi if test `expr $SAGA_VERSION_MINOR : '.*'` == 1; then SAGA_VERSION_FULL="${SAGA_VERSION_FULL}0$SAGA_VERSION_MINOR" else SAGA_VERSION_FULL="$SAGA_VERSION_FULL$SAGA_VERSION_MINOR" fi if test `expr $SAGA_VERSION_SUBMINOR : '.*'` == 1; then SAGA_VERSION_FULL="${SAGA_VERSION_FULL}0$SAGA_VERSION_SUBMINOR" else SAGA_VERSION_FULL="$SAGA_VERSION_FULL$SAGA_VERSION_SUBMINOR" fi SAGA_VERSION_DATE=`date "+%Y%m%d"` cat >>confdefs.h <<_ACEOF #define SAGA_MODULE_NAME "$SAGA_MODULE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_VERSION "$SAGA_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_REVISION $SAGA_REVISION _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_VERSION_MAJOR $SAGA_VERSION_MAJOR _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_VERSION_MINOR $SAGA_VERSION_MINOR _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_VERSION_SUBMINOR $SAGA_VERSION_SUBMINOR _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_VERSION_FULL $SAGA_VERSION_FULL _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_VERSION_DATE $SAGA_VERSION_DATE _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_MODULE_NAME $SAGA_VERSION (r$SAGA_REVISION)" >&5 $as_echo "$SAGA_MODULE_NAME $SAGA_VERSION (r$SAGA_REVISION)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system type" >&5 $as_echo_n "checking operating system type... " >&6; } SAGA_OSTYPE="SAGA_"`uname -s | tr 'a-z' 'A-Z'` if test "x$SAGA_OSTYPE" = "x"; then SAGA_OSTYPE=UNKNOWN fi if test "x$SAGA_OSTYPE" = "xSAGA_DARWIN"; then SAGA_OSTYPE=SAGA_APPLE fi SAGA_ARCH=`uname -m` SAGA_OSDIST=unknown if test "x$SAGA_OSTYPE" = "xSAGA_LINUX"; then if test -e /etc/lsb-release; then SAGA_OSDIST=`grep DISTRIB_ID /etc/lsb-release | cut -f 2 -d '='` elif test -e /etc/redhat-release; then SAGA_OSDIST=redhat fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_OSTYPE - $SAGA_OSDIST" >&5 $as_echo "$SAGA_OSTYPE - $SAGA_OSDIST" >&6; } cat >>confdefs.h <<_ACEOF #define SAGA_OSTYPE $SAGA_OSTYPE _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_OSDIST $SAGA_OSDIST _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_ARCH $SAGA_ARCH _ACEOF cat >>confdefs.h <<_ACEOF #define $SAGA_OSTYPE 1 _ACEOF export SAGA_OSTYPE export SAGA_ARCH LANG=C export LANG ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5 ; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CXX+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5 ; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # check compiler version - works only for gcc/g++ CPP_VERSION=`$CXXCPP -v 2>&1 | grep '^gcc version' | cut -f 3 -d ' '` CXX_VERSION=`$CXX -v 2>&1 | grep '^gcc version' | cut -f 3 -d ' '` CC_VERSION=`$CC -v 2>&1 | grep '^gcc version' | cut -f 3 -d ' '` LD_VERSION="$CXX_VERSION" if test "x$CXX_VERSION" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version >= 3.4" >&5 $as_echo_n "checking gcc version >= 3.4... " >&6; } cxx_version_major=`echo $CXX_VERSION | cut -f 1 -d '.'` cxx_version_minor=`echo $CXX_VERSION | cut -f 2 -d '.'` cxx_version_ok=1 if test "0$cxx_version_major" -lt "04"; then if test "0$cxx_version_major" -lt "03"; then $cxx_version_ok=0 else # for v3.x if test "0$cxx_version_minor" -lt "04"; then $cxx_version_ok=0 fi fi fi if test "$cxx_version_ok" -eq "0"; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Sorry, SAGA does not build with gcc prior to version 3.4 (found $cxx_version_major.$cxx_version_minor) See \`config.log' for more details" "$LINENO" 5 ; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_VERSION - ok" >&5 $as_echo "$CXX_VERSION - ok" >&6; } # version is ok export CPP_VERSION export CXX_VERSION export CC_VERSION export LD_VERSION # check if the compiler supports the visibility flag echo "int main () {return 0;}" | $CXX -fvisibility=default -E -c - >& /dev/null if test "x$?" = "x0"; then SAGA_GCC_VISIBILITY="-fvisibility=default" $as_echo "#define SAGA_GCC_HAVE_VISIBILITY 1" >>confdefs.h else SAGA_GCC_VISIBILITY="" fi # instead of trying to find out if -Wl,--no-as-needed is actually # required, or, even worse, trying to get the linker command # line args in order, we simply check if that flag is supported, # and use it if it is. That will usually only be the case for # newer gcc versions.A ldflags_save=$LDFLAGS LDFLAGS="$LDFLAGS -Wl,--no-as-needed -lm" { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc supports --no-as-needed" >&5 $as_echo_n "checking gcc supports --no-as-needed... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { double y = cos (0.5); return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : SAGA_LINKS_AS_NEEDED=yes else SAGA_LINKS_AS_NEEDED=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_LINKS_AS_NEEDED" >&5 $as_echo "$SAGA_LINKS_AS_NEEDED" >&6; } if test "x$SAGA_LINKS_AS_NEEDED" = "xyes"; then if test "x$ldflags_save" = "x"; then LDFLAGS="-Wl,--no-as-needed" else LDFLAGS="$ldflags_save -Wl,--no-as-needed" fi else LDFLAGS="$ldflags_save" fi # on some systems, gcc produces 64bit objects by default, on other # systems it does 32bit by default. We try to detect the default # behavior - which has consequences for the library search path # we have to use for linking (lib64 vs. lib etc.) { $as_echo "$as_me:${as_lineno-$LINENO}: checking default bit mode (32/64)" >&5 $as_echo_n "checking default bit mode (32/64)... " >&6; } echo "int main() {return 0;}" > /tmp/conftest.cpp $CXX $CXXFLAGS -c -o /tmp/conftest.o /tmp/conftest.cpp if test -e /tmp/conftest.o; then CC_BIT=`file /tmp/conftest.o | grep -o -e '64-bit' -e '32-bit' | cut -f 1 -d '-'` else CC_BIT="" fi rm -f /tmp/conftest.cpp /tmp/conftest.o { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BIT" >&5 $as_echo "$CC_BIT" >&6; } export CC_BIT fi ###################################################################### # enable debug # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then : enableval=$enable_debug; else enable_debug=yes fi if test "x$enable_debug" = "xyes"; then SAGA_CXXFLAGS_DEBUG="($CXXFLAGS)" SAGA_CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O.//g'` SAGA_HAVE_DEBUG=yes $as_echo "#define SAGA_HAVE_DEBUG yes" >>confdefs.h else SAGA_CXXFLAGS_DEBUG= SAGA_CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-g//g'` SAGA_HAVE_DEBUG=no fi export SAGA_CXXFLAGS export SAGA_CXXFLAGS_DEBUG ###################################################################### # enable deprecated calls # Check whether --enable-deprecated was given. if test "${enable_deprecated+set}" = set; then : enableval=$enable_deprecated; else enable_deprecated=yes fi if test "x$enable_deprecated" = "xyes"; then SAGA_ALLOW_DEPRECATED=yes $as_echo "#define SAGA_ALLOW_DEPRECATED yes" >>confdefs.h else SAGA_ALLOW_DEPRECATED=no fi ###################################################################### # lets see if we can find googles profiling tools # Check whether --with-google_profiler was given. if test "${with_google_profiler+set}" = set; then : withval=$with_google_profiler; with_google_profiler=$withval else with_google_profiler=no fi SAGA_HAVE_GOOGLE_PROFILER=no if test "x$with_google_profiler" = "xno" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking google profiler" >&5 $as_echo_n "checking google profiler... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else ldflags_save=$LDFLAGS LDFLAGS="-L$with_google_profiler/lib/ $LDFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lprofiler" >&5 $as_echo_n "checking for main in -lprofiler... " >&6; } if test "${ac_cv_lib_profiler_main+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lprofiler $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_profiler_main=yes else ac_cv_lib_profiler_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_profiler_main" >&5 $as_echo "$ac_cv_lib_profiler_main" >&6; } if test "x$ac_cv_lib_profiler_main" = x""yes; then : LIBADD_GOOGLE_PROFILER="-L$with_google_profiler/lib/ -lprofiler" SAGA_HAVE_GOOGLE_PROFILER=yes cat >>confdefs.h <<_ACEOF #define SAGA_HAVE_GOOGLE_PROFILER $SAGA_HAVE_GOOGLE_PROFILER _ACEOF else if test "x$with_google_profiler" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-google-profiler was given, but test for profiler failed ($with_google_profiler)" >&5 $as_echo "--with-google-profiler was given, but test for profiler failed ($with_google_profiler)" >&6; } fi fi SAGA_PROFILER_EVAL=$with_google_profiler/bin/pprof LDFLAGS=$ldflags_save fi ###################################################################### # lets see if we can find ccache, for speeding up compiles # Check whether --with-ccache was given. if test "${with_ccache+set}" = set; then : withval=$with_ccache; else with_ccache=$withval fi SAGA_CCACHE= SAGA_HAVE_CCACHE=no if test "x$with_ccache" = "xno" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking ccache" >&5 $as_echo_n "checking ccache... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else # Extract the first word of "ccache", so it can be a program name with args. set dummy ccache; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_CCACHE+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_CCACHE in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_CCACHE="$SAGA_CCACHE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_CCACHE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_CCACHE=$ac_cv_path_SAGA_CCACHE if test -n "$SAGA_CCACHE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_CCACHE" >&5 $as_echo "$SAGA_CCACHE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if ! test "x$SAGA_CCACHE" = "x"; then SAGA_HAVE_CCACHE=yes fi fi ###################################################################### # lets see if we can find readline, for the saga-shell # Check whether --with-readline was given. if test "${with_readline+set}" = set; then : withval=$with_readline; else with_readline=check fi LIBADD_READLINE= if test "x$with_readline" != "xno" ; then if test "x$with_readline" != "xyes" ; then readline_dir=$with_readline fi cppflags_save=$CPPFLAGS ldflags_save=$LDFLAGS CPPFLAGS="-I$readline_dir/include/ $CPPFLAGS" LDFLAGS="-L$readline_dir/lib/ $LDFLAGS" ac_fn_cxx_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" if test "x$ac_cv_header_readline_readline_h" = x""yes; then : HAVE_READLINE_HEADER=0 HAVE_READLINE_HEADER=1 fi if test "x$HAVE_READLINE_HEADER" = "x1"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 $as_echo_n "checking for readline in -lreadline... " >&6; } if test "${ac_cv_lib_readline_readline+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline -lncurses $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char readline (); int main () { return readline (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_readline_readline=yes else ac_cv_lib_readline_readline=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 $as_echo "$ac_cv_lib_readline_readline" >&6; } if test "x$ac_cv_lib_readline_readline" = x""yes; then : LIBADD_READLINE="-lreadline -lncurses" SAGA_HAVE_READLINE=1 cat >>confdefs.h <<_ACEOF #define SAGA_HAVE_READLINE $SAGA_HAVE_READLINE _ACEOF else if test "x$with_readline" != xcheck; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-readline was given, but test for readline failed" >&5 $as_echo "--with-readline was given, but test for readline failed" >&6; } fi fi fi CPPFLAGS=$cppflags_save LDFLAGS=$ldflags_save fi if test "x$SAGA_HAVE_READLINE" = "x1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for history_list in -lreadline" >&5 $as_echo_n "checking for history_list in -lreadline... " >&6; } if test "${ac_cv_lib_readline_history_list+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char history_list (); int main () { return history_list (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_readline_history_list=yes else ac_cv_lib_readline_history_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history_list" >&5 $as_echo "$ac_cv_lib_readline_history_list" >&6; } if test "x$ac_cv_lib_readline_history_list" = x""yes; then : SAGA_HAVE_HISTORY_LIST=1 cat >>confdefs.h <<_ACEOF #define SAGA_HAVE_HISTORY_LIST $SAGA_HAVE_HISTORY_LIST _ACEOF fi fi ###################################################################### # check if static and/or dynamic libs should be built # Check whether --with-libs was given. if test "${with_libs+set}" = set; then : withval=$with_libs; else with_libs=all fi SAGA_BUILD_LIB_STATIC=no SAGA_BUILD_LIB_DYNAMIC=no if test "$with_libs" = "yes" ; then with_libs=all fi if test "$with_libs" = "dynamic,static" ; then with_libs=all fi if test "$with_libs" = "static,dynamic" ; then with_libs=all fi if test "x$with_libs" = "xall" ; then SAGA_BUILD_LIB_STATIC=yes SAGA_BUILD_LIB_DYNAMIC=yes fi if test "$with_libs" = "static" ; then SAGA_BUILD_LIB_STATIC=yes fi if test "$with_libs" = "dynamic" ; then SAGA_BUILD_LIB_DYNAMIC=yes fi if test "$SAGA_BUILD_LIB_STATIC-$SAGA_BUILD_LIB_DYNAMIC" = "no-no" ; then as_fn_error $? "cannot sensibly build SAGA with no libs" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: build static libs: $SAGA_BUILD_LIB_STATIC" >&5 $as_echo "$as_me: build static libs: $SAGA_BUILD_LIB_STATIC" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: build dynamic libs: $SAGA_BUILD_LIB_DYNAMIC" >&5 $as_echo "$as_me: build dynamic libs: $SAGA_BUILD_LIB_DYNAMIC" >&6;} ###################################################################### SAGA_CPP=$CXXCPP SAGA_CXX=$CXX SAGA_CC=$CC SAGA_LD=$CXX SAGA_CPPFLAGS="-E" SAGA_CPPINCS= SAGA_CPPINCS_SYS="$CPPFLAGS" SAGA_CCFLAGS=$CFLAGS SAGA_LDFLAGS_SYS="$LDFLAGS" SAGA_LDFLAGS_READLINE="$LIBADD_READLINE" SAGA_LDFLAGS_GOOGLE_PROFILER="$LIBADD_GOOGLE_PROFILER" SAGA_ARFLAGS="rcs" if test "_$SAGA_CPP" = "_" ; then SAGA_CPP=$CXX fi if test "_$SAGA_LD" = "_" ; then SAGA_LD=$CXX fi # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_AR+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_AR in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_AR="$SAGA_AR" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_AR="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_AR=$ac_cv_path_SAGA_AR if test -n "$SAGA_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_AR" >&5 $as_echo "$SAGA_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "bc", so it can be a program name with args. set dummy bc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_BC+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_BC in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_BC="$SAGA_BC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_BC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_BC=$ac_cv_path_SAGA_BC if test -n "$SAGA_BC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_BC" >&5 $as_echo "$SAGA_BC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "cp", so it can be a program name with args. set dummy cp; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_CP+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_CP in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_CP="$SAGA_CP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_CP="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_CP=$ac_cv_path_SAGA_CP if test -n "$SAGA_CP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_CP" >&5 $as_echo "$SAGA_CP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "ln", so it can be a program name with args. set dummy ln; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_LN+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_LN in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_LN="$SAGA_LN" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_LN="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_LN=$ac_cv_path_SAGA_LN if test -n "$SAGA_LN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_LN" >&5 $as_echo "$SAGA_LN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "ls", so it can be a program name with args. set dummy ls; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_LS+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_LS in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_LS="$SAGA_LS" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_LS="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_LS=$ac_cv_path_SAGA_LS if test -n "$SAGA_LS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_LS" >&5 $as_echo "$SAGA_LS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "mv", so it can be a program name with args. set dummy mv; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_MV+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_MV in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_MV="$SAGA_MV" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_MV="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_MV=$ac_cv_path_SAGA_MV if test -n "$SAGA_MV"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_MV" >&5 $as_echo "$SAGA_MV" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "rm", so it can be a program name with args. set dummy rm; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_RM+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_RM in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_RM="$SAGA_RM" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_RM="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_RM=$ac_cv_path_SAGA_RM if test -n "$SAGA_RM"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_RM" >&5 $as_echo "$SAGA_RM" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "sh", so it can be a program name with args. set dummy sh; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_SH+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_SH in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_SH="$SAGA_SH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_SH="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_SH=$ac_cv_path_SAGA_SH if test -n "$SAGA_SH"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_SH" >&5 $as_echo "$SAGA_SH" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "tr", so it can be a program name with args. set dummy tr; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_TR+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_TR in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_TR="$SAGA_TR" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_TR="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_TR=$ac_cv_path_SAGA_TR if test -n "$SAGA_TR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_TR" >&5 $as_echo "$SAGA_TR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "awk", so it can be a program name with args. set dummy awk; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_AWK+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_AWK in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_AWK="$SAGA_AWK" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_AWK="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_AWK=$ac_cv_path_SAGA_AWK if test -n "$SAGA_AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_AWK" >&5 $as_echo "$SAGA_AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "cat", so it can be a program name with args. set dummy cat; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_CAT+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_CAT in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_CAT="$SAGA_CAT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_CAT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_CAT=$ac_cv_path_SAGA_CAT if test -n "$SAGA_CAT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_CAT" >&5 $as_echo "$SAGA_CAT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "cut", so it can be a program name with args. set dummy cut; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_CUT+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_CUT in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_CUT="$SAGA_CUT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_CUT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_CUT=$ac_cv_path_SAGA_CUT if test -n "$SAGA_CUT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_CUT" >&5 $as_echo "$SAGA_CUT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "env", so it can be a program name with args. set dummy env; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_ENV+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_ENV in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_ENV="$SAGA_ENV" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_ENV="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_ENV=$ac_cv_path_SAGA_ENV if test -n "$SAGA_ENV"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_ENV" >&5 $as_echo "$SAGA_ENV" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "pwd", so it can be a program name with args. set dummy pwd; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_PWD+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_PWD in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_PWD="$SAGA_PWD" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_PWD="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_PWD=$ac_cv_path_SAGA_PWD if test -n "$SAGA_PWD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_PWD" >&5 $as_echo "$SAGA_PWD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "sed", so it can be a program name with args. set dummy sed; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_SED+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_SED in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_SED="$SAGA_SED" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_SED="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_SED=$ac_cv_path_SAGA_SED if test -n "$SAGA_SED"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_SED" >&5 $as_echo "$SAGA_SED" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "scp", so it can be a program name with args. set dummy scp; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_SCP+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_SCP in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_SCP="$SAGA_SCP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_SCP="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_SCP=$ac_cv_path_SAGA_SCP if test -n "$SAGA_SCP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_SCP" >&5 $as_echo "$SAGA_SCP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "ssh", so it can be a program name with args. set dummy ssh; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_SSH+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_SSH in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_SSH="$SAGA_SSH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_SSH="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_SSH=$ac_cv_path_SAGA_SSH if test -n "$SAGA_SSH"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_SSH" >&5 $as_echo "$SAGA_SSH" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "tar", so it can be a program name with args. set dummy tar; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_TAR+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_TAR in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_TAR="$SAGA_TAR" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_TAR="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_TAR=$ac_cv_path_SAGA_TAR if test -n "$SAGA_TAR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_TAR" >&5 $as_echo "$SAGA_TAR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "date", so it can be a program name with args. set dummy date; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_DATE+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_DATE in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_DATE="$SAGA_DATE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_DATE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_DATE=$ac_cv_path_SAGA_DATE if test -n "$SAGA_DATE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_DATE" >&5 $as_echo "$SAGA_DATE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "expr", so it can be a program name with args. set dummy expr; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_EXPR+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_EXPR in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_EXPR="$SAGA_EXPR" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_EXPR="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_EXPR=$ac_cv_path_SAGA_EXPR if test -n "$SAGA_EXPR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_EXPR" >&5 $as_echo "$SAGA_EXPR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "grep", so it can be a program name with args. set dummy grep; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_GREP+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_GREP in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_GREP="$SAGA_GREP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_GREP="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_GREP=$ac_cv_path_SAGA_GREP if test -n "$SAGA_GREP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_GREP" >&5 $as_echo "$SAGA_GREP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gzip", so it can be a program name with args. set dummy gzip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_GZIP+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_GZIP in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_GZIP="$SAGA_GZIP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_GZIP="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_GZIP=$ac_cv_path_SAGA_GZIP if test -n "$SAGA_GZIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_GZIP" >&5 $as_echo "$SAGA_GZIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "echo", so it can be a program name with args. set dummy echo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_ECHO+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_ECHO in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_ECHO="$SAGA_ECHO" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_ECHO="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_ECHO=$ac_cv_path_SAGA_ECHO if test -n "$SAGA_ECHO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_ECHO" >&5 $as_echo "$SAGA_ECHO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "find", so it can be a program name with args. set dummy find; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_FIND+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_FIND in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_FIND="$SAGA_FIND" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_FIND="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_FIND=$ac_cv_path_SAGA_FIND if test -n "$SAGA_FIND"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_FIND" >&5 $as_echo "$SAGA_FIND" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gzip", so it can be a program name with args. set dummy gzip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_GZIP+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_GZIP in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_GZIP="$SAGA_GZIP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_GZIP="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_GZIP=$ac_cv_path_SAGA_GZIP if test -n "$SAGA_GZIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_GZIP" >&5 $as_echo "$SAGA_GZIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "sort", so it can be a program name with args. set dummy sort; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_SORT+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_SORT in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_SORT="$SAGA_SORT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_SORT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_SORT=$ac_cv_path_SAGA_SORT if test -n "$SAGA_SORT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_SORT" >&5 $as_echo "$SAGA_SORT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "test", so it can be a program name with args. set dummy test; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_TEST+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_TEST in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_TEST="$SAGA_TEST" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_TEST="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_TEST=$ac_cv_path_SAGA_TEST if test -n "$SAGA_TEST"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_TEST" >&5 $as_echo "$SAGA_TEST" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "true", so it can be a program name with args. set dummy true; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_TRUE+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_TRUE in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_TRUE="$SAGA_TRUE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_TRUE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_TRUE=$ac_cv_path_SAGA_TRUE if test -n "$SAGA_TRUE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_TRUE" >&5 $as_echo "$SAGA_TRUE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "uniq", so it can be a program name with args. set dummy uniq; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_UNIQ+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_UNIQ in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_UNIQ="$SAGA_UNIQ" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_UNIQ="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_UNIQ=$ac_cv_path_SAGA_UNIQ if test -n "$SAGA_UNIQ"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_UNIQ" >&5 $as_echo "$SAGA_UNIQ" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "mkdir", so it can be a program name with args. set dummy mkdir; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_MKDIR+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_MKDIR in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_MKDIR="$SAGA_MKDIR" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_MKDIR="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_MKDIR=$ac_cv_path_SAGA_MKDIR if test -n "$SAGA_MKDIR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_MKDIR" >&5 $as_echo "$SAGA_MKDIR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "rmdir", so it can be a program name with args. set dummy rmdir; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_RMDIR+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_RMDIR in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_RMDIR="$SAGA_RMDIR" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_RMDIR="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_RMDIR=$ac_cv_path_SAGA_RMDIR if test -n "$SAGA_RMDIR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_RMDIR" >&5 $as_echo "$SAGA_RMDIR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "touch", so it can be a program name with args. set dummy touch; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_TOUCH+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_TOUCH in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_TOUCH="$SAGA_TOUCH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_TOUCH="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_TOUCH=$ac_cv_path_SAGA_TOUCH if test -n "$SAGA_TOUCH"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_TOUCH" >&5 $as_echo "$SAGA_TOUCH" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "false", so it can be a program name with args. set dummy false; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_FALSE+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_FALSE in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_FALSE="$SAGA_FALSE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_FALSE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_FALSE=$ac_cv_path_SAGA_FALSE if test -n "$SAGA_FALSE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_FALSE" >&5 $as_echo "$SAGA_FALSE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "sleep", so it can be a program name with args. set dummy sleep; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_SLEEP+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_SLEEP in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_SLEEP="$SAGA_SLEEP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_SLEEP="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_SLEEP=$ac_cv_path_SAGA_SLEEP if test -n "$SAGA_SLEEP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_SLEEP" >&5 $as_echo "$SAGA_SLEEP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "xargs", so it can be a program name with args. set dummy xargs; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_XARGS+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_XARGS in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_XARGS="$SAGA_XARGS" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_XARGS="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_XARGS=$ac_cv_path_SAGA_XARGS if test -n "$SAGA_XARGS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_XARGS" >&5 $as_echo "$SAGA_XARGS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "pdflatex", so it can be a program name with args. set dummy pdflatex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_PDFLATEX+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_PDFLATEX in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_PDFLATEX="$SAGA_PDFLATEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_PDFLATEX=$ac_cv_path_SAGA_PDFLATEX if test -n "$SAGA_PDFLATEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_PDFLATEX" >&5 $as_echo "$SAGA_PDFLATEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "bibtex", so it can be a program name with args. set dummy bibtex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_BIBTEX+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_BIBTEX in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_BIBTEX="$SAGA_BIBTEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_BIBTEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_BIBTEX=$ac_cv_path_SAGA_BIBTEX if test -n "$SAGA_BIBTEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_BIBTEX" >&5 $as_echo "$SAGA_BIBTEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "htlatex", so it can be a program name with args. set dummy htlatex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_HTLATEX+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_HTLATEX in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_HTLATEX="$SAGA_HTLATEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_HTLATEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_HTLATEX=$ac_cv_path_SAGA_HTLATEX if test -n "$SAGA_HTLATEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_HTLATEX" >&5 $as_echo "$SAGA_HTLATEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "doxygen", so it can be a program name with args. set dummy doxygen; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_DOXYGEN+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_DOXYGEN in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_DOXYGEN="$SAGA_DOXYGEN" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_DOXYGEN=$ac_cv_path_SAGA_DOXYGEN if test -n "$SAGA_DOXYGEN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_DOXYGEN" >&5 $as_echo "$SAGA_DOXYGEN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "epydoc", so it can be a program name with args. set dummy epydoc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_EPYDOC+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_EPYDOC in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_EPYDOC="$SAGA_EPYDOC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_EPYDOC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_EPYDOC=$ac_cv_path_SAGA_EPYDOC if test -n "$SAGA_EPYDOC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_EPYDOC" >&5 $as_echo "$SAGA_EPYDOC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi cat >>confdefs.h <<_ACEOF #define SAGA_TEST_BIN_BC "$SAGA_BC" _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_TEST_BIN_TRUE "$SAGA_TRUE" _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_TEST_BIN_FALSE "$SAGA_FALSE" _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_TEST_BIN_SLEEP "$SAGA_SLEEP" _ACEOF # check if pwd understands -P { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -P flag on pwd" >&5 $as_echo_n "checking for -P flag on pwd... " >&6; } test=`cd / && $SAGA_PWD -P 2>&1` if test "$test" = "/"; then SAGA_PWD="$SAGA_PWD -P" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 $as_echo_n "checking for /dev/null... " >&6; } if test -w /dev/null; then SAGA_DEVNULL=/dev/null else SAGA_DEVNULL=/tmp/remove_me.saga fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_DEVNULL" >&5 $as_echo "$SAGA_DEVNULL" >&6; } ########################################################### # # lets see who finds this... # inspired by : configure of kvirc 2.0 # { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of dimensions" >&5 $as_echo_n "checking number of dimensions... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3.5*pi (spatial) + 1 (temporal)" >&5 $as_echo "3.5*pi (spatial) + 1 (temporal)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of universe" >&5 $as_echo_n "checking type of universe... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bosons, 3 fermions, 1 higgs - ok, standard universe" >&5 $as_echo "4 bosons, 3 fermions, 1 higgs - ok, standard universe" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if e=mc^2" >&5 $as_echo_n "checking if e=mc^2... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking validity of Maxwell laws on this machine" >&5 $as_echo_n "checking validity of Maxwell laws on this machine... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking fundamental symmetry group" >&5 $as_echo_n "checking fundamental symmetry group... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: E8 (nice)" >&5 $as_echo "E8 (nice)" >&6; } # ########################################################### { $as_echo "$as_me:${as_lineno-$LINENO}: checking available packages" >&5 $as_echo_n "checking available packages... " >&6; } SAGA_HAVE_PACKAGE_JOB=no SAGA_HAVE_PACKAGE_FILESYSTEM=no SAGA_HAVE_PACKAGE_REPLICA=no SAGA_HAVE_PACKAGE_NAMESPACE=no SAGA_HAVE_PACKAGE_STREAM=no SAGA_HAVE_PACKAGE_RPC=no SAGA_HAVE_PACKAGE_ADVERT=no SAGA_HAVE_PACKAGE_SD=no SAGA_HAVE_PACKAGE_CPR=no SAGA_HAVE_PACKAGE_MESSAGES=no SAGA_HAVE_PACKAGE_ISN=no # Check whether --with-packages was given. if test "${with_packages+set}" = set; then : withval=$with_packages; if test "$withval" = "no"; then want_packages="" elif test "$withval" = "yes"; then want_packages="all" else want_packages=$withval fi else want_packages="all" fi if test "x$want_packages" = "x"; then as_fn_error $? "\"It makes no sense to build SAGA withpout any API packages.\"" "$LINENO" 5 fi if test "x$want_packages" = "xall"; then want_packages="job,namespace,filesystem,replica,advert,sd,isn" fi while $TRUE do this_package=`echo $want_packages | cut -f1 -d','` want_packages=`echo $want_packages | grep ',' | cut -f2- -d','` if test "x$this_package" == "x"; then break fi build_this_package="$this_package " case "$this_package" in job ) SAGA_HAVE_PACKAGE_JOB=yes ;; filesystem ) SAGA_HAVE_PACKAGE_FILESYSTEM=yes SAGA_HAVE_PACKAGE_NAMESPACE=yes ;; replica ) SAGA_HAVE_PACKAGE_REPLICA=yes SAGA_HAVE_PACKAGE_NAMESPACE=yes ;; namespace ) SAGA_HAVE_PACKAGE_NAMESPACE=yes ;; advert ) SAGA_HAVE_PACKAGE_ADVERT=yes SAGA_HAVE_PACKAGE_NAMESPACE=yes ;; sd ) SAGA_HAVE_PACKAGE_SD=yes ;; isn ) SAGA_HAVE_PACKAGE_ISN=yes ;; * ) build_this_package="" as_fn_error $? "unknown package type '$this_package'" "$LINENO" 5 ;; esac build_packages="$build_packages$build_this_package" done if test "$SAGA_HAVE_PACKAGE_JOB" = "yes"; then $as_echo "#define SAGA_HAVE_PACKAGE_JOB 1" >>confdefs.h SAGA_PACKAGE_LDFLAGS="$SAGA_PACKAGE_LDFLAGS -lsaga_package_job" fi if test "$SAGA_HAVE_PACKAGE_FILESYSTEM" = "yes"; then $as_echo "#define SAGA_HAVE_PACKAGE_FILESYSTEM 1" >>confdefs.h SAGA_PACKAGE_LDFLAGS="$SAGA_PACKAGE_LDFLAGS -lsaga_package_filesystem" fi if test "$SAGA_HAVE_PACKAGE_REPLICA" = "yes"; then $as_echo "#define SAGA_HAVE_PACKAGE_REPLICA 1" >>confdefs.h SAGA_PACKAGE_LDFLAGS="$SAGA_PACKAGE_LDFLAGS -lsaga_package_replica" fi if test "$SAGA_HAVE_PACKAGE_NAMESPACE" = "yes"; then $as_echo "#define SAGA_HAVE_PACKAGE_NAMESPACE 1" >>confdefs.h SAGA_PACKAGE_LDFLAGS="$SAGA_PACKAGE_LDFLAGS -lsaga_package_namespace" fi if test "$SAGA_HAVE_PACKAGE_STREAM" = "yes"; then $as_echo "#define SAGA_HAVE_PACKAGE_STREAM 1" >>confdefs.h SAGA_PACKAGE_LDFLAGS="$SAGA_PACKAGE_LDFLAGS -lsaga_package_stream" fi if test "$SAGA_HAVE_PACKAGE_RPC" = "yes"; then $as_echo "#define SAGA_HAVE_PACKAGE_RPC 1" >>confdefs.h SAGA_PACKAGE_LDFLAGS="$SAGA_PACKAGE_LDFLAGS -lsaga_package_rpc" fi if test "$SAGA_HAVE_PACKAGE_ADVERT" = "yes"; then $as_echo "#define SAGA_HAVE_PACKAGE_ADVERT 1" >>confdefs.h SAGA_PACKAGE_LDFLAGS="$SAGA_PACKAGE_LDFLAGS -lsaga_package_advert" fi if test "$SAGA_HAVE_PACKAGE_SD" = "yes"; then $as_echo "#define SAGA_HAVE_PACKAGE_SD 1" >>confdefs.h SAGA_PACKAGE_LDFLAGS="$SAGA_PACKAGE_LDFLAGS -lsaga_package_sd" fi if test "$SAGA_HAVE_PACKAGE_CPR" = "yes"; then $as_echo "#define SAGA_HAVE_PACKAGE_CPR 1" >>confdefs.h SAGA_PACKAGE_LDFLAGS="$SAGA_PACKAGE_LDFLAGS -lsaga_package_cpr" fi if test "$SAGA_HAVE_PACKAGE_MESSAGES" = "yes"; then $as_echo "#define SAGA_HAVE_PACKAGE_MESSAGES 1" >>confdefs.h SAGA_PACKAGE_LDFLAGS="$SAGA_PACKAGE_LDFLAGS -lsaga_package_messages" fi if test "$SAGA_HAVE_PACKAGE_ISN" = "yes"; then $as_echo "#define SAGA_HAVE_PACKAGE_ISN 1" >>confdefs.h SAGA_PACKAGE_LDFLAGS="$SAGA_PACKAGE_LDFLAGS -lsaga_package_isn" fi export SAGA_PACKAGE_LDFLAGS SAGA_BUILD_PACKAGES=$build_packages export SAGA_BUILD_PACKAGES export SAGA_HAVE_PACKAGE_JOB export SAGA_HAVE_PACKAGE_FILESYSTEM export SAGA_HAVE_PACKAGE_REPLICA export SAGA_HAVE_PACKAGE_NAMESPACE export SAGA_HAVE_PACKAGE_STREAM export SAGA_HAVE_PACKAGE_RPC export SAGA_HAVE_PACKAGE_ADVERT export SAGA_HAVE_PACKAGE_SD export SAGA_HAVE_PACKAGE_CPR export SAGA_HAVE_PACKAGE_MESSAGES export SAGA_HAVE_PACKAGE_ISN # also define the 'SAGA_HAVE_ADAPTOR_XYZ' versions, for backward compatibility export SAGA_HAVE_ADAPTOR_JOB=$SAGA_HAVE_PACKAGE_JOB export SAGA_HAVE_ADAPTOR_FILESYSTEM=$SAGA_HAVE_PACKAGE_FILESYSTEM export SAGA_HAVE_ADAPTOR_REPLICA=$SAGA_HAVE_PACKAGE_REPLICA export SAGA_HAVE_ADAPTOR_NAMESPACE=$SAGA_HAVE_PACKAGE_NAMESPACE export SAGA_HAVE_ADAPTOR_STREAM=$SAGA_HAVE_PACKAGE_STREAM export SAGA_HAVE_ADAPTOR_RPC=$SAGA_HAVE_PACKAGE_RPC export SAGA_HAVE_ADAPTOR_ADVERT=$SAGA_HAVE_PACKAGE_ADVERT export SAGA_HAVE_ADAPTOR_SD=$SAGA_HAVE_PACKAGE_SD export SAGA_HAVE_ADAPTOR_CPR=$SAGA_HAVE_PACKAGE_CPR export SAGA_HAVE_ADAPTOR_MESSAGES=$SAGA_HAVE_PACKAGE_MESSAGES export SAGA_HAVE_ADAPTOR_ISN=$SAGA_HAVE_PACKAGE_ISN { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_packages" >&5 $as_echo "$build_packages" >&6; } # we also store the engine config for later reuse, e.g. by adaptor # configure's CACHE=config/saga-config.cache echo "" > $CACHE echo "export SAGA_OSTYPE=$SAGA_OSTYPE" >> $CACHE echo "export SAGA_OSDIST=$SAGA_OSDIST" >> $CACHE echo "export SAGA_ARCH=$SAGA_ARCH" >> $CACHE echo "" >> $CACHE echo "export LDFLAGS=\"$LDFLAGS\"" >> $CACHE echo "" >> $CACHE echo "export BOOST_LOCATION=$BOOST_LOCATION" >> $CACHE echo "export OPENSSL_LOCATION=$OPENSSL_LOCATION" >> $CACHE echo "export SQLITE3_LOCATION=$SQLITE3_LOCATION" >> $CACHE echo "export POSTGRESQL_LOCATION=$POSTGRESQL_LOCATION" >> $CACHE echo "export XMLRPC_LOCATION=$XMLRPC_LOCATION" >> $CACHE echo "" >> $CACHE echo "export SAGA_HAVE_PACKAGE_JOB=$SAGA_HAVE_PACKAGE_JOB" >> $CACHE echo "export SAGA_HAVE_PACKAGE_FILESYSTEM=$SAGA_HAVE_PACKAGE_FILESYSTEM" >> $CACHE echo "export SAGA_HAVE_PACKAGE_REPLICA=$SAGA_HAVE_PACKAGE_REPLICA" >> $CACHE echo "export SAGA_HAVE_PACKAGE_NAMESPACE=$SAGA_HAVE_PACKAGE_NAMESPACE" >> $CACHE echo "export SAGA_HAVE_PACKAGE_STREAM=$SAGA_HAVE_PACKAGE_STREAM" >> $CACHE echo "export SAGA_HAVE_PACKAGE_RPC=$SAGA_HAVE_PACKAGE_RPC" >> $CACHE echo "export SAGA_HAVE_PACKAGE_ADVERT=$SAGA_HAVE_PACKAGE_ADVERT" >> $CACHE echo "export SAGA_HAVE_PACKAGE_SD=$SAGA_HAVE_PACKAGE_SD" >> $CACHE echo "export SAGA_HAVE_PACKAGE_CPR=$SAGA_HAVE_PACKAGE_CPR" >> $CACHE echo "export SAGA_HAVE_PACKAGE_MESSAGES=$SAGA_HAVE_PACKAGE_MESSAGES" >> $CACHE echo "export SAGA_HAVE_PACKAGE_ISN=$SAGA_HAVE_PACKAGE_ISN" >> $CACHE echo "" >> $CACHE echo "export SAGA_HAVE_ADAPTOR_JOB=$SAGA_HAVE_PACKAGE_JOB" >> $CACHE echo "export SAGA_HAVE_ADAPTOR_FILESYSTEM=$SAGA_HAVE_PACKAGE_FILESYSTEM" >> $CACHE echo "export SAGA_HAVE_ADAPTOR_REPLICA=$SAGA_HAVE_PACKAGE_REPLICA" >> $CACHE echo "export SAGA_HAVE_ADAPTOR_NAMESPACE=$SAGA_HAVE_PACKAGE_NAMESPACE" >> $CACHE echo "export SAGA_HAVE_ADAPTOR_STREAM=$SAGA_HAVE_PACKAGE_STREAM" >> $CACHE echo "export SAGA_HAVE_ADAPTOR_RPC=$SAGA_HAVE_PACKAGE_RPC" >> $CACHE echo "export SAGA_HAVE_ADAPTOR_ADVERT=$SAGA_HAVE_PACKAGE_ADVERT" >> $CACHE echo "export SAGA_HAVE_ADAPTOR_SD=$SAGA_HAVE_PACKAGE_SD" >> $CACHE echo "export SAGA_HAVE_ADAPTOR_CPR=$SAGA_HAVE_PACKAGE_CPR" >> $CACHE echo "export SAGA_HAVE_ADAPTOR_MESSAGES=$SAGA_HAVE_PACKAGE_MESSAGES" >> $CACHE echo "export SAGA_HAVE_ADAPTOR_ISN=$SAGA_HAVE_PACKAGE_ISN" >> $CACHE echo "" >> $CACHE # we need boost for some type checks in SAGA_CHECK_TYPES { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; } if test "${boost_cv_lib_tag+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_cv_lib_tag=unknown # The following tests are mostly inspired by boost/config/auto_link.hpp # The list is sorted to most recent/common to oldest compiler (in order # to increase the likelihood of finding the right compiler with the # least number of compilation attempt). # Beware that some tests are sensible to the order (for instance, we must # look for MinGW before looking for GCC3). # I used one compilation test per compiler with a #error to recognize # each compiler so that it works even when cross-compiling (let me know # if you know a better approach). # Known missing tags (known from Boost's tools/build/v2/tools/common.jam): # como, edg, kcc, bck, mp, sw, tru, xlc # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines # the same defines as GCC's). # TODO: Move the test on GCC 4.3 up once it's released. for i in \ "defined __INTEL_COMPILER @ il" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \ "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \ && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \ "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \ "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \ "defined _MSC_VER && _MSC_VER >= 1400 @ vc80" \ "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \ "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \ "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \ "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \ "defined __BORLANDC__ @ bcb" \ "defined __ICL @ iw" \ "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \ "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \ "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \ "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \ "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \ "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8" do boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '` boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'` cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if $boost_tag_test /* OK */ #else # error $boost_tag_test #endif int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : boost_cv_lib_tag=$boost_tag; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5 $as_echo "$boost_cv_lib_tag" >&6; } case $boost_cv_lib_tag in # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed # to "gcc41" for instance. Also, boost 1.36 started t add an x before gcc, # for whatever reason. gcc*) # We can specify multiple tags in this variable because it's used by # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ... boost_cv_lib_tag="$boost_cv_lib_tag -gcc -x$boost_cv_lib_tag" ;; unknown) case $CXX in como*) boost_cv_lib_tag=como ;; edg*) boost_cv_lib_tag=edg ;; kcc*) boost_cv_lib_tag=kcc ;; bck*) boost_cv_lib_tag=bck ;; mp*) boost_cv_lib_tag=mp ;; sw*) boost_cv_lib_tag=sw ;; tru*) boost_cv_lib_tag=tru ;; xlc*) boost_cv_lib_tag=xlc ;; *) boost_cv_lib_tag= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;} ;; esac esac # Check whether we do better use `mt' even though we weren't ask to. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined _REENTRANT || defined _MT || defined __MT__ /* use -mt */ #else # error MT not needed #endif int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : boost_guess_use_mt=: else boost_guess_use_mt=false fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if test "${ac_cv_build+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if test "${ac_cv_host+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the flags needed to use pthreads" >&5 $as_echo_n "checking for the flags needed to use pthreads... " >&6; } if test "${boost_cv_pthread_flag+set}" = set; then : $as_echo_n "(cached) " >&6 else boost_cv_pthread_flag= # The ordering *is* (sometimes) important. Some notes on the # individual items follow: # (none): in case threads are in libc; should be tried before -Kthread and # other compiler flags to prevent continual compiler warnings # -lpthreads: AIX (must check this before -lpthread) # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) # -llthread: LinuxThreads port on FreeBSD (also preferred to -pthread) # -pthread: GNU Linux/GCC (kernel threads), BSD/GCC (userland threads) # -pthreads: Solaris/GCC # -mthreads: MinGW32/GCC, Lynx/GCC # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it # doesn't hurt to check since this sometimes defines pthreads too; # also defines -D_REENTRANT) # ... -mt is also the pthreads flag for HP/aCC # -lpthread: GNU Linux, etc. # --thread-safe: KAI C++ case $host_os in *solaris*) # On Solaris (at least, for some versions), libc contains stubbed # (non-functional) versions of the pthreads routines, so link-based # tests will erroneously succeed. (We need to link with -pthreads/-mt/ # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather # a function called by this macro, so we could check for that, but # who knows whether they'll stub that too in a future libc.) So, # we'll just look for -pthreads and -lpthread first: boost_pthread_flags="-pthreads -lpthread -mt -pthread";; *) boost_pthread_flags="-lpthreads -pthread -Kthread -kthread -llthread \ -pthreads -mthreads -lpthread --thread-safe -mt";; esac # Generate the test file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { pthread_t th=0; pthread_join(th, 0); pthread_attr_init(0); pthread_cleanup_push(0, 0); pthread_create(0,0,0,0); pthread_cleanup_pop(0); ; return 0; } _ACEOF for boost_pthread_flag in '' $boost_pthread_flags; do boost_pthread_ok=false boost_pthreads__save_LIBS=$LIBS LIBS="$LIBS $boost_pthread_flag" if ac_fn_cxx_try_link "$LINENO"; then : if grep ".*$boost_pthread_flag" conftest.err; then echo "This flag seems to have triggered warnings" >&5 else boost_pthread_ok=:; boost_cv_pthread_flag=$boost_pthread_flag fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext LIBS=$boost_pthreads__save_LIBS $boost_pthread_ok && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_pthread_flag" >&5 $as_echo "$boost_cv_pthread_flag" >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # boost checks require libdl, for whatever reason. LIBADD_DL= ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = x""yes; then : $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h LIBADD_DL="$LIBADD_DL -ldld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : $as_echo "#define HAVE_LIBDL 1" >>confdefs.h LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if HAVE_DLFCN_H # include #endif int main () { dlopen(0, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HAVE_LIBDL 1" >>confdefs.h libltdl_cv_func_dlopen="yes" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : $as_echo "#define HAVE_LIBDL 1" >>confdefs.h LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : $as_echo "#define HAVE_DLD 1" >>confdefs.h LIBADD_DL="$LIBADD_DL -ldld" else ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then : $as_echo "#define HAVE_DYLD 1" >>confdefs.h fi fi fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi fi fi if test "x$libltdl_cv_func_dlopen" = "xyes" || \ test "x$libltdl_cv_lib_dl_dlopen" = "xyes" ; then lt_save_LIBS="$LIBS" LIBS="$LIBS $LIBADD_DL" for ac_func in dlerror do : ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" if test "x$ac_cv_func_dlerror" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLERROR 1 _ACEOF fi done LIBS="$lt_save_LIBS" fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu export LIBADD_DL HAVE_BOOST=no # first find boost boost_version_major=1 boost_version_minor=33 boost_version_subminor= # Check whether --with-boost was given. if test "${with_boost+set}" = set; then : withval=$with_boost; fi DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= 1.33" >&5 $as_echo_n "checking for Boost headers version >= 1.33... " >&6; } if test "${boost_cv_inc_path+set}" = set; then : $as_echo_n "(cached) " >&6 else boost_cv_inc_path=no ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_subminor_chk= test x"$boost_version_subminor" != x \ && boost_subminor_chk="|| (B_V_MAJ == $boost_version_major && \ B_V_MIN == $boost_version_minor && \ B_V_SUB < $boost_version_subminor)" if test "$with_boost-$BOOST_LOCATION" = "-"; then paths="/opt/local /usr/local /opt /usr C:/Boost" else paths="$with_boost $BOOST_LOCATION" fi for boost_base_dir in $paths do BOOST_LOCATION=$boost_base_dir # AC_MSG_NOTICE([checking boost dir: $BOOST_LOCATION]) boost_dir="$boost_base_dir/include/" # Without --layout=system, Boost (or at least some versions) installs # itself in /include/boost-. This inner loop helps to # find headers in such directories. # I didn't indent this loop on purpose (to avoid over-indented code) for boost_inc in "$boost_dir" "$boost_dir"/boost-* do # AC_MSG_NOTICE([checking boost subdir: $BOOST_LOCATION]) # $boost_inc can often be a symlink, so keep -e here. test -e "$boost_inc" || continue # Ensure that version.hpp exists: we're going to read it. Moreover, # Boost could be reachable thanks to the default include path so we can # mistakenly accept a wrong include path without this check. test -e "$boost_inc/boost/version.hpp" || continue boost_save_CPPFLAGS=$CPPFLAGS test x"$boost_inc" != x && CPPFLAGS="$CPPFLAGS -I$boost_inc" # AC_MSG_NOTICE([[Searching for boost in $boost_dir]]) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef BOOST_VERSION # error BOOST_VERSION is not defined #endif #define B_V_MAJ (BOOST_VERSION / 100000) #define B_V_MIN (BOOST_VERSION / 100 % 1000) #define B_V_SUB (BOOST_VERSION % 100) #if (B_V_MAJ < $boost_version_major) \ || (B_V_MAJ == $boost_version_major \ && B_V_MIN < $boost_version_minor) $boost_subminor_chk # error Boost headers version < 1.33 #endif int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : boost_cv_inc_path=yes else boost_cv_version=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CPPFLAGS=$boost_save_CPPFLAGS if test x"$boost_cv_inc_path" = xyes; then if test x"$boost_inc" != x; then boost_cv_inc_path=$boost_inc fi break 2 fi done done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5 $as_echo "$boost_cv_inc_path" >&6; } case $boost_cv_inc_path in no) as_fn_error $? "Could not find Boost headers version >= 1.33" "$LINENO" 5 ;; yes) BOOST_CPPFLAGS= BOOST_LOCATION=$boost_base_dir ;; *) BOOST_LOCATION=$boost_base_dir BOOST_VERSION_HPP=$boost_inc/boost/version.hpp BOOST_HEADER_VERSION=$boost_inc/boost/version.hpp BOOST_CPPFLAGS="-I$boost_cv_inc_path" BOOST_INCPATH="$boost_cv_inc_path" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BOOST_LOCATION" >&5 $as_echo_n "checking for BOOST_LOCATION... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_LOCATION" >&5 $as_echo "$BOOST_LOCATION" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5 $as_echo_n "checking for Boost's header version... " >&6; } if test "${boost_cv_lib_version+set}" = set; then : $as_echo_n "(cached) " >&6 else boost_cv_lib_version=unknown boost_sed_version='/^.*BOOST_LIB_VERSION.*"\([^"]*\)".*$/!d;s//\1/' boost_version_hpp="$boost_inc/boost/version.hpp" test -e "$boost_version_hpp" \ && boost_cv_lib_version=`sed "$boost_sed_version" "$boost_version_hpp"` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5 $as_echo "$boost_cv_lib_version" >&6; } # then find boost version if test "x$BOOST_VERSION_HPP" != "x"; then BOOST_VERSION_NATIVE=`grep '^#define BOOST_VERSION' $BOOST_VERSION_HPP | cut -f 3 -d ' '` BOOST_VERSION_MAJ=`echo $BOOST_VERSION_NATIVE | cut -c 1 ` BOOST_VERSION_MIN=`echo $BOOST_VERSION_NATIVE | cut -c 2-4` BOOST_VERSION_SUB=`echo $BOOST_VERSION_NATIVE | cut -c 5-6` # get rid of strange newlines in the native string BOOST_VERSION_NATIVE="$BOOST_VERSION_MAJ$BOOST_VERSION_MIN$BOOST_VERSION_SUB" BOOST_VERSION_MAJ=`expr $BOOST_VERSION_MAJ : "0*\(..*\)"` BOOST_VERSION_MIN=`expr $BOOST_VERSION_MIN : "0*\(..*\)"` BOOST_VERSION_SUB=`expr $BOOST_VERSION_SUB : "0*\(..*\)"` export BOOST_VERSION_NATIVE export BOOST_VERSION_MAJ export BOOST_VERSION_MIN export BOOST_VERSION_SUB BOOST_VERSION="$BOOST_VERSION_MAJ.$BOOST_VERSION_MIN.$BOOST_VERSION_SUB" HAVE_BOOST=yes # AC_MSG_NOTICE(BOOST_VERSION_MAJ: $BOOST_VERSION_MAJ) # AC_MSG_NOTICE(BOOST_VERSION_MIN: $BOOST_VERSION_MIN) # AC_MSG_NOTICE(BOOST_VERSION_SUB: $BOOST_VERSION_SUB) fi BOOST_HEADERS="$BOOST_HEADER_VERSION" if test "x$LD_LIBRARY_PATH" = "x"; then LD_LIBRARY_PATH=$BOOST_LOCATION/lib else LD_LIBRARY_PATH=$BOOST_LOCATION/lib:$LD_LIBRARY_PATH fi export LD_LIBRARY_PATH BOOST_HAVE_ASIO=no BOOST_HAVE_UUID=no BOOST_HAVE_LOG=no BOOST_HAVE_SYSTEM=no BOOST_HAVE_FILESYSTEM=no if test "$BOOST_VERSION_MAJ" -ge "1"; then if test "$BOOST_VERSION_MAJ" -eq "1"; then if test "$BOOST_VERSION_MIN" -ge "35"; then BOOST_HAVE_ASIO=yes BOOST_HAVE_SYSTEM=yes fi else BOOST_HAVE_ASIO=yes BOOST_HAVE_SYSTEM=yes fi fi # Configuration for Boost.Asio if test "x$BOOST_HAVE_ASIO" == "xyes"; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_asio_hpp" = x""yes; then : $as_echo "#define HAVE_BOOST_ASIO_HPP 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find boost/asio.hpp" >&5 $as_echo "cannot find boost/asio.hpp" >&6; } fi # AC_MSG_NOTICE([header: $CPPFLAGS]) CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "x$BOOST_HAVE_LIB_ASIO" == "xyes"; then SAGA_BOOST_DEP_FILES="$SAGA_BOOST_DEP_FILES $BOOST_HEADER_ASIO" fi fi if test "$BOOST_VERSION_MAJ" -ge "1"; then if test "$BOOST_VERSION_MAJ" -eq "1"; then if test "$BOOST_VERSION_MIN" -ge "42"; then BOOST_HAVE_UUID=yes fi else BOOST_HAVE_UUID=yes fi fi # Configuration for Boost.Asio if test "x$BOOST_HAVE_UUID" == "xyes"; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_mongrel "$LINENO" "boost/uuid/uuid.hpp" "ac_cv_header_boost_uuid_uuid_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_uuid_uuid_hpp" = x""yes; then : $as_echo "#define HAVE_BOOST_UUID_UUID_HPP 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find boost/uuid/uuid.hpp" >&5 $as_echo "cannot find boost/uuid/uuid.hpp" >&6; } fi # AC_MSG_NOTICE([header: $CPPFLAGS]) CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "x$BOOST_HAVE_LIB_UUID" == "xyes"; then SAGA_BOOST_DEP_FILES="$SAGA_BOOST_DEP_FILES $BOOST_HEADER_UUID" fi # if boost version is > 1.35, find libboost_system if test "x$BOOST_HAVE_SYSTEM" = "xyes"; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/config.hpp" "ac_cv_header_boost_system_config_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_system_config_hpp" = x""yes; then : $as_echo "#define HAVE_BOOST_SYSTEM_CONFIG_HPP 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find boost/system/config.hpp" >&5 $as_echo "cannot find boost/system/config.hpp" >&6; } fi # AC_MSG_NOTICE([header: $CPPFLAGS]) CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" # Now let's try to find the library. The algorithm is as follows: first look # for a given library name according to the user's PREFERRED-RT-OPT. For each # library name, we prefer to use the ones that carry the tag (toolset name). # Each library is searched through the various standard paths were Boost is # usually installed. If we can't find the standard variants, we try to # enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist # but there's -obviously- libboost_threads-mt.dylib). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5 $as_echo_n "checking for the Boost system library... " >&6; } if test "${boost_cv_lib_system+set}" = set; then : $as_echo_n "(cached) " >&6 else boost_cv_lib_system=no case "" in mt | mt-) boost_mt=-mt; boost_rtopt=;; mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; *) boost_mt=; boost_rtopt=;; esac # If the PREFERRED-RT-OPT are not empty, prepend a `-'. case $boost_rtopt in *[a-z0-9A-Z]*) boost_rtopt="-$boost_rtopt";; esac $boost_guess_use_mt && boost_mt=-mt # Look for the abs path the static archive. libext=a boost_save_ac_objext=$ac_objext # Generate the test file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_objext=do_not_rm_me_plz success=yes else success=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot compile a test that uses Boost system" >&5 $as_echo "Cannot compile a test that uses Boost system" >&6; } fi rm -f core conftest.err conftest.$ac_objext if test "x$success" = "xyes"; then ac_objext=$boost_save_ac_objext boost_failed_libs= # Don't bother to ident the 6 nested for loops, only the 2 innermost ones # matter. # # AM: yeah, sure.... # AM: linux uses a different version scheme than 'native' boost. We dig out the # maj/min/sub versions, to allow testing for those (see $boost_vsuff) vmaj=`echo "$boost_cv_lib_version""_0_0" | cut -f 1 -d '_'` vmin=`echo "$boost_cv_lib_version""_0_0" | cut -f 2 -d '_'` vsub=`echo "$boost_cv_lib_version""_0_0" | cut -f 3 -d '_'` test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} for boost_ldpath in "$BOOST_LOCATION/" \ "$boost_tmp_lib/" '' \ "$with_boost" \ /usr/ \ /usr/local/ \ /opt/ \ /opt/local/ \ C:/Boost/lib \ / ; do for boost_lext_ in '.so' '.dylib' '.a' -d; do for boost_ldir_ in "lib$CC_BIT" 'lib' 'lib64' -d; do for boost_vsuff_ in ".$vmaj.$vmin.$vsub" "$vmaj.$vmin" ".$vmaj" '' -d; do for boost_ver_ in -$boost_cv_lib_version ''; do for boost_tag_ in -$boost_cv_lib_tag ''; do for boost_mt_ in $boost_mt -mt ''; do for boost_rtopt_ in $boost_rtopt '' -d; do for boost_lib in \ "$boost_ldpath/$boost_ldir_/libboost_system$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_system$boost_tag_$boost_mt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_system$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_system$boost_tag_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_system$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_system$boost_tag_$boost_mt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_system$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_system$boost_tag_$boost_ver_$boost_lext_" do # Avoid testing twice the same lib case $boost_failed_libs in *@$boost_lib@*) continue;; esac # If with_boost is empty, we'll search in /lib first, which is not quite # right so instead we'll try to a location based on where the headers are. boost_tmp_lib=$with_boost #################################### test -d "$boost_ldpath" || continue boost_save_LDFLAGS=$LDFLAGS if test -e "$boost_lib"; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "trying $boost_lib" fi else if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "skipping $boost_lib" fi continue fi # # Are we looking for a static library? # case $boost_ldpath:$boost_rtopt_ in # *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) # Boost_lib_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # test -e "$Boost_lib_LIBS" || continue;; # *) # No: use -lboost_foo to find the shared library. # if test -e "$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext"; then # Boost_lib_S_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # fi # Boost_lib_LIBS="boost_ldpath/$boost_ldir_$boost_lib";; # esac boost_cv_lib_system_LIBS="$boost_lib" boost_save_LIBS=$LIBS LIBS="$boost_cv_lib_system_LIBS $LIBS" test x"$boost_ldpath/$boost_ldir_" != x && LDFLAGS="$boost_lib $LDFLAGS" rm -f conftest$ac_exeext boost_ac_ext_save=$ac_ext boost_use_source=: # If we already have a .o, re-use it. We change $ac_ext so that $ac_link # tries to link the existing object file instead of compiling from source. test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && ac_link="$ac_link $LDFLAGS" $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_executable_p conftest$ac_exeext }; then : boost_cv_lib_system=yes else if $boost_use_source; then $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi boost_cv_lib_system=no fi rm -f core conftest.err conftest_ipa8_conftest.oo \ conftest$ac_exeext ac_objext=$boost_save_ac_objext LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS if test x"$boost_cv_lib_system" = xyes; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ok" >&5 $as_echo "$as_me: ok" >&6;} fi break 9 else boost_failed_libs="$boost_failed_libs@$boost_lib@" if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ! ok" >&5 $as_echo "$as_me: ! ok" >&6;} fi fi done done done done done done done done done fi # success rm -f conftest.$ac_objext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5 $as_echo "$boost_cv_lib_system" >&6; } if test "x$boost_cv_lib_system" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find the flags to link with Boost system" >&5 $as_echo "Could not find the flags to link with Boost system" >&6; } BOOST_HAVE_LIB_SYSTEM=no else BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS BOOST_SYSTEM_S_LIBS=$boost_cv_lib_system_S_LIBS BOOST_HAVE_LIB_SYSTEM=yes BOOST_HEADER_SYSTEM=$BOOST_INCPATH/boost/system/config.hpp fi CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "x$BOOST_HAVE_LIB_SYSTEM" = "xyes"; then BOOST_LIBS="$BOOST_LIBS $BOOST_SYSTEM_LIBS" BOOST_S_LIBS="$BOOST_S_LIBS $BOOST_SYSTEM_S_LIBS" else as_fn_error $? "could not find boost system" "$LINENO" 5 fi fi # boost > 1.35 requires to link against system when linking against # filesystem. Linux manages quite well on itself, but MacOS... *sigh* # anyway, if we don't find it, we have our own copy in external which # does not need boost_system if test "x$BOOST_HAVE_SYSTEM" = "xyes"; then SAGA_SAVE_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS $BOOST_SYSTEM_LIBS" export LDFLAGS export SAGA_SAVE_LDFLAGS fi if test "x$BOOST_HAVE_LIB_SYSTEM" == "xyes"; then SAGA_BOOST_DEP_FILES="$SAGA_BOOST_DEP_FILES $BOOST_HEADER_SYSTEM" fi # test for various libraries, and crate CPPFLAGS and LDFLAGS boost_threads_save_LIBS=$LIBS boost_threads_save_CPPFLAGS=$CPPFLAGS LIBS="$LIBS $boost_cv_pthread_flag" # Yes, we *need* to put the -pthread thing in CPPFLAGS because with GCC3, # boost/thread.hpp will trigger a #error if -pthread isn't used: # boost/config/requires_threads.hpp:47:5: #error "Compiler threading support # is not turned on. Please set the correct command line options for # threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)" CPPFLAGS="$CPPFLAGS $boost_cv_pthread_flag" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_mongrel "$LINENO" "boost/thread.hpp" "ac_cv_header_boost_thread_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_thread_hpp" = x""yes; then : $as_echo "#define HAVE_BOOST_THREAD_HPP 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find boost/thread.hpp" >&5 $as_echo "cannot find boost/thread.hpp" >&6; } fi # AC_MSG_NOTICE([header: $CPPFLAGS]) CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" # Now let's try to find the library. The algorithm is as follows: first look # for a given library name according to the user's PREFERRED-RT-OPT. For each # library name, we prefer to use the ones that carry the tag (toolset name). # Each library is searched through the various standard paths were Boost is # usually installed. If we can't find the standard variants, we try to # enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist # but there's -obviously- libboost_threads-mt.dylib). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost thread library" >&5 $as_echo_n "checking for the Boost thread library... " >&6; } if test "${boost_cv_lib_thread+set}" = set; then : $as_echo_n "(cached) " >&6 else boost_cv_lib_thread=no case "" in mt | mt-) boost_mt=-mt; boost_rtopt=;; mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; *) boost_mt=; boost_rtopt=;; esac # If the PREFERRED-RT-OPT are not empty, prepend a `-'. case $boost_rtopt in *[a-z0-9A-Z]*) boost_rtopt="-$boost_rtopt";; esac $boost_guess_use_mt && boost_mt=-mt # Look for the abs path the static archive. libext=a boost_save_ac_objext=$ac_objext # Generate the test file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { boost::thread t; boost::mutex m; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_objext=do_not_rm_me_plz success=yes else success=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot compile a test that uses Boost thread" >&5 $as_echo "Cannot compile a test that uses Boost thread" >&6; } fi rm -f core conftest.err conftest.$ac_objext if test "x$success" = "xyes"; then ac_objext=$boost_save_ac_objext boost_failed_libs= # Don't bother to ident the 6 nested for loops, only the 2 innermost ones # matter. # # AM: yeah, sure.... # AM: linux uses a different version scheme than 'native' boost. We dig out the # maj/min/sub versions, to allow testing for those (see $boost_vsuff) vmaj=`echo "$boost_cv_lib_version""_0_0" | cut -f 1 -d '_'` vmin=`echo "$boost_cv_lib_version""_0_0" | cut -f 2 -d '_'` vsub=`echo "$boost_cv_lib_version""_0_0" | cut -f 3 -d '_'` test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} for boost_ldpath in "$BOOST_LOCATION/" \ "$boost_tmp_lib/" '' \ "$with_boost" \ /usr/ \ /usr/local/ \ /opt/ \ /opt/local/ \ C:/Boost/lib \ / ; do for boost_lext_ in '.so' '.dylib' '.a' -d; do for boost_ldir_ in "lib$CC_BIT" 'lib' 'lib64' -d; do for boost_vsuff_ in ".$vmaj.$vmin.$vsub" "$vmaj.$vmin" ".$vmaj" '' -d; do for boost_ver_ in -$boost_cv_lib_version ''; do for boost_tag_ in -$boost_cv_lib_tag ''; do for boost_mt_ in $boost_mt -mt ''; do for boost_rtopt_ in $boost_rtopt '' -d; do for boost_lib in \ "$boost_ldpath/$boost_ldir_/libboost_thread$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_thread$boost_tag_$boost_mt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_thread$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_thread$boost_tag_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_thread$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_thread$boost_tag_$boost_mt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_thread$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_thread$boost_tag_$boost_ver_$boost_lext_" do # Avoid testing twice the same lib case $boost_failed_libs in *@$boost_lib@*) continue;; esac # If with_boost is empty, we'll search in /lib first, which is not quite # right so instead we'll try to a location based on where the headers are. boost_tmp_lib=$with_boost #################################### test -d "$boost_ldpath" || continue boost_save_LDFLAGS=$LDFLAGS if test -e "$boost_lib"; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "trying $boost_lib" fi else if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "skipping $boost_lib" fi continue fi # # Are we looking for a static library? # case $boost_ldpath:$boost_rtopt_ in # *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) # Boost_lib_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # test -e "$Boost_lib_LIBS" || continue;; # *) # No: use -lboost_foo to find the shared library. # if test -e "$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext"; then # Boost_lib_S_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # fi # Boost_lib_LIBS="boost_ldpath/$boost_ldir_$boost_lib";; # esac boost_cv_lib_thread_LIBS="$boost_lib" boost_save_LIBS=$LIBS LIBS="$boost_cv_lib_thread_LIBS $LIBS" test x"$boost_ldpath/$boost_ldir_" != x && LDFLAGS="$boost_lib $LDFLAGS" rm -f conftest$ac_exeext boost_ac_ext_save=$ac_ext boost_use_source=: # If we already have a .o, re-use it. We change $ac_ext so that $ac_link # tries to link the existing object file instead of compiling from source. test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && ac_link="$ac_link $LDFLAGS" $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_executable_p conftest$ac_exeext }; then : boost_cv_lib_thread=yes else if $boost_use_source; then $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi boost_cv_lib_thread=no fi rm -f core conftest.err conftest_ipa8_conftest.oo \ conftest$ac_exeext ac_objext=$boost_save_ac_objext LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS if test x"$boost_cv_lib_thread" = xyes; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ok" >&5 $as_echo "$as_me: ok" >&6;} fi break 9 else boost_failed_libs="$boost_failed_libs@$boost_lib@" if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ! ok" >&5 $as_echo "$as_me: ! ok" >&6;} fi fi done done done done done done done done done fi # success rm -f conftest.$ac_objext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_thread" >&5 $as_echo "$boost_cv_lib_thread" >&6; } if test "x$boost_cv_lib_thread" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find the flags to link with Boost thread" >&5 $as_echo "Could not find the flags to link with Boost thread" >&6; } BOOST_HAVE_LIB_THREAD=no else BOOST_THREAD_LDFLAGS=$boost_cv_lib_thread_LDFLAGS BOOST_THREAD_LIBS=$boost_cv_lib_thread_LIBS BOOST_THREAD_S_LIBS=$boost_cv_lib_thread_S_LIBS BOOST_HAVE_LIB_THREAD=yes BOOST_HEADER_THREAD=$BOOST_INCPATH/boost/thread.hpp fi CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu BOOST_THREAD_LIBS="$BOOST_THREAD_LIBS $boost_cv_pthread_flag" BOOST_CPPFLAGS="$BOOST_CPPFLAGS $boost_cv_pthread_flag" LIBS=$boost_threads_save_LIBS CPPFLAGS=$boost_threads_save_CPPFLAGS if test "x$BOOST_HAVE_LIB_THREAD" = "xyes"; then BOOST_LDFLAGS="$BOOST_THREAD_LDFLAGS" BOOST_LIBS="$BOOST_LIBS $BOOST_THREAD_LIBS" BOOST_S_LIBS="$BOOST_S_LIBS $BOOST_THREAD_S_LIBS" else as_fn_error $? "could not find boost thread" "$LINENO" 5 fi if test "x$BOOST_HAVE_LIB_THREADS" == "xyes"; then SAGA_BOOST_DEP_FILES="$SAGA_BOOST_DEP_FILES $BOOST_HEADER_THREADS" fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_mongrel "$LINENO" "boost/filesystem/path.hpp" "ac_cv_header_boost_filesystem_path_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_filesystem_path_hpp" = x""yes; then : $as_echo "#define HAVE_BOOST_FILESYSTEM_PATH_HPP 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find boost/filesystem/path.hpp" >&5 $as_echo "cannot find boost/filesystem/path.hpp" >&6; } fi # AC_MSG_NOTICE([header: $CPPFLAGS]) CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" # Now let's try to find the library. The algorithm is as follows: first look # for a given library name according to the user's PREFERRED-RT-OPT. For each # library name, we prefer to use the ones that carry the tag (toolset name). # Each library is searched through the various standard paths were Boost is # usually installed. If we can't find the standard variants, we try to # enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist # but there's -obviously- libboost_threads-mt.dylib). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost filesystem library" >&5 $as_echo_n "checking for the Boost filesystem library... " >&6; } if test "${boost_cv_lib_filesystem+set}" = set; then : $as_echo_n "(cached) " >&6 else boost_cv_lib_filesystem=no case "" in mt | mt-) boost_mt=-mt; boost_rtopt=;; mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; *) boost_mt=; boost_rtopt=;; esac # If the PREFERRED-RT-OPT are not empty, prepend a `-'. case $boost_rtopt in *[a-z0-9A-Z]*) boost_rtopt="-$boost_rtopt";; esac $boost_guess_use_mt && boost_mt=-mt # Look for the abs path the static archive. libext=a boost_save_ac_objext=$ac_objext # Generate the test file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { boost::filesystem::path p; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_objext=do_not_rm_me_plz success=yes else success=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot compile a test that uses Boost filesystem" >&5 $as_echo "Cannot compile a test that uses Boost filesystem" >&6; } fi rm -f core conftest.err conftest.$ac_objext if test "x$success" = "xyes"; then ac_objext=$boost_save_ac_objext boost_failed_libs= # Don't bother to ident the 6 nested for loops, only the 2 innermost ones # matter. # # AM: yeah, sure.... # AM: linux uses a different version scheme than 'native' boost. We dig out the # maj/min/sub versions, to allow testing for those (see $boost_vsuff) vmaj=`echo "$boost_cv_lib_version""_0_0" | cut -f 1 -d '_'` vmin=`echo "$boost_cv_lib_version""_0_0" | cut -f 2 -d '_'` vsub=`echo "$boost_cv_lib_version""_0_0" | cut -f 3 -d '_'` test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} for boost_ldpath in "$BOOST_LOCATION/" \ "$boost_tmp_lib/" '' \ "$with_boost" \ /usr/ \ /usr/local/ \ /opt/ \ /opt/local/ \ C:/Boost/lib \ / ; do for boost_lext_ in '.so' '.dylib' '.a' -d; do for boost_ldir_ in "lib$CC_BIT" 'lib' 'lib64' -d; do for boost_vsuff_ in ".$vmaj.$vmin.$vsub" "$vmaj.$vmin" ".$vmaj" '' -d; do for boost_ver_ in -$boost_cv_lib_version ''; do for boost_tag_ in -$boost_cv_lib_tag ''; do for boost_mt_ in $boost_mt -mt ''; do for boost_rtopt_ in $boost_rtopt '' -d; do for boost_lib in \ "$boost_ldpath/$boost_ldir_/libboost_filesystem$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_filesystem$boost_tag_$boost_mt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_filesystem$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_filesystem$boost_tag_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_filesystem$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_filesystem$boost_tag_$boost_mt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_filesystem$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_filesystem$boost_tag_$boost_ver_$boost_lext_" do # Avoid testing twice the same lib case $boost_failed_libs in *@$boost_lib@*) continue;; esac # If with_boost is empty, we'll search in /lib first, which is not quite # right so instead we'll try to a location based on where the headers are. boost_tmp_lib=$with_boost #################################### test -d "$boost_ldpath" || continue boost_save_LDFLAGS=$LDFLAGS if test -e "$boost_lib"; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "trying $boost_lib" fi else if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "skipping $boost_lib" fi continue fi # # Are we looking for a static library? # case $boost_ldpath:$boost_rtopt_ in # *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) # Boost_lib_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # test -e "$Boost_lib_LIBS" || continue;; # *) # No: use -lboost_foo to find the shared library. # if test -e "$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext"; then # Boost_lib_S_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # fi # Boost_lib_LIBS="boost_ldpath/$boost_ldir_$boost_lib";; # esac boost_cv_lib_filesystem_LIBS="$boost_lib" boost_save_LIBS=$LIBS LIBS="$boost_cv_lib_filesystem_LIBS $LIBS" test x"$boost_ldpath/$boost_ldir_" != x && LDFLAGS="$boost_lib $LDFLAGS" rm -f conftest$ac_exeext boost_ac_ext_save=$ac_ext boost_use_source=: # If we already have a .o, re-use it. We change $ac_ext so that $ac_link # tries to link the existing object file instead of compiling from source. test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && ac_link="$ac_link $LDFLAGS" $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_executable_p conftest$ac_exeext }; then : boost_cv_lib_filesystem=yes else if $boost_use_source; then $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi boost_cv_lib_filesystem=no fi rm -f core conftest.err conftest_ipa8_conftest.oo \ conftest$ac_exeext ac_objext=$boost_save_ac_objext LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS if test x"$boost_cv_lib_filesystem" = xyes; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ok" >&5 $as_echo "$as_me: ok" >&6;} fi break 9 else boost_failed_libs="$boost_failed_libs@$boost_lib@" if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ! ok" >&5 $as_echo "$as_me: ! ok" >&6;} fi fi done done done done done done done done done fi # success rm -f conftest.$ac_objext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_filesystem" >&5 $as_echo "$boost_cv_lib_filesystem" >&6; } if test "x$boost_cv_lib_filesystem" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find the flags to link with Boost filesystem" >&5 $as_echo "Could not find the flags to link with Boost filesystem" >&6; } BOOST_HAVE_LIB_FILESYSTEM=no else BOOST_FILESYSTEM_LDFLAGS=$boost_cv_lib_filesystem_LDFLAGS BOOST_FILESYSTEM_LIBS=$boost_cv_lib_filesystem_LIBS BOOST_FILESYSTEM_S_LIBS=$boost_cv_lib_filesystem_S_LIBS BOOST_HAVE_LIB_FILESYSTEM=yes BOOST_HEADER_FILESYSTEM=$BOOST_INCPATH/boost/filesystem/path.hpp fi CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "x$BOOST_HAVE_LIB_FILESYSTEM" = "xyes"; then BOOST_HAVE_FILESYSTEM=yes BOOST_LIBS="$BOOST_LIBS $BOOST_FILESYSTEM_LIBS" BOOST_S_LIBS="$BOOST_S_LIBS $BOOST_FILESYSTEM_S_LIBS" BOOST_FILESYSTEM_VERSION=$BOOST_VERSION_NATIVE else BOOST_HAVE_FILESYSTEM=no { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find boost filesystem" >&5 $as_echo "$as_me: WARNING: could not find boost filesystem" >&2;} fi LDFLAGS=$SAGA_SAVE_LDFLAGS # for < 1.35, we ignore the system boost file system, and use our own. if test "$BOOST_VERSION_MAJ" -eq "1"; then if test "$BOOST_VERSION_MIN" -lt "35"; then BOOST_HAVE_FILESYSTEM=no { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using internal boost filesystem for boost < 1.35" >&5 $as_echo "$as_me: WARNING: using internal boost filesystem for boost < 1.35" >&2;} # set version to 1.34.1 BOOST_FILESYSTEM_VERSION=103500 fi fi if test "x$BOOST_HAVE_LIB_FILESYSTEM" == "xyes"; then SAGA_BOOST_DEP_FILES="$SAGA_BOOST_DEP_FILES $BOOST_HEADER_FILESYSTEM" fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_mongrel "$LINENO" "boost/regex.hpp" "ac_cv_header_boost_regex_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_regex_hpp" = x""yes; then : $as_echo "#define HAVE_BOOST_REGEX_HPP 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find boost/regex.hpp" >&5 $as_echo "cannot find boost/regex.hpp" >&6; } fi # AC_MSG_NOTICE([header: $CPPFLAGS]) CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" # Now let's try to find the library. The algorithm is as follows: first look # for a given library name according to the user's PREFERRED-RT-OPT. For each # library name, we prefer to use the ones that carry the tag (toolset name). # Each library is searched through the various standard paths were Boost is # usually installed. If we can't find the standard variants, we try to # enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist # but there's -obviously- libboost_threads-mt.dylib). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost regex library" >&5 $as_echo_n "checking for the Boost regex library... " >&6; } if test "${boost_cv_lib_regex+set}" = set; then : $as_echo_n "(cached) " >&6 else boost_cv_lib_regex=no case "" in mt | mt-) boost_mt=-mt; boost_rtopt=;; mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; *) boost_mt=; boost_rtopt=;; esac # If the PREFERRED-RT-OPT are not empty, prepend a `-'. case $boost_rtopt in *[a-z0-9A-Z]*) boost_rtopt="-$boost_rtopt";; esac $boost_guess_use_mt && boost_mt=-mt # Look for the abs path the static archive. libext=a boost_save_ac_objext=$ac_objext # Generate the test file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { boost::regex exp("*"); boost::regex_match("foo", exp); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_objext=do_not_rm_me_plz success=yes else success=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot compile a test that uses Boost regex" >&5 $as_echo "Cannot compile a test that uses Boost regex" >&6; } fi rm -f core conftest.err conftest.$ac_objext if test "x$success" = "xyes"; then ac_objext=$boost_save_ac_objext boost_failed_libs= # Don't bother to ident the 6 nested for loops, only the 2 innermost ones # matter. # # AM: yeah, sure.... # AM: linux uses a different version scheme than 'native' boost. We dig out the # maj/min/sub versions, to allow testing for those (see $boost_vsuff) vmaj=`echo "$boost_cv_lib_version""_0_0" | cut -f 1 -d '_'` vmin=`echo "$boost_cv_lib_version""_0_0" | cut -f 2 -d '_'` vsub=`echo "$boost_cv_lib_version""_0_0" | cut -f 3 -d '_'` test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} for boost_ldpath in "$BOOST_LOCATION/" \ "$boost_tmp_lib/" '' \ "$with_boost" \ /usr/ \ /usr/local/ \ /opt/ \ /opt/local/ \ C:/Boost/lib \ / ; do for boost_lext_ in '.so' '.dylib' '.a' -d; do for boost_ldir_ in "lib$CC_BIT" 'lib' 'lib64' -d; do for boost_vsuff_ in ".$vmaj.$vmin.$vsub" "$vmaj.$vmin" ".$vmaj" '' -d; do for boost_ver_ in -$boost_cv_lib_version ''; do for boost_tag_ in -$boost_cv_lib_tag ''; do for boost_mt_ in $boost_mt -mt ''; do for boost_rtopt_ in $boost_rtopt '' -d; do for boost_lib in \ "$boost_ldpath/$boost_ldir_/libboost_regex$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_regex$boost_tag_$boost_mt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_regex$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_regex$boost_tag_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_regex$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_regex$boost_tag_$boost_mt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_regex$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_regex$boost_tag_$boost_ver_$boost_lext_" do # Avoid testing twice the same lib case $boost_failed_libs in *@$boost_lib@*) continue;; esac # If with_boost is empty, we'll search in /lib first, which is not quite # right so instead we'll try to a location based on where the headers are. boost_tmp_lib=$with_boost #################################### test -d "$boost_ldpath" || continue boost_save_LDFLAGS=$LDFLAGS if test -e "$boost_lib"; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "trying $boost_lib" fi else if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "skipping $boost_lib" fi continue fi # # Are we looking for a static library? # case $boost_ldpath:$boost_rtopt_ in # *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) # Boost_lib_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # test -e "$Boost_lib_LIBS" || continue;; # *) # No: use -lboost_foo to find the shared library. # if test -e "$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext"; then # Boost_lib_S_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # fi # Boost_lib_LIBS="boost_ldpath/$boost_ldir_$boost_lib";; # esac boost_cv_lib_regex_LIBS="$boost_lib" boost_save_LIBS=$LIBS LIBS="$boost_cv_lib_regex_LIBS $LIBS" test x"$boost_ldpath/$boost_ldir_" != x && LDFLAGS="$boost_lib $LDFLAGS" rm -f conftest$ac_exeext boost_ac_ext_save=$ac_ext boost_use_source=: # If we already have a .o, re-use it. We change $ac_ext so that $ac_link # tries to link the existing object file instead of compiling from source. test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && ac_link="$ac_link $LDFLAGS" $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_executable_p conftest$ac_exeext }; then : boost_cv_lib_regex=yes else if $boost_use_source; then $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi boost_cv_lib_regex=no fi rm -f core conftest.err conftest_ipa8_conftest.oo \ conftest$ac_exeext ac_objext=$boost_save_ac_objext LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS if test x"$boost_cv_lib_regex" = xyes; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ok" >&5 $as_echo "$as_me: ok" >&6;} fi break 9 else boost_failed_libs="$boost_failed_libs@$boost_lib@" if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ! ok" >&5 $as_echo "$as_me: ! ok" >&6;} fi fi done done done done done done done done done fi # success rm -f conftest.$ac_objext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_regex" >&5 $as_echo "$boost_cv_lib_regex" >&6; } if test "x$boost_cv_lib_regex" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find the flags to link with Boost regex" >&5 $as_echo "Could not find the flags to link with Boost regex" >&6; } BOOST_HAVE_LIB_REGEX=no else BOOST_REGEX_LDFLAGS=$boost_cv_lib_regex_LDFLAGS BOOST_REGEX_LIBS=$boost_cv_lib_regex_LIBS BOOST_REGEX_S_LIBS=$boost_cv_lib_regex_S_LIBS BOOST_HAVE_LIB_REGEX=yes BOOST_HEADER_REGEX=$BOOST_INCPATH/boost/regex.hpp fi CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "x$BOOST_HAVE_LIB_REGEX" = "xyes"; then BOOST_LIBS="$BOOST_LIBS $BOOST_REGEX_LIBS" BOOST_S_LIBS="$BOOST_S_LIBS $BOOST_REGEX_S_LIBS" else as_fn_error $? "could not find boost regex" "$LINENO" 5 fi if test "x$BOOST_HAVE_LIB_REGEX" == "xyes"; then SAGA_BOOST_DEP_FILES="$SAGA_BOOST_DEP_FILES $BOOST_HEADER_REGEX" fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_mongrel "$LINENO" "boost/archive/text_oarchive.hpp" "ac_cv_header_boost_archive_text_oarchive_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_archive_text_oarchive_hpp" = x""yes; then : $as_echo "#define HAVE_BOOST_ARCHIVE_TEXT_OARCHIVE_HPP 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find boost/archive/text_oarchive.hpp" >&5 $as_echo "cannot find boost/archive/text_oarchive.hpp" >&6; } fi # AC_MSG_NOTICE([header: $CPPFLAGS]) CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" # Now let's try to find the library. The algorithm is as follows: first look # for a given library name according to the user's PREFERRED-RT-OPT. For each # library name, we prefer to use the ones that carry the tag (toolset name). # Each library is searched through the various standard paths were Boost is # usually installed. If we can't find the standard variants, we try to # enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist # but there's -obviously- libboost_threads-mt.dylib). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost serialization library" >&5 $as_echo_n "checking for the Boost serialization library... " >&6; } if test "${boost_cv_lib_serialization+set}" = set; then : $as_echo_n "(cached) " >&6 else boost_cv_lib_serialization=no case "" in mt | mt-) boost_mt=-mt; boost_rtopt=;; mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; *) boost_mt=; boost_rtopt=;; esac # If the PREFERRED-RT-OPT are not empty, prepend a `-'. case $boost_rtopt in *[a-z0-9A-Z]*) boost_rtopt="-$boost_rtopt";; esac $boost_guess_use_mt && boost_mt=-mt # Look for the abs path the static archive. libext=a boost_save_ac_objext=$ac_objext # Generate the test file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { std::ostream* o = 0; // Cheap way to get an ostream... boost::archive::text_oarchive t(*o); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_objext=do_not_rm_me_plz success=yes else success=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot compile a test that uses Boost serialization" >&5 $as_echo "Cannot compile a test that uses Boost serialization" >&6; } fi rm -f core conftest.err conftest.$ac_objext if test "x$success" = "xyes"; then ac_objext=$boost_save_ac_objext boost_failed_libs= # Don't bother to ident the 6 nested for loops, only the 2 innermost ones # matter. # # AM: yeah, sure.... # AM: linux uses a different version scheme than 'native' boost. We dig out the # maj/min/sub versions, to allow testing for those (see $boost_vsuff) vmaj=`echo "$boost_cv_lib_version""_0_0" | cut -f 1 -d '_'` vmin=`echo "$boost_cv_lib_version""_0_0" | cut -f 2 -d '_'` vsub=`echo "$boost_cv_lib_version""_0_0" | cut -f 3 -d '_'` test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} for boost_ldpath in "$BOOST_LOCATION/" \ "$boost_tmp_lib/" '' \ "$with_boost" \ /usr/ \ /usr/local/ \ /opt/ \ /opt/local/ \ C:/Boost/lib \ / ; do for boost_lext_ in '.so' '.dylib' '.a' -d; do for boost_ldir_ in "lib$CC_BIT" 'lib' 'lib64' -d; do for boost_vsuff_ in ".$vmaj.$vmin.$vsub" "$vmaj.$vmin" ".$vmaj" '' -d; do for boost_ver_ in -$boost_cv_lib_version ''; do for boost_tag_ in -$boost_cv_lib_tag ''; do for boost_mt_ in $boost_mt -mt ''; do for boost_rtopt_ in $boost_rtopt '' -d; do for boost_lib in \ "$boost_ldpath/$boost_ldir_/libboost_serialization$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_serialization$boost_tag_$boost_mt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_serialization$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_serialization$boost_tag_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_serialization$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_serialization$boost_tag_$boost_mt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_serialization$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_serialization$boost_tag_$boost_ver_$boost_lext_" do # Avoid testing twice the same lib case $boost_failed_libs in *@$boost_lib@*) continue;; esac # If with_boost is empty, we'll search in /lib first, which is not quite # right so instead we'll try to a location based on where the headers are. boost_tmp_lib=$with_boost #################################### test -d "$boost_ldpath" || continue boost_save_LDFLAGS=$LDFLAGS if test -e "$boost_lib"; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "trying $boost_lib" fi else if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "skipping $boost_lib" fi continue fi # # Are we looking for a static library? # case $boost_ldpath:$boost_rtopt_ in # *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) # Boost_lib_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # test -e "$Boost_lib_LIBS" || continue;; # *) # No: use -lboost_foo to find the shared library. # if test -e "$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext"; then # Boost_lib_S_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # fi # Boost_lib_LIBS="boost_ldpath/$boost_ldir_$boost_lib";; # esac boost_cv_lib_serialization_LIBS="$boost_lib" boost_save_LIBS=$LIBS LIBS="$boost_cv_lib_serialization_LIBS $LIBS" test x"$boost_ldpath/$boost_ldir_" != x && LDFLAGS="$boost_lib $LDFLAGS" rm -f conftest$ac_exeext boost_ac_ext_save=$ac_ext boost_use_source=: # If we already have a .o, re-use it. We change $ac_ext so that $ac_link # tries to link the existing object file instead of compiling from source. test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && ac_link="$ac_link $LDFLAGS" $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_executable_p conftest$ac_exeext }; then : boost_cv_lib_serialization=yes else if $boost_use_source; then $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi boost_cv_lib_serialization=no fi rm -f core conftest.err conftest_ipa8_conftest.oo \ conftest$ac_exeext ac_objext=$boost_save_ac_objext LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS if test x"$boost_cv_lib_serialization" = xyes; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ok" >&5 $as_echo "$as_me: ok" >&6;} fi break 9 else boost_failed_libs="$boost_failed_libs@$boost_lib@" if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ! ok" >&5 $as_echo "$as_me: ! ok" >&6;} fi fi done done done done done done done done done fi # success rm -f conftest.$ac_objext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_serialization" >&5 $as_echo "$boost_cv_lib_serialization" >&6; } if test "x$boost_cv_lib_serialization" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find the flags to link with Boost serialization" >&5 $as_echo "Could not find the flags to link with Boost serialization" >&6; } BOOST_HAVE_LIB_SERIALIZATION=no else BOOST_SERIALIZATION_LDFLAGS=$boost_cv_lib_serialization_LDFLAGS BOOST_SERIALIZATION_LIBS=$boost_cv_lib_serialization_LIBS BOOST_SERIALIZATION_S_LIBS=$boost_cv_lib_serialization_S_LIBS BOOST_HAVE_LIB_SERIALIZATION=yes BOOST_HEADER_SERIALIZATION=$BOOST_INCPATH/boost/archive/text_oarchive.hpp fi CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "x$BOOST_HAVE_LIB_SERIALIZATION" = "xyes"; then BOOST_LIBS="$BOOST_LIBS $BOOST_SERIALIZATION_LIBS" BOOST_S_LIBS="$BOOST_S_LIBS $BOOST_SERIALIZATION_S_LIBS" else as_fn_error $? "could not find boost serialization" "$LINENO" 5 fi if test "x$BOOST_HAVE_LIB_SERIALIZATION" == "xyes"; then SAGA_BOOST_DEP_FILES="$SAGA_BOOST_DEP_FILES $BOOST_HEADER_SERIALIZATION" fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_mongrel "$LINENO" "boost/iostreams/device/file_descriptor.hpp" "ac_cv_header_boost_iostreams_device_file_descriptor_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_iostreams_device_file_descriptor_hpp" = x""yes; then : $as_echo "#define HAVE_BOOST_IOSTREAMS_DEVICE_FILE_DESCRIPTOR_HPP 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find boost/iostreams/device/file_descriptor.hpp" >&5 $as_echo "cannot find boost/iostreams/device/file_descriptor.hpp" >&6; } fi # AC_MSG_NOTICE([header: $CPPFLAGS]) CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" # Now let's try to find the library. The algorithm is as follows: first look # for a given library name according to the user's PREFERRED-RT-OPT. For each # library name, we prefer to use the ones that carry the tag (toolset name). # Each library is searched through the various standard paths were Boost is # usually installed. If we can't find the standard variants, we try to # enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist # but there's -obviously- libboost_threads-mt.dylib). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost iostreams library" >&5 $as_echo_n "checking for the Boost iostreams library... " >&6; } if test "${boost_cv_lib_iostreams+set}" = set; then : $as_echo_n "(cached) " >&6 else boost_cv_lib_iostreams=no case "" in mt | mt-) boost_mt=-mt; boost_rtopt=;; mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; *) boost_mt=; boost_rtopt=;; esac # If the PREFERRED-RT-OPT are not empty, prepend a `-'. case $boost_rtopt in *[a-z0-9A-Z]*) boost_rtopt="-$boost_rtopt";; esac $boost_guess_use_mt && boost_mt=-mt # Look for the abs path the static archive. libext=a boost_save_ac_objext=$ac_objext # Generate the test file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if BOOST_VERSION < 104400 boost::iostreams::file_descriptor fd(0); #else boost::iostreams::file_descriptor fd(0, boost::iostreams::never_close_handle); #endif fd.close(); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_objext=do_not_rm_me_plz success=yes else success=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot compile a test that uses Boost iostreams" >&5 $as_echo "Cannot compile a test that uses Boost iostreams" >&6; } fi rm -f core conftest.err conftest.$ac_objext if test "x$success" = "xyes"; then ac_objext=$boost_save_ac_objext boost_failed_libs= # Don't bother to ident the 6 nested for loops, only the 2 innermost ones # matter. # # AM: yeah, sure.... # AM: linux uses a different version scheme than 'native' boost. We dig out the # maj/min/sub versions, to allow testing for those (see $boost_vsuff) vmaj=`echo "$boost_cv_lib_version""_0_0" | cut -f 1 -d '_'` vmin=`echo "$boost_cv_lib_version""_0_0" | cut -f 2 -d '_'` vsub=`echo "$boost_cv_lib_version""_0_0" | cut -f 3 -d '_'` test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} for boost_ldpath in "$BOOST_LOCATION/" \ "$boost_tmp_lib/" '' \ "$with_boost" \ /usr/ \ /usr/local/ \ /opt/ \ /opt/local/ \ C:/Boost/lib \ / ; do for boost_lext_ in '.so' '.dylib' '.a' -d; do for boost_ldir_ in "lib$CC_BIT" 'lib' 'lib64' -d; do for boost_vsuff_ in ".$vmaj.$vmin.$vsub" "$vmaj.$vmin" ".$vmaj" '' -d; do for boost_ver_ in -$boost_cv_lib_version ''; do for boost_tag_ in -$boost_cv_lib_tag ''; do for boost_mt_ in $boost_mt -mt ''; do for boost_rtopt_ in $boost_rtopt '' -d; do for boost_lib in \ "$boost_ldpath/$boost_ldir_/libboost_iostreams$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_iostreams$boost_tag_$boost_mt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_iostreams$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_iostreams$boost_tag_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_iostreams$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_iostreams$boost_tag_$boost_mt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_iostreams$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_iostreams$boost_tag_$boost_ver_$boost_lext_" do # Avoid testing twice the same lib case $boost_failed_libs in *@$boost_lib@*) continue;; esac # If with_boost is empty, we'll search in /lib first, which is not quite # right so instead we'll try to a location based on where the headers are. boost_tmp_lib=$with_boost #################################### test -d "$boost_ldpath" || continue boost_save_LDFLAGS=$LDFLAGS if test -e "$boost_lib"; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "trying $boost_lib" fi else if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "skipping $boost_lib" fi continue fi # # Are we looking for a static library? # case $boost_ldpath:$boost_rtopt_ in # *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) # Boost_lib_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # test -e "$Boost_lib_LIBS" || continue;; # *) # No: use -lboost_foo to find the shared library. # if test -e "$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext"; then # Boost_lib_S_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # fi # Boost_lib_LIBS="boost_ldpath/$boost_ldir_$boost_lib";; # esac boost_cv_lib_iostreams_LIBS="$boost_lib" boost_save_LIBS=$LIBS LIBS="$boost_cv_lib_iostreams_LIBS $LIBS" test x"$boost_ldpath/$boost_ldir_" != x && LDFLAGS="$boost_lib $LDFLAGS" rm -f conftest$ac_exeext boost_ac_ext_save=$ac_ext boost_use_source=: # If we already have a .o, re-use it. We change $ac_ext so that $ac_link # tries to link the existing object file instead of compiling from source. test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && ac_link="$ac_link $LDFLAGS" $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_executable_p conftest$ac_exeext }; then : boost_cv_lib_iostreams=yes else if $boost_use_source; then $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi boost_cv_lib_iostreams=no fi rm -f core conftest.err conftest_ipa8_conftest.oo \ conftest$ac_exeext ac_objext=$boost_save_ac_objext LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS if test x"$boost_cv_lib_iostreams" = xyes; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ok" >&5 $as_echo "$as_me: ok" >&6;} fi break 9 else boost_failed_libs="$boost_failed_libs@$boost_lib@" if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ! ok" >&5 $as_echo "$as_me: ! ok" >&6;} fi fi done done done done done done done done done fi # success rm -f conftest.$ac_objext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_iostreams" >&5 $as_echo "$boost_cv_lib_iostreams" >&6; } if test "x$boost_cv_lib_iostreams" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find the flags to link with Boost iostreams" >&5 $as_echo "Could not find the flags to link with Boost iostreams" >&6; } BOOST_HAVE_LIB_IOSTREAMS=no else BOOST_IOSTREAMS_LDFLAGS=$boost_cv_lib_iostreams_LDFLAGS BOOST_IOSTREAMS_LIBS=$boost_cv_lib_iostreams_LIBS BOOST_IOSTREAMS_S_LIBS=$boost_cv_lib_iostreams_S_LIBS BOOST_HAVE_LIB_IOSTREAMS=yes BOOST_HEADER_IOSTREAMS=$BOOST_INCPATH/boost/iostreams/device/file_descriptor.hpp fi CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "x$BOOST_HAVE_LIB_IOSTREAMS" = "xyes"; then BOOST_LIBS="$BOOST_LIBS $BOOST_IOSTREAMS_LIBS" BOOST_S_LIBS="$BOOST_S_LIBS $BOOST_IOSTREAMS_S_LIBS" BOOST_HAVE_IOSTREAMS=yes BOOST_IOSTREAMS_VERSION=$BOOST_VERSION_NATIVE else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $BOOST_HAVE_IOSTREAMS: could not find boost iostreams - using internal version" >&5 $as_echo "$as_me: WARNING: $BOOST_HAVE_IOSTREAMS: could not find boost iostreams - using internal version" >&2;} BOOST_HAVE_IOSTREAMS=no BOOST_IOSTREAMS_VERSION=104000 fi if test "x$BOOST_HAVE_LIB_IOSTREAMS" == "xyes"; then SAGA_BOOST_DEP_FILES="$SAGA_BOOST_DEP_FILES $BOOST_HEADER_IOSTREAMS" fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_mongrel "$LINENO" "boost/test/unit_test.hpp" "ac_cv_header_boost_test_unit_test_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_test_unit_test_hpp" = x""yes; then : $as_echo "#define HAVE_BOOST_TEST_UNIT_TEST_HPP 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find boost/test/unit_test.hpp" >&5 $as_echo "cannot find boost/test/unit_test.hpp" >&6; } fi # AC_MSG_NOTICE([header: $CPPFLAGS]) CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" # Now let's try to find the library. The algorithm is as follows: first look # for a given library name according to the user's PREFERRED-RT-OPT. For each # library name, we prefer to use the ones that carry the tag (toolset name). # Each library is searched through the various standard paths were Boost is # usually installed. If we can't find the standard variants, we try to # enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist # but there's -obviously- libboost_threads-mt.dylib). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost unit_test_framework library" >&5 $as_echo_n "checking for the Boost unit_test_framework library... " >&6; } if test "${boost_cv_lib_unit_test_framework+set}" = set; then : $as_echo_n "(cached) " >&6 else boost_cv_lib_unit_test_framework=no case "" in mt | mt-) boost_mt=-mt; boost_rtopt=;; mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; *) boost_mt=; boost_rtopt=;; esac # If the PREFERRED-RT-OPT are not empty, prepend a `-'. case $boost_rtopt in *[a-z0-9A-Z]*) boost_rtopt="-$boost_rtopt";; esac $boost_guess_use_mt && boost_mt=-mt # Look for the abs path the static archive. libext=a boost_save_ac_objext=$ac_objext # Generate the test file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include using boost::unit_test::test_suite; test_suite* init_unit_test_suite(int argc, char ** argv) { return NULL; } int main () { BOOST_CHECK(2 == 2); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_objext=do_not_rm_me_plz success=yes else success=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot compile a test that uses Boost unit_test_framework" >&5 $as_echo "Cannot compile a test that uses Boost unit_test_framework" >&6; } fi rm -f core conftest.err conftest.$ac_objext if test "x$success" = "xyes"; then ac_objext=$boost_save_ac_objext boost_failed_libs= # Don't bother to ident the 6 nested for loops, only the 2 innermost ones # matter. # # AM: yeah, sure.... # AM: linux uses a different version scheme than 'native' boost. We dig out the # maj/min/sub versions, to allow testing for those (see $boost_vsuff) vmaj=`echo "$boost_cv_lib_version""_0_0" | cut -f 1 -d '_'` vmin=`echo "$boost_cv_lib_version""_0_0" | cut -f 2 -d '_'` vsub=`echo "$boost_cv_lib_version""_0_0" | cut -f 3 -d '_'` test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} for boost_ldpath in "$BOOST_LOCATION/" \ "$boost_tmp_lib/" '' \ "$with_boost" \ /usr/ \ /usr/local/ \ /opt/ \ /opt/local/ \ C:/Boost/lib \ / ; do for boost_lext_ in '.so' '.dylib' '.a' -d; do for boost_ldir_ in "lib$CC_BIT" 'lib' 'lib64' -d; do for boost_vsuff_ in ".$vmaj.$vmin.$vsub" "$vmaj.$vmin" ".$vmaj" '' -d; do for boost_ver_ in -$boost_cv_lib_version ''; do for boost_tag_ in -$boost_cv_lib_tag ''; do for boost_mt_ in $boost_mt -mt ''; do for boost_rtopt_ in $boost_rtopt '' -d; do for boost_lib in \ "$boost_ldpath/$boost_ldir_/libboost_unit_test_framework$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_unit_test_framework$boost_tag_$boost_mt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_unit_test_framework$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_unit_test_framework$boost_tag_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_unit_test_framework$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_unit_test_framework$boost_tag_$boost_mt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_unit_test_framework$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_unit_test_framework$boost_tag_$boost_ver_$boost_lext_" do # Avoid testing twice the same lib case $boost_failed_libs in *@$boost_lib@*) continue;; esac # If with_boost is empty, we'll search in /lib first, which is not quite # right so instead we'll try to a location based on where the headers are. boost_tmp_lib=$with_boost #################################### test -d "$boost_ldpath" || continue boost_save_LDFLAGS=$LDFLAGS if test -e "$boost_lib"; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "trying $boost_lib" fi else if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "skipping $boost_lib" fi continue fi # # Are we looking for a static library? # case $boost_ldpath:$boost_rtopt_ in # *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) # Boost_lib_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # test -e "$Boost_lib_LIBS" || continue;; # *) # No: use -lboost_foo to find the shared library. # if test -e "$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext"; then # Boost_lib_S_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # fi # Boost_lib_LIBS="boost_ldpath/$boost_ldir_$boost_lib";; # esac boost_cv_lib_unit_test_framework_LIBS="$boost_lib" boost_save_LIBS=$LIBS LIBS="$boost_cv_lib_unit_test_framework_LIBS $LIBS" test x"$boost_ldpath/$boost_ldir_" != x && LDFLAGS="$boost_lib $LDFLAGS" rm -f conftest$ac_exeext boost_ac_ext_save=$ac_ext boost_use_source=: # If we already have a .o, re-use it. We change $ac_ext so that $ac_link # tries to link the existing object file instead of compiling from source. test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && ac_link="$ac_link $LDFLAGS" $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_executable_p conftest$ac_exeext }; then : boost_cv_lib_unit_test_framework=yes else if $boost_use_source; then $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi boost_cv_lib_unit_test_framework=no fi rm -f core conftest.err conftest_ipa8_conftest.oo \ conftest$ac_exeext ac_objext=$boost_save_ac_objext LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS if test x"$boost_cv_lib_unit_test_framework" = xyes; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ok" >&5 $as_echo "$as_me: ok" >&6;} fi break 9 else boost_failed_libs="$boost_failed_libs@$boost_lib@" if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ! ok" >&5 $as_echo "$as_me: ! ok" >&6;} fi fi done done done done done done done done done fi # success rm -f conftest.$ac_objext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_unit_test_framework" >&5 $as_echo "$boost_cv_lib_unit_test_framework" >&6; } if test "x$boost_cv_lib_unit_test_framework" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find the flags to link with Boost unit_test_framework" >&5 $as_echo "Could not find the flags to link with Boost unit_test_framework" >&6; } BOOST_HAVE_LIB_UNIT_TEST_FRAMEWORK=no else BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS=$boost_cv_lib_unit_test_framework_LDFLAGS BOOST_UNIT_TEST_FRAMEWORK_LIBS=$boost_cv_lib_unit_test_framework_LIBS BOOST_UNIT_TEST_FRAMEWORK_S_LIBS=$boost_cv_lib_unit_test_framework_S_LIBS BOOST_HAVE_LIB_UNIT_TEST_FRAMEWORK=yes BOOST_HEADER_UNIT_TEST_FRAMEWORK=$BOOST_INCPATH/boost/test/unit_test.hpp fi CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "x$BOOST_HAVE_LIB_UNIT_TEST_FRAMEWORK" = "xyes"; then BOOST_HAVE_TEST=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find boost unit test framework" >&5 $as_echo "$as_me: WARNING: could not find boost unit test framework" >&2;} fi if test "x$BOOST_HAVE_LIB_TEST" == "xyes"; then SAGA_BOOST_DEP_FILES="$SAGA_BOOST_DEP_FILES $BOOST_HEADER_TEST" fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_mongrel "$LINENO" "boost/program_options.hpp" "ac_cv_header_boost_program_options_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_program_options_hpp" = x""yes; then : $as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS_HPP 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find boost/program_options.hpp" >&5 $as_echo "cannot find boost/program_options.hpp" >&6; } fi # AC_MSG_NOTICE([header: $CPPFLAGS]) CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" # Now let's try to find the library. The algorithm is as follows: first look # for a given library name according to the user's PREFERRED-RT-OPT. For each # library name, we prefer to use the ones that carry the tag (toolset name). # Each library is searched through the various standard paths were Boost is # usually installed. If we can't find the standard variants, we try to # enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist # but there's -obviously- libboost_threads-mt.dylib). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost program_options library" >&5 $as_echo_n "checking for the Boost program_options library... " >&6; } if test "${boost_cv_lib_program_options+set}" = set; then : $as_echo_n "(cached) " >&6 else boost_cv_lib_program_options=no case "" in mt | mt-) boost_mt=-mt; boost_rtopt=;; mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; *) boost_mt=; boost_rtopt=;; esac # If the PREFERRED-RT-OPT are not empty, prepend a `-'. case $boost_rtopt in *[a-z0-9A-Z]*) boost_rtopt="-$boost_rtopt";; esac $boost_guess_use_mt && boost_mt=-mt # Look for the abs path the static archive. libext=a boost_save_ac_objext=$ac_objext # Generate the test file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { boost::program_options::options_description d("test"); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_objext=do_not_rm_me_plz success=yes else success=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot compile a test that uses Boost program_options" >&5 $as_echo "Cannot compile a test that uses Boost program_options" >&6; } fi rm -f core conftest.err conftest.$ac_objext if test "x$success" = "xyes"; then ac_objext=$boost_save_ac_objext boost_failed_libs= # Don't bother to ident the 6 nested for loops, only the 2 innermost ones # matter. # # AM: yeah, sure.... # AM: linux uses a different version scheme than 'native' boost. We dig out the # maj/min/sub versions, to allow testing for those (see $boost_vsuff) vmaj=`echo "$boost_cv_lib_version""_0_0" | cut -f 1 -d '_'` vmin=`echo "$boost_cv_lib_version""_0_0" | cut -f 2 -d '_'` vsub=`echo "$boost_cv_lib_version""_0_0" | cut -f 3 -d '_'` test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} for boost_ldpath in "$BOOST_LOCATION/" \ "$boost_tmp_lib/" '' \ "$with_boost" \ /usr/ \ /usr/local/ \ /opt/ \ /opt/local/ \ C:/Boost/lib \ / ; do for boost_lext_ in '.so' '.dylib' '.a' -d; do for boost_ldir_ in "lib$CC_BIT" 'lib' 'lib64' -d; do for boost_vsuff_ in ".$vmaj.$vmin.$vsub" "$vmaj.$vmin" ".$vmaj" '' -d; do for boost_ver_ in -$boost_cv_lib_version ''; do for boost_tag_ in -$boost_cv_lib_tag ''; do for boost_mt_ in $boost_mt -mt ''; do for boost_rtopt_ in $boost_rtopt '' -d; do for boost_lib in \ "$boost_ldpath/$boost_ldir_/libboost_program_options$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_program_options$boost_tag_$boost_mt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_program_options$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_program_options$boost_tag_$boost_ver_$boost_lext_$boost_vsuff_" \ "$boost_ldpath/$boost_ldir_/libboost_program_options$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_program_options$boost_tag_$boost_mt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_program_options$boost_tag_$boost_rtopt_$boost_ver_$boost_lext_" \ "$boost_ldpath/$boost_ldir_/libboost_program_options$boost_tag_$boost_ver_$boost_lext_" do # Avoid testing twice the same lib case $boost_failed_libs in *@$boost_lib@*) continue;; esac # If with_boost is empty, we'll search in /lib first, which is not quite # right so instead we'll try to a location based on where the headers are. boost_tmp_lib=$with_boost #################################### test -d "$boost_ldpath" || continue boost_save_LDFLAGS=$LDFLAGS if test -e "$boost_lib"; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "trying $boost_lib" fi else if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then echo "skipping $boost_lib" fi continue fi # # Are we looking for a static library? # case $boost_ldpath:$boost_rtopt_ in # *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) # Boost_lib_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # test -e "$Boost_lib_LIBS" || continue;; # *) # No: use -lboost_foo to find the shared library. # if test -e "$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext"; then # Boost_lib_S_LIBS="$boost_ldpath/$boost_ldir_/lib$boost_lib.$libext" # fi # Boost_lib_LIBS="boost_ldpath/$boost_ldir_$boost_lib";; # esac boost_cv_lib_program_options_LIBS="$boost_lib" boost_save_LIBS=$LIBS LIBS="$boost_cv_lib_program_options_LIBS $LIBS" test x"$boost_ldpath/$boost_ldir_" != x && LDFLAGS="$boost_lib $LDFLAGS" rm -f conftest$ac_exeext boost_ac_ext_save=$ac_ext boost_use_source=: # If we already have a .o, re-use it. We change $ac_ext so that $ac_link # tries to link the existing object file instead of compiling from source. test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && ac_link="$ac_link $LDFLAGS" $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_executable_p conftest$ac_exeext }; then : boost_cv_lib_program_options=yes else if $boost_use_source; then $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi boost_cv_lib_program_options=no fi rm -f core conftest.err conftest_ipa8_conftest.oo \ conftest$ac_exeext ac_objext=$boost_save_ac_objext LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS if test x"$boost_cv_lib_program_options" = xyes; then if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ok" >&5 $as_echo "$as_me: ok" >&6;} fi break 9 else boost_failed_libs="$boost_failed_libs@$boost_lib@" if test "x$DEBUG_BOOST_CONFIGURE" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: ! ok" >&5 $as_echo "$as_me: ! ok" >&6;} fi fi done done done done done done done done done fi # success rm -f conftest.$ac_objext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_program_options" >&5 $as_echo "$boost_cv_lib_program_options" >&6; } if test "x$boost_cv_lib_program_options" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find the flags to link with Boost program_options" >&5 $as_echo "Could not find the flags to link with Boost program_options" >&6; } BOOST_HAVE_LIB_PROGRAM_OPTIONS=no else BOOST_PROGRAM_OPTIONS_LDFLAGS=$boost_cv_lib_program_options_LDFLAGS BOOST_PROGRAM_OPTIONS_LIBS=$boost_cv_lib_program_options_LIBS BOOST_PROGRAM_OPTIONS_S_LIBS=$boost_cv_lib_program_options_S_LIBS BOOST_HAVE_LIB_PROGRAM_OPTIONS=yes BOOST_HEADER_PROGRAM_OPTIONS=$BOOST_INCPATH/boost/program_options.hpp fi CPPFLAGS=$boost_save_CPPFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "x$BOOST_HAVE_LIB_PROGRAM_OPTIONS" = "xyes"; then BOOST_HAVE_PROGRAM_OPTIONS=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find boost program options" >&5 $as_echo "$as_me: WARNING: could not find boost program options" >&2;} fi if test "x$BOOST_HAVE_LIB_PROGRAM_OPTIONS" != "xyes"; then # we need program options for the tests (test helper) BOOST_HAVE_TEST=no { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot use boost unit test framework w/o boost program options" >&5 $as_echo "$as_me: WARNING: cannot use boost unit test framework w/o boost program options" >&2;} fi if test "x$BOOST_HAVE_LIB_PROGRAM_OPTIONS" == "xyes"; then SAGA_BOOST_DEP_FILES="$SAGA_BOOST_DEP_FILES $BOOST_HEADER_PROGRAM_OPTIONS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost location" >&5 $as_echo_n "checking for boost location... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_LOCATION" >&5 $as_echo "$BOOST_LOCATION" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost major version" >&5 $as_echo_n "checking for boost major version... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_VERSION_MAJ" >&5 $as_echo "$BOOST_VERSION_MAJ" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost minor version" >&5 $as_echo_n "checking for boost minor version... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_VERSION_MIN" >&5 $as_echo "$BOOST_VERSION_MIN" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost sub version" >&5 $as_echo_n "checking for boost sub version... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_VERSION_SUB" >&5 $as_echo "$BOOST_VERSION_SUB" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost version" >&5 $as_echo_n "checking for boost version... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_VERSION" >&5 $as_echo "$BOOST_VERSION" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost CPPFLAGS" >&5 $as_echo_n "checking for boost CPPFLAGS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_CPPFLAGS" >&5 $as_echo "$BOOST_CPPFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost LDFLAGS" >&5 $as_echo_n "checking for boost LDFLAGS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_LDFLAGS" >&5 $as_echo "$BOOST_LDFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost LIBS" >&5 $as_echo_n "checking for boost LIBS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_LIBS" >&5 $as_echo "$BOOST_LIBS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost static LIBS" >&5 $as_echo_n "checking for boost static LIBS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_S_LIBS" >&5 $as_echo "$BOOST_S_LIBS" >&6; } cat >>confdefs.h <<_ACEOF #define SAGA_BOOST_FILESYSTEM_VERSION $BOOST_FILESYSTEM_VERSION _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_BOOST_IOSTREAMS_VERSION $BOOST_IOSTREAMS_VERSION _ACEOF old_cppflags=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long type" >&5 $as_echo_n "checking for long type... " >&6; } SAGA_TYPE_SIZE=unique if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_LONG=int $as_echo "#define SAGA_TYPE_LONG_IS_INT 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_TYPE_SIZE" >&5 $as_echo "$SAGA_TYPE_SIZE" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long type" >&5 $as_echo_n "checking for long long type... " >&6; } SAGA_TYPE_SIZE=unique if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_LONGLONG=int $as_echo "#define SAGA_TYPE_LONGLONG_IS_INT 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_TYPE_SIZE" >&5 $as_echo "$SAGA_TYPE_SIZE" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t type" >&5 $as_echo_n "checking for size_t type... " >&6; } SAGA_TYPE_SIZE=unique if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_SIZE=int $as_echo "#define SAGA_TYPE_SIZE_IS_INT 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_SIZE=long $as_echo "#define SAGA_TYPE_SIZE_IS_LONG 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_SIZE="long long" $as_echo "#define SAGA_TYPE_SIZE_IS_LONGLONG 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_TYPE_SIZE" >&5 $as_echo "$SAGA_TYPE_SIZE" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t type" >&5 $as_echo_n "checking for ssize_t type... " >&6; } SAGA_TYPE_SSIZE=unique if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_SSIZE=int $as_echo "#define SAGA_TYPE_SSIZE_IS_INT 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_SSIZE=long $as_echo "#define SAGA_TYPE_SSIZE_IS_LONG 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_SSIZE="long long" $as_echo "#define SAGA_TYPE_SSIZE_IS_LONGLONG 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_SSIZE=size_t $as_echo "#define SAGA_TYPE_SSIZE_IS_SIZE 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_TYPE_SSIZE" >&5 $as_echo "$SAGA_TYPE_SSIZE" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off_t type" >&5 $as_echo_n "checking for off_t type... " >&6; } SAGA_TYPE_OFF=unique if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_OFF=int $as_echo "#define SAGA_TYPE_OFF_IS_INT 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_OFF=long $as_echo "#define SAGA_TYPE_OFF_IS_LONG 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_OFF="long long" $as_echo "#define SAGA_TYPE_OFF_IS_LONGLONG 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_OFF=size_t $as_echo "#define SAGA_TYPE_OFF_IS_SIZE 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return ! (boost::is_same ::value); } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : SAGA_TYPE_OFF=ssize_t $as_echo "#define SAGA_TYPE_OFF_IS_SSIZE 1" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_TYPE_OFF" >&5 $as_echo "$SAGA_TYPE_OFF" >&6; } CPPFLAGS=$old_cppflags ac_config_files="$ac_config_files config/saga.config.boost.c.mk" if test "x$HAVE_BOOST" != "xyes"; then as_fn_error $? "Cannot build SAGA without boost - abort" "$LINENO" 5 fi SAGA_DEP_FILES="$SAGA_DEP_FILES $SAGA_BOOST_DEP_FILES" SAGA_LOCATION=$prefix cat >>confdefs.h <<_ACEOF #define SAGA_LOCATION "$SAGA_LOCATION" _ACEOF export SAGA_LOCATION if test "$libdir" = '${exec_prefix}/lib'; then SAGA_LIB_ROOT=$SAGA_LOCATION/lib else SAGA_LIB_ROOT=$libdir fi if test "$bindir" = '${exec_prefix}/bin'; then SAGA_BIN_ROOT="$SAGA_LOCATION/bin" else SAGA_BIN_ROOT="$bindir" fi if test "$includedir" = '${prefix}/include'; then SAGA_INC_ROOT="$SAGA_LOCATION/include" else SAGA_INC_ROOT="$includedir" fi if test "$mandir" = '${datarootdir}/man'; then SAGA_MAN_ROOT="$SAGA_LOCATION/share/man" else SAGA_MAN_ROOT="$mandir" fi if test "$datadir" = '${datarootdir}'; then if test "$datarootdir" = '${prefix}/share'; then SAGA_DAT_ROOT="$SAGA_LOCATION/share" else SAGA_DAT_ROOT="$datarootdir" fi else SAGA_DAT_ROOT="$datadir" fi is_saga_dir=`echo $SAGA_DAT_ROOT | sed -e 's/\/$//g' | rev | cut -f 1 | rev` if ! test "$is_saga_dir" = "saga"; then SAGA_DAT_ROOT="$SAGA_DAT_ROOT/saga" fi SAGA_ARCH=`uname -m` # ########################################################### ########################################################### # # find external dependencies # LIBADD_DL= ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = x""yes; then : $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h LIBADD_DL="$LIBADD_DL -ldld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : $as_echo "#define HAVE_LIBDL 1" >>confdefs.h LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if HAVE_DLFCN_H # include #endif int main () { dlopen(0, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HAVE_LIBDL 1" >>confdefs.h libltdl_cv_func_dlopen="yes" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : $as_echo "#define HAVE_LIBDL 1" >>confdefs.h LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : $as_echo "#define HAVE_DLD 1" >>confdefs.h LIBADD_DL="$LIBADD_DL -ldld" else ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then : $as_echo "#define HAVE_DYLD 1" >>confdefs.h fi fi fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi fi fi if test "x$libltdl_cv_func_dlopen" = "xyes" || \ test "x$libltdl_cv_lib_dl_dlopen" = "xyes" ; then lt_save_LIBS="$LIBS" LIBS="$LIBS $LIBADD_DL" for ac_func in dlerror do : ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" if test "x$ac_cv_func_dlerror" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLERROR 1 _ACEOF fi done LIBS="$lt_save_LIBS" fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu export LIBADD_DL HAVE_SQLITE3=no HAVE_SQLITE3_DTOR_TYPE=0 tmp_location="" # Check whether --with-sqlite3 was given. if test "${with_sqlite3+set}" = set; then : withval=$with_sqlite3; if test "$withval" = "no"; then want_sqlite3="no" elif test "$withval" = "yes"; then want_sqlite3="yes" tmp_location="" else want_sqlite3="yes" tmp_location="$withval" fi else want_sqlite3="yes" fi # use SQLITE3_LOCATION if avaialble, and if not # overwritten by --with-sqlite3= if test "x$want_sqlite3" = "xyes"; then packages=`ls /usr/local/package/sqlite3-* 2>>/dev/null` which_path=`which sqlite3 | rev | cut -f 3- -d '/' | rev` for tmp_path in $tmp_location $SQLITE3_LOCATION $which_path /usr /usr/local /opt $packages; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 in $tmp_path" >&5 $as_echo_n "checking for sqlite3 in $tmp_path... " >&6; } if ! test -x "$tmp_path/bin/sqlite3"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } continue fi if test "$SAGA_OSTYPE" = "SAGA_APPLE"; then sqlite3_libname=`otool -L $tmp_path/bin/sqlite3 | grep libsqlite3 | cut -f 2 | cut -f 1 -d ' '` sqlite3_libpath=`echo $sqlite3_libname | rev | cut -f 2- -d '/' | rev` sqlite3_libbase=`echo $sqlite3_libname | rev | cut -f 1 -d '/' | rev | sed -e 's/^lib//' | sed -e 's/.dylib$//'` else sqlite3_libname=`ldd $tmp_path/bin/sqlite3 | grep libsqlite3 | cut -f 2 -d '>' | cut -f 2 -d ' '` sqlite3_libpath=`echo $sqlite3_libname | rev | cut -f 2- -d '/' | rev` sqlite3_libbase=`echo $sqlite3_libname | rev | cut -f 1 -d '/' | rev | sed -e 's/^lib//' | cut -f 1 -d '.'` fi saved_cppflags=$CPPFLAGS saved_ldflags=$LDFLAGS SQLITE3_PATH=$tmp_path SQLITE3_LDFLAGS="-L$sqlite3_libpath -l$sqlite3_libbase" SQLITE3_CPPFLAGS="-I$tmp_path/include/" CPPFLAGS="$CPPFLAGS $SQLITE3_CPPFLAGS" export CPPFLAGS LDFLAGS="$LDFLAGS $SQLITE3_LDFLAGS" export LDFLAGS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { sqlite3 *db; int t = 1; return (sqlite3_open ("test_db", &db)); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : link_sqlite3="yes" else link_sqlite3="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$link_sqlite3" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } LDFLAGS=$saved_ldflags CPPFLAGS=$saved_cppflags else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SAGA_SQLITE3_DEP_FILES="$tmp_path/include/sqlite3.h" SQLITE3_VERSION=`$tmp_path/bin/sqlite3 -version` export SQLITE3_VERSION { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static lib sqlite3" >&5 $as_echo_n "checking for static lib sqlite3... " >&6; } if test -e "$sqlite3_libpath/libsqlite3.a"; then SQLITE3_S_LIBS="$sqlite3_libpath/libsqlite3.a" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE3_S_LIBS" >&5 $as_echo "$SQLITE3_S_LIBS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi SQLITE3_LOCATION=$tmp_path HAVE_SQLITE3=yes export HAVE_SQLITE3 if test "$tmp_location" != "" && \ test "$tmp_location" != "$tmp_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLITE3 found: not in $tmp_location but in $tmp_path" >&5 $as_echo "$as_me: WARNING: SQLITE3 found: not in $tmp_location but in $tmp_path" >&2;} fi break; fi # link ok done # foreach path if test "$HAVE_SQLITE3" == "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLITE3 not found" >&5 $as_echo "$as_me: WARNING: SQLITE3 not found" >&2;} else # need to test for the destructor type { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_destructur_type" >&5 $as_echo_n "checking for sqlite3_destructur_type... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ namespace sqlite_api { #include } int main () { using sqlite_api::sqlite3_destructor_type; SQLITE_STATIC; return (0); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : have_dtor_type="yes" else have_dtor_type="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$have_dtor_type" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } HAVE_SQLITE3_DTOR_TYPE=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test "$HAVE_SQLITE3" == "no" ; then SQLITE3_LOCATION="" { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLITE3 not found" >&5 $as_echo "$as_me: WARNING: SQLITE3 not found" >&2;} fi fi # want_sqlite3 ac_config_files="$ac_config_files config/saga.config.sqlite3.c.mk" HAVE_POSTGRESQL=no tmp_location="" # Check whether --with-postgresql was given. if test "${with_postgresql+set}" = set; then : withval=$with_postgresql; if test "$withval" = "no"; then want_postgresql="no" elif test "$withval" = "yes"; then want_postgresql="yes" tmp_location="" else want_postgresql="yes" tmp_location="$withval" fi else want_postgresql="yes" fi # use POSTGRESQL_LOCATION if avaialble, and if not # overwritten by --with-postgresql= if test "x$want_postgresql" = "xyes"; then packages=`ls /usr/local/package/postgresql-* 2>>/dev/null` for tmp_path in $tmp_location $POSTGRESQL_LOCATION /usr /usr/local /usr/local/pgsql /opt /opt/local $packages; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking for postgresql in $tmp_path" >&5 $as_echo_n "checking for postgresql in $tmp_path... " >&6; } have_something=`ls $tmp_path/lib{64,}/libpq* 2>/dev/null` if test "x$have_something" = "x"; then have_something=`ls $tmp_path/lib{64,}/postgresql*/libpq* 2>/dev/null` if test "x$have_something" = "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } continue else subdir=`echo $have_something | head -1 | rev | cut -f 2 -d '/' | rev` tmp_libdir=`echo $have_something | head -1 | rev | cut -f 3 -d '/' | rev` fi else tmp_libdir=`echo $have_something | head -1 | rev | cut -f 2 -d '/' | rev` fi saved_cppflags=$CPPFLAGS saved_ldflags=$LDFLAGS saved_ldlibpath=$LD_LIBRARY_PATH saved_dyldlibpath=$DYLD_LIBRARY_PATH POSTGRESQL_PATH=$tmp_path POSTGRESQL_LDFLAGS="-L$tmp_path/$tmp_libdir/$subdir -lpq" POSTGRESQL_CPPFLAGS="-I$tmp_path/include/$subdir -I$tmp_path/include/$subdir/pgsql -I$tmp_path/include/$subdir/postgresql" CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS" export CPPFLAGS LDFLAGS="$LDFLAGS $POSTGRESQL_LDFLAGS" export LDFLAGS LD_LIBRARY_PATH="$tmp_path/$tmp_libdir/$subdir:$LD_LIBRARY_PATH" DYLD_LIBRARY_PATH="$tmp_path/$tmp_libdir/$subdir:$DYLD_LIBRARY_PATH" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { PGconn* connection = PQconnectdb ("testdb"); return (0); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : link_postgresql="yes" else link_postgresql="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$link_postgresql" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } LDFLAGS=$saved_ldflags CPPFLAGS=$saved_cppflags LD_LIBRARY_PATH=$saved_ldlibpath DYLD_LIBRARY_PATH=$saved_dyldlibpath POSTGRESQL_LOCATION="" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -e "$tmp_path/include/$subdir/postgresql/libpq-fe.h"; then POSTGRESQL_CPPFLAGS="-I$tmp_path/include/$subdir/postgresql" SAGA_POSTGRESQL_DEP_FILES="$tmp_path/include/$subdir/postgresql/libpq-fe.h" fi if test -e "$tmp_path/include/$subdir/psql/libpq-fe.h"; then POSTGRESQL_CPPFLAGS="-I$tmp_path/include/$subdir/psql" SAGA_POSTGRESQL_DEP_FILES="$tmp_path/include/$subdir/psql/libpq-fe.h" fi if test -e "$tmp_path/include/$subdir/libpq-fe.h"; then POSTGRESQL_CPPFLAGS="-I$tmp_path/include/$subdir" SAGA_POSTGRESQL_DEP_FILES="$tmp_path/include/$subdir/libpq-fe.h" fi POSTGRESQL_LOCATION=$tmp_path { $as_echo "$as_me:${as_lineno-$LINENO}: checking for postgresql version" >&5 $as_echo_n "checking for postgresql version... " >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5 ; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { std::fstream out; out.open ("conftest.out", std::fstream::out); out << PG_VERSION << std::endl; out.close (); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : POSTGRESQL_VERSION=`cat conftest.out` else POSTGRESQL_VERSION="" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$POSTGRESQL_VERSION" = ""; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 $as_echo "unknown" >&6; } else # check for version > 8.x PQ_VERSION_MAJ=`echo $POSTGRESQL_VERSION | cut -f 1 -d .` PQ_VERSION_MIN=`echo $POSTGRESQL_VERSION | cut -f 2 -d .` PQ_VERSION_SUB=`echo $POSTGRESQL_VERSION | cut -f 3 -d .` if test "$PQ_VERSION_MAJ" -lt "8"; then HAVE_POSTGRESQL=no POSTGRESQL_VERSION="$POSTGRESQL_VERSION - too old" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTGRESQL_VERSION - older than 8.0" >&5 $as_echo "$POSTGRESQL_VERSION - older than 8.0" >&6; } $as_echo "#define SOCI_PGSQL_NOPARAMS 1" >>confdefs.h $as_echo "#define SOCI_PGSQL_NOPREPARE 1" >>confdefs.h else HAVE_POSTGRESQL=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTGRESQL_VERSION - newer than 8.0" >&5 $as_echo "$POSTGRESQL_VERSION - newer than 8.0" >&6; } fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static lib postgresql" >&5 $as_echo_n "checking for static lib postgresql... " >&6; } if test -e "$tmp_path/$tmp_libdir/$subdir/libpq.a"; then POSTGRESQL_S_LIBS="$tmp_path/$tmp_libdir/$subdir/libpq.a" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTGRESQL_S_LIBS" >&5 $as_echo "$POSTGRESQL_S_LIBS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi export HAVE_POSTGRESQL #if test "$tmp_location" != "" && \ # test "$tmp_location" != "$tmp_path" ; then # AC_MSG_WARN([POSTGRESQL found: # not in $tmp_location # but in $tmp_path]) #fi break; fi # link ok done # foreach path #if test "$HAVE_POSTGRESQL" == "no" ; then # POSTGRESQL_LOCATION="" # AC_MSG_WARN(POSTGRESQL not found) #fi fi # want_postgresql ac_config_files="$ac_config_files config/saga.config.postgresql.c.mk" ac_config_headers="$ac_config_headers external/soci/postgresql/postgresql-config.hpp" #AC_MSG_NOTICE(SOCI will be build internally) HAVE_SOCI=no export HAVE_SOCI HAVE_INTERNAL_SOCI=yes export HAVE_INTERNAL_SOCI # internal backends { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backend sqlite3" >&5 $as_echo_n "checking for backend sqlite3... " >&6; } if test "x$HAVE_SQLITE3" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 $as_echo "found" >&6; } soci_backends_ok="$soci_backends_ok-sqlite3-" SOCI_BACKENDS="$SOCI_BACKENDS sqlite3" HAVE_SOCI_SQLITE3=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backend postgresql" >&5 $as_echo_n "checking for backend postgresql... " >&6; } if test "x$HAVE_POSTGRESQL" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 $as_echo "found" >&6; } soci_backends_ok="$soci_backends_ok-postgresql-" SOCI_BACKENDS="$SOCI_BACKENDS postgresql" HAVE_SOCI_POSTGRESQL=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } fi if test "x$soci_backends_ok" == "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build any of the internal backends!" >&5 $as_echo "$as_me: WARNING: Cannot build any of the internal backends!" >&2;} HAVE_INTERNAL_SOCI=no HAVE_SOCI=no fi # translate defines into integers CPP_HAVE_SOCI=0 CPP_HAVE_INTERNAL_SOCI=0 CPP_HAVE_SOCI_MYSQL=0 CPP_HAVE_SOCI_SQLITE3=0 CPP_HAVE_SOCI_POSTGRESQL=0 if test "$HAVE_SOCI" = "yes"; then CPP_HAVE_SOCI=1 fi if test "$HAVE_INTERNAL_SOCI" = "yes"; then CPP_HAVE_INTERNAL_SOCI=1 fi if test "$HAVE_SOCI_MYSQL" = "yes"; then CPP_HAVE_SOCI_MYSQL=1 fi if test "$HAVE_SOCI_SQLITE3" = "yes"; then CPP_HAVE_SOCI_SQLITE3=1 fi if test "$HAVE_SOCI_POSTGRESQL" = "yes"; then CPP_HAVE_SOCI_POSTGRESQL=1 fi cat >>confdefs.h <<_ACEOF #define SAGA_HAVE_SOCI $CPP_HAVE_SOCI _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_HAVE_INTERNAL_SOCI $CPP_HAVE_INTERNAL_SOCI _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_HAVE_SOCI_MYSQL $CPP_HAVE_SOCI_MYSQL _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_HAVE_SOCI_SQLITE3 $CPP_HAVE_SOCI_SQLITE3 _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_HAVE_SOCI_POSTGRESQL $CPP_HAVE_SOCI_POSTGRESQL _ACEOF ac_config_files="$ac_config_files config/saga.config.soci.c.mk" #AC_MSG_NOTICE([XMLRPC_LOCATION: $XMLRPC_LOCATION]) HAVE_XMLRPC=no tmp_location="" # Check whether --with-xmlrpc was given. if test "${with_xmlrpc+set}" = set; then : withval=$with_xmlrpc; if test "$withval" = "no"; then want_xmlrpc="no" elif test "$withval" = "yes"; then want_xmlrpc="yes" tmp_location="" else want_xmlrpc="yes" tmp_location="$withval" fi else want_xmlrpc="yes" fi # use XMLRPC_LOCATION if avaialble, and if not # overwritten by --with-xmlrpc= if test "x$want_xmlrpc" = "xyes"; then packages=`ls /usr/local/package/xmlrpc-* 2>>/dev/null` for tmp_path in $tmp_location $XMLRPC_LOCATION /usr /usr/local /opt /opt/local $packages; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlrpc lib in $tmp_path" >&5 $as_echo_n "checking for xmlrpc lib in $tmp_path... " >&6; } have_libname_1=`ls $tmp_path/lib/libxmlrpc++.* 2>/dev/null` have_libname_2=`ls $tmp_path/lib/libXmlRpc.* 2>/dev/null` if test "x$have_libname_1" = "x"; then if test "x$have_libname_2" = "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } continue else libname="XmlRpc" fi else libname="xmlrpc++" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname" >&5 $as_echo "$libname" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlrpc header in $tmp_path" >&5 $as_echo_n "checking for xmlrpc header in $tmp_path... " >&6; } have_headername_1=`ls $tmp_path/include/XmlRpcCpp.h 2>/dev/null` have_headername_2=`ls $tmp_path/include/XmlRpc.h 2>/dev/null`ZZZZ if test "x$have_headername_1" = "x"; then if test "x$have_headername_2" = "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } continue else headername="XmlRpc" fi else headername="XmlRpcCpp" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headername" >&5 $as_echo "$headername" >&6; } saved_cppflags=$CPPFLAGS saved_ldflags=$LDFLAGS XMLRPC_PATH=$tmp_path XMLRPC_LDFLAGS="-L$tmp_path/lib/ -l$libname" XMLRPC_CPPFLAGS="-I$tmp_path/include/" CPPFLAGS="$CPPFLAGS $XMLRPC_CPPFLAGS" export CPPFLAGS LDFLAGS="$LDFLAGS $XMLRPC_LDFLAGS" export LDFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking xmlrpc linkage" >&5 $as_echo_n "checking xmlrpc linkage... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$headername.h> int main () { XmlRpc::XmlRpcClient c ("localhost", 1234, NULL, false); return (0); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : link_xmlrpc="yes" else link_xmlrpc="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$link_xmlrpc" = "xyes"; then XMLRPC_NEEDS_BOOL=1 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$headername.h> int main () { XmlRpc::XmlRpcClient c ("localhost", 1234, NULL); return (0); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : link_xmlrpc="yes" else link_xmlrpc="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$link_xmlrpc" = "xyes"; then XMLRPC_NEEDS_BOOL=0 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } LDFLAGS=$saved_ldflags CPPFLAGS=$saved_cppflags fi fi if test "x$link_xmlrpc" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SAGA_XMLRPC_DEP_FILES="$tmp_path/include/$headername.h" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static lib xmlrpc" >&5 $as_echo_n "checking for static lib xmlrpc... " >&6; } if test -e "$tmp_path/lib/lib$libname.a"; then XMLRPC_S_LIBS="$tmp_path/lib/lib$libname.a" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLRPC_S_LIBS" >&5 $as_echo "$XMLRPC_S_LIBS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi XMLRPC_VERSION=`ls $tmp_path/lib/lib$libname.so.*.*.* 2>/dev/null | sed -e 's|$tmp_path/lib/lib$libname.so.||'` export XMLRPC_VERSION XMLRPC_LOCATION=$tmp_path HAVE_XMLRPC=yes XMLRPC_HEADER=$headername export HAVE_XMLRPC cat >>confdefs.h <<_ACEOF #define SAGA_XMLRPC_NEEDS_BOOL "$XMLRPC_NEEDS_BOOL" _ACEOF cat >>confdefs.h <<_ACEOF #define SAGA_XMLRPC_HEADER "$XMLRPC_HEADER" _ACEOF #if test "$tmp_location" != "" && \ # test "$tmp_location" != "$tmp_path" ; then # AC_MSG_WARN([XMLRPC found: # not in $tmp_location # but in $tmp_path]) #fi break; fi # link ok done # foreach path #if test "$HAVE_XMLRPC" == "no" ; then # XMLRPC_LOCATION="" # AC_MSG_WARN(XMLRPC not found) #fi fi # want_xmlrpc ac_config_files="$ac_config_files config/saga.config.xmlrpc.c.mk" HAVE_OPENSSL=no tmp_location="" # Check whether --with-openssl was given. if test "${with_openssl+set}" = set; then : withval=$with_openssl; if test "$withval" = "no"; then want_openssl="no" elif test "$withval" = "yes"; then want_openssl="yes" tmp_location="" else want_openssl="yes" tmp_location="$withval" fi else want_openssl="yes" fi # use OPENSSL_LOCATION if avaialble, and if not # overwritten by --with-openssl= if test "x$want_openssl" = "xyes"; then packages=`ls /usr/local/package/openssl-* 2>>/dev/null` for tmp_path in $tmp_location $OPENSSL_LOCATION /usr /usr/local /opt $packages; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl in $tmp_path" >&5 $as_echo_n "checking for openssl in $tmp_path... " >&6; } saved_cppflags=$CPPFLAGS saved_ldflags=$LDFLAGS OPENSSL_PATH=$tmp_path # MacOS is different, for sure... if test "$SAGA_OSTYPE" = "SAGA_APPLE"; then OPENSSL_CPPFLAGS="-I$tmp_path/include/" OPENSSL_LDFLAGS="-L$tmp_path/lib/ -lssl -lcrypto" else OPENSSL_CPPFLAGS="-I$tmp_path/include/" OPENSSL_LDFLAGS="-L$tmp_path/lib/ -lssl" fi if test -e "$tmp_path/lib/libssl.a"; then if test "$SAGA_OSTYPE" = "$SAGA_APPLE"; then OPENSSL_S_LIBS="$tmp_path/lib/libssl.a $tmp_path/lib/libcrypto.a" else OPENSSL_S_LIBS="$tmp_path/lib/libssl.a" fi fi CPPFLAGS="$CPPFLAGS $OPENSSL_CPPFLAGS" export CPPFLAGS LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" export LDFLAGS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { SSL_library_init (); return (0); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : link_openssl="yes" else link_openssl="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$link_openssl" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } LDFLAGS=$saved_ldflags CPPFLAGS=$saved_cppflags OPENSSL_LOCATION="" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } OPENSSL_VERSION=`ls $tmp_path/lib/libssl.so.*.*.* 2>/dev/null | sed -e "s|$tmp_path/lib/libssl.so.||"` export OPENSSL_VERSION OPENSSL_LOCATION=$tmp_path HAVE_OPENSSL=yes SAGA_OPENSSL_DEP_FILES="$OPENSSL_LOCATION/include/openssl/ssl.h" export HAVE_OPENSSL #if test "$tmp_location" != "" && \ # test "$tmp_location" != "$tmp_path" ; then # AC_MSG_WARN([OPENSSL found: # not in $tmp_location # but in $tmp_path]) #fi break; fi # link ok done # foreach path #if test "$HAVE_OPENSSL" == "no" ; then # OPENSSL_LOCATION="" # AC_MSG_WARN(OPENSSL not found) #fi fi # want_openssl ac_config_files="$ac_config_files config/saga.config.openssl.c.mk" BUILD_ADAPTOR_ADVERT=no BUILD_ADAPTOR_REPLICA=no BUILD_ADAPTOR_FILESYSTEM=no BUILD_ADAPTOR_JOB=no BUILD_ADAPTOR_RPC=no BUILD_ADAPTOR_CPR=no BUILD_ADAPTOR_SD=no BUILD_ADAPTOR_STREAM=no BUILD_ADAPTOR_URL=yes if test "x$SAGA_HAVE_PACKAGE_ADVERT" = "xyes"; then BUILD_ADAPTOR_ADVERT="yes" fi if test "x$SAGA_HAVE_PACKAGE_REPLICA" = "xyes"; then BUILD_ADAPTOR_REPLICA="yes" fi if test "x$SAGA_HAVE_PACKAGE_FILESYSTEM" = "xyes"; then BUILD_ADAPTOR_FILESYSTEM="yes" fi if test "x$SAGA_HAVE_PACKAGE_JOB" = "xyes"; then BUILD_ADAPTOR_JOB="yes" fi if test "x$SAGA_HAVE_PACKAGE_RPC" = "xyes"; then BUILD_ADAPTOR_RPC="yes" fi if test "x$SAGA_HAVE_PACKAGE_CPR" = "xyes"; then BUILD_ADAPTOR_CPR="yes" fi if test "x$SAGA_HAVE_PACKAGE_SD" = "xyes"; then BUILD_ADAPTOR_SD="yes" fi if test "x$SAGA_HAVE_PACKAGE_STREAM" = "xyes"; then BUILD_ADAPTOR_STREAM="yes" fi if test "$BUILD_ADAPTOR_ADVERT-$BUILD_ADAPTOR_REPLICA" != "no-no"; then if test "$HAVE_SQLITE3-$HAVE_POSTGRESQL" = "yes-yes"; then DB_INFO="(w/ SQLite3 & PostgreSQL)" SAGA_DBTYPE="postgresql" SAGA_DEP_FILES="$SAGA_DEP_FILES $SAGA_POSTGRESQL_DEP_FILES" SAGA_DEP_FILES="$SAGA_DEP_FILES $SAGA_SQLITE3_DEP_FILES" fi if test "$HAVE_SQLITE3-$HAVE_POSTGRESQL" = "yes-no"; then DB_INFO="(w/ SQLite3)" SAGA_DBTYPE="sqlite3" SAGA_DEP_FILES="$SAGA_DEP_FILES $SAGA_SQLITE3_DEP_FILES" fi if test "$HAVE_SQLITE3-$HAVE_POSTGRESQL" = "no-yes"; then DB_INFO="(w/ PostgreSQL)" SAGA_DBTYPE="postgresql" SAGA_DEP_FILES="$SAGA_DEP_FILES $SAGA_POSTGRESQL_DEP_FILES" fi if test "$HAVE_SQLITE3-$HAVE_POSTGRESQL" = "no-no"; then DB_INFO="(PostgreSQL and/or SQLite3 req'd.)" SAGA_DBTYPE="none" BUILD_ADAPTOR_ADVERT=no BUILD_ADAPTOR_REPLICA=no fi fi if test "x$BUILD_ADAPTOR_ADVERT" = "xyes"; then DB_INFO_A=$DB_INFO fi if test "x$BUILD_ADAPTOR_REPLICA" = "xyes"; then DB_INFO_R=$DB_INFO fi if test "x$BUILD_ADAPTOR_RPC" = "xyes"; then if test "$HAVE_OPENSSL-$HAVE_XMLRPC" != "yes-yes"; then RPC_INFO=" (XML RPC and OpenSSL req'd.)" BUILD_ADAPTOR_RPC="no" else SAGA_DEP_FILES="$SAGA_DEP_FILES $SAGA_XMLRPC_DEP_FILES" SAGA_DEP_FILES="$SAGA_DEP_FILES $SAGA_OPENSSL_DEP_FILES" fi fi if test "x$POSTGRESQL_VERSION" != "x"; then POSTGRESQL_VERSION_S="($POSTGRESQL_VERSION)" fi # create adaptor specific output files ac_config_files="$ac_config_files adaptors/default/advert/default_advert_adaptor.ini" ac_config_files="$ac_config_files adaptors/default/replica/default_replica_adaptor.ini" # ########################################################### ########################################################### # # debian and redhat package support # depfiles=$SAGA_DEP_FILES depfiles_nv= # Extract the first word of "dpkg", so it can be a program name with args. set dummy dpkg; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_DPKG+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_DPKG in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_DPKG="$SAGA_DPKG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_DPKG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_DPKG=$ac_cv_path_SAGA_DPKG if test -n "$SAGA_DPKG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_DPKG" >&5 $as_echo "$SAGA_DPKG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$SAGA_DPKG" = ""; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: DPKG not found - not a debian system?" >&5 $as_echo "DPKG not found - not a debian system?" >&6; } else SAGA_DEB_DEPENDENCIES="" first=yes oldpackage="NONE" for depfile in $depfiles; do depfile=`echo $depfile | sed -e 's|//|/|g'` package=`$SAGA_DPKG -S $depfile 2>>/dev/null | cut -sf 1 -d ':'` if test "" = "$package"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find debian package for $depfile" >&5 $as_echo "Cannot find debian package for $depfile" >&6; } continue fi # AC_MSG_NOTICE([$depfile: $package]) if test "$oldpackage" = "$package"; then # avoid repetetetive entries, to some extend continue; fi version=`$SAGA_DPKG -p $package 2>>/dev/null | grep -e '^Version:' | cut -sf 2 -d ' '` if test "" = "$version"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find debian package version for $depfile" >&5 $as_echo "Cannot find debian package version for $depfile" >&6; } continue fi # this is what, for example, ubuntu 11.x reposrt for the package # openssh-client: 1:5.8p1-1ubuntu3 # Google tells me that this contains version 5.8.x of the ssh tools, # so we strip whatever is before the colon, and hope that scheme is # universally valid. haha. version=`echo $version | sed -e "s/^.*\://g"` vmajor=`echo $version | cut -sf 1 -d '.'` vminor=`echo $version | cut -sf 2 -d '.'` vmin="$vmajor.$vminor" # boost version can only differ by sub-minor version, other packages can # differ by minor versions... boostmatch=`expr "$package" ":" ".*boost.*"` if test "0" = "$boostmatch"; then vmax="`expr 1 + $vmajor`.0" else vmax="$vmajor.`expr 1 + $vminor`" fi if ! test "$first" == "yes"; then SAGA_DEB_DEPENDENCIES="$SAGA_DEB_DEPENDENCIES, " fi SAGA_DEB_DEPENDENCIES="$SAGA_DEB_DEPENDENCIES$package (>= $vmin)" if ! test "." = `expr substr $vmax 1 1`; then SAGA_DEB_DEPENDENCIES="$SAGA_DEB_DEPENDENCIES, $package (<< $vmax)" fi first=no oldpackage=$package done for depfile in $depfiles_nv; do depfile=`echo $depfile | sed -e 's|//|/|g'` package=`$SAGA_DPKG -S $depfile 2>>/dev/null | cut -sf 1 -d ':'` if test "" = "$package"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find debian package for $depfile" >&5 $as_echo "Cannot find debian package for $depfile" >&6; } continue fi # AC_MSG_NOTICE([$depfile: $package]) if test "$oldpackage" = "$package"; then # avoid repetetetive entries, to some extend continue; fi if ! test "$first" == "yes"; then SAGA_DEB_DEPENDENCIES="$SAGA_DEB_DEPENDENCIES, " fi SAGA_DEB_DEPENDENCIES="$SAGA_DEB_DEPENDENCIES$package" first=no oldpackage=$package done { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_DEB_DEPENDENCIES" >&5 $as_echo "$SAGA_DEB_DEPENDENCIES" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking debian architecture" >&5 $as_echo_n "checking debian architecture... " >&6; } deb_arch=`$SAGA_DPKG --print-architecture` if test "$deb_arch" == ""; then SAGA_DEB_ARCH=$SAGA_ARCH else SAGA_DEB_ARCH=$deb_arch fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_DEB_ARCH" >&5 $as_echo "$SAGA_DEB_ARCH" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking debian package version" >&5 $as_echo_n "checking debian package version... " >&6; } SAGA_DEB_VERSION=$SAGA_VERSION test -f PACKAGE && SAGA_DEB_VERSION=`grep '^VERSION:' PACKAGE | sed -e 's/^VERSION: *//'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_DEB_VERSION" >&5 $as_echo "$SAGA_DEB_VERSION" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking debian package name" >&5 $as_echo_n "checking debian package name... " >&6; } SAGA_DEB_PACKAGE="NONE" test -f PACKAGE && SAGA_DEB_PACKAGE=`grep '^PACKAGE:' PACKAGE | sed -e 's/^PACKAGE: *//'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_DEB_PACKAGE" >&5 $as_echo "$SAGA_DEB_PACKAGE" >&6; } ########################################################### # # with the thus gathered information, we can actually # create a debian control file { $as_echo "$as_me:${as_lineno-$LINENO}: checking debian package control file" >&5 $as_echo_n "checking debian package control file... " >&6; } SAGA_DEB_CONTROL=$SAGA_DEB_PACKAGE.deb.ctrl { $as_echo "$as_me:${as_lineno-$LINENO}: result: creating $SAGA_DEB_CONTROL" >&5 $as_echo "creating $SAGA_DEB_CONTROL" >&6; } cat <$SAGA_DEB_CONTROL Package: $SAGA_DEB_PACKAGE Version: $SAGA_DEB_VERSION Section: devel Priority: optional Architecture: $SAGA_DEB_ARCH Essential: no Depends: $SAGA_DEB_DEPENDENCIES Pre-Depends: Recommends: Suggests: Installed-Size: ###SIZE### Maintainer: Andre Merzky [andre--saga@merzky.net] Conflicts: Replaces: Provides: Description: http://saga-project.org/ EOT # ########################################################### fi # !DPKG depfiles=$SAGA_DEP_FILES depfiles_nv= # Extract the first word of "rpm", so it can be a program name with args. set dummy rpm; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_RPM+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_RPM in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_RPM="$SAGA_RPM" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_RPM="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_RPM=$ac_cv_path_SAGA_RPM if test -n "$SAGA_RPM"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_RPM" >&5 $as_echo "$SAGA_RPM" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "rpmbuild", so it can be a program name with args. set dummy rpmbuild; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SAGA_RPMBUILD+set}" = set; then : $as_echo_n "(cached) " >&6 else case $SAGA_RPMBUILD in [\\/]* | ?:[\\/]*) ac_cv_path_SAGA_RPMBUILD="$SAGA_RPMBUILD" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SAGA_RPMBUILD="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SAGA_RPMBUILD=$ac_cv_path_SAGA_RPMBUILD if test -n "$SAGA_RPMBUILD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_RPMBUILD" >&5 $as_echo "$SAGA_RPMBUILD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking redhat package dependencies" >&5 $as_echo_n "checking redhat package dependencies... " >&6; } if test "$SAGA_RPM" = ""; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPM not found - not a redhat system?" >&5 $as_echo "RPM not found - not a redhat system?" >&6; } elif test "$SAGA_RPMBUILD" = ""; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPMBUILD not found - not a redhat system?" >&5 $as_echo "RPMBUILD not found - not a redhat system?" >&6; } else SAGA_DEB_DEPENDENCIES="" first=yes oldpackage="NONE" for depfile in $depfiles; do depfile=`echo $depfile | sed -e 's|//|/|g'` package=`$SAGA_RPM -qf $depfile 2>>/dev/null` check=`echo "$package" | grep ' '` if test "$check" = "$package"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find redhat package for $depfile" >&5 $as_echo "Cannot find redhat package for $depfile" >&6; } continue fi package=`rpm -qi $package | grep Name | head -1 | cut -sf 2 -d ':' | cut -sf 2 -d ' '` # AC_MSG_NOTICE([$depfile: $package]) if test "$oldpackage" = "$package"; then # avoid repetetetive entries, to some extend continue; fi version=`$SAGA_RPM -qi $package 2>>/dev/null | grep Version | cut -sf 2 -d ':' | cut -sf 2 -d ' '` if test "" = "$version"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find redhat package version for $depfile" >&5 $as_echo "Cannot find redhat package version for $depfile" >&6; } continue fi # this is what, for example, ubuntu 11.x reports for the package # openssh-client: 1:5.8p1-1ubuntu3 # Google tells me that this contains version 5.8.x of the ssh tools, # so we strip whatever is before the colon, and hope that scheme is # universally valid. haha. # # Oy, we also need to strip the patchlevel info, as some versions # of rpmbuild complain about that when evaluating the control file. version=`echo $version | sed -e "s/^.*\://g" | sed -e "s/p.*//g"` vmajor=`echo $version | cut -sf 1 -d '.'` vminor=`echo $version | cut -sf 2 -d '.'` vmin="$vmajor.$vminor" # boost version can only differ by sub-minor version, other packages can # differ by minor versions... boostmatch=`expr "$package" ":" ".*boost.*"` if test "0" = "$boostmatch"; then vmax="`expr 1 + $vmajor`.0" else vmax="$vmajor.`expr 1 + $vminor`" fi if ! test "$first" == "yes"; then SAGA_RPM_DEPENDENCIES="$SAGA_RPM_DEPENDENCIES, " fi SAGA_RPM_DEPENDENCIES="$SAGA_RPM_DEPENDENCIES$package >= $vmin" # we trust RPM's autoreq utilities to do the right thing, and do not # specify upper version bounds # # if ! test "." = `expr substr $vmax 1 1`; then # SAGA_RPM_DEPENDENCIES="$SAGA_RPM_DEPENDENCIES, $package < $vmax" # fi first=no oldpackage=$package done for depfile in $depfiles_nv; do depfile=`echo $depfile | sed -e 's|//|/|g'` package=`$SAGA_RPM -qf $depfile 2>>/dev/null` check=`echo "$package" | grep ' '` if test "$check" = "$package"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find redhat package for $depfile" >&5 $as_echo "Cannot find redhat package for $depfile" >&6; } continue fi package=`rpm -qi $package | grep Name | head -1 | cut -sf 2 -d ':' | cut -sf 2 -d ' '` # AC_MSG_NOTICE([$depfile: $package]) if test "$oldpackage" = "$package"; then # avoid repetetetive entries, to some extend continue; fi if ! test "$first" == "yes"; then SAGA_RPM_DEPENDENCIES="$SAGA_RPM_DEPENDENCIES, " fi SAGA_RPM_DEPENDENCIES="$SAGA_RPM_DEPENDENCIES$package" first=no oldpackage=$package done if test "$SAGA_RPM_DEPENDENCIES" = ""; then all_deps="" else all_deps="Requires: $SAGA_RPM_DEPENDENCIES" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_RPM_DEPENDENCIES" >&5 $as_echo "$SAGA_RPM_DEPENDENCIES" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking redhat architecture" >&5 $as_echo_n "checking redhat architecture... " >&6; } rpmarch=`uname -m` if test "$rpm_arch" == ""; then SAGA_RPM_ARCH=$SAGA_ARCH else SAGA_RPM_ARCH=$rpmarch fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_RPM_ARCH" >&5 $as_echo "$SAGA_RPM_ARCH" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking redhat package version" >&5 $as_echo_n "checking redhat package version... " >&6; } SAGA_RPM_VERSION=$SAGA_VERSION SAGA_RPM_RELEASE="" test -f PACKAGE && SAGA_RPM_VERSION=`grep '^VERSION:' PACKAGE | sed -e 's/^VERSION: *//' | cut -f 1 -d '-'` test -f PACKAGE && SAGA_RPM_RELEASE=`grep '^VERSION:' PACKAGE | sed -e 's/^VERSION: *//' | cut -sf 2 -d '-'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_RPM_VERSION - $SAGA_RPM_RELEASE" >&5 $as_echo "$SAGA_RPM_VERSION - $SAGA_RPM_RELEASE" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking redhat package license" >&5 $as_echo_n "checking redhat package license... " >&6; } test -f PACKAGE && SAGA_RPM_LICENSE=`grep '^LICENSE:' PACKAGE | sed -e 's/^LICENSE: *//'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_RPM_LICENSE" >&5 $as_echo "$SAGA_RPM_LICENSE" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking redhat package name" >&5 $as_echo_n "checking redhat package name... " >&6; } SAGA_RPM_PACKAGE="NONE" test -f PACKAGE && SAGA_RPM_PACKAGE=`grep '^PACKAGE:' PACKAGE | sed -e 's/^PACKAGE: *//'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAGA_RPM_PACKAGE" >&5 $as_echo "$SAGA_RPM_PACKAGE" >&6; } ########################################################### # # with the thus gathered information, we can actually # create a redhat control file { $as_echo "$as_me:${as_lineno-$LINENO}: checking redhat package control file" >&5 $as_echo_n "checking redhat package control file... " >&6; } SAGA_RPM_CONTROL=$SAGA_RPM_PACKAGE.rpm.ctrl { $as_echo "$as_me:${as_lineno-$LINENO}: result: creating $SAGA_RPM_CONTROL" >&5 $as_echo "creating $SAGA_RPM_CONTROL" >&6; } SAGA_RPM_FULLNAME="$SAGA_RPM_PACKAGE-$SAGA_RPM_VERSION-$SAGA_RPM_RELEASE" if test "$SAGA_RPM_RELEASE" = ""; then SAGA_RPM_RELEASE=0 SAGA_RPM_FULLNAME="$SAGA_RPM_PACKAGE-$SAGA_RPM_VERSION" fi cat <$SAGA_RPM_CONTROL ######################################################################## # # Header section # Summary: http://saga-project.org/ Name: $SAGA_RPM_PACKAGE Version: $SAGA_RPM_VERSION Release: $SAGA_RPM_RELEASE License: '$SAGA_RPM_LICENSE' Group: Applications/Devel Source: $SAGA_RPM_FULLNAME.tgz URL: http://saga-project.org/release/ # temporary dir where the software should be compiled Buildroot: %{_tmppath}/%{name}-root # non-obvious software required to build the software Autoreq: 1 $all_deps %description http://saga-project.org/ ######################################################################## # # Prep section # %prep # unpack the source and cd into the source directory %setup -q -n $SAGA_RPM_FULLNAME ######################################################################## # # Build section # %build # less uses autoconf, so ./configure it w/ appropriate options %configure # compile the software make ######################################################################## # # Install section # %install # as sanity protection, make sure the Buildroot is empty rm -rf \$RPM_BUILD_ROOT # install software into the Buildroot make DESTDIR=\$RPM_BUILD_ROOT install ######################################################################## # # Files section # %files # set perms and ownerships of packaged files # the - indicates that the current permissions on the files should be used %defattr(-,root,root) # package all files within the \$RPM_BUILD_ROOT/ directory /* ######################################################################## # # define a clean-up script to run after the software in Buildroot is pkg'ed # %clean # just delete all files within the Buildroot rm -rf \$RPM_BUILD_ROOT ######################################################################## # # Scripts section begin here # # No Scripts in this RPM ######################################################################## # # Changelog # %changelog * Mon Sep 12 2011 Andre Merzky - Initial RPM packaging EOT # ########################################################### fi # SAGA_RPM != "" # ########################################################### ########################################################### # # create make configs # ac_config_files="$ac_config_files config/saga.config.c.mk" ac_config_files="$ac_config_files config/saga.config.check.c.mk" # core make configs ac_config_files="$ac_config_files saga/impl/engine/saga.core.mk" ac_config_files="$ac_config_files saga/impl/engine/saga.core.i.mk" # package make configs ac_config_files="$ac_config_files saga/impl/packages/advert/saga.package.advert.mk" ac_config_files="$ac_config_files saga/impl/packages/advert/saga.package.advert.i.mk" ac_config_files="$ac_config_files saga/impl/packages/cpr/saga.package.cpr.mk" ac_config_files="$ac_config_files saga/impl/packages/cpr/saga.package.cpr.i.mk" ac_config_files="$ac_config_files saga/impl/packages/isn/saga.package.isn.mk" ac_config_files="$ac_config_files saga/impl/packages/isn/saga.package.isn.i.mk" ac_config_files="$ac_config_files saga/impl/packages/filesystem/saga.package.filesystem.mk" ac_config_files="$ac_config_files saga/impl/packages/filesystem/saga.package.filesystem.i.mk" ac_config_files="$ac_config_files saga/impl/packages/job/saga.package.job.mk" ac_config_files="$ac_config_files saga/impl/packages/job/saga.package.job.i.mk" ac_config_files="$ac_config_files saga/impl/packages/namespace/saga.package.namespace.mk" ac_config_files="$ac_config_files saga/impl/packages/namespace/saga.package.namespace.i.mk" ac_config_files="$ac_config_files saga/impl/packages/replica/saga.package.replica.mk" ac_config_files="$ac_config_files saga/impl/packages/replica/saga.package.replica.i.mk" ac_config_files="$ac_config_files saga/impl/packages/rpc/saga.package.rpc.mk" ac_config_files="$ac_config_files saga/impl/packages/rpc/saga.package.rpc.i.mk" ac_config_files="$ac_config_files saga/impl/packages/sd/saga.package.sd.mk" ac_config_files="$ac_config_files saga/impl/packages/sd/saga.package.sd.i.mk" ac_config_files="$ac_config_files saga/impl/packages/stream/saga.package.stream.mk" ac_config_files="$ac_config_files saga/impl/packages/stream/saga.package.stream.i.mk" # ########################################################### ########################################################### # # make helper and scripts # ac_config_files="$ac_config_files tools/scripts/saga-config" ac_config_files="$ac_config_files tools/scripts/saga-run.sh" ac_config_files="$ac_config_files tools/scripts/saga-install.pl" ac_config_files="$ac_config_files tools/scripts/saga-install.sh" ac_config_files="$ac_config_files tools/scripts/saga-profile.sh" ac_config_files="$ac_config_files tools/scripts/saga-run-test.sh" # ########################################################### ########################################################### # # global config files # ac_config_headers="$ac_config_headers saga/saga-config.hpp" ac_config_files="$ac_config_files config/saga.ini" ac_config_files="$ac_config_files config/saga.pc" ac_config_files="$ac_config_files config/saga_boost.pc" ac_config_files="$ac_config_files config/saga.config.sh" # ########################################################### ########################################################### # # recursive configure (not used at the moment) # SAGA_RECURSIVE_CONFIG=yes export SAGA_RECURSIVE_CONFIG # ########################################################### ########################################################### # # flag configure success # SAGA_CONFIGURE_OK=yes if test "$HAVE_BOOST" = "no"; then SAGA_CONFIGURE_OK=no; fi # ########################################################### ########################################################### # # trigger config file write # cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : ${CONFIG_STATUS=./config.status} ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.67. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.67, with options \\"\$ac_cs_config\\" Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config/saga.config.boost.c.mk") CONFIG_FILES="$CONFIG_FILES config/saga.config.boost.c.mk" ;; "config/saga.config.sqlite3.c.mk") CONFIG_FILES="$CONFIG_FILES config/saga.config.sqlite3.c.mk" ;; "config/saga.config.postgresql.c.mk") CONFIG_FILES="$CONFIG_FILES config/saga.config.postgresql.c.mk" ;; "external/soci/postgresql/postgresql-config.hpp") CONFIG_HEADERS="$CONFIG_HEADERS external/soci/postgresql/postgresql-config.hpp" ;; "config/saga.config.soci.c.mk") CONFIG_FILES="$CONFIG_FILES config/saga.config.soci.c.mk" ;; "config/saga.config.xmlrpc.c.mk") CONFIG_FILES="$CONFIG_FILES config/saga.config.xmlrpc.c.mk" ;; "config/saga.config.openssl.c.mk") CONFIG_FILES="$CONFIG_FILES config/saga.config.openssl.c.mk" ;; "adaptors/default/advert/default_advert_adaptor.ini") CONFIG_FILES="$CONFIG_FILES adaptors/default/advert/default_advert_adaptor.ini" ;; "adaptors/default/replica/default_replica_adaptor.ini") CONFIG_FILES="$CONFIG_FILES adaptors/default/replica/default_replica_adaptor.ini" ;; "config/saga.config.c.mk") CONFIG_FILES="$CONFIG_FILES config/saga.config.c.mk" ;; "config/saga.config.check.c.mk") CONFIG_FILES="$CONFIG_FILES config/saga.config.check.c.mk" ;; "saga/impl/engine/saga.core.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/engine/saga.core.mk" ;; "saga/impl/engine/saga.core.i.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/engine/saga.core.i.mk" ;; "saga/impl/packages/advert/saga.package.advert.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/advert/saga.package.advert.mk" ;; "saga/impl/packages/advert/saga.package.advert.i.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/advert/saga.package.advert.i.mk" ;; "saga/impl/packages/cpr/saga.package.cpr.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/cpr/saga.package.cpr.mk" ;; "saga/impl/packages/cpr/saga.package.cpr.i.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/cpr/saga.package.cpr.i.mk" ;; "saga/impl/packages/isn/saga.package.isn.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/isn/saga.package.isn.mk" ;; "saga/impl/packages/isn/saga.package.isn.i.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/isn/saga.package.isn.i.mk" ;; "saga/impl/packages/filesystem/saga.package.filesystem.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/filesystem/saga.package.filesystem.mk" ;; "saga/impl/packages/filesystem/saga.package.filesystem.i.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/filesystem/saga.package.filesystem.i.mk" ;; "saga/impl/packages/job/saga.package.job.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/job/saga.package.job.mk" ;; "saga/impl/packages/job/saga.package.job.i.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/job/saga.package.job.i.mk" ;; "saga/impl/packages/namespace/saga.package.namespace.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/namespace/saga.package.namespace.mk" ;; "saga/impl/packages/namespace/saga.package.namespace.i.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/namespace/saga.package.namespace.i.mk" ;; "saga/impl/packages/replica/saga.package.replica.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/replica/saga.package.replica.mk" ;; "saga/impl/packages/replica/saga.package.replica.i.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/replica/saga.package.replica.i.mk" ;; "saga/impl/packages/rpc/saga.package.rpc.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/rpc/saga.package.rpc.mk" ;; "saga/impl/packages/rpc/saga.package.rpc.i.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/rpc/saga.package.rpc.i.mk" ;; "saga/impl/packages/sd/saga.package.sd.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/sd/saga.package.sd.mk" ;; "saga/impl/packages/sd/saga.package.sd.i.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/sd/saga.package.sd.i.mk" ;; "saga/impl/packages/stream/saga.package.stream.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/stream/saga.package.stream.mk" ;; "saga/impl/packages/stream/saga.package.stream.i.mk") CONFIG_FILES="$CONFIG_FILES saga/impl/packages/stream/saga.package.stream.i.mk" ;; "tools/scripts/saga-config") CONFIG_FILES="$CONFIG_FILES tools/scripts/saga-config" ;; "tools/scripts/saga-run.sh") CONFIG_FILES="$CONFIG_FILES tools/scripts/saga-run.sh" ;; "tools/scripts/saga-install.pl") CONFIG_FILES="$CONFIG_FILES tools/scripts/saga-install.pl" ;; "tools/scripts/saga-install.sh") CONFIG_FILES="$CONFIG_FILES tools/scripts/saga-install.sh" ;; "tools/scripts/saga-profile.sh") CONFIG_FILES="$CONFIG_FILES tools/scripts/saga-profile.sh" ;; "tools/scripts/saga-run-test.sh") CONFIG_FILES="$CONFIG_FILES tools/scripts/saga-run-test.sh" ;; "saga/saga-config.hpp") CONFIG_HEADERS="$CONFIG_HEADERS saga/saga-config.hpp" ;; "config/saga.ini") CONFIG_FILES="$CONFIG_FILES config/saga.ini" ;; "config/saga.pc") CONFIG_FILES="$CONFIG_FILES config/saga.pc" ;; "config/saga_boost.pc") CONFIG_FILES="$CONFIG_FILES config/saga_boost.pc" ;; "config/saga.config.sh") CONFIG_FILES="$CONFIG_FILES config/saga.config.sh" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_t=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_t"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out" && rm -f "$tmp/out";; *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" } >"$tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; esac case $ac_file$ac_mode in "config/saga.config.boost.c.mk":F) cp config/saga.config.boost.c.mk ./make/ ;; "config/saga.config.c.mk":F) cp config/saga.config.c.mk ./make/ ;; "config/saga.config.check.c.mk":F) cp config/saga.config.check.c.mk ./make/ ;; "saga/impl/engine/saga.core.mk":F) cp saga/impl/engine/saga.core.mk ./make/ ;; "saga/impl/engine/saga.core.i.mk":F) cp saga/impl/engine/saga.core.i.mk ./make/ ;; "saga/impl/packages/advert/saga.package.advert.mk":F) cp saga/impl/packages/advert/saga.package.advert.mk ./make/ ;; "saga/impl/packages/advert/saga.package.advert.i.mk":F) cp saga/impl/packages/advert/saga.package.advert.i.mk ./make/ ;; "saga/impl/packages/cpr/saga.package.cpr.mk":F) cp saga/impl/packages/cpr/saga.package.cpr.mk ./make/ ;; "saga/impl/packages/cpr/saga.package.cpr.i.mk":F) cp saga/impl/packages/cpr/saga.package.cpr.i.mk ./make/ ;; "saga/impl/packages/isn/saga.package.isn.mk":F) cp saga/impl/packages/isn/saga.package.isn.mk ./make/ ;; "saga/impl/packages/isn/saga.package.isn.i.mk":F) cp saga/impl/packages/isn/saga.package.isn.i.mk ./make/ ;; "saga/impl/packages/filesystem/saga.package.filesystem.mk":F) cp saga/impl/packages/filesystem/saga.package.filesystem.mk ./make/ ;; "saga/impl/packages/filesystem/saga.package.filesystem.i.mk":F) cp saga/impl/packages/filesystem/saga.package.filesystem.i.mk ./make/ ;; "saga/impl/packages/job/saga.package.job.mk":F) cp saga/impl/packages/job/saga.package.job.mk ./make/ ;; "saga/impl/packages/job/saga.package.job.i.mk":F) cp saga/impl/packages/job/saga.package.job.i.mk ./make/ ;; "saga/impl/packages/namespace/saga.package.namespace.mk":F) cp saga/impl/packages/namespace/saga.package.namespace.mk ./make/ ;; "saga/impl/packages/namespace/saga.package.namespace.i.mk":F) cp saga/impl/packages/namespace/saga.package.namespace.i.mk ./make/ ;; "saga/impl/packages/replica/saga.package.replica.mk":F) cp saga/impl/packages/replica/saga.package.replica.mk ./make/ ;; "saga/impl/packages/replica/saga.package.replica.i.mk":F) cp saga/impl/packages/replica/saga.package.replica.i.mk ./make/ ;; "saga/impl/packages/rpc/saga.package.rpc.mk":F) cp saga/impl/packages/rpc/saga.package.rpc.mk ./make/ ;; "saga/impl/packages/rpc/saga.package.rpc.i.mk":F) cp saga/impl/packages/rpc/saga.package.rpc.i.mk ./make/ ;; "saga/impl/packages/sd/saga.package.sd.mk":F) cp saga/impl/packages/sd/saga.package.sd.mk ./make/ ;; "saga/impl/packages/sd/saga.package.sd.i.mk":F) cp saga/impl/packages/sd/saga.package.sd.i.mk ./make/ ;; "saga/impl/packages/stream/saga.package.stream.mk":F) cp saga/impl/packages/stream/saga.package.stream.mk ./make/ ;; "saga/impl/packages/stream/saga.package.stream.i.mk":F) cp saga/impl/packages/stream/saga.package.stream.i.mk ./make/ ;; "tools/scripts/saga-config":F) chmod 0755 tools/scripts/saga-config ;; "tools/scripts/saga-run.sh":F) chmod 0755 tools/scripts/saga-run.sh ;; "tools/scripts/saga-install.pl":F) chmod 0755 tools/scripts/saga-install.pl ;; "tools/scripts/saga-install.sh":F) chmod 0755 tools/scripts/saga-install.sh ;; "tools/scripts/saga-profile.sh":F) chmod 0755 tools/scripts/saga-profile.sh ;; "tools/scripts/saga-run-test.sh":F) chmod 0755 tools/scripts/saga-run-test.sh ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi # ########################################################### ########################################################### # # print configure summary # OUT=config.summary rm -rf $OUT touch $OUT echo " " >> $OUT echo " " >> $OUT echo " ######################################################## " >> $OUT echo " " >> $OUT echo " SAGA CORE " >> $OUT echo " " >> $OUT echo " ######################################################## " >> $OUT echo " " >> $OUT echo " -------------------------------------------------------- " >> $OUT echo " Configuration Summary " >> $OUT echo " -------------------------------------------------------- " >> $OUT echo " " >> $OUT echo " SAGA Version : $SAGA_VERSION " >> $OUT echo " SAGA SVN Revision : $SAGA_REVISION " >> $OUT echo " SAGA Version Date : $SAGA_VERSION_DATE " >> $OUT echo " Install Prefix : $SAGA_LOCATION " >> $OUT echo " SAGA DEBUG : $SAGA_HAVE_DEBUG $SAGA_CXXFLAGS_DEBUG " >> $OUT echo " " >> $OUT echo " Architecture : $SAGA_ARCH ($SAGA_DEB_ARCH) " >> $OUT echo " PreCompiler : $SAGA_CPP ($CPP_VERSION) " >> $OUT echo " C Compiler : $SAGA_CC ($CC_VERSION) " >> $OUT echo " C++ Compiler : $SAGA_CXX ($CXX_VERSION) " >> $OUT echo " Linker (C++) : $SAGA_LD ($LD_VERSION) " >> $OUT echo " " >> $OUT echo " -------------------------------------------------------- " >> $OUT echo " External Libraries " >> $OUT echo " -------------------------------------------------------- " >> $OUT echo " " >> $OUT echo " Boost Found : $HAVE_BOOST " >> $OUT echo " Boost Version : $BOOST_VERSION " >> $OUT echo " Boost Location : $BOOST_LOCATION " >> $OUT echo " " >> $OUT echo " PostgreSQL Found : $HAVE_POSTGRESQL $POSTGRESQL_VERSION_S" >> $OUT echo " Version : $POSTGRESQL_VERSION " >> $OUT echo " Location : $POSTGRESQL_LOCATION " >> $OUT echo " " >> $OUT echo " SQLite3 Found : $HAVE_SQLITE3 " >> $OUT echo " Version : $SQLITE3_VERSION " >> $OUT echo " Location : $SQLITE3_LOCATION " >> $OUT echo " " >> $OUT echo " OpenSSL Found : $HAVE_OPENSSL " >> $OUT echo " Version : $OPENSSL_VERSION " >> $OUT echo " Location : $OPENSSL_LOCATION " >> $OUT echo " " >> $OUT echo " XML RPC Found : $HAVE_XMLRPC " >> $OUT echo " Version : $XMLRPC_VERSION " >> $OUT echo " Location : $XMLRPC_LOCATION " >> $OUT echo " " >> $OUT echo " -------------------------------------------------------- " >> $OUT echo " API Packages " >> $OUT echo " -------------------------------------------------------- " >> $OUT echo " " >> $OUT echo " SAGA PACKAGE JOB : $SAGA_HAVE_PACKAGE_JOB " >> $OUT echo " SAGA PACKAGE NAMESPACE : $SAGA_HAVE_PACKAGE_NAMESPACE " >> $OUT echo " SAGA PACKAGE FILESYSTEM : $SAGA_HAVE_PACKAGE_FILESYSTEM " >> $OUT echo " SAGA PACKAGE REPLICA : $SAGA_HAVE_PACKAGE_REPLICA " >> $OUT #echo " SAGA PACKAGE STREAM : $SAGA_HAVE_PACKAGE_STREAM " >> $OUT #echo " SAGA PACKAGE RPC : $SAGA_HAVE_PACKAGE_RPC " >> $OUT echo " SAGA PACKAGE ADVERT : $SAGA_HAVE_PACKAGE_ADVERT " >> $OUT echo " SAGA PACKAGE SD : $SAGA_HAVE_PACKAGE_SD " >> $OUT #echo " SAGA PACKAGE CPR : $SAGA_HAVE_PACKAGE_CPR " >> $OUT #echo " SAGA PACKAGE MESSAGES : $SAGA_HAVE_PACKAGE_MESSAGES " >> $OUT echo " SAGA PACKAGE ISN : $SAGA_HAVE_PACKAGE_ISN " >> $OUT echo " " >> $OUT echo " -------------------------------------------------------- " >> $OUT echo " Default Adaptors " >> $OUT echo " -------------------------------------------------------- " >> $OUT echo " " >> $OUT echo " Advert Adaptor : $BUILD_ADAPTOR_ADVERT $DB_INFO_A " >> $OUT echo " Job Adaptor : $BUILD_ADAPTOR_JOB " >> $OUT echo " File Adaptor : $BUILD_ADAPTOR_FILESYSTEM " >> $OUT echo " Replica Adaptor : $BUILD_ADAPTOR_REPLICA $DB_INFO_R " >> $OUT #echo " Stream Adaptor : $BUILD_ADAPTOR_STREAM " >> $OUT #echo " RPC Adaptor : $BUILD_ADAPTOR_RPC $RPC_INFO " >> $OUT #echo " CPR Adaptor : $BUILD_ADAPTOR_CPR " >> $OUT echo " SD Adaptor : $BUILD_ADAPTOR_SD " >> $OUT echo " URL Adaptor : $BUILD_ADAPTOR_URL " >> $OUT echo " " >> $OUT echo " ######################################################## " >> $OUT echo " Now type "make" to build SAGA. Have fun! " >> $OUT echo " Be sure to check out the README file. " >> $OUT echo " ######################################################## " >> $OUT echo " " >> $OUT cat $OUT # ###########################################################