configure
上传用户:lijia5631
上传日期:2008-11-10
资源大小:1214k
文件大小:789k
- lt_cv_dlopen=no
- lt_cv_dlopen_libs=
- case $host_os in
- beos*)
- lt_cv_dlopen="load_add_on"
- lt_cv_dlopen_libs=
- lt_cv_dlopen_self=yes
- ;;
- mingw* | pw32*)
- lt_cv_dlopen="LoadLibrary"
- lt_cv_dlopen_libs=
- ;;
- cygwin*)
- lt_cv_dlopen="dlopen"
- lt_cv_dlopen_libs=
- ;;
- darwin*)
- # if libdl is installed we need to link against it
- echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
- echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
- if test "${ac_cv_lib_dl_dlopen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldl $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dlopen ();
- int
- main ()
- {
- dlopen ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_dl_dlopen=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_dl_dlopen=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
- echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
- if test $ac_cv_lib_dl_dlopen = yes; then
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
- else
- lt_cv_dlopen="dyld"
- lt_cv_dlopen_libs=
- lt_cv_dlopen_self=yes
- fi
- ;;
- *)
- echo "$as_me:$LINENO: checking for shl_load" >&5
- echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
- if test "${ac_cv_func_shl_load+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define shl_load innocuous_shl_load
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char shl_load (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef shl_load
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shl_load ();
- /* 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_shl_load) || defined (__stub___shl_load)
- choke me
- #else
- char (*f) () = shl_load;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != shl_load;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_func_shl_load=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_func_shl_load=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
- echo "${ECHO_T}$ac_cv_func_shl_load" >&6
- if test $ac_cv_func_shl_load = yes; then
- lt_cv_dlopen="shl_load"
- else
- echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
- echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
- if test "${ac_cv_lib_dld_shl_load+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldld $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shl_load ();
- int
- main ()
- {
- shl_load ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_dld_shl_load=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_dld_shl_load=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
- echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
- if test $ac_cv_lib_dld_shl_load = yes; then
- lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
- else
- echo "$as_me:$LINENO: checking for dlopen" >&5
- echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
- if test "${ac_cv_func_dlopen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define dlopen innocuous_dlopen
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dlopen (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef dlopen
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dlopen ();
- /* 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_dlopen) || defined (__stub___dlopen)
- choke me
- #else
- char (*f) () = dlopen;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != dlopen;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_func_dlopen=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_func_dlopen=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
- echo "${ECHO_T}$ac_cv_func_dlopen" >&6
- if test $ac_cv_func_dlopen = yes; then
- lt_cv_dlopen="dlopen"
- else
- echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
- echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
- if test "${ac_cv_lib_dl_dlopen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldl $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dlopen ();
- int
- main ()
- {
- dlopen ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_dl_dlopen=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_dl_dlopen=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
- echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
- if test $ac_cv_lib_dl_dlopen = yes; then
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
- else
- echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
- echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
- if test "${ac_cv_lib_svld_dlopen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsvld $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dlopen ();
- int
- main ()
- {
- dlopen ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_svld_dlopen=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_svld_dlopen=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
- echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
- if test $ac_cv_lib_svld_dlopen = yes; then
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
- else
- echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
- echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
- if test "${ac_cv_lib_dld_dld_link+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldld $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dld_link ();
- int
- main ()
- {
- dld_link ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_dld_dld_link=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_dld_dld_link=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
- echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
- if test $ac_cv_lib_dld_dld_link = yes; then
- lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
- fi
- fi
- fi
- fi
- fi
- fi
- ;;
- esac
- if test "x$lt_cv_dlopen" != xno; then
- enable_dlopen=yes
- else
- enable_dlopen=no
- fi
- case $lt_cv_dlopen in
- dlopen)
- save_CPPFLAGS="$CPPFLAGS"
- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
- save_LDFLAGS="$LDFLAGS"
- eval LDFLAGS="$LDFLAGS $export_dynamic_flag_spec"
- save_LIBS="$LIBS"
- LIBS="$lt_cv_dlopen_libs $LIBS"
- echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
- echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
- if test "${lt_cv_dlopen_self+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "$cross_compiling" = yes; then :
- lt_cv_dlopen_self=cross
- else
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
- lt_status=$lt_dlunknown
- cat > conftest.$ac_ext <<EOF
- #line 18851 "configure"
- #include "confdefs.h"
- #if HAVE_DLFCN_H
- #include <dlfcn.h>
- #endif
- #include <stdio.h>
- #ifdef RTLD_GLOBAL
- # define LT_DLGLOBAL RTLD_GLOBAL
- #else
- # ifdef DL_GLOBAL
- # define LT_DLGLOBAL DL_GLOBAL
- # else
- # define LT_DLGLOBAL 0
- # endif
- #endif
- /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- find out it does not work in some platform. */
- #ifndef LT_DLLAZY_OR_NOW
- # ifdef RTLD_LAZY
- # define LT_DLLAZY_OR_NOW RTLD_LAZY
- # else
- # ifdef DL_LAZY
- # define LT_DLLAZY_OR_NOW DL_LAZY
- # else
- # ifdef RTLD_NOW
- # define LT_DLLAZY_OR_NOW RTLD_NOW
- # else
- # ifdef DL_NOW
- # define LT_DLLAZY_OR_NOW DL_NOW
- # else
- # define LT_DLLAZY_OR_NOW 0
- # endif
- # endif
- # endif
- # endif
- #endif
- #ifdef __cplusplus
- extern "C" void exit (int);
- #endif
- void fnord() { int i=42;}
- int main ()
- {
- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
- int status = $lt_dlunknown;
- if (self)
- {
- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
- /* dlclose (self); */
- }
- exit (status);
- }
- EOF
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
- (./conftest; exit; ) 2>/dev/null
- lt_status=$?
- case x$lt_status in
- x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
- x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
- x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
- esac
- else :
- # compilation failed
- lt_cv_dlopen_self=no
- fi
- fi
- rm -fr conftest*
- fi
- echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
- echo "${ECHO_T}$lt_cv_dlopen_self" >&6
- if test "x$lt_cv_dlopen_self" = xyes; then
- LDFLAGS="$LDFLAGS $link_static_flag"
- echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
- echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
- if test "${lt_cv_dlopen_self_static+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "$cross_compiling" = yes; then :
- lt_cv_dlopen_self_static=cross
- else
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
- lt_status=$lt_dlunknown
- cat > conftest.$ac_ext <<EOF
- #line 18949 "configure"
- #include "confdefs.h"
- #if HAVE_DLFCN_H
- #include <dlfcn.h>
- #endif
- #include <stdio.h>
- #ifdef RTLD_GLOBAL
- # define LT_DLGLOBAL RTLD_GLOBAL
- #else
- # ifdef DL_GLOBAL
- # define LT_DLGLOBAL DL_GLOBAL
- # else
- # define LT_DLGLOBAL 0
- # endif
- #endif
- /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- find out it does not work in some platform. */
- #ifndef LT_DLLAZY_OR_NOW
- # ifdef RTLD_LAZY
- # define LT_DLLAZY_OR_NOW RTLD_LAZY
- # else
- # ifdef DL_LAZY
- # define LT_DLLAZY_OR_NOW DL_LAZY
- # else
- # ifdef RTLD_NOW
- # define LT_DLLAZY_OR_NOW RTLD_NOW
- # else
- # ifdef DL_NOW
- # define LT_DLLAZY_OR_NOW DL_NOW
- # else
- # define LT_DLLAZY_OR_NOW 0
- # endif
- # endif
- # endif
- # endif
- #endif
- #ifdef __cplusplus
- extern "C" void exit (int);
- #endif
- void fnord() { int i=42;}
- int main ()
- {
- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
- int status = $lt_dlunknown;
- if (self)
- {
- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
- /* dlclose (self); */
- }
- exit (status);
- }
- EOF
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
- (./conftest; exit; ) 2>/dev/null
- lt_status=$?
- case x$lt_status in
- x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
- x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
- x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
- esac
- else :
- # compilation failed
- lt_cv_dlopen_self_static=no
- fi
- fi
- rm -fr conftest*
- fi
- echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
- echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
- fi
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- LIBS="$save_LIBS"
- ;;
- esac
- case $lt_cv_dlopen_self in
- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
- *) enable_dlopen_self=unknown ;;
- esac
- case $lt_cv_dlopen_self_static in
- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
- *) enable_dlopen_self_static=unknown ;;
- esac
- fi
- # The else clause should only fire when bootstrapping the
- # libtool distribution, otherwise you forgot to ship ltmain.sh
- # with your package, and you will get complaints that there are
- # no rules to generate ltmain.sh.
- if test -f "$ltmain"; then
- # See if we are running on zsh, and set the options which allow our commands through
- # without removal of escapes.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- # Now quote all the things that may contain metacharacters while being
- # careful not to overquote the AC_SUBSTed values. We take copies of the
- # variables and quote the copies for generation of the libtool script.
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM
- SED SHELL STRIP
- libname_spec library_names_spec soname_spec extract_expsyms_cmds
- old_striplib striplib file_magic_cmd finish_cmds finish_eval
- deplibs_check_method reload_flag reload_cmds need_locks
- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl
- lt_cv_sys_global_symbol_to_c_name_address
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec
- old_postinstall_cmds old_postuninstall_cmds
- compiler_GCJ
- CC_GCJ
- LD_GCJ
- lt_prog_compiler_wl_GCJ
- lt_prog_compiler_pic_GCJ
- lt_prog_compiler_static_GCJ
- lt_prog_compiler_no_builtin_flag_GCJ
- export_dynamic_flag_spec_GCJ
- thread_safe_flag_spec_GCJ
- whole_archive_flag_spec_GCJ
- enable_shared_with_static_runtimes_GCJ
- old_archive_cmds_GCJ
- old_archive_from_new_cmds_GCJ
- predep_objects_GCJ
- postdep_objects_GCJ
- predeps_GCJ
- postdeps_GCJ
- compiler_lib_search_path_GCJ
- archive_cmds_GCJ
- archive_expsym_cmds_GCJ
- postinstall_cmds_GCJ
- postuninstall_cmds_GCJ
- old_archive_from_expsyms_cmds_GCJ
- allow_undefined_flag_GCJ
- no_undefined_flag_GCJ
- export_symbols_cmds_GCJ
- hardcode_libdir_flag_spec_GCJ
- hardcode_libdir_flag_spec_ld_GCJ
- hardcode_libdir_separator_GCJ
- hardcode_automatic_GCJ
- module_cmds_GCJ
- module_expsym_cmds_GCJ
- lt_cv_prog_compiler_c_o_GCJ
- exclude_expsyms_GCJ
- include_expsyms_GCJ; do
- case $var in
- old_archive_cmds_GCJ |
- old_archive_from_new_cmds_GCJ |
- archive_cmds_GCJ |
- archive_expsym_cmds_GCJ |
- module_cmds_GCJ |
- module_expsym_cmds_GCJ |
- old_archive_from_expsyms_cmds_GCJ |
- export_symbols_cmds_GCJ |
- extract_expsyms_cmds | reload_cmds | finish_cmds |
- postinstall_cmds | postuninstall_cmds |
- old_postinstall_cmds | old_postuninstall_cmds |
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- # Double-quote double-evaled strings.
- eval "lt_$var=\"`$echo "X$$var" | $Xsed -e "$double_quote_subst" -e "$sed_quote_subst" -e "$delay_variable_subst"`\""
- ;;
- *)
- eval "lt_$var=\"`$echo "X$$var" | $Xsed -e "$sed_quote_subst"`\""
- ;;
- esac
- done
- case $lt_echo in
- *'$0 --fallback-echo"')
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
- ;;
- esac
- cfgfile="$ofile"
- cat <<__EOF__ >> "$cfgfile"
- # ### BEGIN LIBTOOL TAG CONFIG: $tagname
- # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- # Shell to use when invoking shell scripts.
- SHELL=$lt_SHELL
- # Whether or not to build shared libraries.
- build_libtool_libs=$enable_shared
- # Whether or not to build static libraries.
- build_old_libs=$enable_static
- # Whether or not to add -lc for building shared libraries.
- build_libtool_need_lc=$archive_cmds_need_lc_GCJ
- # Whether or not to disallow shared libs when runtime libs are static
- allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
- # Whether or not to optimize for fast installation.
- fast_install=$enable_fast_install
- # The host system.
- host_alias=$host_alias
- host=$host
- host_os=$host_os
- # The build system.
- build_alias=$build_alias
- build=$build
- build_os=$build_os
- # An echo program that does not interpret backslashes.
- echo=$lt_echo
- # The archiver.
- AR=$lt_AR
- AR_FLAGS=$lt_AR_FLAGS
- # A C compiler.
- LTCC=$lt_LTCC
- # A language-specific compiler.
- CC=$lt_compiler_GCJ
- # Is the compiler the GNU C compiler?
- with_gcc=$GCC_GCJ
- # An ERE matcher.
- EGREP=$lt_EGREP
- # The linker used to build libraries.
- LD=$lt_LD_GCJ
- # Whether we need hard or soft links.
- LN_S=$lt_LN_S
- # A BSD-compatible nm program.
- NM=$lt_NM
- # A symbol stripping program
- STRIP=$lt_STRIP
- # Used to examine libraries when file_magic_cmd begins "file"
- MAGIC_CMD=$MAGIC_CMD
- # Used on cygwin: DLL creation program.
- DLLTOOL="$DLLTOOL"
- # Used on cygwin: object dumper.
- OBJDUMP="$OBJDUMP"
- # Used on cygwin: assembler.
- AS="$AS"
- # The name of the directory that contains temporary libtool files.
- objdir=$objdir
- # How to create reloadable object files.
- reload_flag=$lt_reload_flag
- reload_cmds=$lt_reload_cmds
- # How to pass a linker flag through the compiler.
- wl=$lt_lt_prog_compiler_wl_GCJ
- # Object file suffix (normally "o").
- objext="$ac_objext"
- # Old archive suffix (normally "a").
- libext="$libext"
- # Shared library suffix (normally ".so").
- shrext_cmds='$shrext_cmds'
- # Executable file suffix (normally "").
- exeext="$exeext"
- # Additional compiler flags for building library objects.
- pic_flag=$lt_lt_prog_compiler_pic_GCJ
- pic_mode=$pic_mode
- # What is the maximum length of a command?
- max_cmd_len=$lt_cv_sys_max_cmd_len
- # Does compiler simultaneously support -c and -o options?
- compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
- # Must we lock files when doing compilation?
- need_locks=$lt_need_locks
- # Do we need the lib prefix for modules?
- need_lib_prefix=$need_lib_prefix
- # Do we need a version for libraries?
- need_version=$need_version
- # Whether dlopen is supported.
- dlopen_support=$enable_dlopen
- # Whether dlopen of programs is supported.
- dlopen_self=$enable_dlopen_self
- # Whether dlopen of statically linked programs is supported.
- dlopen_self_static=$enable_dlopen_self_static
- # Compiler flag to prevent dynamic linking.
- link_static_flag=$lt_lt_prog_compiler_static_GCJ
- # Compiler flag to turn off builtin functions.
- no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
- # Compiler flag to allow reflexive dlopens.
- export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
- # Compiler flag to generate shared objects directly from archives.
- whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
- # Compiler flag to generate thread-safe objects.
- thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
- # Library versioning type.
- version_type=$version_type
- # Format of library name prefix.
- libname_spec=$lt_libname_spec
- # List of archive names. First name is the real one, the rest are links.
- # The last name is the one that the linker finds with -lNAME.
- library_names_spec=$lt_library_names_spec
- # The coded name of the library, if different from the real name.
- soname_spec=$lt_soname_spec
- # Commands used to build and install an old-style archive.
- RANLIB=$lt_RANLIB
- old_archive_cmds=$lt_old_archive_cmds_GCJ
- old_postinstall_cmds=$lt_old_postinstall_cmds
- old_postuninstall_cmds=$lt_old_postuninstall_cmds
- # Create an old-style archive from a shared archive.
- old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
- # Create a temporary old-style archive to link instead of a shared archive.
- old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
- # Commands used to build and install a shared archive.
- archive_cmds=$lt_archive_cmds_GCJ
- archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
- postinstall_cmds=$lt_postinstall_cmds
- postuninstall_cmds=$lt_postuninstall_cmds
- # Commands used to build a loadable module (assumed same as above if empty)
- module_cmds=$lt_module_cmds_GCJ
- module_expsym_cmds=$lt_module_expsym_cmds_GCJ
- # Commands to strip libraries.
- old_striplib=$lt_old_striplib
- striplib=$lt_striplib
- # Dependencies to place before the objects being linked to create a
- # shared library.
- predep_objects=$lt_predep_objects_GCJ
- # Dependencies to place after the objects being linked to create a
- # shared library.
- postdep_objects=$lt_postdep_objects_GCJ
- # Dependencies to place before the objects being linked to create a
- # shared library.
- predeps=$lt_predeps_GCJ
- # Dependencies to place after the objects being linked to create a
- # shared library.
- postdeps=$lt_postdeps_GCJ
- # The library search path used internally by the compiler when linking
- # a shared library.
- compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
- # Method to check whether dependent libraries are shared objects.
- deplibs_check_method=$lt_deplibs_check_method
- # Command to use when deplibs_check_method == file_magic.
- file_magic_cmd=$lt_file_magic_cmd
- # Flag that allows shared libraries with undefined symbols to be built.
- allow_undefined_flag=$lt_allow_undefined_flag_GCJ
- # Flag that forces no undefined symbols.
- no_undefined_flag=$lt_no_undefined_flag_GCJ
- # Commands used to finish a libtool library installation in a directory.
- finish_cmds=$lt_finish_cmds
- # Same as above, but a single script fragment to be evaled but not shown.
- finish_eval=$lt_finish_eval
- # Take the output of nm and produce a listing of raw symbols and C names.
- global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
- # Transform the output of nm in a proper C declaration
- global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
- # Transform the output of nm in a C name address pair
- global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
- # This is the shared library runtime path variable.
- runpath_var=$runpath_var
- # This is the shared library path variable.
- shlibpath_var=$shlibpath_var
- # Is shlibpath searched before the hard-coded library search path?
- shlibpath_overrides_runpath=$shlibpath_overrides_runpath
- # How to hardcode a shared library path into an executable.
- hardcode_action=$hardcode_action_GCJ
- # Whether we should hardcode library paths into libraries.
- hardcode_into_libs=$hardcode_into_libs
- # Flag to hardcode $libdir into a binary during linking.
- # This must work even if $libdir does not exist.
- hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
- # If ld is used when linking, flag to hardcode $libdir into
- # a binary during linking. This must work even if $libdir does
- # not exist.
- hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
- # Whether we need a single -rpath flag with a separated argument.
- hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
- # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
- # resulting binary.
- hardcode_direct=$hardcode_direct_GCJ
- # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
- # resulting binary.
- hardcode_minus_L=$hardcode_minus_L_GCJ
- # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
- # the resulting binary.
- hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
- # Set to yes if building a shared library automatically hardcodes DIR into the library
- # and all subsequent libraries and executables linked against it.
- hardcode_automatic=$hardcode_automatic_GCJ
- # Variables whose values should be saved in libtool wrapper scripts and
- # restored at relink time.
- variables_saved_for_relink="$variables_saved_for_relink"
- # Whether libtool must link a program against all its dependency libraries.
- link_all_deplibs=$link_all_deplibs_GCJ
- # Compile-time system search path for libraries
- sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
- # Run-time system search path for libraries
- sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
- # Fix the shell variable $srcfile for the compiler.
- fix_srcfile_path="$fix_srcfile_path_GCJ"
- # Set to yes if exported symbols are required.
- always_export_symbols=$always_export_symbols_GCJ
- # The commands to list exported symbols.
- export_symbols_cmds=$lt_export_symbols_cmds_GCJ
- # The commands to extract the exported symbol list from a shared archive.
- extract_expsyms_cmds=$lt_extract_expsyms_cmds
- # Symbols that should not be listed in the preloaded symbols.
- exclude_expsyms=$lt_exclude_expsyms_GCJ
- # Symbols that must always be exported.
- include_expsyms=$lt_include_expsyms_GCJ
- # ### END LIBTOOL TAG CONFIG: $tagname
- __EOF__
- else
- # If there is no Makefile yet, we rely on a make rule to execute
- # `config.status --recheck' to rerun these tests and create the
- # libtool script then.
- ltmain_in=`echo $ltmain | sed -e 's/.sh$/.in/'`
- if test -f "$ltmain_in"; then
- test -f Makefile && make "$ltmain"
- fi
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- CC="$lt_save_CC"
- else
- tagname=""
- fi
- ;;
- RC)
- # Source file extension for RC test sources.
- ac_ext=rc
- # Object file extension for compiled RC test sources.
- objext=o
- objext_RC=$objext
- # Code to be used in simple compile tests
- lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }n'
- # Code to be used in simple link tests
- lt_simple_link_test_code="$lt_simple_compile_test_code"
- # ltmain only uses $CC for tagged configurations so make sure $CC is set.
- # If no C compiler was specified, use CC.
- LTCC=${LTCC-"$CC"}
- # Allow CC to be a program name with arguments.
- compiler=$CC
- # save warnings/boilerplate of simple test code
- ac_outfile=conftest.$ac_objext
- printf "$lt_simple_compile_test_code" >conftest.$ac_ext
- eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
- _lt_compiler_boilerplate=`cat conftest.err`
- $rm conftest*
- ac_outfile=conftest.$ac_objext
- printf "$lt_simple_link_test_code" >conftest.$ac_ext
- eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
- _lt_linker_boilerplate=`cat conftest.err`
- $rm conftest*
- # Allow CC to be a program name with arguments.
- lt_save_CC="$CC"
- CC=${RC-"windres"}
- compiler=$CC
- compiler_RC=$CC
- for cc_temp in $compiler""; do
- case $cc_temp in
- compile | *[\/]compile | ccache | *[\/]ccache ) ;;
- distcc | *[\/]distcc | purify | *[\/]purify ) ;;
- -*) ;;
- *) break;;
- esac
- done
- cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
- lt_cv_prog_compiler_c_o_RC=yes
- # The else clause should only fire when bootstrapping the
- # libtool distribution, otherwise you forgot to ship ltmain.sh
- # with your package, and you will get complaints that there are
- # no rules to generate ltmain.sh.
- if test -f "$ltmain"; then
- # See if we are running on zsh, and set the options which allow our commands through
- # without removal of escapes.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- # Now quote all the things that may contain metacharacters while being
- # careful not to overquote the AC_SUBSTed values. We take copies of the
- # variables and quote the copies for generation of the libtool script.
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM
- SED SHELL STRIP
- libname_spec library_names_spec soname_spec extract_expsyms_cmds
- old_striplib striplib file_magic_cmd finish_cmds finish_eval
- deplibs_check_method reload_flag reload_cmds need_locks
- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl
- lt_cv_sys_global_symbol_to_c_name_address
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec
- old_postinstall_cmds old_postuninstall_cmds
- compiler_RC
- CC_RC
- LD_RC
- lt_prog_compiler_wl_RC
- lt_prog_compiler_pic_RC
- lt_prog_compiler_static_RC
- lt_prog_compiler_no_builtin_flag_RC
- export_dynamic_flag_spec_RC
- thread_safe_flag_spec_RC
- whole_archive_flag_spec_RC
- enable_shared_with_static_runtimes_RC
- old_archive_cmds_RC
- old_archive_from_new_cmds_RC
- predep_objects_RC
- postdep_objects_RC
- predeps_RC
- postdeps_RC
- compiler_lib_search_path_RC
- archive_cmds_RC
- archive_expsym_cmds_RC
- postinstall_cmds_RC
- postuninstall_cmds_RC
- old_archive_from_expsyms_cmds_RC
- allow_undefined_flag_RC
- no_undefined_flag_RC
- export_symbols_cmds_RC
- hardcode_libdir_flag_spec_RC
- hardcode_libdir_flag_spec_ld_RC
- hardcode_libdir_separator_RC
- hardcode_automatic_RC
- module_cmds_RC
- module_expsym_cmds_RC
- lt_cv_prog_compiler_c_o_RC
- exclude_expsyms_RC
- include_expsyms_RC; do
- case $var in
- old_archive_cmds_RC |
- old_archive_from_new_cmds_RC |
- archive_cmds_RC |
- archive_expsym_cmds_RC |
- module_cmds_RC |
- module_expsym_cmds_RC |
- old_archive_from_expsyms_cmds_RC |
- export_symbols_cmds_RC |
- extract_expsyms_cmds | reload_cmds | finish_cmds |
- postinstall_cmds | postuninstall_cmds |
- old_postinstall_cmds | old_postuninstall_cmds |
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- # Double-quote double-evaled strings.
- eval "lt_$var=\"`$echo "X$$var" | $Xsed -e "$double_quote_subst" -e "$sed_quote_subst" -e "$delay_variable_subst"`\""
- ;;
- *)
- eval "lt_$var=\"`$echo "X$$var" | $Xsed -e "$sed_quote_subst"`\""
- ;;
- esac
- done
- case $lt_echo in
- *'$0 --fallback-echo"')
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
- ;;
- esac
- cfgfile="$ofile"
- cat <<__EOF__ >> "$cfgfile"
- # ### BEGIN LIBTOOL TAG CONFIG: $tagname
- # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- # Shell to use when invoking shell scripts.
- SHELL=$lt_SHELL
- # Whether or not to build shared libraries.
- build_libtool_libs=$enable_shared
- # Whether or not to build static libraries.
- build_old_libs=$enable_static
- # Whether or not to add -lc for building shared libraries.
- build_libtool_need_lc=$archive_cmds_need_lc_RC
- # Whether or not to disallow shared libs when runtime libs are static
- allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
- # Whether or not to optimize for fast installation.
- fast_install=$enable_fast_install
- # The host system.
- host_alias=$host_alias
- host=$host
- host_os=$host_os
- # The build system.
- build_alias=$build_alias
- build=$build
- build_os=$build_os
- # An echo program that does not interpret backslashes.
- echo=$lt_echo
- # The archiver.
- AR=$lt_AR
- AR_FLAGS=$lt_AR_FLAGS
- # A C compiler.
- LTCC=$lt_LTCC
- # A language-specific compiler.
- CC=$lt_compiler_RC
- # Is the compiler the GNU C compiler?
- with_gcc=$GCC_RC
- # An ERE matcher.
- EGREP=$lt_EGREP
- # The linker used to build libraries.
- LD=$lt_LD_RC
- # Whether we need hard or soft links.
- LN_S=$lt_LN_S
- # A BSD-compatible nm program.
- NM=$lt_NM
- # A symbol stripping program
- STRIP=$lt_STRIP
- # Used to examine libraries when file_magic_cmd begins "file"
- MAGIC_CMD=$MAGIC_CMD
- # Used on cygwin: DLL creation program.
- DLLTOOL="$DLLTOOL"
- # Used on cygwin: object dumper.
- OBJDUMP="$OBJDUMP"
- # Used on cygwin: assembler.
- AS="$AS"
- # The name of the directory that contains temporary libtool files.
- objdir=$objdir
- # How to create reloadable object files.
- reload_flag=$lt_reload_flag
- reload_cmds=$lt_reload_cmds
- # How to pass a linker flag through the compiler.
- wl=$lt_lt_prog_compiler_wl_RC
- # Object file suffix (normally "o").
- objext="$ac_objext"
- # Old archive suffix (normally "a").
- libext="$libext"
- # Shared library suffix (normally ".so").
- shrext_cmds='$shrext_cmds'
- # Executable file suffix (normally "").
- exeext="$exeext"
- # Additional compiler flags for building library objects.
- pic_flag=$lt_lt_prog_compiler_pic_RC
- pic_mode=$pic_mode
- # What is the maximum length of a command?
- max_cmd_len=$lt_cv_sys_max_cmd_len
- # Does compiler simultaneously support -c and -o options?
- compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
- # Must we lock files when doing compilation?
- need_locks=$lt_need_locks
- # Do we need the lib prefix for modules?
- need_lib_prefix=$need_lib_prefix
- # Do we need a version for libraries?
- need_version=$need_version
- # Whether dlopen is supported.
- dlopen_support=$enable_dlopen
- # Whether dlopen of programs is supported.
- dlopen_self=$enable_dlopen_self
- # Whether dlopen of statically linked programs is supported.
- dlopen_self_static=$enable_dlopen_self_static
- # Compiler flag to prevent dynamic linking.
- link_static_flag=$lt_lt_prog_compiler_static_RC
- # Compiler flag to turn off builtin functions.
- no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
- # Compiler flag to allow reflexive dlopens.
- export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
- # Compiler flag to generate shared objects directly from archives.
- whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
- # Compiler flag to generate thread-safe objects.
- thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
- # Library versioning type.
- version_type=$version_type
- # Format of library name prefix.
- libname_spec=$lt_libname_spec
- # List of archive names. First name is the real one, the rest are links.
- # The last name is the one that the linker finds with -lNAME.
- library_names_spec=$lt_library_names_spec
- # The coded name of the library, if different from the real name.
- soname_spec=$lt_soname_spec
- # Commands used to build and install an old-style archive.
- RANLIB=$lt_RANLIB
- old_archive_cmds=$lt_old_archive_cmds_RC
- old_postinstall_cmds=$lt_old_postinstall_cmds
- old_postuninstall_cmds=$lt_old_postuninstall_cmds
- # Create an old-style archive from a shared archive.
- old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
- # Create a temporary old-style archive to link instead of a shared archive.
- old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
- # Commands used to build and install a shared archive.
- archive_cmds=$lt_archive_cmds_RC
- archive_expsym_cmds=$lt_archive_expsym_cmds_RC
- postinstall_cmds=$lt_postinstall_cmds
- postuninstall_cmds=$lt_postuninstall_cmds
- # Commands used to build a loadable module (assumed same as above if empty)
- module_cmds=$lt_module_cmds_RC
- module_expsym_cmds=$lt_module_expsym_cmds_RC
- # Commands to strip libraries.
- old_striplib=$lt_old_striplib
- striplib=$lt_striplib
- # Dependencies to place before the objects being linked to create a
- # shared library.
- predep_objects=$lt_predep_objects_RC
- # Dependencies to place after the objects being linked to create a
- # shared library.
- postdep_objects=$lt_postdep_objects_RC
- # Dependencies to place before the objects being linked to create a
- # shared library.
- predeps=$lt_predeps_RC
- # Dependencies to place after the objects being linked to create a
- # shared library.
- postdeps=$lt_postdeps_RC
- # The library search path used internally by the compiler when linking
- # a shared library.
- compiler_lib_search_path=$lt_compiler_lib_search_path_RC
- # Method to check whether dependent libraries are shared objects.
- deplibs_check_method=$lt_deplibs_check_method
- # Command to use when deplibs_check_method == file_magic.
- file_magic_cmd=$lt_file_magic_cmd
- # Flag that allows shared libraries with undefined symbols to be built.
- allow_undefined_flag=$lt_allow_undefined_flag_RC
- # Flag that forces no undefined symbols.
- no_undefined_flag=$lt_no_undefined_flag_RC
- # Commands used to finish a libtool library installation in a directory.
- finish_cmds=$lt_finish_cmds
- # Same as above, but a single script fragment to be evaled but not shown.
- finish_eval=$lt_finish_eval
- # Take the output of nm and produce a listing of raw symbols and C names.
- global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
- # Transform the output of nm in a proper C declaration
- global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
- # Transform the output of nm in a C name address pair
- global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
- # This is the shared library runtime path variable.
- runpath_var=$runpath_var
- # This is the shared library path variable.
- shlibpath_var=$shlibpath_var
- # Is shlibpath searched before the hard-coded library search path?
- shlibpath_overrides_runpath=$shlibpath_overrides_runpath
- # How to hardcode a shared library path into an executable.
- hardcode_action=$hardcode_action_RC
- # Whether we should hardcode library paths into libraries.
- hardcode_into_libs=$hardcode_into_libs
- # Flag to hardcode $libdir into a binary during linking.
- # This must work even if $libdir does not exist.
- hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
- # If ld is used when linking, flag to hardcode $libdir into
- # a binary during linking. This must work even if $libdir does
- # not exist.
- hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
- # Whether we need a single -rpath flag with a separated argument.
- hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
- # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
- # resulting binary.
- hardcode_direct=$hardcode_direct_RC
- # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
- # resulting binary.
- hardcode_minus_L=$hardcode_minus_L_RC
- # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
- # the resulting binary.
- hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
- # Set to yes if building a shared library automatically hardcodes DIR into the library
- # and all subsequent libraries and executables linked against it.
- hardcode_automatic=$hardcode_automatic_RC
- # Variables whose values should be saved in libtool wrapper scripts and
- # restored at relink time.
- variables_saved_for_relink="$variables_saved_for_relink"
- # Whether libtool must link a program against all its dependency libraries.
- link_all_deplibs=$link_all_deplibs_RC
- # Compile-time system search path for libraries
- sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
- # Run-time system search path for libraries
- sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
- # Fix the shell variable $srcfile for the compiler.
- fix_srcfile_path="$fix_srcfile_path_RC"
- # Set to yes if exported symbols are required.
- always_export_symbols=$always_export_symbols_RC
- # The commands to list exported symbols.
- export_symbols_cmds=$lt_export_symbols_cmds_RC
- # The commands to extract the exported symbol list from a shared archive.
- extract_expsyms_cmds=$lt_extract_expsyms_cmds
- # Symbols that should not be listed in the preloaded symbols.
- exclude_expsyms=$lt_exclude_expsyms_RC
- # Symbols that must always be exported.
- include_expsyms=$lt_include_expsyms_RC
- # ### END LIBTOOL TAG CONFIG: $tagname
- __EOF__
- else
- # If there is no Makefile yet, we rely on a make rule to execute
- # `config.status --recheck' to rerun these tests and create the
- # libtool script then.
- ltmain_in=`echo $ltmain | sed -e 's/.sh$/.in/'`
- if test -f "$ltmain_in"; then
- test -f Makefile && make "$ltmain"
- fi
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- CC="$lt_save_CC"
- ;;
- *)
- { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
- echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
- { (exit 1); exit 1; }; }
- ;;
- esac
- # Append the new tag name to the list of available tags.
- if test -n "$tagname" ; then
- available_tags="$available_tags $tagname"
- fi
- fi
- done
- IFS="$lt_save_ifs"
- # Now substitute the updated list of available tags.
- if eval "sed -e 's/^available_tags=.*$/available_tags="$available_tags"/' "$ofile" > "${ofile}T""; then
- mv "${ofile}T" "$ofile"
- chmod +x "$ofile"
- else
- rm -f "${ofile}T"
- { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
- echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
- # This can be used to rebuild libtool when needed
- LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'
- # Prevent multiple expansion
- echo "$as_me:$LINENO: checking whether ln -s works" >&5
- echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
- LN_S=$as_ln_s
- if test "$LN_S" = "ln -s"; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- else
- echo "$as_me:$LINENO: result: no, using $LN_S" >&5
- echo "${ECHO_T}no, using $LN_S" >&6
- fi
- # Set language to C++
- ac_ext=cc
- 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
- # what platform are we building for?
- # todo: should we check $target or $host?
- case "$host" in
- *-win32*)
- if test "x$AM_CPPFLAGS" = "x"; then
- # echo " setting AM_CPPFLAGS to "'-DWIN32 -DUSE_MFC'""
- AM_CPPFLAGS="'-DWIN32 -DUSE_MFC'"
- else
- apr_addto_bugger="'-DWIN32 -DUSE_MFC'"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CPPFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CPPFLAGS"
- AM_CPPFLAGS="$AM_CPPFLAGS $i"
- fi
- done
- fi
- # todo: build for CRTDLL.DLL? use -mno-cygwin
- ;;
- *-cygwin* | *-mingw*)
- if test "x$AM_CPPFLAGS" = "x"; then
- # echo " setting AM_CPPFLAGS to "-DCYGWIN""
- AM_CPPFLAGS="-DCYGWIN"
- else
- apr_addto_bugger="-DCYGWIN"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CPPFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CPPFLAGS"
- AM_CPPFLAGS="$AM_CPPFLAGS $i"
- fi
- done
- fi
- ;;
- *)
- # Assume Unix.
- ;;
- esac
- if test "x$AM_CPPFLAGS" = "x"; then
- # echo " setting AM_CPPFLAGS to "-DTARGET_SYSTEM=\"$host\"""
- AM_CPPFLAGS="-DTARGET_SYSTEM=\"$host\""
- else
- apr_addto_bugger="-DTARGET_SYSTEM=\"$host\""
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CPPFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CPPFLAGS"
- AM_CPPFLAGS="$AM_CPPFLAGS $i"
- fi
- done
- fi
- #
- # what distribution is this - do we have cubicle source code? handvu source?
- #
- have_cubicles_sources="no"
- if test -f "./cubicles/cubicles.hpp"; then
- have_cubicles_sources="yes"
- SUBDIR_CUBICLES=cubicles
- fi
- have_cubicles_training_sources="no"
- if test -f "./cubicles/Main.cpp"; then
- have_cubicles_training_sources="yes"
- fi
- have_handvu_sources="no"
- if test -f "./handvu/HandVu.cpp"; then
- have_handvu_sources="yes"
- SUBDIR_HANDVU=handvu
- fi
- have_hvopencv_sources="no"
- if test -f "./hv_OpenCV/hv_OpenCV.cpp"; then
- have_hvopencv_sources="yes"
- SUBDIR_HVOPENCV=hv_OpenCV
- fi
- have_hvcvcam_sources="no"
- if test -f "./hv_CvCam/hv_CvCam.cpp"; then
- # don't build CvCam interface on *nix
- case "$host" in
- *-win32* | *-cygwin* | *-mingw*)
- have_hvcvcam_sources="yes"
- SUBDIR_HVCVCAM=hv_CvCam
- ;;
- *)
- # Assume *nix. only include in distribution, don't build
- have_hvcvcam_sources="no"
- SUBDIR_HVCVCAM_DIST=hv_CvCam
- ;;
- esac
- fi
- have_hvdc1394_sources="no"
- if test -f "./hv_dc1394/hv_dc1394.cpp"; then
- have_hvdc1394_sources="yes"
- fi
- have_hvartk_sources="no"
- if test -f "./hv_ARtk/hv_ARtk_demo.cpp"; then
- have_hvartk_sources="yes"
- fi
- have_hvdxapp_sources="no"
- if test -f "./hv_DXApp/DXApp.cpp"; then
- have_hvdxapp_sources="yes"
- SUBDIR_HVDXAPP=hv_DXApp
- fi
- have_hvdxfilter_sources="no"
- if test -f "./hv_DXFilter/HandVuFilter.cpp"; then
- have_hvdxfilter_sources="yes"
- SUBDIR_HVDXFILTER=hv_DXFilter
- fi
- #
- # configure command line arguments
- #
- # install to /usr/local unless otherwise specified
- if test "$prefix" = "NONE"; then
- prefix=/usr/local
- # prefix=$abs_top_srcdir
- fi
- # debug
- e_debug="no"
- # Check whether --enable-debug or --disable-debug was given.
- if test "${enable_debug+set}" = set; then
- enableval="$enable_debug"
- e_debug="yes"
- else
- e_debug="no"
- fi;
- if test "$e_debug" = "yes"; then
- if test "x$AM_CFLAGS" = "x"; then
- # echo " setting AM_CFLAGS to "-g -DDEBUG""
- AM_CFLAGS="-g -DDEBUG"
- else
- apr_addto_bugger="-g -DDEBUG"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CFLAGS"
- AM_CFLAGS="$AM_CFLAGS $i"
- fi
- done
- fi
- if test "x$AM_CPPFLAGS" = "x"; then
- # echo " setting AM_CPPFLAGS to "-g -DDEBUG""
- AM_CPPFLAGS="-g -DDEBUG"
- else
- apr_addto_bugger="-g -DDEBUG"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CPPFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CPPFLAGS"
- AM_CPPFLAGS="$AM_CPPFLAGS $i"
- fi
- done
- fi
- if test "x$AM_CXXFLAGS" = "x"; then
- # echo " setting AM_CXXFLAGS to "-g""
- AM_CXXFLAGS="-g"
- else
- apr_addto_bugger="-g"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CXXFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CXXFLAGS"
- AM_CXXFLAGS="$AM_CXXFLAGS $i"
- fi
- done
- fi
- else
- if test "x$AM_CFLAGS" = "x"; then
- # echo " setting AM_CFLAGS to "-O3""
- AM_CFLAGS="-O3"
- else
- apr_addto_bugger="-O3"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CFLAGS"
- AM_CFLAGS="$AM_CFLAGS $i"
- fi
- done
- fi
- if test "x$AM_CXXFLAGS" = "x"; then
- # echo " setting AM_CXXFLAGS to "-O3""
- AM_CXXFLAGS="-O3"
- else
- apr_addto_bugger="-O3"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CXXFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CXXFLAGS"
- AM_CXXFLAGS="$AM_CXXFLAGS $i"
- fi
- done
- fi
- fi
- # small-color
- e_small_color="no"
- # Check whether --enable-small-color or --disable-small-color was given.
- if test "${enable_small_color+set}" = set; then
- enableval="$enable_small_color"
- e_small_color="yes"
- fi;
- if test "$enable_small_color" = "yes"; then
- SMALL_COLOR_TRUE=
- SMALL_COLOR_FALSE='#'
- else
- SMALL_COLOR_TRUE='#'
- SMALL_COLOR_FALSE=
- fi
- # hv_ARToolKit demo, ARToolKit location
- #inc_artk=$INC_ARTK - unsafe on Windows until fileseparator conversion
- INC_ARTK=
- # Check whether --with-artk or --without-artk was given.
- if test "${with_artk+set}" = set; then
- withval="$with_artk"
- if test "$withval" = "no"; then
- have_hvartk_sources="no"
- elif test "x$withval" != "x" && test "$withval" != "yes"; then
- inc_artk=$withval
- fi
- fi;
- # Check whether --with-dc1394 or --without-dc1394 was given.
- if test "${with_dc1394+set}" = set; then
- withval="$with_dc1394"
- if test "$withval" = "no"; then
- have_hvdc1394_sources="no"
- fi
- fi;
- # Magick or OpenCV for file i/o or none in cubicles?
- #
- w_opencv="yes"
- #inc_opencv=$INC_OPENCV - unsafe on Windows until fileseparator conversion
- INC_OPENCV=
- IMG_LIB=IMG_LIB_OPENCV
- # Check whether --with-opencv or --without-opencv was given.
- if test "${with_opencv+set}" = set; then
- withval="$with_opencv"
- if test "$withval" = "no"; then
- if test "$have_cubicles_sources" = "yes"; then
- IMG_LIB=IMG_LIB_NONE
- w_opencv="no"
- else
- { echo "$as_me:$LINENO: WARNING: OpenCV is mandatory in this distribution" >&5
- echo "$as_me: WARNING: OpenCV is mandatory in this distribution" >&2;}
- fi
- elif test "x$withval" != "x" && test "$withval" != "yes"; then
- inc_opencv=$withval
- fi
- fi;
- w_magick="no"
- #inc_magick=$INC_MAGICK - unsafe on Windows until fileseparator conversion
- INC_MAGICK=
- # Check whether --with-magick or --without-magick was given.
- if test "${with_magick+set}" = set; then
- withval="$with_magick"
- if test "$have_cubicles_sources" = "yes"; then
- IMG_LIB=IMG_LIB_MAGICK
- w_magick="yes"
- w_opencv="no"
- if test "x$withval" != "x" && test "$withval" != "yes"; then
- inc_magick=$withval
- fi
- else
- { echo "$as_me:$LINENO: WARNING: can not use Magick in this distribution" >&5
- echo "$as_me: WARNING: can not use Magick in this distribution" >&2;}
- fi
- fi;
- if test "x$AM_CPPFLAGS" = "x"; then
- # echo " setting AM_CPPFLAGS to "-D$IMG_LIB""
- AM_CPPFLAGS="-D$IMG_LIB"
- else
- apr_addto_bugger="-D$IMG_LIB"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CPPFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CPPFLAGS"
- AM_CPPFLAGS="$AM_CPPFLAGS $i"
- fi
- done
- fi
- # with training
- e_training="no"
- # Check whether --enable-training or --disable-training was given.
- if test "${enable_training+set}" = set; then
- enableval="$enable_training"
- if test "$have_cubicles_training_sources" = "yes"; then
- e_training="yes"
- if test "x$AM_CFLAGS" = "x"; then
- # echo " setting AM_CFLAGS to "-DWITH_TRAINING""
- AM_CFLAGS="-DWITH_TRAINING"
- else
- apr_addto_bugger="-DWITH_TRAINING"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CFLAGS"
- AM_CFLAGS="$AM_CFLAGS $i"
- fi
- done
- fi
- if test "x$AM_CPPFLAGS" = "x"; then
- # echo " setting AM_CPPFLAGS to "-DWITH_TRAINING""
- AM_CPPFLAGS="-DWITH_TRAINING"
- else
- apr_addto_bugger="-DWITH_TRAINING"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CPPFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CPPFLAGS"
- AM_CPPFLAGS="$AM_CPPFLAGS $i"
- fi
- done
- fi
- else
- { echo "$as_me:$LINENO: WARNING: can not enable 'training' in this distribution" >&5
- echo "$as_me: WARNING: can not enable 'training' in this distribution" >&2;}
- fi
- fi;
- if test "$enable_training" = "yes"; then
- WITH_TRAINING_TRUE=
- WITH_TRAINING_FALSE='#'
- else
- WITH_TRAINING_TRUE='#'
- WITH_TRAINING_FALSE=
- fi
- #
- # MPI: no, mpich, or lam
- #
- USE_MPI="no"
- #inc_mpi=$INC_MPI - unsafe on Windows until fileseparator conversion
- INC_MPI=
- # Check whether --with-mpich or --without-mpich was given.
- if test "${with_mpich+set}" = set; then
- withval="$with_mpich"
- if test "$have_cubicles_sources" = "yes"; then
- if test "$USE_MPI" != "no"; then
- { echo "$as_me:$LINENO: WARNING: changing previously selected USE_MPI=$USE_MPI with "mpich"" >&5
- echo "$as_me: WARNING: changing previously selected USE_MPI=$USE_MPI with "mpich"" >&2;}
- fi
- if test "x$withval" != "x" && test "$withval" != "yes"; then
- inc_mpi=$withval
- fi
- USE_MPI="mpich"
- else
- { echo "$as_me:$LINENO: WARNING: can not enable 'mpi' in this distribution" >&5
- echo "$as_me: WARNING: can not enable 'mpi' in this distribution" >&2;}
- fi
- fi;
- # Check whether --with-lam or --without-lam was given.
- if test "${with_lam+set}" = set; then
- withval="$with_lam"
- if test "$have_cubicles_sources" = "yes"; then
- if test "$USE_MPI" != "no"; then
- { echo "$as_me:$LINENO: WARNING: changing previously selected USE_MPI=$USE_MPI with "lam"" >&5
- echo "$as_me: WARNING: changing previously selected USE_MPI=$USE_MPI with "lam"" >&2;}
- fi
- if test "x$withval" != "x" && test "$withval" != "yes"; then
- inc_mpi=$withval
- fi
- USE_MPI="lam"
- else
- { echo "$as_me:$LINENO: WARNING: can not enable 'mpi' in this distribution" >&5
- echo "$as_me: WARNING: can not enable 'mpi' in this distribution" >&2;}
- fi
- fi;
- if test "$USE_MPI" != "no"; then
- if test "x$AM_CFLAGS" = "x"; then
- # echo " setting AM_CFLAGS to "-DUSE_MPI""
- AM_CFLAGS="-DUSE_MPI"
- else
- apr_addto_bugger="-DUSE_MPI"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CFLAGS"
- AM_CFLAGS="$AM_CFLAGS $i"
- fi
- done
- fi
- if test "x$AM_CPPFLAGS" = "x"; then
- # echo " setting AM_CPPFLAGS to "-DUSE_MPI""
- AM_CPPFLAGS="-DUSE_MPI"
- else
- apr_addto_bugger="-DUSE_MPI"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CPPFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CPPFLAGS"
- AM_CPPFLAGS="$AM_CPPFLAGS $i"
- fi
- done
- fi
- fi
- # debug MPI
- e_debug_mpi="no"
- # Check whether --enable-debug-mpi or --disable-debug-mpi was given.
- if test "${enable_debug_mpi+set}" = set; then
- enableval="$enable_debug_mpi"
- if test "$have_cubicles_sources" = "yes"; then
- e_debug_mpi="yes"
- if test "x$AM_CPPFLAGS" = "x"; then
- # echo " setting AM_CPPFLAGS to "-DDEBUG_MPI""
- AM_CPPFLAGS="-DDEBUG_MPI"
- else
- apr_addto_bugger="-DDEBUG_MPI"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CPPFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CPPFLAGS"
- AM_CPPFLAGS="$AM_CPPFLAGS $i"
- fi
- done
- fi
- else
- { echo "$as_me:$LINENO: WARNING: can not enable 'debug-mpi' in this distribution" >&5
- echo "$as_me: WARNING: can not enable 'debug-mpi' in this distribution" >&2;}
- fi
- fi;
- # II_TYPE
- ii_type="float"
- # Check whether --with-type or --without-type was given.
- if test "${with_type+set}" = set; then
- withval="$with_type"
- if test "$have_cubicles_sources" = "yes"; then
- if test "$withval" = "float"; then
- ii_type=$withval
- elif test "$withval" = "uint"; then
- ii_type=$withval
- else
- { { echo "$as_me:$LINENO: error: invalid IntegralImage type: $withval" >&5
- echo "$as_me: error: invalid IntegralImage type: $withval" >&2;}
- { (exit 1); exit 1; }; }
- fi
- else
- { echo "$as_me:$LINENO: WARNING: can not choose IntegralImage type in this distribution" >&5
- echo "$as_me: WARNING: can not choose IntegralImage type in this distribution" >&2;}
- fi
- fi;
- if test "$ii_type" = "float"; then
- if test "x$AM_CPPFLAGS" = "x"; then
- # echo " setting AM_CPPFLAGS to "-DII_TYPE_FLOAT""
- AM_CPPFLAGS="-DII_TYPE_FLOAT"
- else
- apr_addto_bugger="-DII_TYPE_FLOAT"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CPPFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CPPFLAGS"
- AM_CPPFLAGS="$AM_CPPFLAGS $i"
- fi
- done
- fi
- elif test "$ii_type" = "uint"; then
- if test "x$AM_CPPFLAGS" = "x"; then
- # echo " setting AM_CPPFLAGS to "-DII_TYPE_FLOAT""
- AM_CPPFLAGS="-DII_TYPE_FLOAT"
- else
- apr_addto_bugger="-DII_TYPE_FLOAT"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_CPPFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_CPPFLAGS"
- AM_CPPFLAGS="$AM_CPPFLAGS $i"
- fi
- done
- fi
- fi
- # Checks for libraries.
- # todo: check for libraries!!
- #AC_CHECK_LIB([OpenCV], [cvCreateImage])
- # Checks for general header files.
- echo "$as_me:$LINENO: checking for ANSI C header files" >&5
- echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
- if test "${ac_cv_header_stdc+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_header_stdc=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_header_stdc=no
- fi
- rm -f 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 >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <string.h>
- _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 >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <stdlib.h>
- _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 >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <ctype.h>
- #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))
- exit(2);
- exit (0);
- }
- _ACEOF
- rm -f conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
- else
- echo "$as_me: program exited with status $ac_status" >&5
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ( exit $ac_status )
- ac_cv_header_stdc=no
- fi
- rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
- fi
- fi
- fi
- echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
- echo "${ECHO_T}$ac_cv_header_stdc" >&6
- if test $ac_cv_header_stdc = yes; then
- cat >>confdefs.h <<_ACEOF
- #define STDC_HEADERS 1
- _ACEOF
- fi
- for ac_header in float.h errno.h locale.h malloc.h stddef.h stdlib.h unistd.h
- do
- as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
- if eval "test "${$as_ac_Header+set}" = set"; then
- echo "$as_me:$LINENO: checking for $ac_header" >&5
- echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
- if eval "test "${$as_ac_Header+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- fi
- echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
- echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
- else
- # Is the header compilable?
- echo "$as_me:$LINENO: checking $ac_header usability" >&5
- echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- $ac_includes_default
- #include <$ac_header>
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_header_compiler=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_compiler=no
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
- echo "${ECHO_T}$ac_header_compiler" >&6
- # Is the header present?
- echo "$as_me:$LINENO: checking $ac_header presence" >&5
- echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <$ac_header>
- _ACEOF
- if { (eval echo "$as_me:$LINENO: "$ac_cpp conftest.$ac_ext"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_cxx_preproc_warn_flag
- ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
- else
- ac_cpp_err=
- fi
- else
- ac_cpp_err=yes
- fi
- if test -z "$ac_cpp_err"; then
- ac_header_preproc=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_preproc=no
- fi
- rm -f conftest.err conftest.$ac_ext
- echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
- echo "${ECHO_T}$ac_header_preproc" >&6
- # So? What about this header?
- case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
- echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
- echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
- echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
- echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
- echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: section "Present But Cannot Be Compiled"" >&5
- echo "$as_me: WARNING: $ac_header: section "Present But Cannot Be Compiled"" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
- echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
- echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
- (
- cat <<_ASBOX
- ## ------------------------------ ##
- ## Report this to google://handvu ##
- ## ------------------------------ ##
- _ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- esac
- echo "$as_me:$LINENO: checking for $ac_header" >&5
- echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
- if eval "test "${$as_ac_Header+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- eval "$as_ac_Header=$ac_header_preproc"
- fi
- echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
- echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
- fi
- if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
- #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- # socket-related headers
- for ac_header in arpa/inet.h fcntl.h netinet/in.h sys/socket.h
- do
- as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
- if eval "test "${$as_ac_Header+set}" = set"; then
- echo "$as_me:$LINENO: checking for $ac_header" >&5
- echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
- if eval "test "${$as_ac_Header+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- fi
- echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
- echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
- else
- # Is the header compilable?
- echo "$as_me:$LINENO: checking $ac_header usability" >&5
- echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- $ac_includes_default
- #include <$ac_header>
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_header_compiler=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_compiler=no
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
- echo "${ECHO_T}$ac_header_compiler" >&6
- # Is the header present?
- echo "$as_me:$LINENO: checking $ac_header presence" >&5
- echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <$ac_header>
- _ACEOF
- if { (eval echo "$as_me:$LINENO: "$ac_cpp conftest.$ac_ext"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_cxx_preproc_warn_flag
- ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
- else
- ac_cpp_err=
- fi
- else
- ac_cpp_err=yes
- fi
- if test -z "$ac_cpp_err"; then
- ac_header_preproc=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_preproc=no
- fi
- rm -f conftest.err conftest.$ac_ext
- echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
- echo "${ECHO_T}$ac_header_preproc" >&6
- # So? What about this header?
- case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
- echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
- echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
- echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
- echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
- echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: section "Present But Cannot Be Compiled"" >&5
- echo "$as_me: WARNING: $ac_header: section "Present But Cannot Be Compiled"" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
- echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
- echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
- (
- cat <<_ASBOX
- ## ------------------------------ ##
- ## Report this to google://handvu ##
- ## ------------------------------ ##
- _ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- esac
- echo "$as_me:$LINENO: checking for $ac_header" >&5
- echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
- if eval "test "${$as_ac_Header+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- eval "$as_ac_Header=$ac_header_preproc"
- fi
- echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
- echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
- fi
- if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
- #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- echo "$as_me:$LINENO: checking for <string>" >&5
- echo $ECHO_N "checking for <string>... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- #include <string>
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- { { echo "$as_me:$LINENO: error: not found!
- See `config.log' for more details." >&5
- echo "$as_me: error: not found!
- See `config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- echo "$as_me:$LINENO: checking for <vector>" >&5
- echo $ECHO_N "checking for <vector>... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <vector>
- _ACEOF
- if { (eval echo "$as_me:$LINENO: "$ac_cpp conftest.$ac_ext"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_cxx_preproc_warn_flag
- ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
- else
- ac_cpp_err=
- fi
- else
- ac_cpp_err=yes
- fi
- if test -z "$ac_cpp_err"; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- { { echo "$as_me:$LINENO: error: not found!
- See `config.log' for more details." >&5
- echo "$as_me: error: not found!
- See `config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
- fi
- rm -f conftest.err conftest.$ac_ext
- # Checks for cubicles header and library
- echo "$as_me:$LINENO: checking for cubicles.h" >&5
- echo $ECHO_N "checking for cubicles.h... $ECHO_C" >&6
- cubicles_incdir=""
- for root in "$abs_top_srcdir/cubicles"
- /usr/local/include; do
- if test -f "$root/cubicles.h"; then
- cubicles_incdir="$root"
- break
- fi
- for postfix in ; do
- if test -f "$root/$postfix/cubicles.h"; then
- cubicles_incdir="$root/$postfix"
- break
- fi
- done
- if test "x$cubicles_incdir" != "x"; then
- break;
- fi
- done
- if test "x$cubicles_incdir" = "x"; then
- if test "x" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: cubicles.h not found" >&5
- echo "$as_me: error: cubicles.h not found" >&2;}
- { (exit 1); exit 1; }; }
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- else
- echo "$as_me:$LINENO: result: yes: $cubicles_incdir" >&5
- echo "${ECHO_T}yes: $cubicles_incdir" >&6
- fi
- INC_CUBICLES="-I$cubicles_incdir"
- if test "$have_cubicles_sources" = "yes"; then
- if test "x$AM_LDFLAGS" = "x"; then
- # echo " setting AM_LDFLAGS to "'-L$abs_top_srcdir/lib'""
- AM_LDFLAGS="'-L$abs_top_srcdir/lib'"
- else
- apr_addto_bugger="'-L$abs_top_srcdir/lib'"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_LDFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_LDFLAGS"
- AM_LDFLAGS="$AM_LDFLAGS $i"
- fi
- done
- fi
- else
- echo "$as_me:$LINENO: checking for libcubicles.a" >&5
- echo $ECHO_N "checking for libcubicles.a... $ECHO_C" >&6
- cubicles_libdir=""
- for root in "$abs_top_srcdir/lib"
- /usr/local/lib
- "$abs_top_srcdir/cubicles"; do
- if test -f "$root/libcubicles.a"; then
- cubicles_libdir="$root"
- break
- fi
- for postfix in ; do
- if test -f "$root/$postfix/libcubicles.a"; then
- cubicles_libdir="$root/$postfix"
- break
- fi
- done
- if test "x$cubicles_libdir" != "x"; then
- break;
- fi
- done
- if test "x$cubicles_libdir" = "x"; then
- if test "x" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: libcubicles.a not found" >&5
- echo "$as_me: error: libcubicles.a not found" >&2;}
- { (exit 1); exit 1; }; }
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- else
- echo "$as_me:$LINENO: result: yes: $cubicles_libdir" >&5
- echo "${ECHO_T}yes: $cubicles_libdir" >&6
- fi
- if test "x$AM_LDFLAGS" = "x"; then
- # echo " setting AM_LDFLAGS to "'-L$cubicles_libdir'""
- AM_LDFLAGS="'-L$cubicles_libdir'"
- else
- apr_addto_bugger="'-L$cubicles_libdir'"
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $AM_LDFLAGS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- # echo " adding "$i" to AM_LDFLAGS"
- AM_LDFLAGS="$AM_LDFLAGS $i"
- fi
- done
- fi
- fi
- # Checks for handvu header
- if test "$have_handvu_sources" = "yes"; then
- echo "$as_me:$LINENO: checking for HandVu.h" >&5
- echo $ECHO_N "checking for HandVu.h... $ECHO_C" >&6
- handvu_incdir=""
- for root in "$abs_top_srcdir/handvu"
- /usr/local/include; do
- if test -f "$root/HandVu.h"; then
- handvu_incdir="$root"
- break
- fi
- for postfix in ; do
- if test -f "$root/$postfix/HandVu.h"; then
- handvu_incdir="$root/$postfix"
- break
- fi
- done
- if test "x$handvu_incdir" != "x"; then
- break;
- fi
- done
- if test "x$handvu_incdir" = "x"; then
- if test "x" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: HandVu.h not found" >&5
- echo "$as_me: error: HandVu.h not found" >&2;}
- { (exit 1); exit 1; }; }
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- else
- echo "$as_me:$LINENO: result: yes: $handvu_incdir" >&5
- echo "${ECHO_T}yes: $handvu_incdir" >&6
- fi
- INC_HANDVU="-I$handvu_incdir"
- fi
- # Checks for OpenCV headers
- if test "$w_opencv" = "yes"; then
- # first try with pkg-config
- succeeded=no
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- echo "$as_me:$LINENO: checking for $ac_word" >&5
- echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
- if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- case $PKG_CONFIG in
- [\/]* | ?:[\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # 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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
- echo "${ECHO_T}$PKG_CONFIG" >&6
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- fi
- if test "$PKG_CONFIG" = "no" ; then
- echo "*** The pkg-config script could not be found. Make sure it is"
- echo "*** in your path, or set the PKG_CONFIG environment variable"
- echo "*** to the full path to pkg-config."
- echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
- else
- PKG_CONFIG_MIN_VERSION=0.9.0
- if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
- echo "$as_me:$LINENO: checking for opencv >= 0.9.6" >&5
- echo $ECHO_N "checking for opencv >= 0.9.6... $ECHO_C" >&6
- if $PKG_CONFIG --exists "opencv >= 0.9.6" ; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- succeeded=yes
- echo "$as_me:$LINENO: checking OPENCV_CFLAGS" >&5
- echo $ECHO_N "checking OPENCV_CFLAGS... $ECHO_C" >&6
- OPENCV_CFLAGS=`$PKG_CONFIG --cflags "opencv >= 0.9.6"`
- echo "$as_me:$LINENO: result: $OPENCV_CFLAGS" >&5
- echo "${ECHO_T}$OPENCV_CFLAGS" >&6
- echo "$as_me:$LINENO: checking OPENCV_LIBS" >&5
- echo $ECHO_N "checking OPENCV_LIBS... $ECHO_C" >&6
- OPENCV_LIBS=`$PKG_CONFIG --libs "opencv >= 0.9.6"`
- echo "$as_me:$LINENO: result: $OPENCV_LIBS" >&5
- echo "${ECHO_T}$OPENCV_LIBS" >&6
- else
- OPENCV_CFLAGS=""
- OPENCV_LIBS=""
- ## If we have a custom action on failure, don't print errors, but
- ## do set a variable so people can do so.
- OPENCV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "opencv >= 0.9.6"`
- fi
- else
- echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
- echo "*** See http://www.freedesktop.org/software/pkgconfig"
- fi
- fi
- if test $succeeded = yes; then
- :
- else
- echo "searching for OpenCV without pkg-config:"
- fi
- INC_OPENCV="$OPENCV_CFLAGS"
- LIB_OPENCV="$OPENCV_LIBS"
- if test "x$INC_OPENCV" = "x"; then
- echo "$as_me:$LINENO: checking for OpenCV root" >&5
- echo $ECHO_N "checking for OpenCV root... $ECHO_C" >&6
- opencv_rootdirs=""
- for p in $inc_opencv
- /usr/local/include/opencv
- /sw/include/opencv
- /cygdrive/c/Progra~1/opencv-0.9.6
- /cygdrive/c/Progra~1/OpenCV
- /cygdrive/c/Progra~1/OpenCV_097
- /cygdrive/c/packages/opencv-0.9.6
- /cygdrive/c/packages/OpenCV_097
- /cygdrive/c/packages/OpenCV; do
- if test -d "$p"; then
- opencv_rootdirs="$opencv_rootdirs $p"
- fi
- done
- if test "x$opencv_rootdirs" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: OpenCV root not found" >&5
- echo "$as_me: error: OpenCV root not found" >&2;}
- { (exit 1); exit 1; }; }
- fi
- echo "$as_me:$LINENO: result: found:$opencv_rootdirs" >&5
- echo "${ECHO_T}found:$opencv_rootdirs" >&6
- echo "$as_me:$LINENO: checking for cv.h" >&5
- echo $ECHO_N "checking for cv.h... $ECHO_C" >&6
- cv_incdir=""
- for root in $opencv_rootdirs; do
- if test -f "$root/cv.h"; then
- cv_incdir="$root"
- break
- fi
- for postfix in cv/include; do
- if test -f "$root/$postfix/cv.h"; then
- cv_incdir="$root/$postfix"
- break
- fi
- done
- if test "x$cv_incdir" != "x"; then
- break;
- fi
- done
- if test "x$cv_incdir" = "x"; then
- if test "x" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: cv.h not found" >&5
- echo "$as_me: error: cv.h not found" >&2;}
- { (exit 1); exit 1; }; }
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- else
- echo "$as_me:$LINENO: result: yes: $cv_incdir" >&5
- echo "${ECHO_T}yes: $cv_incdir" >&6
- fi
- echo "$as_me:$LINENO: checking for cxcore.h" >&5
- echo $ECHO_N "checking for cxcore.h... $ECHO_C" >&6
- cxcore_incdir=""
- for root in $opencv_rootdirs; do
- if test -f "$root/cxcore.h"; then
- cxcore_incdir="$root"
- break
- fi
- for postfix in cxcore/include; do
- if test -f "$root/$postfix/cxcore.h"; then
- cxcore_incdir="$root/$postfix"
- break
- fi
- done
- if test "x$cxcore_incdir" != "x"; then
- break;
- fi
- done
- if test "x$cxcore_incdir" = "x"; then
- if test "x" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: cxcore.h not found" >&5
- echo "$as_me: error: cxcore.h not found" >&2;}
- { (exit 1); exit 1; }; }
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- else
- echo "$as_me:$LINENO: result: yes: $cxcore_incdir" >&5
- echo "${ECHO_T}yes: $cxcore_incdir" >&6
- fi
- echo "$as_me:$LINENO: checking for cvaux.h" >&5
- echo $ECHO_N "checking for cvaux.h... $ECHO_C" >&6
- cvaux_incdir=""
- for root in $opencv_rootdirs; do
- if test -f "$root/cvaux.h"; then
- cvaux_incdir="$root"
- break
- fi
- for postfix in cvaux/include; do
- if test -f "$root/$postfix/cvaux.h"; then
- cvaux_incdir="$root/$postfix"
- break
- fi
- done
- if test "x$cvaux_incdir" != "x"; then
- break;
- fi
- done
- if test "x$cvaux_incdir" = "x"; then
- if test "x" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: cvaux.h not found" >&5
- echo "$as_me: error: cvaux.h not found" >&2;}
- { (exit 1); exit 1; }; }
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- else
- echo "$as_me:$LINENO: result: yes: $cvaux_incdir" >&5
- echo "${ECHO_T}yes: $cvaux_incdir" >&6
- fi
- echo "$as_me:$LINENO: checking for highgui.h" >&5
- echo $ECHO_N "checking for highgui.h... $ECHO_C" >&6
- highgui_incdir=""
- for root in $opencv_rootdirs; do
- if test -f "$root/highgui.h"; then
- highgui_incdir="$root"
- break
- fi
- for postfix in otherlibs/highgui; do
- if test -f "$root/$postfix/highgui.h"; then
- highgui_incdir="$root/$postfix"
- break
- fi
- done
- if test "x$highgui_incdir" != "x"; then
- break;
- fi
- done
- if test "x$highgui_incdir" = "x"; then
- if test "x" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: highgui.h not found" >&5
- echo "$as_me: error: highgui.h not found" >&2;}
- { (exit 1); exit 1; }; }
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- else
- echo "$as_me:$LINENO: result: yes: $highgui_incdir" >&5
- echo "${ECHO_T}yes: $highgui_incdir" >&6
- fi
- INC_OPENCV="-I$cv_incdir -I$cxcore_incdir -I$cvaux_incdir -I$highgui_incdir"
- # todo: we should check in library section
- case "$host" in
- *-cygwin*)
- echo "$as_me:$LINENO: checking for cvcam.h" >&5
- echo $ECHO_N "checking for cvcam.h... $ECHO_C" >&6
- cvcam_incdir=""
- for root in $opencv_rootdirs; do
- if test -f "$root/cvcam.h"; then
- cvcam_incdir="$root"
- break
- fi
- for postfix in otherlibs/cvcam/include; do
- if test -f "$root/$postfix/cvcam.h"; then
- cvcam_incdir="$root/$postfix"
- break
- fi
- done
- if test "x$cvcam_incdir" != "x"; then
- break;
- fi
- done
- if test "x$cvcam_incdir" = "x"; then
- if test "x" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: cvcam.h not found" >&5
- echo "$as_me: error: cvcam.h not found" >&2;}
- { (exit 1); exit 1; }; }
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- else
- echo "$as_me:$LINENO: result: yes: $cvcam_incdir" >&5
- echo "${ECHO_T}yes: $cvcam_incdir" >&6
- fi
- INC_OPENCV="$INC_OPENCV -I$cvcam_incdir"
- echo "$as_me:$LINENO: checking for cv.lib" >&5
- echo $ECHO_N "checking for cv.lib... $ECHO_C" >&6
- cv_libdir=""
- for root in $opencv_rootdirs; do
- if test -f "$root/cv.lib"; then
- cv_libdir="$root"
- break
- fi
- for postfix in lib; do
- if test -f "$root/$postfix/cv.lib"; then
- cv_libdir="$root/$postfix"
- break
- fi
- done
- if test "x$cv_libdir" != "x"; then
- break;
- fi
- done
- if test "x$cv_libdir" = "x"; then
- if test "x" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: cv.lib not found" >&5
- echo "$as_me: error: cv.lib not found" >&2;}
- { (exit 1); exit 1; }; }
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- else
- echo "$as_me:$LINENO: result: yes: $cv_libdir" >&5
- echo "${ECHO_T}yes: $cv_libdir" >&6
- fi
- LIB_OPENCV="-L$cv_libdir -lcv -lcxcore -lcvaux -lhighgui"
- ;;
- *)
- # Assume Unix.
- ;;
- esac
- fi
- fi
- # Checks for Magick headers
- if test "$w_magick" = "yes"; then
- echo "$as_me:$LINENO: checking for Magick root" >&5
- echo $ECHO_N "checking for Magick root... $ECHO_C" >&6
- magick_rootdirs=""
- for p in $inc_magick
- '/usr/local/include'
- '/usr/local/include/magick'
- $HOME/Magick/ImageMagick-6.0.4
- /cygdrive/c/Progra~1/ImageMagick
- /cygdrive/c/Progra~1/ImageMagick/6.0.0-Q16; do
- if test -d "$p"; then
- magick_rootdirs="$magick_rootdirs $p"
- fi
- done
- if test "x$magick_rootdirs" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: Magick root not found" >&5
- echo "$as_me: error: Magick root not found" >&2;}
- { (exit 1); exit 1; }; }
- fi
- echo "$as_me:$LINENO: result: found:$magick_rootdirs" >&5
- echo "${ECHO_T}found:$magick_rootdirs" >&6
- echo "$as_me:$LINENO: checking for Magick++.h" >&5
- echo $ECHO_N "checking for Magick++.h... $ECHO_C" >&6
- magickpp_incdir=""
- for root in $magick_rootdirs; do
- if test -f "$root/Magick++.h"; then
- magickpp_incdir="$root"
- break
- fi
- for postfix in include; do
- if test -f "$root/$postfix/Magick++.h"; then
- magickpp_incdir="$root/$postfix"
- break
- fi
- done
- if test "x$magickpp_incdir" != "x"; then
- break;
- fi
- done
- if test "x$magickpp_incdir" = "x"; then
- if test "x" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: Magick++.h not found" >&5
- echo "$as_me: error: Magick++.h not found" >&2;}
- { (exit 1); exit 1; }; }
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- else
- echo "$as_me:$LINENO: result: yes: $magickpp_incdir" >&5
- echo "${ECHO_T}yes: $magickpp_incdir" >&6
- fi
- INC_MAGICK="-I$magickpp_incdir"
- fi
- # Checks for MPI headers
- if test "$USE_MPI" = "mpich"; then
- echo "$as_me:$LINENO: checking for MPI mpich root" >&5
- echo $ECHO_N "checking for MPI mpich root... $ECHO_C" >&6
- mpich_rootdirs=""
- for p in $inc_mpi
- '/usr/local/include/mpi'
- '/cluster/opt/mpi/include'; do
- if test -d "$p"; then
- mpich_rootdirs="$mpich_rootdirs $p"
- fi
- done
- if test "x$mpich_rootdirs" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: MPI mpich root not found" >&5
- echo "$as_me: error: MPI mpich root not found" >&2;}
- { (exit 1); exit 1; }; }
- fi
- echo "$as_me:$LINENO: result: found:$mpich_rootdirs" >&5
- echo "${ECHO_T}found:$mpich_rootdirs" >&6
- echo "$as_me:$LINENO: checking for MPI.h" >&5
- echo $ECHO_N "checking for MPI.h... $ECHO_C" >&6
- mpich_incdir=""
- for root in $mpich_rootdirs; do
- if test -f "$root/MPI.h"; then
- mpich_incdir="$root"
- break
- fi
- for postfix in include; do
- if test -f "$root/$postfix/MPI.h"; then
- mpich_incdir="$root/$postfix"
- break
- fi
- done
- if test "x$mpich_incdir" != "x"; then
- break;
- fi
- done
- if test "x$mpich_incdir" = "x"; then
- if test "x" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: MPI.h not found" >&5
- echo "$as_me: error: MPI.h not found" >&2;}
- { (exit 1); exit 1; }; }
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- else
- echo "$as_me:$LINENO: result: yes: $mpich_incdir" >&5
- echo "${ECHO_T}yes: $mpich_incdir" >&6
- fi
- INC_MPI="-I$mpich_incdir"
- # libs are at /cluster/opt/mpi/lib
- # ACC_ADDTO(LIBS, -lmpich)
- CC=/cluster/opt/mpi/bin/mpiCC
- fi
- if test "$USE_MPI" = "lam"; then
- echo "$as_me:$LINENO: checking for MPI lam root" >&5
- echo $ECHO_N "checking for MPI lam root... $ECHO_C" >&6
- lam_rootdirs=""
- for p in '/usr/include/lam'; do
- if test -d "$p"; then
- lam_rootdirs="$lam_rootdirs $p"
- fi
- done
- if test "x$lam_rootdirs" = "x"; then
- echo no
- { { echo "$as_me:$LINENO: error: MPI lam root not found" >&5
- echo "$as_me: error: MPI lam root not found" >&2;}
- { (exit 1); exit 1; }; }
- fi
- echo "$as_me:$LINENO: result: found:$lam_rootdirs" >&5
- echo "${ECHO_T}found:$lam_rootdirs" >&6
- echo "$as_me:$LINENO: checking for MPI.h" >&5
- echo $ECHO_N "checking for MPI.h... $ECHO_C" >&6
- lam_incdir=""
- for root in $lam_rootdirs; do