From f6c6dd8cb409c396783bd4d363130c975927c9a9 Mon Sep 17 00:00:00 2001 From: Robert Roebling <robert@roebling.de> Date: Fri, 4 Dec 1998 17:54:19 +0000 Subject: [PATCH] The final compile fixes for wxMotif with configure git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure | 52 ++++++++++++++++++++++++++++----------------------- configure.in | 16 +++++++++++----- src/motif.inc | 21 +++++++++++++++------ 3 files changed, 55 insertions(+), 34 deletions(-) diff --git a/configure b/configure index 5bc4473458..3e8dda3f35 100755 --- a/configure +++ b/configure @@ -4522,7 +4522,7 @@ touch ${OSTYPE}.system.cache.tmp touch ${OSTYPE}.system.cache -DEFAULT_wxUSE_GTK=1 +DEFAULT_wxUSE_GTK=0 DEFAULT_wxUSE_QT=0 DEFAULT_wxUSE_MOTIF=0 @@ -6407,10 +6407,11 @@ for ac_dir in $SEARCH_LIB; else { echo "configure: error: no" 1>&2; exit 1; } fi - GUI_TK_LINK="-lXt -lXmu -lXpm -lX11 -lXm -lm" + + GUI_TK_LINK="-lXm -lXmu -lXt -lXpm -lX11 -lm" GUI_TK_LINK="$CHECK_LINK $GUI_TK_LINK" TOOLKIT=MOTIF - TOOLKIT_DEF=__WXMOTIF__ + TOOLKIT_DEF="__WXMOTIF__ -D__LINUX__ -D__UNIX__" WX_LINK=-lwx_motif MAKEINCLUDE=../motif.inc fi @@ -6433,7 +6434,8 @@ fi WXDEBUG= if test "$wxUSE_DEBUG_INFO" = 1 ; then - WXDEBUG="-g -O0" + WXDEBUG="-ggdb" + wxUSE_OPTIMISE=0 fi @@ -6812,7 +6814,7 @@ fi echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6 -echo "configure:6816: checking for main in -ldl" >&5 +echo "configure:6818: checking for main in -ldl" >&5 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6820,14 +6822,14 @@ else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <<EOF -#line 6824 "configure" +#line 6826 "configure" #include "confdefs.h" int main() { main() ; return 0; } EOF -if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:6833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6857,7 +6859,7 @@ UNIX_THREAD="gtk/threadno.cpp" echo $ac_n "checking "for threads"""... $ac_c" 1>&6 -echo "configure:6861: checking "for threads"" >&5 +echo "configure:6863: checking "for threads"" >&5 # Check whether --with-threads or --without-threads was given. if test "${with_threads+set}" = set; then withval="$with_threads" @@ -6891,7 +6893,7 @@ if test "$wxUSE_THREADS" = "1"; then echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6 -echo "configure:6895: checking for pthread_create in -lpthread-0.7" >&5 +echo "configure:6897: checking for pthread_create in -lpthread-0.7" >&5 ac_lib_var=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6899,7 +6901,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lpthread-0.7 $LIBS" cat > conftest.$ac_ext <<EOF -#line 6903 "configure" +#line 6905 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -6910,7 +6912,7 @@ int main() { pthread_create() ; return 0; } EOF -if { (eval echo configure:6914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6934,17 +6936,17 @@ else ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 -echo "configure:6938: checking for sys/prctl.h" >&5 +echo "configure:6940: checking for sys/prctl.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 6943 "configure" +#line 6945 "configure" #include "confdefs.h" #include <sys/prctl.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -6970,7 +6972,7 @@ fi echo $ac_n "checking for pthread_setcanceltype in -lpthread""... $ac_c" 1>&6 -echo "configure:6974: checking for pthread_setcanceltype in -lpthread" >&5 +echo "configure:6976: checking for pthread_setcanceltype in -lpthread" >&5 ac_lib_var=`echo pthread'_'pthread_setcanceltype | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6978,7 +6980,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lpthread $LIBS" cat > conftest.$ac_ext <<EOF -#line 6982 "configure" +#line 6984 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -6989,7 +6991,7 @@ int main() { pthread_setcanceltype() ; return 0; } EOF -if { (eval echo configure:6993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:6995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7016,7 +7018,7 @@ fi fi echo $ac_n "checking for pthread_setcanceltype in -lpthreads""... $ac_c" 1>&6 -echo "configure:7020: checking for pthread_setcanceltype in -lpthreads" >&5 +echo "configure:7022: checking for pthread_setcanceltype in -lpthreads" >&5 ac_lib_var=`echo pthreads'_'pthread_setcanceltype | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7024,7 +7026,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lpthreads $LIBS" cat > conftest.$ac_ext <<EOF -#line 7028 "configure" +#line 7030 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -7035,7 +7037,7 @@ int main() { pthread_setcanceltype() ; return 0; } EOF -if { (eval echo configure:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7083,7 +7085,7 @@ OPENGL_LINK= if test "$wxUSE_OPENGL" = 1; then echo $ac_n "checking for OpenGL includes""... $ac_c" 1>&6 -echo "configure:7087: checking for OpenGL includes" >&5 +echo "configure:7089: checking for OpenGL includes" >&5 ac_find_includes= for ac_dir in $SEARCH_INCLUDE; @@ -7098,7 +7100,7 @@ for ac_dir in $SEARCH_INCLUDE; OPENGL_INCLUDE="-I$ac_find_includes" echo "$ac_t""found $ac_find_includes" 1>&6 echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6 -echo "configure:7102: checking for OpenGL library" >&5 +echo "configure:7104: checking for OpenGL library" >&5 ac_find_libraries= for ac_dir in $SEARCH_LIB; @@ -7325,7 +7327,11 @@ if test "x$GCC" = xyes; then fi if test "x$GXX" = xyes; then - CXXFLAGS="${CXXFLAGS} -Wall" + if test "$wxUSE_MOTIF" = 1; then + CXXFLAGS="${CXXFLAGS} -Wall -Wno-unused" + else + CXXFLAGS="${CXXFLAGS} -Wall" + fi fi if test "$wxUSE_SHARED" != 1; then diff --git a/configure.in b/configure.in index 1969a7a141..550462d43b 100644 --- a/configure.in +++ b/configure.in @@ -671,7 +671,7 @@ dnl ------------------------------------------------------------------------ AC_OVERRIDES_PREPARE -DEFAULT_wxUSE_GTK=1 +DEFAULT_wxUSE_GTK=0 DEFAULT_wxUSE_QT=0 DEFAULT_wxUSE_MOTIF=0 @@ -1088,10 +1088,11 @@ if test "$wxUSE_MOTIF" = 1; then else AC_MSG_ERROR(no) fi - GUI_TK_LINK="-lXt -lXmu -lXpm -lX11 -lXm -lm" + + GUI_TK_LINK="-lXm -lXmu -lXt -lXpm -lX11 -lm" GUI_TK_LINK="$CHECK_LINK $GUI_TK_LINK" TOOLKIT=MOTIF - TOOLKIT_DEF=__WXMOTIF__ + TOOLKIT_DEF="__WXMOTIF__ -D__LINUX__ -D__UNIX__" WX_LINK=-lwx_motif MAKEINCLUDE=../motif.inc fi @@ -1117,7 +1118,8 @@ dnl ---------------------------------------------------------------- WXDEBUG= if test "$wxUSE_DEBUG_INFO" = 1 ; then - WXDEBUG="-g -O0" + WXDEBUG="-ggdb" + wxUSE_OPTIMISE=0 fi AC_SUBST(WXDEBUG) @@ -1621,7 +1623,11 @@ if test "x$GCC" = xyes; then fi if test "x$GXX" = xyes; then - CXXFLAGS="${CXXFLAGS} -Wall" + if test "$wxUSE_MOTIF" = 1; then + CXXFLAGS="${CXXFLAGS} -Wall -Wno-unused" + else + CXXFLAGS="${CXXFLAGS} -Wall" + fi fi if test "$wxUSE_SHARED" != 1; then diff --git a/src/motif.inc b/src/motif.inc index 6eecd2425a..512418c8fd 100644 --- a/src/motif.inc +++ b/src/motif.inc @@ -25,7 +25,6 @@ LIB_CPP_SRC=\ common/hash.cpp \ common/helpbase.cpp \ common/intl.cpp \ - common/image.cpp \ common/ipcbase.cpp \ common/layout.cpp \ common/list.cpp \ @@ -39,8 +38,9 @@ LIB_CPP_SRC=\ common/resource.cpp \ common/serbase.cpp \ common/string.cpp \ - common/tbarbase.cpp \ common/textfile.cpp \ + common/tbarbase.cpp \ + common/tbarsmpl.cpp \ common/time.cpp \ common/timercmn.cpp \ common/utilscmn.cpp \ @@ -74,8 +74,9 @@ LIB_CPP_SRC=\ motif/button.cpp \ motif/checkbox.cpp \ motif/choice.cpp \ - motif/colordlg.cpp \ + motif/clipbrd.cpp \ motif/colour.cpp \ + motif/colordlg.cpp \ motif/control.cpp \ motif/combobox.cpp \ motif/cursor.cpp \ @@ -85,39 +86,47 @@ LIB_CPP_SRC=\ motif/dcmemory.cpp \ motif/dcscreen.cpp \ motif/dialog.cpp \ + motif/dirdlg.cpp \ + motif/dnd.cpp \ motif/filedlg.cpp \ motif/font.cpp \ motif/fontdlg.cpp \ motif/frame.cpp \ motif/gauge.cpp \ motif/gdiobj.cpp \ + motif/helpxxxx.cpp \ motif/icon.cpp \ motif/listbox.cpp \ + motif/joystick.cpp \ motif/main.cpp \ motif/mdi.cpp \ motif/menu.cpp \ motif/menuitem.cpp \ + motif/metafile.cpp \ + motif/minifram.cpp \ motif/msgdlg.cpp \ motif/notebook.cpp \ motif/palette.cpp \ motif/pen.cpp \ motif/print.cpp \ - motif/printdlg.cpp \ motif/radiobox.cpp \ motif/radiobut.cpp \ motif/region.cpp \ motif/scrolbar.cpp \ motif/settings.cpp \ - motif/spinbutt.cpp \ motif/slider.cpp \ + motif/spinbutt.cpp \ motif/statbox.cpp \ motif/statbmp.cpp \ motif/stattext.cpp \ - motif/toolbar.cpp \ + motif/taskbar.cpp \ motif/textctrl.cpp \ + motif/thread.cpp \ motif/timer.cpp \ + motif/toolbar.cpp \ motif/utils.cpp \ motif/utilsexc.cpp \ + motif/wave.cpp \ motif/window.cpp \ \ generic/choicdgg.cpp \ -- 2.47.2