123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743 |
- $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
- --- mysql-5.0.81.orig/configure 2009-04-16 13:56:58.000000000 +0200
- +++ mysql-5.0.81/configure 2009-05-12 10:59:57.000000000 +0200
- @@ -885,8 +885,6 @@ MYSQLD_EXTRA_LIBS
- CLIENT_EXTRA_LDFLAGS
- MYSQLD_EXTRA_LDFLAGS
- LIBDL
- -COMPILE_PSTACK_FALSE
- -COMPILE_PSTACK_TRUE
- pstack_libs
- pstack_dirs
- WRAPLIBS
- @@ -21587,165 +21585,11 @@ else
- $as_echo "no" >&6; }
- fi
-
- -
- -
- -{ $as_echo "$as_me:$LINENO: checking \"return type of sprintf\"" >&5
- -$as_echo_n "checking \"return type of sprintf\"... " >&6; }
- -
- -#check the return type of sprintf
- -case $SYSTEM_TYPE in
- - *netware*)
- - cat >>confdefs.h <<\_ACEOF
- -#define SPRINTF_RETURNS_INT 1
- -_ACEOF
- - { $as_echo "$as_me:$LINENO: result: \"int\"" >&5
- -$as_echo "\"int\"" >&6; }
- - ;;
- - *)
- -if test "$cross_compiling" = yes; then
- - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
- -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
- -See \`config.log' for more details." >&5
- -$as_echo "$as_me: error: cannot run test program while cross compiling
- -See \`config.log' for more details." >&2;}
- - { (exit 1); exit 1; }; }; }
- -else
- - cat >conftest.$ac_ext <<_ACEOF
- -/* confdefs.h. */
- -_ACEOF
- -cat confdefs.h >>conftest.$ac_ext
- -cat >>conftest.$ac_ext <<_ACEOF
- -/* end confdefs.h. */
- -
- - int main()
- - {
- - char* s = "hello";
- - char buf[6];
- - if((int)sprintf(buf, s) == strlen(s))
- - return 0;
- -
- - return -1;
- - }
- -
- -_ACEOF
- -rm -f conftest$ac_exeext
- -if { (ac_try="$ac_link"
- -case "(($ac_try" in
- - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- - *) ac_try_echo=$ac_try;;
- -esac
- -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
- -$as_echo "$ac_try_echo") >&5
- - (eval "$ac_link") 2>&5
- - ac_status=$?
- - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- - { (case "(($ac_try" in
- - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- - *) ac_try_echo=$ac_try;;
- -esac
- -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
- -$as_echo "$ac_try_echo") >&5
- - (eval "$ac_try") 2>&5
- - ac_status=$?
- - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- - (exit $ac_status); }; }; then
- -
- +# return type of sprintf is int for Linux glibc/uClibc
- cat >>confdefs.h <<\_ACEOF
- #define SPRINTF_RETURNS_INT 1
- _ACEOF
-
- - { $as_echo "$as_me:$LINENO: result: \"int\"" >&5
- -$as_echo "\"int\"" >&6; }
- -else
- - $as_echo "$as_me: program exited with status $ac_status" >&5
- -$as_echo "$as_me: failed program was:" >&5
- -sed 's/^/| /' conftest.$ac_ext >&5
- -
- -( exit $ac_status )
- -if test "$cross_compiling" = yes; then
- - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
- -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
- -See \`config.log' for more details." >&5
- -$as_echo "$as_me: error: cannot run test program while cross compiling
- -See \`config.log' for more details." >&2;}
- - { (exit 1); exit 1; }; }; }
- -else
- - cat >conftest.$ac_ext <<_ACEOF
- -/* confdefs.h. */
- -_ACEOF
- -cat confdefs.h >>conftest.$ac_ext
- -cat >>conftest.$ac_ext <<_ACEOF
- -/* end confdefs.h. */
- -
- - int main()
- - {
- - char* s = "hello";
- - char buf[6];
- - if((char*)sprintf(buf,s) == buf + strlen(s))
- - return 0;
- - return -1;
- - }
- -_ACEOF
- -rm -f conftest$ac_exeext
- -if { (ac_try="$ac_link"
- -case "(($ac_try" in
- - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- - *) ac_try_echo=$ac_try;;
- -esac
- -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
- -$as_echo "$ac_try_echo") >&5
- - (eval "$ac_link") 2>&5
- - ac_status=$?
- - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- - { (case "(($ac_try" in
- - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- - *) ac_try_echo=$ac_try;;
- -esac
- -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
- -$as_echo "$ac_try_echo") >&5
- - (eval "$ac_try") 2>&5
- - ac_status=$?
- - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- - (exit $ac_status); }; }; then
- -
- -cat >>confdefs.h <<\_ACEOF
- -#define SPRINTF_RETURNS_PTR 1
- -_ACEOF
- -
- - { $as_echo "$as_me:$LINENO: result: \"ptr\"" >&5
- -$as_echo "\"ptr\"" >&6; }
- -else
- - $as_echo "$as_me: program exited with status $ac_status" >&5
- -$as_echo "$as_me: failed program was:" >&5
- -sed 's/^/| /' conftest.$ac_ext >&5
- -
- -( exit $ac_status )
- -
- -cat >>confdefs.h <<\_ACEOF
- -#define SPRINTF_RETURNS_GARBAGE 1
- -_ACEOF
- -
- - { $as_echo "$as_me:$LINENO: result: \"garbage\"" >&5
- -$as_echo "\"garbage\"" >&6; }
- -fi
- -rm -rf conftest.dSYM
- -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
- -fi
- -
- -
- -
- -fi
- -rm -rf conftest.dSYM
- -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
- -fi
- -
- -
- - ;;
- -esac
-
- # Extract the first word of "uname", so it can be a program name with args.
- set dummy uname; ac_word=$2
- @@ -22841,98 +22685,8 @@ $as_echo "no" >&6; }
- fi
-
-
- -# Look for PS usage. We use double dollar-signs in FIND_PROC because this
- -# value is written to a makefile, which interprets away one level of
- -# dollar-signs. So, interpretation stages are m4 and then shell in autoconf,
- -# then Make, then shell. The autoconf substitution uses single quotes, so
- -# no unprotected single quotes should appear in the expression.
- -# Extract the first word of "ps", so it can be a program name with args.
- -set dummy ps; ac_word=$2
- -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
- -$as_echo_n "checking for $ac_word... " >&6; }
- -if test "${ac_cv_path_PS+set}" = set; then
- - $as_echo_n "(cached) " >&6
- -else
- - case $PS in
- - [\\/]* | ?:[\\/]*)
- - ac_cv_path_PS="$PS" # Let the user override the test with a path.
- - ;;
- - *)
- - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- -for as_dir in $PATH
- -do
- - IFS=$as_save_IFS
- - test -z "$as_dir" && as_dir=.
- - for ac_exec_ext in '' $ac_executable_extensions; do
- - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- - ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
- - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- - break 2
- - fi
- -done
- -done
- -IFS=$as_save_IFS
- -
- - test -z "$ac_cv_path_PS" && ac_cv_path_PS="ps"
- - ;;
- -esac
- -fi
- -PS=$ac_cv_path_PS
- -if test -n "$PS"; then
- - { $as_echo "$as_me:$LINENO: result: $PS" >&5
- -$as_echo "$PS" >&6; }
- -else
- - { $as_echo "$as_me:$LINENO: result: no" >&5
- -$as_echo "no" >&6; }
- -fi
- -
- -
- -{ $as_echo "$as_me:$LINENO: checking \"how to check if pid exists\"" >&5
- -$as_echo_n "checking \"how to check if pid exists\"... " >&6; }
- -PS=$ac_cv_path_PS
- # Linux style
- -if $PS wwwp $$ 2> /dev/null | grep -- "$0" > /dev/null
- -then
- - FIND_PROC="$PS wwwp \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
- -# Solaris
- -elif $PS -fp $$ 2> /dev/null | grep -- $0 > /dev/null
- -then
- - FIND_PROC="$PS -p \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
- -# BSD style
- -elif $PS -uaxww 2> /dev/null | grep -- $0 > /dev/null
- -then
- - FIND_PROC="$PS -uaxww | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
- -# SysV style
- -elif $PS -ef 2> /dev/null | grep -- $0 > /dev/null
- -then
- - FIND_PROC="$PS -ef | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
- -# Do anybody use this?
- -elif $PS $$ 2> /dev/null | grep -- $0 > /dev/null
- -then
- - FIND_PROC="$PS \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
- -else
- - case $SYSTEM_TYPE in
- - *freebsd*|*dragonfly*)
- - FIND_PROC="$PS p \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
- - ;;
- - *darwin*)
- - FIND_PROC="$PS -uaxww | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
- - ;;
- - *cygwin*)
- - FIND_PROC="$PS -e | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
- - ;;
- - *netware*)
- - FIND_PROC=
- - ;;
- - *)
- - { { $as_echo "$as_me:$LINENO: error: Could not find the right ps and/or grep switches. Which OS is this? See the Installation chapter in the Reference Manual." >&5
- -$as_echo "$as_me: error: Could not find the right ps and/or grep switches. Which OS is this? See the Installation chapter in the Reference Manual." >&2;}
- - { (exit 1); exit 1; }; }
- - esac
- -fi
- -
- -{ $as_echo "$as_me:$LINENO: result: \"$FIND_PROC\"" >&5
- -$as_echo "\"$FIND_PROC\"" >&6; }
- +FIND_PROC="/bin/ps wwwp \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
-
- # Check if a pid is valid
- # Extract the first word of "kill", so it can be a program name with args.
- @@ -26681,350 +26435,14 @@ fi
- fi
-
-
- -
- -if test "$TARGET_LINUX" = "true"; then
- - { $as_echo "$as_me:$LINENO: checking for atomic operations" >&5
- -$as_echo_n "checking for atomic operations... " >&6; }
- -
- -
- - ac_ext=cpp
- -ac_cpp='$CXXCPP $CPPFLAGS'
- -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- -
- -
- - atom_ops=
- - if test "$cross_compiling" = yes; then
- - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
- -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
- -See \`config.log' for more details." >&5
- -$as_echo "$as_me: error: cannot run test program while cross compiling
- -See \`config.log' for more details." >&2;}
- - { (exit 1); exit 1; }; }; }
- -else
- - cat >conftest.$ac_ext <<_ACEOF
- -/* confdefs.h. */
- -_ACEOF
- -cat confdefs.h >>conftest.$ac_ext
- -cat >>conftest.$ac_ext <<_ACEOF
- -/* end confdefs.h. */
- -
- -#include <asm/atomic.h>
- -int main()
- -{
- - atomic_t v;
- -
- - atomic_set(&v, 23);
- - atomic_add(5, &v);
- - return atomic_read(&v) == 28 ? 0 : -1;
- -}
- -
- -_ACEOF
- -rm -f conftest$ac_exeext
- -if { (ac_try="$ac_link"
- -case "(($ac_try" in
- - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- - *) ac_try_echo=$ac_try;;
- -esac
- -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
- -$as_echo "$ac_try_echo") >&5
- - (eval "$ac_link") 2>&5
- - ac_status=$?
- - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- - { (case "(($ac_try" in
- - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- - *) ac_try_echo=$ac_try;;
- -esac
- -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
- -$as_echo "$ac_try_echo") >&5
- - (eval "$ac_try") 2>&5
- - ac_status=$?
- - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- - (exit $ac_status); }; }; then
- -
- cat >>confdefs.h <<\_ACEOF
- -#define HAVE_ATOMIC_ADD 1
- -_ACEOF
- -
- - atom_ops="${atom_ops}atomic_add "
- -else
- - $as_echo "$as_me: program exited with status $ac_status" >&5
- -$as_echo "$as_me: failed program was:" >&5
- -sed 's/^/| /' conftest.$ac_ext >&5
- -
- -fi
- -rm -rf conftest.dSYM
- -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
- -fi
- -
- -
- - if test "$cross_compiling" = yes; then
- - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
- -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
- -See \`config.log' for more details." >&5
- -$as_echo "$as_me: error: cannot run test program while cross compiling
- -See \`config.log' for more details." >&2;}
- - { (exit 1); exit 1; }; }; }
- -else
- - cat >conftest.$ac_ext <<_ACEOF
- -/* confdefs.h. */
- -_ACEOF
- -cat confdefs.h >>conftest.$ac_ext
- -cat >>conftest.$ac_ext <<_ACEOF
- -/* end confdefs.h. */
- -
- -#include <asm/atomic.h>
- -int main()
- -{
- - atomic_t v;
- -
- - atomic_set(&v, 23);
- - atomic_sub(5, &v);
- - return atomic_read(&v) == 18 ? 0 : -1;
- -}
- -
- -_ACEOF
- -rm -f conftest$ac_exeext
- -if { (ac_try="$ac_link"
- -case "(($ac_try" in
- - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- - *) ac_try_echo=$ac_try;;
- -esac
- -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
- -$as_echo "$ac_try_echo") >&5
- - (eval "$ac_link") 2>&5
- - ac_status=$?
- - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- - { (case "(($ac_try" in
- - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- - *) ac_try_echo=$ac_try;;
- -esac
- -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
- -$as_echo "$ac_try_echo") >&5
- - (eval "$ac_try") 2>&5
- - ac_status=$?
- - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- - (exit $ac_status); }; }; then
- -
- -cat >>confdefs.h <<\_ACEOF
- -#define HAVE_ATOMIC_SUB 1
- -_ACEOF
- -
- - atom_ops="${atom_ops}atomic_sub "
- -else
- - $as_echo "$as_me: program exited with status $ac_status" >&5
- -$as_echo "$as_me: failed program was:" >&5
- -sed 's/^/| /' conftest.$ac_ext >&5
- -
- -fi
- -rm -rf conftest.dSYM
- -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
- -fi
- -
- -
- -
- - if test -z "$atom_ops"; then atom_ops="no"; fi
- - { $as_echo "$as_me:$LINENO: result: $atom_ops" >&5
- -$as_echo "$atom_ops" >&6; }
- -
- - 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
- -
- -
- -
- -# Check whether --with-pstack was given.
- -if test "${with_pstack+set}" = set; then
- - withval=$with_pstack; USE_PSTACK=$withval
- -else
- - USE_PSTACK=no
- -fi
- -
- - pstack_libs=
- - pstack_dirs=
- - if test "$USE_PSTACK" = yes -a "$TARGET_LINUX" = "true" -a "$BASE_MACHINE_TYPE" = "i386"
- - then
- - have_libiberty= have_libbfd=
- - my_save_LIBS="$LIBS"
- - { $as_echo "$as_me:$LINENO: checking for fdmatch in -liberty" >&5
- -$as_echo_n "checking for fdmatch in -liberty... " >&6; }
- -if test "${ac_cv_lib_iberty_fdmatch+set}" = set; then
- - $as_echo_n "(cached) " >&6
- -else
- - ac_check_lib_save_LIBS=$LIBS
- -LIBS="-liberty $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 GCC internal prototype to avoid an error.
- - Use char because int might match the return type of a GCC
- - builtin and then its argument prototype would still apply. */
- -#ifdef __cplusplus
- -extern "C"
- -#endif
- -char fdmatch ();
- -int
- -main ()
- -{
- -return fdmatch ();
- - ;
- - return 0;
- -}
- -_ACEOF
- -rm -f conftest.$ac_objext conftest$ac_exeext
- -if { (ac_try="$ac_link"
- -case "(($ac_try" in
- - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- - *) ac_try_echo=$ac_try;;
- -esac
- -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
- -$as_echo "$ac_try_echo") >&5
- - (eval "$ac_link") 2>conftest.er1
- - ac_status=$?
- - grep -v '^ *+' conftest.er1 >conftest.err
- - rm -f conftest.er1
- - cat conftest.err >&5
- - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- - (exit $ac_status); } && {
- - test -z "$ac_c_werror_flag" ||
- - test ! -s conftest.err
- - } && test -s conftest$ac_exeext && {
- - test "$cross_compiling" = yes ||
- - $as_test_x conftest$ac_exeext
- - }; then
- - ac_cv_lib_iberty_fdmatch=yes
- -else
- - $as_echo "$as_me: failed program was:" >&5
- -sed 's/^/| /' conftest.$ac_ext >&5
- -
- - ac_cv_lib_iberty_fdmatch=no
- -fi
- -
- -rm -rf conftest.dSYM
- -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- - conftest$ac_exeext conftest.$ac_ext
- -LIBS=$ac_check_lib_save_LIBS
- -fi
- -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_fdmatch" >&5
- -$as_echo "$ac_cv_lib_iberty_fdmatch" >&6; }
- -if test "x$ac_cv_lib_iberty_fdmatch" = x""yes; then
- - have_libiberty=yes
- - { $as_echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
- -$as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
- -if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
- - $as_echo_n "(cached) " >&6
- -else
- - ac_check_lib_save_LIBS=$LIBS
- -LIBS="-lbfd -liberty $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 GCC internal prototype to avoid an error.
- - Use char because int might match the return type of a GCC
- - builtin and then its argument prototype would still apply. */
- -#ifdef __cplusplus
- -extern "C"
- -#endif
- -char bfd_openr ();
- -int
- -main ()
- -{
- -return bfd_openr ();
- - ;
- - return 0;
- -}
- +#define HAVE_ATOMIC_ADD 0
- _ACEOF
- -rm -f conftest.$ac_objext conftest$ac_exeext
- -if { (ac_try="$ac_link"
- -case "(($ac_try" in
- - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- - *) ac_try_echo=$ac_try;;
- -esac
- -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
- -$as_echo "$ac_try_echo") >&5
- - (eval "$ac_link") 2>conftest.er1
- - ac_status=$?
- - grep -v '^ *+' conftest.er1 >conftest.err
- - rm -f conftest.er1
- - cat conftest.err >&5
- - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- - (exit $ac_status); } && {
- - test -z "$ac_c_werror_flag" ||
- - test ! -s conftest.err
- - } && test -s conftest$ac_exeext && {
- - test "$cross_compiling" = yes ||
- - $as_test_x conftest$ac_exeext
- - }; then
- - ac_cv_lib_bfd_bfd_openr=yes
- -else
- - $as_echo "$as_me: failed program was:" >&5
- -sed 's/^/| /' conftest.$ac_ext >&5
- -
- - ac_cv_lib_bfd_bfd_openr=no
- -fi
- -
- -rm -rf conftest.dSYM
- -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- - conftest$ac_exeext conftest.$ac_ext
- -LIBS=$ac_check_lib_save_LIBS
- -fi
- -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
- -$as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
- -if test "x$ac_cv_lib_bfd_bfd_openr" = x""yes; then
- - have_libbfd=yes
- -fi
- -
- -fi
- -
- - LIBS="$my_save_LIBS"
- -
- - if test x"$have_libiberty" = xyes -a x"$have_libbfd" = xyes
- - then
- - pstack_dirs='$(top_srcdir)'/pstack
- - pstack_libs="../pstack/libpstack.a -lbfd -liberty"
- - # We must link staticly when using pstack
- - with_mysqld_ldflags="-all-static"
- -
- -
-
- cat >>confdefs.h <<\_ACEOF
- -#define USE_PSTACK 1
- +#define HAVE_ATOMIC_SUB 0
- _ACEOF
-
- - else
- - USE_PSTACK="no"
- - fi
- - else
- - USE_PSTACK="no"
- - fi
- -fi
- - if test "$USE_PSTACK" = "yes"; then
- - COMPILE_PSTACK_TRUE=
- - COMPILE_PSTACK_FALSE='#'
- -else
- - COMPILE_PSTACK_TRUE='#'
- - COMPILE_PSTACK_FALSE=
- -fi
- -
- -{ $as_echo "$as_me:$LINENO: checking if we should use pstack" >&5
- -$as_echo_n "checking if we should use pstack... " >&6; }
- -{ $as_echo "$as_me:$LINENO: result: $USE_PSTACK" >&5
- -$as_echo "$USE_PSTACK" >&6; }
-
- # Check for gtty if termio.h doesn't exists
- if test "$ac_cv_header_termio_h" = "no" -a "$ac_cv_header_termios_h" = "no"
- @@ -27201,96 +26619,6 @@ fi
- # Later in this script LIBS will be augmented with a threads library.
- NON_THREADED_LIBS="$LIBS"
-
- -{ $as_echo "$as_me:$LINENO: checking for int8" >&5
- -$as_echo_n "checking for int8... " >&6; }
- -case $SYSTEM_TYPE in
- - *netware)
- - { $as_echo "$as_me:$LINENO: result: no" >&5
- -$as_echo "no" >&6; }
- - ;;
- - *)
- -if test "$cross_compiling" = yes; then
- - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
- -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
- -See \`config.log' for more details." >&5
- -$as_echo "$as_me: error: cannot run test program while cross compiling
- -See \`config.log' for more details." >&2;}
- - { (exit 1); exit 1; }; }; }
- -else
- - cat >conftest.$ac_ext <<_ACEOF
- -/* confdefs.h. */
- -_ACEOF
- -cat confdefs.h >>conftest.$ac_ext
- -cat >>conftest.$ac_ext <<_ACEOF
- -/* end confdefs.h. */
- -
- -#ifdef HAVE_STDLIB_H
- -#include <stdlib.h>
- -#endif
- -
- -#ifdef HAVE_STDDEF_H
- -#include <stddef.h>
- -#endif
- -
- -#ifdef HAVE_SYS_TYPES_H
- -#include <sys/types.h>
- -#endif
- -
- -int main()
- -{
- - int8 i;
- - return 0;
- -}
- -
- -_ACEOF
- -rm -f conftest$ac_exeext
- -if { (ac_try="$ac_link"
- -case "(($ac_try" in
- - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- - *) ac_try_echo=$ac_try;;
- -esac
- -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
- -$as_echo "$ac_try_echo") >&5
- - (eval "$ac_link") 2>&5
- - ac_status=$?
- - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- - { (case "(($ac_try" in
- - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- - *) ac_try_echo=$ac_try;;
- -esac
- -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
- -$as_echo "$ac_try_echo") >&5
- - (eval "$ac_try") 2>&5
- - ac_status=$?
- - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
- - (exit $ac_status); }; }; then
- -
- -cat >>confdefs.h <<\_ACEOF
- -#define HAVE_INT_8_16_32 1
- -_ACEOF
- -
- -{ $as_echo "$as_me:$LINENO: result: yes" >&5
- -$as_echo "yes" >&6; }
- -else
- - $as_echo "$as_me: program exited with status $ac_status" >&5
- -$as_echo "$as_me: failed program was:" >&5
- -sed 's/^/| /' conftest.$ac_ext >&5
- -
- -( exit $ac_status )
- -{ $as_echo "$as_me:$LINENO: result: no" >&5
- -$as_echo "no" >&6; }
- -
- -fi
- -rm -rf conftest.dSYM
- -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
- -fi
- -
- -
- - ;;
- -esac
- -
- #
- # Some system specific hacks
- #
- @@ -43458,13 +42786,6 @@ $as_echo "$as_me: error: conditional \"A
- Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
- fi
- -if test -z "${COMPILE_PSTACK_TRUE}" && test -z "${COMPILE_PSTACK_FALSE}"; then
- - { { $as_echo "$as_me:$LINENO: error: conditional \"COMPILE_PSTACK\" was never defined.
- -Usually this means the macro was only invoked conditionally." >&5
- -$as_echo "$as_me: error: conditional \"COMPILE_PSTACK\" was never defined.
- -Usually this means the macro was only invoked conditionally." >&2;}
- - { (exit 1); exit 1; }; }
- -fi
-
- if test -z "${HAVE_YASSL_TRUE}" && test -z "${HAVE_YASSL_FALSE}"; then
- { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_YASSL\" was never defined.
|