diff -urN mysql-4.0.17.orig/configure mysql-4.0.17/configure --- mysql-4.0.17.orig/configure Mon Dec 15 06:24:06 2003 +++ mysql-4.0.17/configure Fri Jan 9 07:58:24 2004 @@ -6116,8 +6116,9 @@ archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' # We need to add '_' to the symbols in $export_symbols first #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' - hardcode_direct=yes + hardcode_direct=no hardcode_shlibpath_var=no + hardcode_libdir_flag_spec=' ' whole_archive_flag_spec='-all_load $convenience' ;; @@ -12764,6 +12765,15 @@ fi ;; *darwin6*) + if test "$ac_cv_c_compiler_gnu" = "yes" + then + FLAGS="-DHAVE_DARWIN_THREADS -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DHAVE_BROKEN_REALPATH -DFN_NO_CASE_SENCE" + CFLAGS="$CFLAGS $FLAGS" + CXXFLAGS="$CXXFLAGS $FLAGS" + MAX_C_OPTIMIZE="-O" + fi + ;; + *darwin7*) if test "$ac_cv_c_compiler_gnu" = "yes" then FLAGS="-DHAVE_DARWIN_THREADS -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DHAVE_BROKEN_REALPATH -DFN_NO_CASE_SENCE"