no real changes, moved Robin's changes to bakefile and regenerated using bakefile version

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-09-13 19:09:50 +00:00
parent ea172e69cf
commit 2a87985348
2 changed files with 58 additions and 52 deletions

70
aclocal.m4 vendored
View File

@@ -1,6 +1,6 @@
# generated automatically by aclocal 1.7.2 -*- Autoconf -*- # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc. # Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
@@ -1278,25 +1278,26 @@ AC_DEFUN(AC_BAKEFILE_SHARED_LD,
dnl or with a double stage link in order to create a single module dnl or with a double stage link in order to create a single module
dnl "-init _wxWindowsDylibInit" not useful with lazy linking solved dnl "-init _wxWindowsDylibInit" not useful with lazy linking solved
dnl If using newer dev tools then there is a -single_module flag that dnl If using newer dev tools then there is a -single_module flag that
dnl we can use to do this, otherwise we'll need to use a helper dnl we can use to do this, otherwise we'll need to use a helper
dnl script. Check the version of gcc to see which way we can go. dnl script. Check the version of gcc to see which way we can go:
AC_CACHE_CHECK([for gcc 3.1 or later], wx_cv_gcc31, [ AC_CACHE_CHECK([for gcc 3.1 or later], wx_cv_gcc31, [
AC_TRY_COMPILE([], AC_TRY_COMPILE([],
[ [
#if (__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) #if (__GNUC__ < 3) || \
#error old gcc ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
#endif #error old gcc
], #endif
[ ],
wx_cv_gcc31=yes [
], wx_cv_gcc31=yes
[ ],
wx_cv_gcc31=no [
] wx_cv_gcc31=no
) ]
]) )
if test "$wx_cv_gcc31" = "no"; then ])
if test "$wx_cv_gcc31" = "no"; then
cat <<EOF >shared-ld-sh cat <<EOF >shared-ld-sh
#!/bin/sh #!/bin/sh
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@@ -1369,7 +1370,7 @@ fi
# Link the shared library from the single module created # Link the shared library from the single module created
# #
if test \${verbose} = 1; then if test \${verbose} = 1; then
echo "c++ \${linking_flag} master.\$\$.o \${args}" echo "cc \${linking_flag} master.\$\$.o \${args}"
fi fi
c++ \${linking_flag} master.\$\$.o \${args} c++ \${linking_flag} master.\$\$.o \${args}
status=\$? status=\$?
@@ -1386,19 +1387,20 @@ exit 0
EOF EOF
chmod +x shared-ld-sh chmod +x shared-ld-sh
dnl Use the shared-ld-sh helper script dnl Use the shared-ld-sh helper script
SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -o" SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -o"
SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -o" SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -o"
else SHARED_LD_CXX="$SHARED_LD_CC"
dnl Use the -single_module flag and let the linker do it for us SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
SHARED_LD_CC="\${CXX} -dynamiclib -single_module -o" else
SHARED_LD_MODULE_CC="\${CXX} -bundle -single_module -o" dnl Use the -single_module flag and let the linker do it for us
fi SHARED_LD_CC="\${CC} -dynamiclib -single_module -o"
SHARED_LD_CXX="$SHARED_LD_CC" SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -o"
SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -o"
SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -o"
fi
PIC_FLAG="-dynamic -fPIC" PIC_FLAG="-dynamic -fPIC"
dnl FIXME - what about C libs? Gilles says to use c++ because it doesn't
dnl matter for C projects and matters for C++ ones
;; ;;
*-*-aix* ) *-*-aix* )

40
configure vendored
View File

@@ -34389,13 +34389,13 @@ echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
CXXFLAGS="$CXXFLAGS -fno-common" CXXFLAGS="$CXXFLAGS -fno-common"
echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
if test "${wx_cv_gcc31+set}" = set; then if test "${wx_cv_gcc31+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >conftest.$ac_ext <<_ACEOF cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure" #line $LINENO "configure"
/* confdefs.h. */ /* confdefs.h. */
_ACEOF _ACEOF
@@ -34407,9 +34407,10 @@ int
main () main ()
{ {
#if (__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) #if (__GNUC__ < 3) || \
#error old gcc ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
#endif #error old gcc
#endif
; ;
return 0; return 0;
@@ -34428,14 +34429,14 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then (exit $ac_status); }; }; then
wx_cv_gcc31=yes wx_cv_gcc31=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5 sed 's/^/| /' conftest.$ac_ext >&5
wx_cv_gcc31=no wx_cv_gcc31=no
fi fi
@@ -34444,7 +34445,7 @@ rm -f conftest.$ac_objext conftest.$ac_ext
fi fi
echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
echo "${ECHO_T}$wx_cv_gcc31" >&6 echo "${ECHO_T}$wx_cv_gcc31" >&6
if test "$wx_cv_gcc31" = "no"; then if test "$wx_cv_gcc31" = "no"; then
cat <<EOF >shared-ld-sh cat <<EOF >shared-ld-sh
#!/bin/sh #!/bin/sh
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@@ -34517,7 +34518,7 @@ fi
# Link the shared library from the single module created # Link the shared library from the single module created
# #
if test \${verbose} = 1; then if test \${verbose} = 1; then
echo "c++ \${linking_flag} master.\$\$.o \${args}" echo "cc \${linking_flag} master.\$\$.o \${args}"
fi fi
c++ \${linking_flag} master.\$\$.o \${args} c++ \${linking_flag} master.\$\$.o \${args}
status=\$? status=\$?
@@ -34534,16 +34535,19 @@ exit 0
EOF EOF
chmod +x shared-ld-sh chmod +x shared-ld-sh
SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -o" SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -o"
SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -o" SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -o"
else SHARED_LD_CXX="$SHARED_LD_CC"
SHARED_LD_CC="\${CXX} -dynamiclib -single_module -o" SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
SHARED_LD_MODULE_CC="\${CXX} -bundle -single_module -o" else
fi SHARED_LD_CC="\${CC} -dynamiclib -single_module -o"
SHARED_LD_CXX="$SHARED_LD_CC" SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -o"
SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -o"
SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -o"
fi
PIC_FLAG="-dynamic -fPIC" PIC_FLAG="-dynamic -fPIC"
;; ;;
*-*-aix* ) *-*-aix* )
if test "x$GCC" != "xyes"; then if test "x$GCC" != "xyes"; then