Changeset 10207


Ignore:
Timestamp:
Mar 2, 2011, 10:26:30 AM (9 years ago)
Author:
tbretz
Message:
Updated
Location:
trunk/FACT++
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/Makefile.in

    r10201 r10207  
    5050subdir = .
    5151ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    52 am__aclocal_m4_deps = $(top_srcdir)/.macro_dir/libtool.m4 \
     52am__aclocal_m4_deps = $(top_srcdir)/.macro_dir/ac_find_motif.m4 \
     53        $(top_srcdir)/.macro_dir/libtool.m4 \
    5354        $(top_srcdir)/.macro_dir/ltoptions.m4 \
    5455        $(top_srcdir)/.macro_dir/ltsugar.m4 \
     
    137138        dim_v19r15/src/did/did-dui_util.$(OBJEXT)
    138139did_OBJECTS = $(am_did_OBJECTS)
    139 did_DEPENDENCIES = libDim.la
     140am__DEPENDENCIES_1 =
     141did_DEPENDENCIES = $(am__DEPENDENCIES_1) libDim.la
    140142am_dns_OBJECTS = dim_v19r15/src/dns.$(OBJEXT)
    141143dns_OBJECTS = $(am_dns_OBJECTS)
     
    304306LN_S = @LN_S@
    305307LTLIBOBJS = @LTLIBOBJS@
     308LT_HAVE_XP = @LT_HAVE_XP@
    306309MAKEINFO = @MAKEINFO@
    307310MKDIR_P = @MKDIR_P@
     311MOTIF_CFLAGS = @MOTIF_CFLAGS@
     312MOTIF_INCL = @MOTIF_INCL@
     313MOTIF_LDFLAGS = @MOTIF_LDFLAGS@
     314MOTIF_LIBS = @MOTIF_LIBS@
    308315MYSQLPP_INC_DIR = @MYSQLPP_INC_DIR@
    309316MYSQLPP_LIB_DIR = @MYSQLPP_LIB_DIR@
     
    334341STRIP = @STRIP@
    335342VERSION = @VERSION@
     343XMKMF = @XMKMF@
     344X_CFLAGS = @X_CFLAGS@
     345X_EXTRA_LIBS = @X_EXTRA_LIBS@
     346X_LIBS = @X_LIBS@
     347X_PRE_LIBS = @X_PRE_LIBS@
    336348abs_builddir = @abs_builddir@
    337349abs_srcdir = @abs_srcdir@
     
    418430AM_CPPFLAGS = \
    419431   -O3 -Wall -Winit-self -Wpointer-arith -Wcast-align -Wextra -Wformat=2 \
    420    -Idim_v19r15/dim $(DIM_FLAGS) $(PTHREAD_CFLAGS)
     432   -Idim_v19r15/dim $(DIM_FLAGS) $(PTHREAD_CFLAGS) $(MOTIF_CFLAGS)
    421433
    422434AM_CXXFLAGS = $(AM_CPPFLAGS) -Woverloaded-virtual -Wshadow -std=c++0x
     
    459471dns_SOURCES = dim_v19r15/src/dns.c
    460472#dns_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
    461 did_LDADD = -lXm libDim.la
    462 did_CPPFLAGS = $(AM_CPPFLAGS) -Idim_v19r15/src/did
     473did_LDADD = $(MOTIF_LDFLAGS) libDim.la
     474did_CPPFLAGS = $(AM_CPPFLAGS) $(MOTIF_INCL) -Idim_v19r15/src/did
    463475did_SOURCES = dim_v19r15/src/did/did.c dim_v19r15/src/did/dui_util.c
    464476
  • trunk/FACT++/configure

    r10202 r10207  
    761761MYSQL_C_LIB_DIR
    762762MYSQL_C_INC_DIR
     763MOTIF_LIBS
     764MOTIF_CFLAGS
     765MOTIF_INCL
     766MOTIF_LDFLAGS
     767LT_HAVE_XP
     768Have_Libxp_FALSE
     769Have_Libxp_TRUE
     770X_EXTRA_LIBS
     771X_LIBS
     772X_PRE_LIBS
     773X_CFLAGS
     774XMKMF
    763775PTHREAD_CFLAGS
    764776PTHREAD_LIBS
     
    946958enable_doxygen_ps
    947959enable_doxygen_pdf
     960with_x
     961with_motif_includes
     962with_motif_libraries
    948963with_mysql_include
    949964with_mysqlpp
     
    973988CPP
    974989CXXCPP
    975 DOXYGEN_PAPER_SIZE'
     990DOXYGEN_PAPER_SIZE
     991XMKMF'
    976992
    977993
     
    15781594  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
    15791595
     1596X features:
     1597  --x-includes=DIR    X include files are in DIR
     1598  --x-libraries=DIR   X library files are in DIR
     1599
    15801600System types:
    15811601  --build=BUILD     configure for building on BUILD [guessed]
     
    16211641                          both]
    16221642  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
     1643  --with-x                use the X Window System
     1644  --with-motif-includes=DIR    Motif include files are in DIR
     1645  --with-motif-libraries=DIR   Motif libraries are in DIR
    16231646  --with-mysql-include=<path> directory path of MySQL header installation
    16241647  --with-mysqlpp=<path>     path containing MySQL++ header and library subdirs
     
    16781701  DOXYGEN_PAPER_SIZE
    16791702              a4wide (default), a4, letter, legal or executive
     1703  XMKMF       Path to xmkmf, Makefile generator for X Window System
    16801704
    16811705Use these variables to override the choices made by `configure' or to help
     
    22322256
    22332257} # ac_fn_c_check_header_mongrel
     2258
     2259# ac_fn_cxx_check_func LINENO FUNC VAR
     2260# ------------------------------------
     2261# Tests whether FUNC exists, setting the cache variable VAR accordingly
     2262ac_fn_cxx_check_func ()
     2263{
     2264  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2266$as_echo_n "checking for $2... " >&6; }
     2267if eval "test \"\${$3+set}\"" = set; then :
     2268  $as_echo_n "(cached) " >&6
     2269else
     2270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2271/* end confdefs.h.  */
     2272/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
     2273   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     2274#define $2 innocuous_$2
     2275
     2276/* System header to define __stub macros and hopefully few prototypes,
     2277    which can conflict with char $2 (); below.
     2278    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2279    <limits.h> exists even on freestanding compilers.  */
     2280
     2281#ifdef __STDC__
     2282# include <limits.h>
     2283#else
     2284# include <assert.h>
     2285#endif
     2286
     2287#undef $2
     2288
     2289/* Override any GCC internal prototype to avoid an error.
     2290   Use char because int might match the return type of a GCC
     2291   builtin and then its argument prototype would still apply.  */
     2292#ifdef __cplusplus
     2293extern "C"
     2294#endif
     2295char $2 ();
     2296/* The GNU C library defines this for functions which it implements
     2297    to always fail with ENOSYS.  Some functions are actually named
     2298    something starting with __ and the normal name is an alias.  */
     2299#if defined __stub_$2 || defined __stub___$2
     2300choke me
     2301#endif
     2302
     2303int
     2304main ()
     2305{
     2306return $2 ();
     2307  ;
     2308  return 0;
     2309}
     2310_ACEOF
     2311if ac_fn_cxx_try_link "$LINENO"; then :
     2312  eval "$3=yes"
     2313else
     2314  eval "$3=no"
     2315fi
     2316rm -f core conftest.err conftest.$ac_objext \
     2317    conftest$ac_exeext conftest.$ac_ext
     2318fi
     2319eval ac_res=\$$3
     2320               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2321$as_echo "$ac_res" >&6; }
     2322  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     2323
     2324} # ac_fn_cxx_check_func
    22342325cat >config.log <<_ACEOF
    22352326This file contains any messages produced by compilers while
     
    41544245  lt_cv_nm_interface="BSD nm"
    41554246  echo "int some_variable = 0;" > conftest.$ac_ext
    4156   (eval echo "\"\$as_me:4156: $ac_compile\"" >&5)
     4247  (eval echo "\"\$as_me:4247: $ac_compile\"" >&5)
    41574248  (eval "$ac_compile" 2>conftest.err)
    41584249  cat conftest.err >&5
    4159   (eval echo "\"\$as_me:4159: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
     4250  (eval echo "\"\$as_me:4250: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
    41604251  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
    41614252  cat conftest.err >&5
    4162   (eval echo "\"\$as_me:4162: output\"" >&5)
     4253  (eval echo "\"\$as_me:4253: output\"" >&5)
    41634254  cat conftest.out >&5
    41644255  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
     
    53665457*-*-irix6*)
    53675458  # Find out which ABI we are using.
    5368   echo '#line 5368 "configure"' > conftest.$ac_ext
     5459  echo '#line 5459 "configure"' > conftest.$ac_ext
    53695460  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    53705461  (eval $ac_compile) 2>&5
     
    72947385   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    72957386   -e 's:$: $lt_compiler_flag:'`
    7296    (eval echo "\"\$as_me:7296: $lt_compile\"" >&5)
     7387   (eval echo "\"\$as_me:7387: $lt_compile\"" >&5)
    72977388   (eval "$lt_compile" 2>conftest.err)
    72987389   ac_status=$?
    72997390   cat conftest.err >&5
    7300    echo "$as_me:7300: \$? = $ac_status" >&5
     7391   echo "$as_me:7391: \$? = $ac_status" >&5
    73017392   if (exit $ac_status) && test -s "$ac_outfile"; then
    73027393     # The compiler can only warn and ignore the option if not recognized
     
    76337724   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    76347725   -e 's:$: $lt_compiler_flag:'`
    7635    (eval echo "\"\$as_me:7635: $lt_compile\"" >&5)
     7726   (eval echo "\"\$as_me:7726: $lt_compile\"" >&5)
    76367727   (eval "$lt_compile" 2>conftest.err)
    76377728   ac_status=$?
    76387729   cat conftest.err >&5
    7639    echo "$as_me:7639: \$? = $ac_status" >&5
     7730   echo "$as_me:7730: \$? = $ac_status" >&5
    76407731   if (exit $ac_status) && test -s "$ac_outfile"; then
    76417732     # The compiler can only warn and ignore the option if not recognized
     
    77387829   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    77397830   -e 's:$: $lt_compiler_flag:'`
    7740    (eval echo "\"\$as_me:7740: $lt_compile\"" >&5)
     7831   (eval echo "\"\$as_me:7831: $lt_compile\"" >&5)
    77417832   (eval "$lt_compile" 2>out/conftest.err)
    77427833   ac_status=$?
    77437834   cat out/conftest.err >&5
    7744    echo "$as_me:7744: \$? = $ac_status" >&5
     7835   echo "$as_me:7835: \$? = $ac_status" >&5
    77457836   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    77467837   then
     
    77937884   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    77947885   -e 's:$: $lt_compiler_flag:'`
    7795    (eval echo "\"\$as_me:7795: $lt_compile\"" >&5)
     7886   (eval echo "\"\$as_me:7886: $lt_compile\"" >&5)
    77967887   (eval "$lt_compile" 2>out/conftest.err)
    77977888   ac_status=$?
    77987889   cat out/conftest.err >&5
    7799    echo "$as_me:7799: \$? = $ac_status" >&5
     7890   echo "$as_me:7890: \$? = $ac_status" >&5
    78007891   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    78017892   then
     
    1017710268  lt_status=$lt_dlunknown
    1017810269  cat > conftest.$ac_ext <<_LT_EOF
    10179 #line 10179 "configure"
     10270#line 10270 "configure"
    1018010271#include "confdefs.h"
    1018110272
     
    1027310364  lt_status=$lt_dlunknown
    1027410365  cat > conftest.$ac_ext <<_LT_EOF
    10275 #line 10275 "configure"
     10366#line 10366 "configure"
    1027610367#include "confdefs.h"
    1027710368
     
    1222912320   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1223012321   -e 's:$: $lt_compiler_flag:'`
    12231    (eval echo "\"\$as_me:12231: $lt_compile\"" >&5)
     12322   (eval echo "\"\$as_me:12322: $lt_compile\"" >&5)
    1223212323   (eval "$lt_compile" 2>conftest.err)
    1223312324   ac_status=$?
    1223412325   cat conftest.err >&5
    12235    echo "$as_me:12235: \$? = $ac_status" >&5
     12326   echo "$as_me:12326: \$? = $ac_status" >&5
    1223612327   if (exit $ac_status) && test -s "$ac_outfile"; then
    1223712328     # The compiler can only warn and ignore the option if not recognized
     
    1232812419   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1232912420   -e 's:$: $lt_compiler_flag:'`
    12330    (eval echo "\"\$as_me:12330: $lt_compile\"" >&5)
     12421   (eval echo "\"\$as_me:12421: $lt_compile\"" >&5)
    1233112422   (eval "$lt_compile" 2>out/conftest.err)
    1233212423   ac_status=$?
    1233312424   cat out/conftest.err >&5
    12334    echo "$as_me:12334: \$? = $ac_status" >&5
     12425   echo "$as_me:12425: \$? = $ac_status" >&5
    1233512426   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1233612427   then
     
    1238012471   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1238112472   -e 's:$: $lt_compiler_flag:'`
    12382    (eval echo "\"\$as_me:12382: $lt_compile\"" >&5)
     12473   (eval echo "\"\$as_me:12473: $lt_compile\"" >&5)
    1238312474   (eval "$lt_compile" 2>out/conftest.err)
    1238412475   ac_status=$?
    1238512476   cat out/conftest.err >&5
    12386    echo "$as_me:12386: \$? = $ac_status" >&5
     12477   echo "$as_me:12477: \$? = $ac_status" >&5
    1238712478   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1238812479   then
     
    1676316854
    1676416855######################################################################
    16765 # Xm.h (lesstif/motif)
     16856# Xm.h (lesstif/motif, needed by did)
    1676616857######################################################################
    1676716858
    16768 ac_ext=c
    16769 ac_cpp='$CPP $CPPFLAGS'
    16770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    16771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    16772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    16773 
    16774 
    16775 for ac_header in Mrm/MrmAppl.h Xm/Xm.h
    16776 do :
    16777   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    16778 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
    16779 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    16780   cat >>confdefs.h <<_ACEOF
    16781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     16859
     16860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
     16861$as_echo_n "checking for X... " >&6; }
     16862
     16863
     16864# Check whether --with-x was given.
     16865if test "${with_x+set}" = set; then :
     16866  withval=$with_x;
     16867fi
     16868
     16869# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
     16870if test "x$with_x" = xno; then
     16871  # The user explicitly disabled X.
     16872  have_x=disabled
     16873else
     16874  case $x_includes,$x_libraries in #(
     16875    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
     16876    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
     16877  $as_echo_n "(cached) " >&6
     16878else
     16879  # One or both of the vars are not set, and there is no cached value.
     16880ac_x_includes=no ac_x_libraries=no
     16881rm -f -r conftest.dir
     16882if mkdir conftest.dir; then
     16883  cd conftest.dir
     16884  cat >Imakefile <<'_ACEOF'
     16885incroot:
     16886        @echo incroot='${INCROOT}'
     16887usrlibdir:
     16888        @echo usrlibdir='${USRLIBDIR}'
     16889libdir:
     16890        @echo libdir='${LIBDIR}'
    1678216891_ACEOF
    16783 
    16784 else
    16785 
    16786       echo "Error! Mrm/MrmAppl.h, Xm/Xm.h not properly installed, needed to compile did (you need most probably lesstif2-dev)."
    16787       exit -1
    16788 
    16789 
    16790 fi
    16791 
     16892  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
     16893    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     16894    for ac_var in incroot usrlibdir libdir; do
     16895      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
     16896    done
     16897    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
     16898    for ac_extension in a so sl dylib la dll; do
     16899      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
     16900         test -f "$ac_im_libdir/libX11.$ac_extension"; then
     16901        ac_im_usrlibdir=$ac_im_libdir; break
     16902      fi
     16903    done
     16904    # Screen out bogus values from the imake configuration.  They are
     16905    # bogus both because they are the default anyway, and because
     16906    # using them would break gcc on systems where it needs fixed includes.
     16907    case $ac_im_incroot in
     16908        /usr/include) ac_x_includes= ;;
     16909        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
     16910    esac
     16911    case $ac_im_usrlibdir in
     16912        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
     16913        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
     16914    esac
     16915  fi
     16916  cd ..
     16917  rm -f -r conftest.dir
     16918fi
     16919
     16920# Standard set of common directories for X headers.
     16921# Check X11 before X11Rn because it is often a symlink to the current release.
     16922ac_x_header_dirs='
     16923/usr/X11/include
     16924/usr/X11R7/include
     16925/usr/X11R6/include
     16926/usr/X11R5/include
     16927/usr/X11R4/include
     16928
     16929/usr/include/X11
     16930/usr/include/X11R7
     16931/usr/include/X11R6
     16932/usr/include/X11R5
     16933/usr/include/X11R4
     16934
     16935/usr/local/X11/include
     16936/usr/local/X11R7/include
     16937/usr/local/X11R6/include
     16938/usr/local/X11R5/include
     16939/usr/local/X11R4/include
     16940
     16941/usr/local/include/X11
     16942/usr/local/include/X11R7
     16943/usr/local/include/X11R6
     16944/usr/local/include/X11R5
     16945/usr/local/include/X11R4
     16946
     16947/usr/X386/include
     16948/usr/x386/include
     16949/usr/XFree86/include/X11
     16950
     16951/usr/include
     16952/usr/local/include
     16953/usr/unsupported/include
     16954/usr/athena/include
     16955/usr/local/x11r5/include
     16956/usr/lpp/Xamples/include
     16957
     16958/usr/openwin/include
     16959/usr/openwin/share/include'
     16960
     16961if test "$ac_x_includes" = no; then
     16962  # Guess where to find include files, by looking for Xlib.h.
     16963  # First, try using that file with no special directory specified.
     16964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16965/* end confdefs.h.  */
     16966#include <X11/Xlib.h>
     16967_ACEOF
     16968if ac_fn_cxx_try_cpp "$LINENO"; then :
     16969  # We can compile using X headers with no special include directory.
     16970ac_x_includes=
     16971else
     16972  for ac_dir in $ac_x_header_dirs; do
     16973  if test -r "$ac_dir/X11/Xlib.h"; then
     16974    ac_x_includes=$ac_dir
     16975    break
     16976  fi
    1679216977done
    16793 
    16794 
    16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtToolkitInitialize in -lXm" >&5
    16796 $as_echo_n "checking for XtToolkitInitialize in -lXm... " >&6; }
    16797 if test "${ac_cv_lib_Xm_XtToolkitInitialize+set}" = set; then :
    16798   $as_echo_n "(cached) " >&6
    16799 else
    16800   ac_check_lib_save_LIBS=$LIBS
    16801 LIBS="-lXm  $LIBS"
    16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16978fi
     16979rm -f conftest.err conftest.i conftest.$ac_ext
     16980fi # $ac_x_includes = no
     16981
     16982if test "$ac_x_libraries" = no; then
     16983  # Check for the libraries.
     16984  # See if we find them without any special options.
     16985  # Don't add to $LIBS permanently.
     16986  ac_save_LIBS=$LIBS
     16987  LIBS="-lX11 $LIBS"
     16988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16989/* end confdefs.h.  */
     16990#include <X11/Xlib.h>
     16991int
     16992main ()
     16993{
     16994XrmInitialize ()
     16995  ;
     16996  return 0;
     16997}
     16998_ACEOF
     16999if ac_fn_cxx_try_link "$LINENO"; then :
     17000  LIBS=$ac_save_LIBS
     17001# We can link X programs with no special library path.
     17002ac_x_libraries=
     17003else
     17004  LIBS=$ac_save_LIBS
     17005for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
     17006do
     17007  # Don't even attempt the hair of trying to link an X program!
     17008  for ac_extension in a so sl dylib la dll; do
     17009    if test -r "$ac_dir/libX11.$ac_extension"; then
     17010      ac_x_libraries=$ac_dir
     17011      break 2
     17012    fi
     17013  done
     17014done
     17015fi
     17016rm -f core conftest.err conftest.$ac_objext \
     17017    conftest$ac_exeext conftest.$ac_ext
     17018fi # $ac_x_libraries = no
     17019
     17020case $ac_x_includes,$ac_x_libraries in #(
     17021  no,* | *,no | *\'*)
     17022    # Didn't find X, or a directory has "'" in its name.
     17023    ac_cv_have_x="have_x=no";; #(
     17024  *)
     17025    # Record where we found X for the cache.
     17026    ac_cv_have_x="have_x=yes\
     17027        ac_x_includes='$ac_x_includes'\
     17028        ac_x_libraries='$ac_x_libraries'"
     17029esac
     17030fi
     17031;; #(
     17032    *) have_x=yes;;
     17033  esac
     17034  eval "$ac_cv_have_x"
     17035fi # $with_x != no
     17036
     17037if test "$have_x" != yes; then
     17038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
     17039$as_echo "$have_x" >&6; }
     17040  no_x=yes
     17041else
     17042  # If each of the values was on the command line, it overrides each guess.
     17043  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
     17044  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
     17045  # Update the cache value to reflect the command line values.
     17046  ac_cv_have_x="have_x=yes\
     17047        ac_x_includes='$x_includes'\
     17048        ac_x_libraries='$x_libraries'"
     17049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
     17050$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
     17051fi
     17052
     17053if test "$no_x" = yes; then
     17054  # Not all programs may use this symbol, but it does not hurt to define it.
     17055
     17056$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
     17057
     17058  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
     17059else
     17060  if test -n "$x_includes"; then
     17061    X_CFLAGS="$X_CFLAGS -I$x_includes"
     17062  fi
     17063
     17064  # It would also be nice to do this for all -L options, not just this one.
     17065  if test -n "$x_libraries"; then
     17066    X_LIBS="$X_LIBS -L$x_libraries"
     17067    # For Solaris; some versions of Sun CC require a space after -R and
     17068    # others require no space.  Words are not sufficient . . . .
     17069    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
     17070$as_echo_n "checking whether -R must be followed by a space... " >&6; }
     17071    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
     17072    ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
     17073    ac_cxx_werror_flag=yes
     17074    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17075/* end confdefs.h.  */
     17076
     17077int
     17078main ()
     17079{
     17080
     17081  ;
     17082  return 0;
     17083}
     17084_ACEOF
     17085if ac_fn_cxx_try_link "$LINENO"; then :
     17086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     17087$as_echo "no" >&6; }
     17088       X_LIBS="$X_LIBS -R$x_libraries"
     17089else
     17090  LIBS="$ac_xsave_LIBS -R $x_libraries"
     17091       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17092/* end confdefs.h.  */
     17093
     17094int
     17095main ()
     17096{
     17097
     17098  ;
     17099  return 0;
     17100}
     17101_ACEOF
     17102if ac_fn_cxx_try_link "$LINENO"; then :
     17103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     17104$as_echo "yes" >&6; }
     17105          X_LIBS="$X_LIBS -R $x_libraries"
     17106else
     17107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
     17108$as_echo "neither works" >&6; }
     17109fi
     17110rm -f core conftest.err conftest.$ac_objext \
     17111    conftest$ac_exeext conftest.$ac_ext
     17112fi
     17113rm -f core conftest.err conftest.$ac_objext \
     17114    conftest$ac_exeext conftest.$ac_ext
     17115    ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
     17116    LIBS=$ac_xsave_LIBS
     17117  fi
     17118
     17119  # Check for system-dependent libraries X programs must link with.
     17120  # Do this before checking for the system-independent R6 libraries
     17121  # (-lICE), since we may need -lsocket or whatever for X linking.
     17122
     17123  if test "$ISC" = yes; then
     17124    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
     17125  else
     17126    # Martyn Johnson says this is needed for Ultrix, if the X
     17127    # libraries were built with DECnet support.  And Karl Berry says
     17128    # the Alpha needs dnet_stub (dnet does not exist).
     17129    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
     17130    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1680317131/* end confdefs.h.  */
    1680417132
     
    1680917137extern "C"
    1681017138#endif
    16811 char XtToolkitInitialize ();
     17139char XOpenDisplay ();
    1681217140int
    1681317141main ()
    1681417142{
    16815 return XtToolkitInitialize ();
     17143return XOpenDisplay ();
    1681617144  ;
    1681717145  return 0;
    1681817146}
    1681917147_ACEOF
    16820 if ac_fn_c_try_link "$LINENO"; then :
    16821   ac_cv_lib_Xm_XtToolkitInitialize=yes
    16822 else
    16823   ac_cv_lib_Xm_XtToolkitInitialize=no
     17148if ac_fn_cxx_try_link "$LINENO"; then :
     17149
     17150else
     17151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
     17152$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
     17153if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
     17154  $as_echo_n "(cached) " >&6
     17155else
     17156  ac_check_lib_save_LIBS=$LIBS
     17157LIBS="-ldnet  $LIBS"
     17158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17159/* end confdefs.h.  */
     17160
     17161/* Override any GCC internal prototype to avoid an error.
     17162   Use char because int might match the return type of a GCC
     17163   builtin and then its argument prototype would still apply.  */
     17164#ifdef __cplusplus
     17165extern "C"
     17166#endif
     17167char dnet_ntoa ();
     17168int
     17169main ()
     17170{
     17171return dnet_ntoa ();
     17172  ;
     17173  return 0;
     17174}
     17175_ACEOF
     17176if ac_fn_cxx_try_link "$LINENO"; then :
     17177  ac_cv_lib_dnet_dnet_ntoa=yes
     17178else
     17179  ac_cv_lib_dnet_dnet_ntoa=no
    1682417180fi
    1682517181rm -f core conftest.err conftest.$ac_objext \
     
    1682717183LIBS=$ac_check_lib_save_LIBS
    1682817184fi
    16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_XtToolkitInitialize" >&5
    16830 $as_echo "$ac_cv_lib_Xm_XtToolkitInitialize" >&6; }
    16831 if test "x$ac_cv_lib_Xm_XtToolkitInitialize" = x""yes; then :
    16832   cat >>confdefs.h <<_ACEOF
    16833 #define HAVE_LIBXM 1
     17185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
     17186$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
     17187if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
     17188  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
     17189fi
     17190
     17191    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
     17192      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
     17193$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
     17194if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
     17195  $as_echo_n "(cached) " >&6
     17196else
     17197  ac_check_lib_save_LIBS=$LIBS
     17198LIBS="-ldnet_stub  $LIBS"
     17199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17200/* end confdefs.h.  */
     17201
     17202/* Override any GCC internal prototype to avoid an error.
     17203   Use char because int might match the return type of a GCC
     17204   builtin and then its argument prototype would still apply.  */
     17205#ifdef __cplusplus
     17206extern "C"
     17207#endif
     17208char dnet_ntoa ();
     17209int
     17210main ()
     17211{
     17212return dnet_ntoa ();
     17213  ;
     17214  return 0;
     17215}
    1683417216_ACEOF
    16835 
    16836   LIBS="-lXm $LIBS"
    16837 
    16838 else
    16839 
    16840       echo "Error! libXm (lesstif2) not properly installed in the default library path (needed by dim to link did)."
    16841       exit -1
    16842 
    16843 
    16844 fi
    16845 
    16846 
    16847 ac_ext=cpp
    16848 ac_cpp='$CXXCPP $CPPFLAGS'
    16849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    16850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    16851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     17217if ac_fn_cxx_try_link "$LINENO"; then :
     17218  ac_cv_lib_dnet_stub_dnet_ntoa=yes
     17219else
     17220  ac_cv_lib_dnet_stub_dnet_ntoa=no
     17221fi
     17222rm -f core conftest.err conftest.$ac_objext \
     17223    conftest$ac_exeext conftest.$ac_ext
     17224LIBS=$ac_check_lib_save_LIBS
     17225fi
     17226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
     17227$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
     17228if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
     17229  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
     17230fi
     17231
     17232    fi
     17233fi
     17234rm -f core conftest.err conftest.$ac_objext \
     17235    conftest$ac_exeext conftest.$ac_ext
     17236    LIBS="$ac_xsave_LIBS"
     17237
     17238    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
     17239    # to get the SysV transport functions.
     17240    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
     17241    # needs -lnsl.
     17242    # The nsl library prevents programs from opening the X display
     17243    # on Irix 5.2, according to T.E. Dickey.
     17244    # The functions gethostbyname, getservbyname, and inet_addr are
     17245    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
     17246    ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
     17247if test "x$ac_cv_func_gethostbyname" = x""yes; then :
     17248
     17249fi
     17250
     17251    if test $ac_cv_func_gethostbyname = no; then
     17252      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
     17253$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
     17254if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
     17255  $as_echo_n "(cached) " >&6
     17256else
     17257  ac_check_lib_save_LIBS=$LIBS
     17258LIBS="-lnsl  $LIBS"
     17259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17260/* end confdefs.h.  */
     17261
     17262/* Override any GCC internal prototype to avoid an error.
     17263   Use char because int might match the return type of a GCC
     17264   builtin and then its argument prototype would still apply.  */
     17265#ifdef __cplusplus
     17266extern "C"
     17267#endif
     17268char gethostbyname ();
     17269int
     17270main ()
     17271{
     17272return gethostbyname ();
     17273  ;
     17274  return 0;
     17275}
     17276_ACEOF
     17277if ac_fn_cxx_try_link "$LINENO"; then :
     17278  ac_cv_lib_nsl_gethostbyname=yes
     17279else
     17280  ac_cv_lib_nsl_gethostbyname=no
     17281fi
     17282rm -f core conftest.err conftest.$ac_objext \
     17283    conftest$ac_exeext conftest.$ac_ext
     17284LIBS=$ac_check_lib_save_LIBS
     17285fi
     17286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
     17287$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
     17288if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
     17289  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
     17290fi
     17291
     17292      if test $ac_cv_lib_nsl_gethostbyname = no; then
     17293        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
     17294$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
     17295if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
     17296  $as_echo_n "(cached) " >&6
     17297else
     17298  ac_check_lib_save_LIBS=$LIBS
     17299LIBS="-lbsd  $LIBS"
     17300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17301/* end confdefs.h.  */
     17302
     17303/* Override any GCC internal prototype to avoid an error.
     17304   Use char because int might match the return type of a GCC
     17305   builtin and then its argument prototype would still apply.  */
     17306#ifdef __cplusplus
     17307extern "C"
     17308#endif
     17309char gethostbyname ();
     17310int
     17311main ()
     17312{
     17313return gethostbyname ();
     17314  ;
     17315  return 0;
     17316}
     17317_ACEOF
     17318if ac_fn_cxx_try_link "$LINENO"; then :
     17319  ac_cv_lib_bsd_gethostbyname=yes
     17320else
     17321  ac_cv_lib_bsd_gethostbyname=no
     17322fi
     17323rm -f core conftest.err conftest.$ac_objext \
     17324    conftest$ac_exeext conftest.$ac_ext
     17325LIBS=$ac_check_lib_save_LIBS
     17326fi
     17327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
     17328$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
     17329if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
     17330  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
     17331fi
     17332
     17333      fi
     17334    fi
     17335
     17336    # lieder@skyler.mavd.honeywell.com says without -lsocket,
     17337    # socket/setsockopt and other routines are undefined under SCO ODT
     17338    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
     17339    # on later versions), says Simon Leinen: it contains gethostby*
     17340    # variants that don't use the name server (or something).  -lsocket
     17341    # must be given before -lnsl if both are needed.  We assume that
     17342    # if connect needs -lnsl, so does gethostbyname.
     17343    ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
     17344if test "x$ac_cv_func_connect" = x""yes; then :
     17345
     17346fi
     17347
     17348    if test $ac_cv_func_connect = no; then
     17349      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
     17350$as_echo_n "checking for connect in -lsocket... " >&6; }
     17351if test "${ac_cv_lib_socket_connect+set}" = set; then :
     17352  $as_echo_n "(cached) " >&6
     17353else
     17354  ac_check_lib_save_LIBS=$LIBS
     17355LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
     17356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17357/* end confdefs.h.  */
     17358
     17359/* Override any GCC internal prototype to avoid an error.
     17360   Use char because int might match the return type of a GCC
     17361   builtin and then its argument prototype would still apply.  */
     17362#ifdef __cplusplus
     17363extern "C"
     17364#endif
     17365char connect ();
     17366int
     17367main ()
     17368{
     17369return connect ();
     17370  ;
     17371  return 0;
     17372}
     17373_ACEOF
     17374if ac_fn_cxx_try_link "$LINENO"; then :
     17375  ac_cv_lib_socket_connect=yes
     17376else
     17377  ac_cv_lib_socket_connect=no
     17378fi
     17379rm -f core conftest.err conftest.$ac_objext \
     17380    conftest$ac_exeext conftest.$ac_ext
     17381LIBS=$ac_check_lib_save_LIBS
     17382fi
     17383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
     17384$as_echo "$ac_cv_lib_socket_connect" >&6; }
     17385if test "x$ac_cv_lib_socket_connect" = x""yes; then :
     17386  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
     17387fi
     17388
     17389    fi
     17390
     17391    # Guillermo Gomez says -lposix is necessary on A/UX.
     17392    ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
     17393if test "x$ac_cv_func_remove" = x""yes; then :
     17394
     17395fi
     17396
     17397    if test $ac_cv_func_remove = no; then
     17398      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
     17399$as_echo_n "checking for remove in -lposix... " >&6; }
     17400if test "${ac_cv_lib_posix_remove+set}" = set; then :
     17401  $as_echo_n "(cached) " >&6
     17402else
     17403  ac_check_lib_save_LIBS=$LIBS
     17404LIBS="-lposix  $LIBS"
     17405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17406/* end confdefs.h.  */
     17407
     17408/* Override any GCC internal prototype to avoid an error.
     17409   Use char because int might match the return type of a GCC
     17410   builtin and then its argument prototype would still apply.  */
     17411#ifdef __cplusplus
     17412extern "C"
     17413#endif
     17414char remove ();
     17415int
     17416main ()
     17417{
     17418return remove ();
     17419  ;
     17420  return 0;
     17421}
     17422_ACEOF
     17423if ac_fn_cxx_try_link "$LINENO"; then :
     17424  ac_cv_lib_posix_remove=yes
     17425else
     17426  ac_cv_lib_posix_remove=no
     17427fi
     17428rm -f core conftest.err conftest.$ac_objext \
     17429    conftest$ac_exeext conftest.$ac_ext
     17430LIBS=$ac_check_lib_save_LIBS
     17431fi
     17432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
     17433$as_echo "$ac_cv_lib_posix_remove" >&6; }
     17434if test "x$ac_cv_lib_posix_remove" = x""yes; then :
     17435  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
     17436fi
     17437
     17438    fi
     17439
     17440    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
     17441    ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
     17442if test "x$ac_cv_func_shmat" = x""yes; then :
     17443
     17444fi
     17445
     17446    if test $ac_cv_func_shmat = no; then
     17447      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
     17448$as_echo_n "checking for shmat in -lipc... " >&6; }
     17449if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
     17450  $as_echo_n "(cached) " >&6
     17451else
     17452  ac_check_lib_save_LIBS=$LIBS
     17453LIBS="-lipc  $LIBS"
     17454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17455/* end confdefs.h.  */
     17456
     17457/* Override any GCC internal prototype to avoid an error.
     17458   Use char because int might match the return type of a GCC
     17459   builtin and then its argument prototype would still apply.  */
     17460#ifdef __cplusplus
     17461extern "C"
     17462#endif
     17463char shmat ();
     17464int
     17465main ()
     17466{
     17467return shmat ();
     17468  ;
     17469  return 0;
     17470}
     17471_ACEOF
     17472if ac_fn_cxx_try_link "$LINENO"; then :
     17473  ac_cv_lib_ipc_shmat=yes
     17474else
     17475  ac_cv_lib_ipc_shmat=no
     17476fi
     17477rm -f core conftest.err conftest.$ac_objext \
     17478    conftest$ac_exeext conftest.$ac_ext
     17479LIBS=$ac_check_lib_save_LIBS
     17480fi
     17481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
     17482$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
     17483if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
     17484  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
     17485fi
     17486
     17487    fi
     17488  fi
     17489
     17490  # Check for libraries that X11R6 Xt/Xaw programs need.
     17491  ac_save_LDFLAGS=$LDFLAGS
     17492  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
     17493  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
     17494  # check for ICE first), but we must link in the order -lSM -lICE or
     17495  # we get undefined symbols.  So assume we have SM if we have ICE.
     17496  # These have to be linked with before -lX11, unlike the other
     17497  # libraries we check for below, so use a different variable.
     17498  # John Interrante, Karl Berry
     17499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
     17500$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
     17501if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
     17502  $as_echo_n "(cached) " >&6
     17503else
     17504  ac_check_lib_save_LIBS=$LIBS
     17505LIBS="-lICE $X_EXTRA_LIBS $LIBS"
     17506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17507/* end confdefs.h.  */
     17508
     17509/* Override any GCC internal prototype to avoid an error.
     17510   Use char because int might match the return type of a GCC
     17511   builtin and then its argument prototype would still apply.  */
     17512#ifdef __cplusplus
     17513extern "C"
     17514#endif
     17515char IceConnectionNumber ();
     17516int
     17517main ()
     17518{
     17519return IceConnectionNumber ();
     17520  ;
     17521  return 0;
     17522}
     17523_ACEOF
     17524if ac_fn_cxx_try_link "$LINENO"; then :
     17525  ac_cv_lib_ICE_IceConnectionNumber=yes
     17526else
     17527  ac_cv_lib_ICE_IceConnectionNumber=no
     17528fi
     17529rm -f core conftest.err conftest.$ac_objext \
     17530    conftest$ac_exeext conftest.$ac_ext
     17531LIBS=$ac_check_lib_save_LIBS
     17532fi
     17533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
     17534$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
     17535if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
     17536  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
     17537fi
     17538
     17539  LDFLAGS=$ac_save_LDFLAGS
     17540
     17541fi
     17542
     17543
     17544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libXp is available" >&5
     17545$as_echo_n "checking whether libXp is available... " >&6; }
     17546if test "${lt_cv_libxp+set}" = set; then :
     17547  $as_echo_n "(cached) " >&6
     17548else
     17549  lt_save_CFLAGS="$CFLAGS"
     17550lt_save_CPPFLAGS="$CPPFLAGS"
     17551lt_save_LIBS="$LIBS"
     17552LIBS="$X_LIBS -lXp -lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
     17553CFLAGS="$X_CFLAGS $CFLAGS"
     17554CPPFLAGS="$X_CFLAGS $CPPFLAGS"
     17555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17556/* end confdefs.h.  */
     17557
     17558#include <X11/Intrinsic.h>
     17559#include <X11/extensions/Print.h>
     17560
     17561int
     17562main ()
     17563{
     17564
     17565int main() {
     17566Display *display=NULL;
     17567short   major_version, minor_version;
     17568Status rc;
     17569rc=XpQueryVersion(display, &major_version, &minor_version);
     17570exit(0);
     17571}
     17572
     17573  ;
     17574  return 0;
     17575}
     17576_ACEOF
     17577if ac_fn_cxx_try_link "$LINENO"; then :
     17578  lt_cv_libxp=yes
     17579else
     17580  lt_cv_libxp=no
     17581fi
     17582rm -f core conftest.err conftest.$ac_objext \
     17583    conftest$ac_exeext conftest.$ac_ext
     17584
     17585fi
     17586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_libxp" >&5
     17587$as_echo "$lt_cv_libxp" >&6; }
     17588if test "$lt_cv_libxp" = "yes"; then
     17589# remove this until we find a use for it
     17590# a.lacey@man.ac.uk
     17591#  AC_DEFINE(HAVE_LIB_XP)
     17592  LT_HAVE_XP="yes"
     17593else
     17594  LT_HAVE_XP="no"
     17595fi
     17596 if test "$lt_cv_libxp" = "yes"; then
     17597  Have_Libxp_TRUE=
     17598  Have_Libxp_FALSE='#'
     17599else
     17600  Have_Libxp_TRUE='#'
     17601  Have_Libxp_FALSE=
     17602fi
     17603
     17604
     17605CFLAGS="$lt_save_CFLAGS"
     17606CPPFLAGS="$lt_save_CPPFLAGS"
     17607LIBS="$lt_save_LIBS"
     17608
     17609
     17610
     17611
     17612
     17613motif_includes=
     17614motif_libraries=
     17615
     17616
     17617
     17618# Check whether --with-motif-includes was given.
     17619if test "${with_motif_includes+set}" = set; then :
     17620  withval=$with_motif_includes; motif_includes="$withval"
     17621fi
     17622
     17623
     17624
     17625# Check whether --with-motif-libraries was given.
     17626if test "${with_motif_libraries+set}" = set; then :
     17627  withval=$with_motif_libraries; motif_libraries="$withval"
     17628fi
     17629
     17630
     17631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif" >&5
     17632$as_echo_n "checking for Motif... " >&6; }
     17633
     17634#
     17635#
     17636# Search the include files.
     17637#
     17638if test "$motif_includes" = ""; then
     17639if test "${ac_cv_motif_includes+set}" = set; then :
     17640  $as_echo_n "(cached) " >&6
     17641else
     17642
     17643ac_motif_save_LIBS="$LIBS"
     17644ac_motif_save_INCLUDES="$INCLUDES"
     17645ac_motif_save_CPPFLAGS="$CPPFLAGS"
     17646ac_motif_save_LDFLAGS="$LDFLAGS"
     17647#
     17648LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
     17649INCLUDES="$X_CFLAGS $INCLUDES"
     17650CPPFLAGS="$X_CFLAGS $CPPFLAGS"
     17651LDFLAGS="$X_LIBS $LDFLAGS"
     17652#
     17653ac_cv_motif_includes="none"
     17654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17655/* end confdefs.h.  */
     17656#include <Xm/Xm.h>
     17657int
     17658main ()
     17659{
     17660int a;
     17661  ;
     17662  return 0;
     17663}
     17664_ACEOF
     17665if ac_fn_cxx_try_compile "$LINENO"; then :
     17666
     17667# Xm/Xm.h is in the standard search path.
     17668ac_cv_motif_includes=
     17669
     17670else
     17671
     17672# Xm/Xm.h is not in the standard search path.
     17673# Locate it and put its directory in `motif_includes'
     17674#
     17675# /usr/include/Motif* are used on HP-UX (Motif).
     17676# /usr/include/X11* are used on HP-UX (X and Athena).
     17677# /usr/dt is used on Solaris (Motif).
     17678# /usr/openwin is used on Solaris (X and Athena).
     17679# /sw/include is used for fink under OSX
     17680# Other directories are just guesses.
     17681for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \
     17682           /usr/include/Motif2.1 /usr/include/Motif2.0 /usr/include/Motif1.2  \
     17683           /usr/include/X11 /usr/include/X11R6 /usr/include/X11R5 \
     17684           /usr/X11/include /usr/X11R6/include /usr/X11R5/include \
     17685           /usr/dt/include /usr/openwin/include \
     17686           /usr/dt/*/include /opt/*/include /usr/include/Motif* \
     17687           "${prefix}"/*/include /usr/*/include /usr/local/*/include \
     17688           "${prefix}"/include/* /usr/include/* /usr/local/include/* \
     17689           /sw/include; do
     17690if test -f "$dir/Xm/Xm.h"; then
     17691ac_cv_motif_includes="$dir"
     17692break
     17693fi
     17694done
     17695
     17696fi
     17697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     17698#
     17699LIBS="$ac_motif_save_LIBS"
     17700INCLUDES="$ac_motif_save_INCLUDES"
     17701CPPFLAGS="$ac_motif_save_CPPFLAGS"
     17702LDFLAGS="$ac_motif_save_LDFLAGS"
     17703
     17704fi
     17705
     17706motif_includes="$ac_cv_motif_includes"
     17707fi
     17708#
     17709#
     17710# Now for the libraries.
     17711#
     17712if test "$motif_libraries" = ""; then
     17713if test "${ac_cv_motif_libraries+set}" = set; then :
     17714  $as_echo_n "(cached) " >&6
     17715else
     17716
     17717ac_motif_save_LIBS="$LIBS"
     17718ac_motif_save_INCLUDES="$INCLUDES"
     17719ac_motif_save_CPPFLAGS="$CPPFLAGS"
     17720ac_motif_save_LDFLAGS="$LDFLAGS"
     17721#
     17722LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
     17723INCLUDES="$X_CFLAGS $INCLUDES"
     17724CPPFLAGS="$X_CFLAGS $CPPFLAGS"
     17725LDFLAGS="$X_LIBS $LDFLAGS"
     17726#
     17727ac_cv_motif_libraries="none"
     17728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17729/* end confdefs.h.  */
     17730#include <Xm/Xm.h>
     17731int
     17732main ()
     17733{
     17734XtToolkitInitialize();
     17735  ;
     17736  return 0;
     17737}
     17738_ACEOF
     17739if ac_fn_cxx_try_link "$LINENO"; then :
     17740
     17741# libXm.a is in the standard search path.
     17742ac_cv_motif_libraries=
     17743
     17744else
     17745
     17746# libXm.a is not in the standard search path.
     17747# Locate it and put its directory in `motif_libraries'
     17748#
     17749# /usr/lib/Motif* are used on HP-UX (Motif).
     17750# /usr/lib/X11* are used on HP-UX (X and Athena).
     17751# /usr/dt is used on Solaris (Motif).
     17752# /usr/lesstif is used on Linux (Lesstif).
     17753# /usr/openwin is used on Solaris (X and Athena).
     17754# /sw/lib is used under fink on OSX
     17755# Other directories are just guesses.
     17756for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \
     17757           /usr/lib/Motif2.1 /usr/lib/Motif2.0 /usr/lib/Motif1.2 \
     17758           /usr/lib/X11 /usr/lib/X11R6 /usr/lib/X11R5 \
     17759           /usr/X11/lib /usr/X11R6/lib /usr/X11R5/lib \
     17760           /usr/dt/lib /usr/openwin/lib \
     17761           /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \
     17762           /usr/lesstif*/lib /usr/lib/Lesstif* \
     17763           "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \
     17764           "${prefix}"/lib/* /usr/lib/* /usr/local/lib/* \
     17765           /sw/lib; do
     17766if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then
     17767ac_cv_motif_libraries="$dir"
     17768break
     17769fi
     17770done
     17771
     17772fi
     17773rm -f core conftest.err conftest.$ac_objext \
     17774    conftest$ac_exeext conftest.$ac_ext
     17775#
     17776LIBS="$ac_motif_save_LIBS"
     17777INCLUDES="$ac_motif_save_INCLUDES"
     17778CPPFLAGS="$ac_motif_save_CPPFLAGS"
     17779LDFLAGS="$ac_motif_save_LDFLAGS"
     17780
     17781fi
     17782
     17783#
     17784motif_libraries="$ac_cv_motif_libraries"
     17785fi
     17786#
     17787# Provide an easier way to link
     17788#
     17789if test "$motif_includes" = "none" -o "$motif_libraries" = "none"; then
     17790        with_motif="no"
     17791else
     17792        with_motif="yes"
     17793fi
     17794
     17795
     17796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libXp is available" >&5
     17797$as_echo_n "checking whether libXp is available... " >&6; }
     17798if test "${lt_cv_libxp+set}" = set; then :
     17799  $as_echo_n "(cached) " >&6
     17800else
     17801  lt_save_CFLAGS="$CFLAGS"
     17802lt_save_CPPFLAGS="$CPPFLAGS"
     17803lt_save_LIBS="$LIBS"
     17804LIBS="$X_LIBS -lXp -lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
     17805CFLAGS="$X_CFLAGS $CFLAGS"
     17806CPPFLAGS="$X_CFLAGS $CPPFLAGS"
     17807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17808/* end confdefs.h.  */
     17809
     17810#include <X11/Intrinsic.h>
     17811#include <X11/extensions/Print.h>
     17812
     17813int
     17814main ()
     17815{
     17816
     17817int main() {
     17818Display *display=NULL;
     17819short   major_version, minor_version;
     17820Status rc;
     17821rc=XpQueryVersion(display, &major_version, &minor_version);
     17822exit(0);
     17823}
     17824
     17825  ;
     17826  return 0;
     17827}
     17828_ACEOF
     17829if ac_fn_cxx_try_link "$LINENO"; then :
     17830  lt_cv_libxp=yes
     17831else
     17832  lt_cv_libxp=no
     17833fi
     17834rm -f core conftest.err conftest.$ac_objext \
     17835    conftest$ac_exeext conftest.$ac_ext
     17836
     17837fi
     17838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_libxp" >&5
     17839$as_echo "$lt_cv_libxp" >&6; }
     17840if test "$lt_cv_libxp" = "yes"; then
     17841# remove this until we find a use for it
     17842# a.lacey@man.ac.uk
     17843#  AC_DEFINE(HAVE_LIB_XP)
     17844  LT_HAVE_XP="yes"
     17845else
     17846  LT_HAVE_XP="no"
     17847fi
     17848 if test "$lt_cv_libxp" = "yes"; then
     17849  Have_Libxp_TRUE=
     17850  Have_Libxp_FALSE='#'
     17851else
     17852  Have_Libxp_TRUE='#'
     17853  Have_Libxp_FALSE=
     17854fi
     17855
     17856
     17857CFLAGS="$lt_save_CFLAGS"
     17858CPPFLAGS="$lt_save_CPPFLAGS"
     17859LIBS="$lt_save_LIBS"
     17860
     17861if test "$LT_HAVE_XP" = "yes"; then
     17862        XPLIB="-lXp -lXext"
     17863else
     17864        XPLIB=""
     17865fi
     17866
     17867if test "$with_motif" != "no"; then
     17868        if test "$motif_libraries" = ""; then
     17869                MOTIF_LDFLAGS="-lXm $XPLIB"
     17870                MOTIF_LIBS="-lXm $XPLIB"
     17871        else
     17872                MOTIF_LDFLAGS="-L$motif_libraries -lXm $XPLIB"
     17873                MOTIF_LIBS="-L$motif_libraries -lXm $XPLIB"
     17874        fi
     17875        if test "$motif_includes" != ""; then
     17876                MOTIF_INCL="-I$motif_includes"
     17877                MOTIF_CFLAGS="-I$motif_includes"
     17878        fi
     17879# remove this until we find a use for it
     17880# a.lacey@man.ac.uk
     17881#       AC_DEFINE(HAVE_MOTIF)
     17882else
     17883        with_motif="no"
     17884fi
     17885#
     17886
     17887
     17888
     17889
     17890#
     17891#
     17892#
     17893motif_libraries_result="$motif_libraries"
     17894motif_includes_result="$motif_includes"
     17895test "$motif_libraries_result" = "" && motif_libraries_result="in default path"
     17896test "$motif_includes_result" = "" && motif_includes_result="in default path"
     17897test "$motif_libraries_result" = "none" && motif_libraries_result="(none)"
     17898test "$motif_includes_result" = "none" && motif_includes_result="(none)"
     17899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $motif_libraries_result, headers $motif_includes_result" >&5
     17900$as_echo "libraries $motif_libraries_result, headers $motif_includes_result" >&6; }
    1685217901
    1685317902
     
    1917620225if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
    1917720226  as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
     20227Usually this means the macro was only invoked conditionally." "$LINENO" 5
     20228fi
     20229if test -z "${Have_Libxp_TRUE}" && test -z "${Have_Libxp_FALSE}"; then
     20230  as_fn_error $? "conditional \"Have_Libxp\" was never defined.
     20231Usually this means the macro was only invoked conditionally." "$LINENO" 5
     20232fi
     20233if test -z "${Have_Libxp_TRUE}" && test -z "${Have_Libxp_FALSE}"; then
     20234  as_fn_error $? "conditional \"Have_Libxp\" was never defined.
    1917820235Usually this means the macro was only invoked conditionally." "$LINENO" 5
    1917920236fi
Note: See TracChangeset for help on using the changeset viewer.