comparison configure.ac @ 3019:e4c2385012ba

[xemacs-hg @ 2005-10-24 21:01:02 by malcolmp] configure.ac: Fix broken complex arg support. Prefer Xaw to Motif on linux, Mac and BSD.
author malcolmp
date Mon, 24 Oct 2005 21:01:08 +0000
parents fcf2f05d0c7a
children 67b6f3514ffc
comparison
equal deleted inserted replaced
3018:31e656a27dae 3019:e4c2385012ba
206 dnl Add all directories with .so files to runpath 206 dnl Add all directories with .so files to runpath
207 for arg in $ld_switch_site $ld_switch_x_site; do 207 for arg in $ld_switch_site $ld_switch_x_site; do
208 case "$arg" in -L*) XE_ADD_RUNPATH_DIR(`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`);; esac 208 case "$arg" in -L*) XE_ADD_RUNPATH_DIR(`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`);; esac
209 done 209 done
210 dnl Sometimes /opt/SUNWdt/lib is the only installed Motif available 210 dnl Sometimes /opt/SUNWdt/lib is the only installed Motif available
211 dnl #### this test always fails here as need_motif is null
211 if test "$opsys $need_motif" = "sol2 yes"; then 212 if test "$opsys $need_motif" = "sol2 yes"; then
212 xe_runpath_dir="/opt/SUNWdt/lib"; 213 xe_runpath_dir="/opt/SUNWdt/lib";
213 eval "$xe_add_unique_runpath_dir"; 214 eval "$xe_add_unique_runpath_dir";
214 fi 215 fi
215 fi dnl Compute $runpath 216 fi dnl Compute $runpath
247 --disable-FEATURE alias for --without-FEATURE]])dnl 248 --disable-FEATURE alias for --without-FEATURE]])dnl
248 m4_divert_once([HELP_ENABLE], m4_bpatsubst([[$2]],[--enable\([^ ]+\) ],[--with\1 ]))dnl 249 m4_divert_once([HELP_ENABLE], m4_bpatsubst([[$2]],[--enable\([^ ]+\) ],[--with\1 ]))dnl
249 # If --with-$1 or --without-$1 were given then copy the value to the 250 # If --with-$1 or --without-$1 were given then copy the value to the
250 # equivalent enable_$1 variable. 251 # equivalent enable_$1 variable.
251 if test "[${with_]m4_bpatsubst([$1], -, _)+set}" = set; then 252 if test "[${with_]m4_bpatsubst([$1], -, _)+set}" = set; then
252 echo $1 Setting enable to "[$with_]m4_bpatsubst([$1], -, _)"
253 [enable_]m4_bpatsubst([$1], -, _)="[$with_]m4_bpatsubst([$1], -, _)" 253 [enable_]m4_bpatsubst([$1], -, _)="[$with_]m4_bpatsubst([$1], -, _)"
254 fi; 254 fi;
255 # If -enable-$1 or --disable-$1 were given then copy the value to the 255 # If -enable-$1 or --disable-$1 were given then copy the value to the
256 # equivalent with_$1 variable. 256 # equivalent with_$1 variable.
257 if test "[${enable_]m4_bpatsubst([$1], -, _)+set}" = set; then 257 if test "[${enable_]m4_bpatsubst([$1], -, _)+set}" = set; then
258 echo $1 Setting with to "[$enable_]m4_bpatsubst([$1], -, _)"
259 [with_]m4_bpatsubst([$1], -, _)="[$enable_]m4_bpatsubst([$1], -, _)" 258 [with_]m4_bpatsubst([$1], -, _)="[$enable_]m4_bpatsubst([$1], -, _)"
260 fi; 259 fi;
261 # Check whether --with-$1 or --without-$1 was given. 260 # Check whether --with-$1 or --without-$1 was given.
262 if test "[${with_]m4_bpatsubst([$1], -, _)+set}" = set; then 261 if test "[${with_]m4_bpatsubst([$1], -, _)+set}" = set; then
263 enableval="[$with_]m4_bpatsubst([$1], -, _)" 262 enableval="[$with_]m4_bpatsubst([$1], -, _)"
426 $_[$1]_types. With prefix \"no\", switch it off. 425 $_[$1]_types. With prefix \"no\", switch it off.
427 Defaults may be overridden with \`all' or \`none' first in the list. 426 Defaults may be overridden with \`all' or \`none' first in the list.
428 Hardcoded default is: $_[$1]_default."]) 427 Hardcoded default is: $_[$1]_default."])
429 elif test -n "$_[$1]_all_default" ; then 428 elif test -n "$_[$1]_all_default" ; then
430 for y in $_[$1]_types; do 429 for y in $_[$1]_types; do
431 eval "[$1]_$y=$_[$1]_all_default" 430 eval "with_[$1]_$y=$_[$1]_all_default"
431 eval "enable_[$1]_$y=$_[$1]_all_default"
432 done 432 done
433 fi 433 fi
434 _[$1]_notfirst=yes 434 _[$1]_notfirst=yes
435 done 435 done
436 unset _[$1]_bogus _[$1]_found _[$1]_notfirst _[$1]_types 436 unset _[$1]_bogus _[$1]_found _[$1]_notfirst _[$1]_types
3923 3923
3924 if test "$with_x11" = "yes"; then 3924 if test "$with_x11" = "yes"; then
3925 AC_CHECKING([for X11 graphics libraries]) 3925 AC_CHECKING([for X11 graphics libraries])
3926 fi 3926 fi
3927 3927
3928 dnl We don't automatically trigger widgets if athena is present
3929 dnl because of stability concerns.
3930 dnl But if the user wants widgets, still offer him autodetections
3931 case "$enable_widgets" in 3928 case "$enable_widgets" in
3932 "yes" | "athena") detect_athena=yes ;; 3929 "" | "yes" | "athena") detect_athena=yes ;;
3933 *) detect_athena=no ;; 3930 *) detect_athena=no ;;
3931 esac
3932
3933 case "$enable_dialogs" in
3934 "" | "yes" | "athena") detect_athena=yes ;;
3934 esac 3935 esac
3935 3936
3936 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then 3937 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
3937 AC_CHECKING([for the Athena widgets]) 3938 AC_CHECKING([for the Athena widgets])
3938 3939
4083 4084
4084 fi dnl "$with_x11" = "yes" 4085 fi dnl "$with_x11" = "yes"
4085 4086
4086 dnl Finish ensuring that we have values for the various toolkit items. 4087 dnl Finish ensuring that we have values for the various toolkit items.
4087 dnl Not all toolkits support all widgets 4088 dnl Not all toolkits support all widgets
4088 dnl if Motif is available we use it for the dialog boxes. 4089
4090 dnl Avoid using Motif :-(
4091 case "$opsys" in
4092 *linux* | *darwin* | *bsd* ) lucid_prefers_motif="no" ;;
4093 * ) lucid_prefers_motif="yes" ;;
4094 esac
4089 4095
4090 case "$enable_menubars" in "" | "yes" | "athena" ) 4096 case "$enable_menubars" in "" | "yes" | "athena" )
4091 enable_menubars="lucid" ;; 4097 enable_menubars="lucid" ;;
4092 esac 4098 esac
4093 case "$enable_dialogs" in "" | "yes" | "lucid" ) 4099 case "$enable_dialogs" in "" | "yes" | "lucid" )
4094 if test "$have_motif" = "yes"; then enable_dialogs="motif" 4100 if test "$lucid_prefers_motif" = "yes"; then
4095 elif test "$have_xaw" = "yes"; then enable_dialogs="athena" 4101 if test "$have_motif" = "yes"; then enable_dialogs="motif"
4096 elif test "$with_msw" = "yes"; then enable_dialogs="msw" 4102 elif test "$have_xaw" = "yes"; then enable_dialogs="athena"
4097 else enable_dialogs=no 4103 elif test "$with_msw" = "yes"; then enable_dialogs="msw"
4104 else enable_dialogs=no
4105 fi
4106 else
4107 if test "$have_xaw" = "yes"; then enable_dialogs="athena"
4108 elif test "$have_motif" = "yes"; then enable_dialogs="motif"
4109 elif test "$with_msw" = "yes"; then enable_dialogs="msw"
4110 else enable_dialogs=no
4111 fi
4098 fi ;; 4112 fi ;;
4099 esac 4113 esac
4100 case "$enable_scrollbars" in "" | "yes" ) 4114 case "$enable_scrollbars" in "" | "yes" )
4101 enable_scrollbars="lucid" ;; 4115 enable_scrollbars="lucid" ;;
4102 esac 4116 esac
4103 case "$enable_widgets" in "" | "yes" | "lucid") 4117 case "$enable_widgets" in "" | "yes" | "lucid")
4104 if test "$have_motif" = "yes"; then enable_widgets="motif" 4118 if test "$lucid_prefers_motif" = "yes"; then
4105 elif test "$have_xaw" = "yes"; then enable_widgets="athena" 4119 if test "$have_motif" = "yes"; then enable_widgets="motif"
4106 elif test "$with_msw" = "yes"; then enable_widgets="msw" 4120 elif test "$have_xaw" = "yes"; then enable_widgets="athena"
4107 else enable_widgets=no 4121 elif test "$with_msw" = "yes"; then enable_widgets="msw"
4122 else enable_widgets=no
4123 fi
4124 else
4125 if test "$have_xaw" = "yes"; then enable_widgets="athena"
4126 elif test "$have_motif" = "yes"; then enable_widgets="motif"
4127 elif test "$with_msw" = "yes"; then enable_widgets="msw"
4128 else enable_widgets=no
4129 fi
4108 fi ;; 4130 fi ;;
4109 esac 4131 esac
4110 4132
4111 all_widgets="$enable_menubars $enable_scrollbars $enable_dialogs $enable_toolbars $enable_widgets" 4133 all_widgets="$enable_menubars $enable_scrollbars $enable_dialogs $enable_toolbars $enable_widgets"
4112 4134
4230 dnl test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no 4252 dnl test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
4231 case "$with_xim" in "" | "yes" ) 4253 case "$with_xim" in "" | "yes" )
4232 AC_CHECKING([for XIM]) 4254 AC_CHECKING([for XIM])
4233 AC_CHECK_LIB(X11, XOpenIM, with_xim=xlib, with_xim=no) 4255 AC_CHECK_LIB(X11, XOpenIM, with_xim=xlib, with_xim=no)
4234 dnl XIM + Lesstif is not (yet?) usable 4256 dnl XIM + Lesstif is not (yet?) usable
4235 if test "$have_motif $have_lesstif" = "yes no"; then 4257 dnl Only use Motif if linking Motif anyway, or don't have xlib XIM
4258 if test "$need_motif $have_lesstif" = "yes no"; then
4259 AC_CHECK_LIB(Xm, XmImMbLookupString, with_xim=motif)
4260 elif test "$have_motif $have_lesstif $with_xim" = "yes no no"; then
4236 AC_CHECK_LIB(Xm, XmImMbLookupString, with_xim=motif) 4261 AC_CHECK_LIB(Xm, XmImMbLookupString, with_xim=motif)
4237 fi ;; 4262 fi ;;
4238 esac 4263 esac
4239 if test "$with_xim" != "no"; then 4264 if test "$with_xim" != "no"; then
4240 AC_DEFINE(HAVE_XIM) 4265 AC_DEFINE(HAVE_XIM)
5620 fi 5645 fi
5621 if test "$with_wmcommand" != no; then 5646 if test "$with_wmcommand" != no; then
5622 echo " - Handling WM_COMMAND properly." 5647 echo " - Handling WM_COMMAND properly."
5623 fi 5648 fi
5624 fi 5649 fi
5650 if test "$need_motif" = "yes" ; then
5651 echo " Compiling in support for Motif."
5652 if test "$have_lesstif" = "yes"; then
5653 echo " - Using LessTif implementation."
5654 fi
5655 echo " *WARNING* Many versions of Motif are buggy, requiring workarounds."
5656 echo " You are likely to experience slow redisplay."
5657 echo " You may need to install vendor patches to Motif."
5658 echo " See PROBLEMS for more information."
5659 fi
5625 if test "$need_athena" = "yes"; then 5660 if test "$need_athena" = "yes"; then
5626 echo " Compiling in support for the Athena widget set:" 5661 echo " Compiling in support for the Athena widget set:"
5627 echo " - Athena headers location: $athena_h_path" 5662 echo " - Athena headers location: $athena_h_path"
5628 echo " - Athena library to link: $athena_lib" 5663 echo " - Athena library to link: $athena_lib"
5629 fi 5664 fi