Switch to unified view

a/src/configure b/src/configure
...
...
270
PACKAGE_VERSION='1.6'
270
PACKAGE_VERSION='1.6'
271
PACKAGE_STRING='Recoll 1.6'
271
PACKAGE_STRING='Recoll 1.6'
272
PACKAGE_BUGREPORT=''
272
PACKAGE_BUGREPORT=''
273
273
274
ac_unique_file="index/recollindex.cpp"
274
ac_unique_file="index/recollindex.cpp"
275
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS aspellProg CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT XAPIAN_CONFIG QMAKE INCICONV LIBICONV LIBXAPIAN LIBFAM QTGUI QTRECOLL_DATADIR XAPIANCXXFLAGS LIBOBJS LTLIBOBJS'
275
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS aspellProg CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT XAPIAN_CONFIG QMAKE CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS INCICONV LIBICONV LIBXAPIAN LIBFAM QTGUI QTRECOLL_DATADIR XAPIANCXXFLAGS LIBOBJS LTLIBOBJS'
276
ac_subst_files=''
276
ac_subst_files=''
277
277
278
# Initialize some variables set by options.
278
# Initialize some variables set by options.
279
ac_init_help=
279
ac_init_help=
280
ac_init_version=false
280
ac_init_version=false
...
...
727
ac_cv_env_LDFLAGS_value=$LDFLAGS
727
ac_cv_env_LDFLAGS_value=$LDFLAGS
728
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
728
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729
ac_env_CPPFLAGS_value=$CPPFLAGS
729
ac_env_CPPFLAGS_value=$CPPFLAGS
730
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
730
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
731
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732
ac_env_CPP_set=${CPP+set}
733
ac_env_CPP_value=$CPP
734
ac_cv_env_CPP_set=${CPP+set}
735
ac_cv_env_CPP_value=$CPP
732
736
733
#
737
#
734
# Report the --help message.
738
# Report the --help message.
735
#
739
#
736
if test "$ac_init_help" = "long"; then
740
if test "$ac_init_help" = "long"; then
...
...
787
  --infodir=DIR          info documentation [PREFIX/info]
791
  --infodir=DIR          info documentation [PREFIX/info]
788
  --mandir=DIR           man documentation [PREFIX/man]
792
  --mandir=DIR           man documentation [PREFIX/man]
789
_ACEOF
793
_ACEOF
790
794
791
  cat <<\_ACEOF
795
  cat <<\_ACEOF
796
797
X features:
798
  --x-includes=DIR    X include files are in DIR
799
  --x-libraries=DIR   X library files are in DIR
792
_ACEOF
800
_ACEOF
793
fi
801
fi
794
802
795
if test -n "$ac_init_help"; then
803
if test -n "$ac_init_help"; then
796
  case $ac_init_help in
804
  case $ac_init_help in
...
...
812
                          indexing of modified files. Give the fam/gamin
820
                          indexing of modified files. Give the fam/gamin
813
                          library as argument (ie: /usr/lib/libfam.so) if
821
                          library as argument (ie: /usr/lib/libfam.so) if
814
                          configure does not find the right one.
822
                          configure does not find the right one.
815
  --with-inotify          Use inotify for almost real time indexing of
823
  --with-inotify          Use inotify for almost real time indexing of
816
                          modified files.
824
                          modified files.
825
  --with-x                use the X Window System
817
826
818
Some influential environment variables:
827
Some influential environment variables:
819
  CC          C compiler command
828
  CC          C compiler command
820
  CFLAGS      C compiler flags
829
  CFLAGS      C compiler flags
821
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
830
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
822
              nonstandard directory <lib dir>
831
              nonstandard directory <lib dir>
823
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
832
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
824
              headers in a nonstandard directory <include dir>
833
              headers in a nonstandard directory <include dir>
834
  CPP         C preprocessor
825
835
826
Use these variables to override the choices made by `configure' or to help
836
Use these variables to override the choices made by `configure' or to help
827
it to find libraries and programs with nonstandard names/locations.
837
it to find libraries and programs with nonstandard names/locations.
828
838
829
_ACEOF
839
_ACEOF
...
...
2822
fi
2832
fi
2823
cd ..
2833
cd ..
2824
2834
2825
##################### End QT detection
2835
##################### End QT detection
2826
2836
2837
### X11: this is needed for the session monitoring code (in recollindex -m)
2838
ac_ext=c
2839
ac_cpp='$CPP $CPPFLAGS'
2840
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2844
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2845
# On Suns, sometimes $CPP names a directory.
2846
if test -n "$CPP" && test -d "$CPP"; then
2847
  CPP=
2848
fi
2849
if test -z "$CPP"; then
2850
  if test "${ac_cv_prog_CPP+set}" = set; then
2851
  echo $ECHO_N "(cached) $ECHO_C" >&6
2852
else
2853
      # Double quotes because CPP needs to be expanded
2854
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2855
    do
2856
      ac_preproc_ok=false
2857
for ac_c_preproc_warn_flag in '' yes
2858
do
2859
  # Use a header file that comes with gcc, so configuring glibc
2860
  # with a fresh cross-compiler works.
2861
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2862
  # <limits.h> exists even on freestanding compilers.
2863
  # On the NeXT, cc -E runs the code through the compiler's parser,
2864
  # not just through cpp. "Syntax error" is here to catch this case.
2865
  cat >conftest.$ac_ext <<_ACEOF
2866
/* confdefs.h.  */
2867
_ACEOF
2868
cat confdefs.h >>conftest.$ac_ext
2869
cat >>conftest.$ac_ext <<_ACEOF
2870
/* end confdefs.h.  */
2871
#ifdef __STDC__
2872
# include <limits.h>
2873
#else
2874
# include <assert.h>
2875
#endif
2876
           Syntax error
2877
_ACEOF
2878
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2879
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2880
  ac_status=$?
2881
  grep -v '^ *+' conftest.er1 >conftest.err
2882
  rm -f conftest.er1
2883
  cat conftest.err >&5
2884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885
  (exit $ac_status); } >/dev/null; then
2886
  if test -s conftest.err; then
2887
    ac_cpp_err=$ac_c_preproc_warn_flag
2888
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2889
  else
2890
    ac_cpp_err=
2891
  fi
2892
else
2893
  ac_cpp_err=yes
2894
fi
2895
if test -z "$ac_cpp_err"; then
2896
  :
2897
else
2898
  echo "$as_me: failed program was:" >&5
2899
sed 's/^/| /' conftest.$ac_ext >&5
2900
2901
  # Broken: fails on valid input.
2902
continue
2903
fi
2904
rm -f conftest.err conftest.$ac_ext
2905
2906
  # OK, works on sane cases.  Now check whether non-existent headers
2907
  # can be detected and how.
2908
  cat >conftest.$ac_ext <<_ACEOF
2909
/* confdefs.h.  */
2910
_ACEOF
2911
cat confdefs.h >>conftest.$ac_ext
2912
cat >>conftest.$ac_ext <<_ACEOF
2913
/* end confdefs.h.  */
2914
#include <ac_nonexistent.h>
2915
_ACEOF
2916
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918
  ac_status=$?
2919
  grep -v '^ *+' conftest.er1 >conftest.err
2920
  rm -f conftest.er1
2921
  cat conftest.err >&5
2922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923
  (exit $ac_status); } >/dev/null; then
2924
  if test -s conftest.err; then
2925
    ac_cpp_err=$ac_c_preproc_warn_flag
2926
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2927
  else
2928
    ac_cpp_err=
2929
  fi
2930
else
2931
  ac_cpp_err=yes
2932
fi
2933
if test -z "$ac_cpp_err"; then
2934
  # Broken: success on invalid input.
2935
continue
2936
else
2937
  echo "$as_me: failed program was:" >&5
2938
sed 's/^/| /' conftest.$ac_ext >&5
2939
2940
  # Passes both tests.
2941
ac_preproc_ok=:
2942
break
2943
fi
2944
rm -f conftest.err conftest.$ac_ext
2945
2946
done
2947
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2948
rm -f conftest.err conftest.$ac_ext
2949
if $ac_preproc_ok; then
2950
  break
2951
fi
2952
2953
    done
2954
    ac_cv_prog_CPP=$CPP
2955
2956
fi
2957
  CPP=$ac_cv_prog_CPP
2958
else
2959
  ac_cv_prog_CPP=$CPP
2960
fi
2961
echo "$as_me:$LINENO: result: $CPP" >&5
2962
echo "${ECHO_T}$CPP" >&6
2963
ac_preproc_ok=false
2964
for ac_c_preproc_warn_flag in '' yes
2965
do
2966
  # Use a header file that comes with gcc, so configuring glibc
2967
  # with a fresh cross-compiler works.
2968
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2969
  # <limits.h> exists even on freestanding compilers.
2970
  # On the NeXT, cc -E runs the code through the compiler's parser,
2971
  # not just through cpp. "Syntax error" is here to catch this case.
2972
  cat >conftest.$ac_ext <<_ACEOF
2973
/* confdefs.h.  */
2974
_ACEOF
2975
cat confdefs.h >>conftest.$ac_ext
2976
cat >>conftest.$ac_ext <<_ACEOF
2977
/* end confdefs.h.  */
2978
#ifdef __STDC__
2979
# include <limits.h>
2980
#else
2981
# include <assert.h>
2982
#endif
2983
           Syntax error
2984
_ACEOF
2985
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987
  ac_status=$?
2988
  grep -v '^ *+' conftest.er1 >conftest.err
2989
  rm -f conftest.er1
2990
  cat conftest.err >&5
2991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992
  (exit $ac_status); } >/dev/null; then
2993
  if test -s conftest.err; then
2994
    ac_cpp_err=$ac_c_preproc_warn_flag
2995
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2996
  else
2997
    ac_cpp_err=
2998
  fi
2999
else
3000
  ac_cpp_err=yes
3001
fi
3002
if test -z "$ac_cpp_err"; then
3003
  :
3004
else
3005
  echo "$as_me: failed program was:" >&5
3006
sed 's/^/| /' conftest.$ac_ext >&5
3007
3008
  # Broken: fails on valid input.
3009
continue
3010
fi
3011
rm -f conftest.err conftest.$ac_ext
3012
3013
  # OK, works on sane cases.  Now check whether non-existent headers
3014
  # can be detected and how.
3015
  cat >conftest.$ac_ext <<_ACEOF
3016
/* confdefs.h.  */
3017
_ACEOF
3018
cat confdefs.h >>conftest.$ac_ext
3019
cat >>conftest.$ac_ext <<_ACEOF
3020
/* end confdefs.h.  */
3021
#include <ac_nonexistent.h>
3022
_ACEOF
3023
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025
  ac_status=$?
3026
  grep -v '^ *+' conftest.er1 >conftest.err
3027
  rm -f conftest.er1
3028
  cat conftest.err >&5
3029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030
  (exit $ac_status); } >/dev/null; then
3031
  if test -s conftest.err; then
3032
    ac_cpp_err=$ac_c_preproc_warn_flag
3033
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034
  else
3035
    ac_cpp_err=
3036
  fi
3037
else
3038
  ac_cpp_err=yes
3039
fi
3040
if test -z "$ac_cpp_err"; then
3041
  # Broken: success on invalid input.
3042
continue
3043
else
3044
  echo "$as_me: failed program was:" >&5
3045
sed 's/^/| /' conftest.$ac_ext >&5
3046
3047
  # Passes both tests.
3048
ac_preproc_ok=:
3049
break
3050
fi
3051
rm -f conftest.err conftest.$ac_ext
3052
3053
done
3054
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3055
rm -f conftest.err conftest.$ac_ext
3056
if $ac_preproc_ok; then
3057
  :
3058
else
3059
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3060
See \`config.log' for more details." >&5
3061
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3062
See \`config.log' for more details." >&2;}
3063
   { (exit 1); exit 1; }; }
3064
fi
3065
3066
ac_ext=c
3067
ac_cpp='$CPP $CPPFLAGS'
3068
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3069
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3070
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3071
3072
3073
echo "$as_me:$LINENO: checking for X" >&5
3074
echo $ECHO_N "checking for X... $ECHO_C" >&6
3075
3076
3077
# Check whether --with-x or --without-x was given.
3078
if test "${with_x+set}" = set; then
3079
  withval="$with_x"
3080
3081
fi;
3082
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3083
if test "x$with_x" = xno; then
3084
  # The user explicitly disabled X.
3085
  have_x=disabled
3086
else
3087
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3088
    # Both variables are already set.
3089
    have_x=yes
3090
  else
3091
    if test "${ac_cv_have_x+set}" = set; then
3092
  echo $ECHO_N "(cached) $ECHO_C" >&6
3093
else
3094
  # One or both of the vars are not set, and there is no cached value.
3095
ac_x_includes=no ac_x_libraries=no
3096
rm -fr conftest.dir
3097
if mkdir conftest.dir; then
3098
  cd conftest.dir
3099
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3100
  cat >Imakefile <<'_ACEOF'
3101
acfindx:
3102
  @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3103
_ACEOF
3104
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3105
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3106
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3107
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3108
    for ac_extension in a so sl; do
3109
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3110
   test -f $ac_im_libdir/libX11.$ac_extension; then
3111
  ac_im_usrlibdir=$ac_im_libdir; break
3112
      fi
3113
    done
3114
    # Screen out bogus values from the imake configuration.  They are
3115
    # bogus both because they are the default anyway, and because
3116
    # using them would break gcc on systems where it needs fixed includes.
3117
    case $ac_im_incroot in
3118
  /usr/include) ;;
3119
  *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3120
    esac
3121
    case $ac_im_usrlibdir in
3122
  /usr/lib | /lib) ;;
3123
  *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3124
    esac
3125
  fi
3126
  cd ..
3127
  rm -fr conftest.dir
3128
fi
3129
3130
# Standard set of common directories for X headers.
3131
# Check X11 before X11Rn because it is often a symlink to the current release.
3132
ac_x_header_dirs='
3133
/usr/X11/include
3134
/usr/X11R6/include
3135
/usr/X11R5/include
3136
/usr/X11R4/include
3137
3138
/usr/include/X11
3139
/usr/include/X11R6
3140
/usr/include/X11R5
3141
/usr/include/X11R4
3142
3143
/usr/local/X11/include
3144
/usr/local/X11R6/include
3145
/usr/local/X11R5/include
3146
/usr/local/X11R4/include
3147
3148
/usr/local/include/X11
3149
/usr/local/include/X11R6
3150
/usr/local/include/X11R5
3151
/usr/local/include/X11R4
3152
3153
/usr/X386/include
3154
/usr/x386/include
3155
/usr/XFree86/include/X11
3156
3157
/usr/include
3158
/usr/local/include
3159
/usr/unsupported/include
3160
/usr/athena/include
3161
/usr/local/x11r5/include
3162
/usr/lpp/Xamples/include
3163
3164
/usr/openwin/include
3165
/usr/openwin/share/include'
3166
3167
if test "$ac_x_includes" = no; then
3168
  # Guess where to find include files, by looking for Intrinsic.h.
3169
  # First, try using that file with no special directory specified.
3170
  cat >conftest.$ac_ext <<_ACEOF
3171
/* confdefs.h.  */
3172
_ACEOF
3173
cat confdefs.h >>conftest.$ac_ext
3174
cat >>conftest.$ac_ext <<_ACEOF
3175
/* end confdefs.h.  */
3176
#include <X11/Intrinsic.h>
3177
_ACEOF
3178
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3179
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3180
  ac_status=$?
3181
  grep -v '^ *+' conftest.er1 >conftest.err
3182
  rm -f conftest.er1
3183
  cat conftest.err >&5
3184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185
  (exit $ac_status); } >/dev/null; then
3186
  if test -s conftest.err; then
3187
    ac_cpp_err=$ac_c_preproc_warn_flag
3188
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3189
  else
3190
    ac_cpp_err=
3191
  fi
3192
else
3193
  ac_cpp_err=yes
3194
fi
3195
if test -z "$ac_cpp_err"; then
3196
  # We can compile using X headers with no special include directory.
3197
ac_x_includes=
3198
else
3199
  echo "$as_me: failed program was:" >&5
3200
sed 's/^/| /' conftest.$ac_ext >&5
3201
3202
  for ac_dir in $ac_x_header_dirs; do
3203
  if test -r "$ac_dir/X11/Intrinsic.h"; then
3204
    ac_x_includes=$ac_dir
3205
    break
3206
  fi
3207
done
3208
fi
3209
rm -f conftest.err conftest.$ac_ext
3210
fi # $ac_x_includes = no
3211
3212
if test "$ac_x_libraries" = no; then
3213
  # Check for the libraries.
3214
  # See if we find them without any special options.
3215
  # Don't add to $LIBS permanently.
3216
  ac_save_LIBS=$LIBS
3217
  LIBS="-lXt $LIBS"
3218
  cat >conftest.$ac_ext <<_ACEOF
3219
/* confdefs.h.  */
3220
_ACEOF
3221
cat confdefs.h >>conftest.$ac_ext
3222
cat >>conftest.$ac_ext <<_ACEOF
3223
/* end confdefs.h.  */
3224
#include <X11/Intrinsic.h>
3225
int
3226
main ()
3227
{
3228
XtMalloc (0)
3229
  ;
3230
  return 0;
3231
}
3232
_ACEOF
3233
rm -f conftest.$ac_objext conftest$ac_exeext
3234
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3235
  (eval $ac_link) 2>conftest.er1
3236
  ac_status=$?
3237
  grep -v '^ *+' conftest.er1 >conftest.err
3238
  rm -f conftest.er1
3239
  cat conftest.err >&5
3240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241
  (exit $ac_status); } &&
3242
   { ac_try='test -z "$ac_c_werror_flag"
3243
           || test ! -s conftest.err'
3244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245
  (eval $ac_try) 2>&5
3246
  ac_status=$?
3247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248
  (exit $ac_status); }; } &&
3249
   { ac_try='test -s conftest$ac_exeext'
3250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251
  (eval $ac_try) 2>&5
3252
  ac_status=$?
3253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254
  (exit $ac_status); }; }; then
3255
  LIBS=$ac_save_LIBS
3256
# We can link X programs with no special library path.
3257
ac_x_libraries=
3258
else
3259
  echo "$as_me: failed program was:" >&5
3260
sed 's/^/| /' conftest.$ac_ext >&5
3261
3262
LIBS=$ac_save_LIBS
3263
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3264
do
3265
  # Don't even attempt the hair of trying to link an X program!
3266
  for ac_extension in a so sl; do
3267
    if test -r $ac_dir/libXt.$ac_extension; then
3268
      ac_x_libraries=$ac_dir
3269
      break 2
3270
    fi
3271
  done
3272
done
3273
fi
3274
rm -f conftest.err conftest.$ac_objext \
3275
      conftest$ac_exeext conftest.$ac_ext
3276
fi # $ac_x_libraries = no
3277
3278
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3279
  # Didn't find X anywhere.  Cache the known absence of X.
3280
  ac_cv_have_x="have_x=no"
3281
else
3282
  # Record where we found X for the cache.
3283
  ac_cv_have_x="have_x=yes \
3284
      ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3285
fi
3286
fi
3287
3288
  fi
3289
  eval "$ac_cv_have_x"
3290
fi # $with_x != no
3291
3292
if test "$have_x" != yes; then
3293
  echo "$as_me:$LINENO: result: $have_x" >&5
3294
echo "${ECHO_T}$have_x" >&6
3295
  no_x=yes
3296
else
3297
  # If each of the values was on the command line, it overrides each guess.
3298
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3299
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3300
  # Update the cache value to reflect the command line values.
3301
  ac_cv_have_x="have_x=yes \
3302
      ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3303
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3304
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3305
fi
3306
3307
if test "$no_x" = yes; then
3308
  # Not all programs may use this symbol, but it does not hurt to define it.
3309
3310
cat >>confdefs.h <<\_ACEOF
3311
#define X_DISPLAY_MISSING 1
3312
_ACEOF
3313
3314
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3315
else
3316
  if test -n "$x_includes"; then
3317
    X_CFLAGS="$X_CFLAGS -I$x_includes"
3318
  fi
3319
3320
  # It would also be nice to do this for all -L options, not just this one.
3321
  if test -n "$x_libraries"; then
3322
    X_LIBS="$X_LIBS -L$x_libraries"
3323
    # For Solaris; some versions of Sun CC require a space after -R and
3324
    # others require no space.  Words are not sufficient . . . .
3325
    case `(uname -sr) 2>/dev/null` in
3326
    "SunOS 5"*)
3327
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3328
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3329
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3330
      cat >conftest.$ac_ext <<_ACEOF
3331
/* confdefs.h.  */
3332
_ACEOF
3333
cat confdefs.h >>conftest.$ac_ext
3334
cat >>conftest.$ac_ext <<_ACEOF
3335
/* end confdefs.h.  */
3336
3337
int
3338
main ()
3339
{
3340
3341
  ;
3342
  return 0;
3343
}
3344
_ACEOF
3345
rm -f conftest.$ac_objext conftest$ac_exeext
3346
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3347
  (eval $ac_link) 2>conftest.er1
3348
  ac_status=$?
3349
  grep -v '^ *+' conftest.er1 >conftest.err
3350
  rm -f conftest.er1
3351
  cat conftest.err >&5
3352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353
  (exit $ac_status); } &&
3354
   { ac_try='test -z "$ac_c_werror_flag"
3355
           || test ! -s conftest.err'
3356
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357
  (eval $ac_try) 2>&5
3358
  ac_status=$?
3359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360
  (exit $ac_status); }; } &&
3361
   { ac_try='test -s conftest$ac_exeext'
3362
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363
  (eval $ac_try) 2>&5
3364
  ac_status=$?
3365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366
  (exit $ac_status); }; }; then
3367
  ac_R_nospace=yes
3368
else
3369
  echo "$as_me: failed program was:" >&5
3370
sed 's/^/| /' conftest.$ac_ext >&5
3371
3372
ac_R_nospace=no
3373
fi
3374
rm -f conftest.err conftest.$ac_objext \
3375
      conftest$ac_exeext conftest.$ac_ext
3376
      if test $ac_R_nospace = yes; then
3377
  echo "$as_me:$LINENO: result: no" >&5
3378
echo "${ECHO_T}no" >&6
3379
  X_LIBS="$X_LIBS -R$x_libraries"
3380
      else
3381
  LIBS="$ac_xsave_LIBS -R $x_libraries"
3382
  cat >conftest.$ac_ext <<_ACEOF
3383
/* confdefs.h.  */
3384
_ACEOF
3385
cat confdefs.h >>conftest.$ac_ext
3386
cat >>conftest.$ac_ext <<_ACEOF
3387
/* end confdefs.h.  */
3388
3389
int
3390
main ()
3391
{
3392
3393
  ;
3394
  return 0;
3395
}
3396
_ACEOF
3397
rm -f conftest.$ac_objext conftest$ac_exeext
3398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3399
  (eval $ac_link) 2>conftest.er1
3400
  ac_status=$?
3401
  grep -v '^ *+' conftest.er1 >conftest.err
3402
  rm -f conftest.er1
3403
  cat conftest.err >&5
3404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405
  (exit $ac_status); } &&
3406
   { ac_try='test -z "$ac_c_werror_flag"
3407
           || test ! -s conftest.err'
3408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409
  (eval $ac_try) 2>&5
3410
  ac_status=$?
3411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412
  (exit $ac_status); }; } &&
3413
   { ac_try='test -s conftest$ac_exeext'
3414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415
  (eval $ac_try) 2>&5
3416
  ac_status=$?
3417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418
  (exit $ac_status); }; }; then
3419
  ac_R_space=yes
3420
else
3421
  echo "$as_me: failed program was:" >&5
3422
sed 's/^/| /' conftest.$ac_ext >&5
3423
3424
ac_R_space=no
3425
fi
3426
rm -f conftest.err conftest.$ac_objext \
3427
      conftest$ac_exeext conftest.$ac_ext
3428
  if test $ac_R_space = yes; then
3429
    echo "$as_me:$LINENO: result: yes" >&5
3430
echo "${ECHO_T}yes" >&6
3431
    X_LIBS="$X_LIBS -R $x_libraries"
3432
  else
3433
    echo "$as_me:$LINENO: result: neither works" >&5
3434
echo "${ECHO_T}neither works" >&6
3435
  fi
3436
      fi
3437
      LIBS=$ac_xsave_LIBS
3438
    esac
3439
  fi
3440
3441
  # Check for system-dependent libraries X programs must link with.
3442
  # Do this before checking for the system-independent R6 libraries
3443
  # (-lICE), since we may need -lsocket or whatever for X linking.
3444
3445
  if test "$ISC" = yes; then
3446
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3447
  else
3448
    # Martyn Johnson says this is needed for Ultrix, if the X
3449
    # libraries were built with DECnet support.  And Karl Berry says
3450
    # the Alpha needs dnet_stub (dnet does not exist).
3451
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3452
    cat >conftest.$ac_ext <<_ACEOF
3453
/* confdefs.h.  */
3454
_ACEOF
3455
cat confdefs.h >>conftest.$ac_ext
3456
cat >>conftest.$ac_ext <<_ACEOF
3457
/* end confdefs.h.  */
3458
3459
/* Override any gcc2 internal prototype to avoid an error.  */
3460
#ifdef __cplusplus
3461
extern "C"
3462
#endif
3463
/* We use char because int might match the return type of a gcc2
3464
   builtin and then its argument prototype would still apply.  */
3465
char XOpenDisplay ();
3466
int
3467
main ()
3468
{
3469
XOpenDisplay ();
3470
  ;
3471
  return 0;
3472
}
3473
_ACEOF
3474
rm -f conftest.$ac_objext conftest$ac_exeext
3475
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3476
  (eval $ac_link) 2>conftest.er1
3477
  ac_status=$?
3478
  grep -v '^ *+' conftest.er1 >conftest.err
3479
  rm -f conftest.er1
3480
  cat conftest.err >&5
3481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482
  (exit $ac_status); } &&
3483
   { ac_try='test -z "$ac_c_werror_flag"
3484
           || test ! -s conftest.err'
3485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486
  (eval $ac_try) 2>&5
3487
  ac_status=$?
3488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489
  (exit $ac_status); }; } &&
3490
   { ac_try='test -s conftest$ac_exeext'
3491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492
  (eval $ac_try) 2>&5
3493
  ac_status=$?
3494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495
  (exit $ac_status); }; }; then
3496
  :
3497
else
3498
  echo "$as_me: failed program was:" >&5
3499
sed 's/^/| /' conftest.$ac_ext >&5
3500
3501
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3502
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3503
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3504
  echo $ECHO_N "(cached) $ECHO_C" >&6
3505
else
3506
  ac_check_lib_save_LIBS=$LIBS
3507
LIBS="-ldnet  $LIBS"
3508
cat >conftest.$ac_ext <<_ACEOF
3509
/* confdefs.h.  */
3510
_ACEOF
3511
cat confdefs.h >>conftest.$ac_ext
3512
cat >>conftest.$ac_ext <<_ACEOF
3513
/* end confdefs.h.  */
3514
3515
/* Override any gcc2 internal prototype to avoid an error.  */
3516
#ifdef __cplusplus
3517
extern "C"
3518
#endif
3519
/* We use char because int might match the return type of a gcc2
3520
   builtin and then its argument prototype would still apply.  */
3521
char dnet_ntoa ();
3522
int
3523
main ()
3524
{
3525
dnet_ntoa ();
3526
  ;
3527
  return 0;
3528
}
3529
_ACEOF
3530
rm -f conftest.$ac_objext conftest$ac_exeext
3531
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3532
  (eval $ac_link) 2>conftest.er1
3533
  ac_status=$?
3534
  grep -v '^ *+' conftest.er1 >conftest.err
3535
  rm -f conftest.er1
3536
  cat conftest.err >&5
3537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538
  (exit $ac_status); } &&
3539
   { ac_try='test -z "$ac_c_werror_flag"
3540
           || test ! -s conftest.err'
3541
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542
  (eval $ac_try) 2>&5
3543
  ac_status=$?
3544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545
  (exit $ac_status); }; } &&
3546
   { ac_try='test -s conftest$ac_exeext'
3547
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548
  (eval $ac_try) 2>&5
3549
  ac_status=$?
3550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551
  (exit $ac_status); }; }; then
3552
  ac_cv_lib_dnet_dnet_ntoa=yes
3553
else
3554
  echo "$as_me: failed program was:" >&5
3555
sed 's/^/| /' conftest.$ac_ext >&5
3556
3557
ac_cv_lib_dnet_dnet_ntoa=no
3558
fi
3559
rm -f conftest.err conftest.$ac_objext \
3560
      conftest$ac_exeext conftest.$ac_ext
3561
LIBS=$ac_check_lib_save_LIBS
3562
fi
3563
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3564
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3565
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3566
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3567
fi
3568
3569
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3570
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3571
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3572
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3573
  echo $ECHO_N "(cached) $ECHO_C" >&6
3574
else
3575
  ac_check_lib_save_LIBS=$LIBS
3576
LIBS="-ldnet_stub  $LIBS"
3577
cat >conftest.$ac_ext <<_ACEOF
3578
/* confdefs.h.  */
3579
_ACEOF
3580
cat confdefs.h >>conftest.$ac_ext
3581
cat >>conftest.$ac_ext <<_ACEOF
3582
/* end confdefs.h.  */
3583
3584
/* Override any gcc2 internal prototype to avoid an error.  */
3585
#ifdef __cplusplus
3586
extern "C"
3587
#endif
3588
/* We use char because int might match the return type of a gcc2
3589
   builtin and then its argument prototype would still apply.  */
3590
char dnet_ntoa ();
3591
int
3592
main ()
3593
{
3594
dnet_ntoa ();
3595
  ;
3596
  return 0;
3597
}
3598
_ACEOF
3599
rm -f conftest.$ac_objext conftest$ac_exeext
3600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3601
  (eval $ac_link) 2>conftest.er1
3602
  ac_status=$?
3603
  grep -v '^ *+' conftest.er1 >conftest.err
3604
  rm -f conftest.er1
3605
  cat conftest.err >&5
3606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607
  (exit $ac_status); } &&
3608
   { ac_try='test -z "$ac_c_werror_flag"
3609
           || test ! -s conftest.err'
3610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611
  (eval $ac_try) 2>&5
3612
  ac_status=$?
3613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614
  (exit $ac_status); }; } &&
3615
   { ac_try='test -s conftest$ac_exeext'
3616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617
  (eval $ac_try) 2>&5
3618
  ac_status=$?
3619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620
  (exit $ac_status); }; }; then
3621
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
3622
else
3623
  echo "$as_me: failed program was:" >&5
3624
sed 's/^/| /' conftest.$ac_ext >&5
3625
3626
ac_cv_lib_dnet_stub_dnet_ntoa=no
3627
fi
3628
rm -f conftest.err conftest.$ac_objext \
3629
      conftest$ac_exeext conftest.$ac_ext
3630
LIBS=$ac_check_lib_save_LIBS
3631
fi
3632
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3633
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3634
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3635
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3636
fi
3637
3638
    fi
3639
fi
3640
rm -f conftest.err conftest.$ac_objext \
3641
      conftest$ac_exeext conftest.$ac_ext
3642
    LIBS="$ac_xsave_LIBS"
3643
3644
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3645
    # to get the SysV transport functions.
3646
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3647
    # needs -lnsl.
3648
    # The nsl library prevents programs from opening the X display
3649
    # on Irix 5.2, according to T.E. Dickey.
3650
    # The functions gethostbyname, getservbyname, and inet_addr are
3651
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3652
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
3653
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3654
if test "${ac_cv_func_gethostbyname+set}" = set; then
3655
  echo $ECHO_N "(cached) $ECHO_C" >&6
3656
else
3657
  cat >conftest.$ac_ext <<_ACEOF
3658
/* confdefs.h.  */
3659
_ACEOF
3660
cat confdefs.h >>conftest.$ac_ext
3661
cat >>conftest.$ac_ext <<_ACEOF
3662
/* end confdefs.h.  */
3663
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3664
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3665
#define gethostbyname innocuous_gethostbyname
3666
3667
/* System header to define __stub macros and hopefully few prototypes,
3668
    which can conflict with char gethostbyname (); below.
3669
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3670
    <limits.h> exists even on freestanding compilers.  */
3671
3672
#ifdef __STDC__
3673
# include <limits.h>
3674
#else
3675
# include <assert.h>
3676
#endif
3677
3678
#undef gethostbyname
3679
3680
/* Override any gcc2 internal prototype to avoid an error.  */
3681
#ifdef __cplusplus
3682
extern "C"
3683
{
3684
#endif
3685
/* We use char because int might match the return type of a gcc2
3686
   builtin and then its argument prototype would still apply.  */
3687
char gethostbyname ();
3688
/* The GNU C library defines this for functions which it implements
3689
    to always fail with ENOSYS.  Some functions are actually named
3690
    something starting with __ and the normal name is an alias.  */
3691
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3692
choke me
3693
#else
3694
char (*f) () = gethostbyname;
3695
#endif
3696
#ifdef __cplusplus
3697
}
3698
#endif
3699
3700
int
3701
main ()
3702
{
3703
return f != gethostbyname;
3704
  ;
3705
  return 0;
3706
}
3707
_ACEOF
3708
rm -f conftest.$ac_objext conftest$ac_exeext
3709
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710
  (eval $ac_link) 2>conftest.er1
3711
  ac_status=$?
3712
  grep -v '^ *+' conftest.er1 >conftest.err
3713
  rm -f conftest.er1
3714
  cat conftest.err >&5
3715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716
  (exit $ac_status); } &&
3717
   { ac_try='test -z "$ac_c_werror_flag"
3718
           || test ! -s conftest.err'
3719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720
  (eval $ac_try) 2>&5
3721
  ac_status=$?
3722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723
  (exit $ac_status); }; } &&
3724
   { ac_try='test -s conftest$ac_exeext'
3725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726
  (eval $ac_try) 2>&5
3727
  ac_status=$?
3728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729
  (exit $ac_status); }; }; then
3730
  ac_cv_func_gethostbyname=yes
3731
else
3732
  echo "$as_me: failed program was:" >&5
3733
sed 's/^/| /' conftest.$ac_ext >&5
3734
3735
ac_cv_func_gethostbyname=no
3736
fi
3737
rm -f conftest.err conftest.$ac_objext \
3738
      conftest$ac_exeext conftest.$ac_ext
3739
fi
3740
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3741
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3742
3743
    if test $ac_cv_func_gethostbyname = no; then
3744
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3745
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3746
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3747
  echo $ECHO_N "(cached) $ECHO_C" >&6
3748
else
3749
  ac_check_lib_save_LIBS=$LIBS
3750
LIBS="-lnsl  $LIBS"
3751
cat >conftest.$ac_ext <<_ACEOF
3752
/* confdefs.h.  */
3753
_ACEOF
3754
cat confdefs.h >>conftest.$ac_ext
3755
cat >>conftest.$ac_ext <<_ACEOF
3756
/* end confdefs.h.  */
3757
3758
/* Override any gcc2 internal prototype to avoid an error.  */
3759
#ifdef __cplusplus
3760
extern "C"
3761
#endif
3762
/* We use char because int might match the return type of a gcc2
3763
   builtin and then its argument prototype would still apply.  */
3764
char gethostbyname ();
3765
int
3766
main ()
3767
{
3768
gethostbyname ();
3769
  ;
3770
  return 0;
3771
}
3772
_ACEOF
3773
rm -f conftest.$ac_objext conftest$ac_exeext
3774
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3775
  (eval $ac_link) 2>conftest.er1
3776
  ac_status=$?
3777
  grep -v '^ *+' conftest.er1 >conftest.err
3778
  rm -f conftest.er1
3779
  cat conftest.err >&5
3780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781
  (exit $ac_status); } &&
3782
   { ac_try='test -z "$ac_c_werror_flag"
3783
           || test ! -s conftest.err'
3784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785
  (eval $ac_try) 2>&5
3786
  ac_status=$?
3787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788
  (exit $ac_status); }; } &&
3789
   { ac_try='test -s conftest$ac_exeext'
3790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791
  (eval $ac_try) 2>&5
3792
  ac_status=$?
3793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794
  (exit $ac_status); }; }; then
3795
  ac_cv_lib_nsl_gethostbyname=yes
3796
else
3797
  echo "$as_me: failed program was:" >&5
3798
sed 's/^/| /' conftest.$ac_ext >&5
3799
3800
ac_cv_lib_nsl_gethostbyname=no
3801
fi
3802
rm -f conftest.err conftest.$ac_objext \
3803
      conftest$ac_exeext conftest.$ac_ext
3804
LIBS=$ac_check_lib_save_LIBS
3805
fi
3806
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3807
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3808
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3809
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3810
fi
3811
3812
      if test $ac_cv_lib_nsl_gethostbyname = no; then
3813
  echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3814
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3815
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3816
  echo $ECHO_N "(cached) $ECHO_C" >&6
3817
else
3818
  ac_check_lib_save_LIBS=$LIBS
3819
LIBS="-lbsd  $LIBS"
3820
cat >conftest.$ac_ext <<_ACEOF
3821
/* confdefs.h.  */
3822
_ACEOF
3823
cat confdefs.h >>conftest.$ac_ext
3824
cat >>conftest.$ac_ext <<_ACEOF
3825
/* end confdefs.h.  */
3826
3827
/* Override any gcc2 internal prototype to avoid an error.  */
3828
#ifdef __cplusplus
3829
extern "C"
3830
#endif
3831
/* We use char because int might match the return type of a gcc2
3832
   builtin and then its argument prototype would still apply.  */
3833
char gethostbyname ();
3834
int
3835
main ()
3836
{
3837
gethostbyname ();
3838
  ;
3839
  return 0;
3840
}
3841
_ACEOF
3842
rm -f conftest.$ac_objext conftest$ac_exeext
3843
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844
  (eval $ac_link) 2>conftest.er1
3845
  ac_status=$?
3846
  grep -v '^ *+' conftest.er1 >conftest.err
3847
  rm -f conftest.er1
3848
  cat conftest.err >&5
3849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850
  (exit $ac_status); } &&
3851
   { ac_try='test -z "$ac_c_werror_flag"
3852
           || test ! -s conftest.err'
3853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854
  (eval $ac_try) 2>&5
3855
  ac_status=$?
3856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857
  (exit $ac_status); }; } &&
3858
   { ac_try='test -s conftest$ac_exeext'
3859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860
  (eval $ac_try) 2>&5
3861
  ac_status=$?
3862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863
  (exit $ac_status); }; }; then
3864
  ac_cv_lib_bsd_gethostbyname=yes
3865
else
3866
  echo "$as_me: failed program was:" >&5
3867
sed 's/^/| /' conftest.$ac_ext >&5
3868
3869
ac_cv_lib_bsd_gethostbyname=no
3870
fi
3871
rm -f conftest.err conftest.$ac_objext \
3872
      conftest$ac_exeext conftest.$ac_ext
3873
LIBS=$ac_check_lib_save_LIBS
3874
fi
3875
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3876
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3877
if test $ac_cv_lib_bsd_gethostbyname = yes; then
3878
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3879
fi
3880
3881
      fi
3882
    fi
3883
3884
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
3885
    # socket/setsockopt and other routines are undefined under SCO ODT
3886
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3887
    # on later versions), says Simon Leinen: it contains gethostby*
3888
    # variants that don't use the name server (or something).  -lsocket
3889
    # must be given before -lnsl if both are needed.  We assume that
3890
    # if connect needs -lnsl, so does gethostbyname.
3891
    echo "$as_me:$LINENO: checking for connect" >&5
3892
echo $ECHO_N "checking for connect... $ECHO_C" >&6
3893
if test "${ac_cv_func_connect+set}" = set; then
3894
  echo $ECHO_N "(cached) $ECHO_C" >&6
3895
else
3896
  cat >conftest.$ac_ext <<_ACEOF
3897
/* confdefs.h.  */
3898
_ACEOF
3899
cat confdefs.h >>conftest.$ac_ext
3900
cat >>conftest.$ac_ext <<_ACEOF
3901
/* end confdefs.h.  */
3902
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3903
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3904
#define connect innocuous_connect
3905
3906
/* System header to define __stub macros and hopefully few prototypes,
3907
    which can conflict with char connect (); below.
3908
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3909
    <limits.h> exists even on freestanding compilers.  */
3910
3911
#ifdef __STDC__
3912
# include <limits.h>
3913
#else
3914
# include <assert.h>
3915
#endif
3916
3917
#undef connect
3918
3919
/* Override any gcc2 internal prototype to avoid an error.  */
3920
#ifdef __cplusplus
3921
extern "C"
3922
{
3923
#endif
3924
/* We use char because int might match the return type of a gcc2
3925
   builtin and then its argument prototype would still apply.  */
3926
char connect ();
3927
/* The GNU C library defines this for functions which it implements
3928
    to always fail with ENOSYS.  Some functions are actually named
3929
    something starting with __ and the normal name is an alias.  */
3930
#if defined (__stub_connect) || defined (__stub___connect)
3931
choke me
3932
#else
3933
char (*f) () = connect;
3934
#endif
3935
#ifdef __cplusplus
3936
}
3937
#endif
3938
3939
int
3940
main ()
3941
{
3942
return f != connect;
3943
  ;
3944
  return 0;
3945
}
3946
_ACEOF
3947
rm -f conftest.$ac_objext conftest$ac_exeext
3948
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3949
  (eval $ac_link) 2>conftest.er1
3950
  ac_status=$?
3951
  grep -v '^ *+' conftest.er1 >conftest.err
3952
  rm -f conftest.er1
3953
  cat conftest.err >&5
3954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955
  (exit $ac_status); } &&
3956
   { ac_try='test -z "$ac_c_werror_flag"
3957
           || test ! -s conftest.err'
3958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959
  (eval $ac_try) 2>&5
3960
  ac_status=$?
3961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962
  (exit $ac_status); }; } &&
3963
   { ac_try='test -s conftest$ac_exeext'
3964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965
  (eval $ac_try) 2>&5
3966
  ac_status=$?
3967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968
  (exit $ac_status); }; }; then
3969
  ac_cv_func_connect=yes
3970
else
3971
  echo "$as_me: failed program was:" >&5
3972
sed 's/^/| /' conftest.$ac_ext >&5
3973
3974
ac_cv_func_connect=no
3975
fi
3976
rm -f conftest.err conftest.$ac_objext \
3977
      conftest$ac_exeext conftest.$ac_ext
3978
fi
3979
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3980
echo "${ECHO_T}$ac_cv_func_connect" >&6
3981
3982
    if test $ac_cv_func_connect = no; then
3983
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3984
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3985
if test "${ac_cv_lib_socket_connect+set}" = set; then
3986
  echo $ECHO_N "(cached) $ECHO_C" >&6
3987
else
3988
  ac_check_lib_save_LIBS=$LIBS
3989
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3990
cat >conftest.$ac_ext <<_ACEOF
3991
/* confdefs.h.  */
3992
_ACEOF
3993
cat confdefs.h >>conftest.$ac_ext
3994
cat >>conftest.$ac_ext <<_ACEOF
3995
/* end confdefs.h.  */
3996
3997
/* Override any gcc2 internal prototype to avoid an error.  */
3998
#ifdef __cplusplus
3999
extern "C"
4000
#endif
4001
/* We use char because int might match the return type of a gcc2
4002
   builtin and then its argument prototype would still apply.  */
4003
char connect ();
4004
int
4005
main ()
4006
{
4007
connect ();
4008
  ;
4009
  return 0;
4010
}
4011
_ACEOF
4012
rm -f conftest.$ac_objext conftest$ac_exeext
4013
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014
  (eval $ac_link) 2>conftest.er1
4015
  ac_status=$?
4016
  grep -v '^ *+' conftest.er1 >conftest.err
4017
  rm -f conftest.er1
4018
  cat conftest.err >&5
4019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020
  (exit $ac_status); } &&
4021
   { ac_try='test -z "$ac_c_werror_flag"
4022
           || test ! -s conftest.err'
4023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024
  (eval $ac_try) 2>&5
4025
  ac_status=$?
4026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027
  (exit $ac_status); }; } &&
4028
   { ac_try='test -s conftest$ac_exeext'
4029
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030
  (eval $ac_try) 2>&5
4031
  ac_status=$?
4032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033
  (exit $ac_status); }; }; then
4034
  ac_cv_lib_socket_connect=yes
4035
else
4036
  echo "$as_me: failed program was:" >&5
4037
sed 's/^/| /' conftest.$ac_ext >&5
4038
4039
ac_cv_lib_socket_connect=no
4040
fi
4041
rm -f conftest.err conftest.$ac_objext \
4042
      conftest$ac_exeext conftest.$ac_ext
4043
LIBS=$ac_check_lib_save_LIBS
4044
fi
4045
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4046
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4047
if test $ac_cv_lib_socket_connect = yes; then
4048
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4049
fi
4050
4051
    fi
4052
4053
    # Guillermo Gomez says -lposix is necessary on A/UX.
4054
    echo "$as_me:$LINENO: checking for remove" >&5
4055
echo $ECHO_N "checking for remove... $ECHO_C" >&6
4056
if test "${ac_cv_func_remove+set}" = set; then
4057
  echo $ECHO_N "(cached) $ECHO_C" >&6
4058
else
4059
  cat >conftest.$ac_ext <<_ACEOF
4060
/* confdefs.h.  */
4061
_ACEOF
4062
cat confdefs.h >>conftest.$ac_ext
4063
cat >>conftest.$ac_ext <<_ACEOF
4064
/* end confdefs.h.  */
4065
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4066
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4067
#define remove innocuous_remove
4068
4069
/* System header to define __stub macros and hopefully few prototypes,
4070
    which can conflict with char remove (); below.
4071
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4072
    <limits.h> exists even on freestanding compilers.  */
4073
4074
#ifdef __STDC__
4075
# include <limits.h>
4076
#else
4077
# include <assert.h>
4078
#endif
4079
4080
#undef remove
4081
4082
/* Override any gcc2 internal prototype to avoid an error.  */
4083
#ifdef __cplusplus
4084
extern "C"
4085
{
4086
#endif
4087
/* We use char because int might match the return type of a gcc2
4088
   builtin and then its argument prototype would still apply.  */
4089
char remove ();
4090
/* The GNU C library defines this for functions which it implements
4091
    to always fail with ENOSYS.  Some functions are actually named
4092
    something starting with __ and the normal name is an alias.  */
4093
#if defined (__stub_remove) || defined (__stub___remove)
4094
choke me
4095
#else
4096
char (*f) () = remove;
4097
#endif
4098
#ifdef __cplusplus
4099
}
4100
#endif
4101
4102
int
4103
main ()
4104
{
4105
return f != remove;
4106
  ;
4107
  return 0;
4108
}
4109
_ACEOF
4110
rm -f conftest.$ac_objext conftest$ac_exeext
4111
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4112
  (eval $ac_link) 2>conftest.er1
4113
  ac_status=$?
4114
  grep -v '^ *+' conftest.er1 >conftest.err
4115
  rm -f conftest.er1
4116
  cat conftest.err >&5
4117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118
  (exit $ac_status); } &&
4119
   { ac_try='test -z "$ac_c_werror_flag"
4120
           || test ! -s conftest.err'
4121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122
  (eval $ac_try) 2>&5
4123
  ac_status=$?
4124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125
  (exit $ac_status); }; } &&
4126
   { ac_try='test -s conftest$ac_exeext'
4127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128
  (eval $ac_try) 2>&5
4129
  ac_status=$?
4130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131
  (exit $ac_status); }; }; then
4132
  ac_cv_func_remove=yes
4133
else
4134
  echo "$as_me: failed program was:" >&5
4135
sed 's/^/| /' conftest.$ac_ext >&5
4136
4137
ac_cv_func_remove=no
4138
fi
4139
rm -f conftest.err conftest.$ac_objext \
4140
      conftest$ac_exeext conftest.$ac_ext
4141
fi
4142
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4143
echo "${ECHO_T}$ac_cv_func_remove" >&6
4144
4145
    if test $ac_cv_func_remove = no; then
4146
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4147
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4148
if test "${ac_cv_lib_posix_remove+set}" = set; then
4149
  echo $ECHO_N "(cached) $ECHO_C" >&6
4150
else
4151
  ac_check_lib_save_LIBS=$LIBS
4152
LIBS="-lposix  $LIBS"
4153
cat >conftest.$ac_ext <<_ACEOF
4154
/* confdefs.h.  */
4155
_ACEOF
4156
cat confdefs.h >>conftest.$ac_ext
4157
cat >>conftest.$ac_ext <<_ACEOF
4158
/* end confdefs.h.  */
4159
4160
/* Override any gcc2 internal prototype to avoid an error.  */
4161
#ifdef __cplusplus
4162
extern "C"
4163
#endif
4164
/* We use char because int might match the return type of a gcc2
4165
   builtin and then its argument prototype would still apply.  */
4166
char remove ();
4167
int
4168
main ()
4169
{
4170
remove ();
4171
  ;
4172
  return 0;
4173
}
4174
_ACEOF
4175
rm -f conftest.$ac_objext conftest$ac_exeext
4176
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4177
  (eval $ac_link) 2>conftest.er1
4178
  ac_status=$?
4179
  grep -v '^ *+' conftest.er1 >conftest.err
4180
  rm -f conftest.er1
4181
  cat conftest.err >&5
4182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183
  (exit $ac_status); } &&
4184
   { ac_try='test -z "$ac_c_werror_flag"
4185
           || test ! -s conftest.err'
4186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187
  (eval $ac_try) 2>&5
4188
  ac_status=$?
4189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190
  (exit $ac_status); }; } &&
4191
   { ac_try='test -s conftest$ac_exeext'
4192
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193
  (eval $ac_try) 2>&5
4194
  ac_status=$?
4195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196
  (exit $ac_status); }; }; then
4197
  ac_cv_lib_posix_remove=yes
4198
else
4199
  echo "$as_me: failed program was:" >&5
4200
sed 's/^/| /' conftest.$ac_ext >&5
4201
4202
ac_cv_lib_posix_remove=no
4203
fi
4204
rm -f conftest.err conftest.$ac_objext \
4205
      conftest$ac_exeext conftest.$ac_ext
4206
LIBS=$ac_check_lib_save_LIBS
4207
fi
4208
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4209
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4210
if test $ac_cv_lib_posix_remove = yes; then
4211
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4212
fi
4213
4214
    fi
4215
4216
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4217
    echo "$as_me:$LINENO: checking for shmat" >&5
4218
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4219
if test "${ac_cv_func_shmat+set}" = set; then
4220
  echo $ECHO_N "(cached) $ECHO_C" >&6
4221
else
4222
  cat >conftest.$ac_ext <<_ACEOF
4223
/* confdefs.h.  */
4224
_ACEOF
4225
cat confdefs.h >>conftest.$ac_ext
4226
cat >>conftest.$ac_ext <<_ACEOF
4227
/* end confdefs.h.  */
4228
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4229
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4230
#define shmat innocuous_shmat
4231
4232
/* System header to define __stub macros and hopefully few prototypes,
4233
    which can conflict with char shmat (); below.
4234
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4235
    <limits.h> exists even on freestanding compilers.  */
4236
4237
#ifdef __STDC__
4238
# include <limits.h>
4239
#else
4240
# include <assert.h>
4241
#endif
4242
4243
#undef shmat
4244
4245
/* Override any gcc2 internal prototype to avoid an error.  */
4246
#ifdef __cplusplus
4247
extern "C"
4248
{
4249
#endif
4250
/* We use char because int might match the return type of a gcc2
4251
   builtin and then its argument prototype would still apply.  */
4252
char shmat ();
4253
/* The GNU C library defines this for functions which it implements
4254
    to always fail with ENOSYS.  Some functions are actually named
4255
    something starting with __ and the normal name is an alias.  */
4256
#if defined (__stub_shmat) || defined (__stub___shmat)
4257
choke me
4258
#else
4259
char (*f) () = shmat;
4260
#endif
4261
#ifdef __cplusplus
4262
}
4263
#endif
4264
4265
int
4266
main ()
4267
{
4268
return f != shmat;
4269
  ;
4270
  return 0;
4271
}
4272
_ACEOF
4273
rm -f conftest.$ac_objext conftest$ac_exeext
4274
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275
  (eval $ac_link) 2>conftest.er1
4276
  ac_status=$?
4277
  grep -v '^ *+' conftest.er1 >conftest.err
4278
  rm -f conftest.er1
4279
  cat conftest.err >&5
4280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281
  (exit $ac_status); } &&
4282
   { ac_try='test -z "$ac_c_werror_flag"
4283
           || test ! -s conftest.err'
4284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285
  (eval $ac_try) 2>&5
4286
  ac_status=$?
4287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288
  (exit $ac_status); }; } &&
4289
   { ac_try='test -s conftest$ac_exeext'
4290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291
  (eval $ac_try) 2>&5
4292
  ac_status=$?
4293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294
  (exit $ac_status); }; }; then
4295
  ac_cv_func_shmat=yes
4296
else
4297
  echo "$as_me: failed program was:" >&5
4298
sed 's/^/| /' conftest.$ac_ext >&5
4299
4300
ac_cv_func_shmat=no
4301
fi
4302
rm -f conftest.err conftest.$ac_objext \
4303
      conftest$ac_exeext conftest.$ac_ext
4304
fi
4305
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4306
echo "${ECHO_T}$ac_cv_func_shmat" >&6
4307
4308
    if test $ac_cv_func_shmat = no; then
4309
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4310
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4311
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4312
  echo $ECHO_N "(cached) $ECHO_C" >&6
4313
else
4314
  ac_check_lib_save_LIBS=$LIBS
4315
LIBS="-lipc  $LIBS"
4316
cat >conftest.$ac_ext <<_ACEOF
4317
/* confdefs.h.  */
4318
_ACEOF
4319
cat confdefs.h >>conftest.$ac_ext
4320
cat >>conftest.$ac_ext <<_ACEOF
4321
/* end confdefs.h.  */
4322
4323
/* Override any gcc2 internal prototype to avoid an error.  */
4324
#ifdef __cplusplus
4325
extern "C"
4326
#endif
4327
/* We use char because int might match the return type of a gcc2
4328
   builtin and then its argument prototype would still apply.  */
4329
char shmat ();
4330
int
4331
main ()
4332
{
4333
shmat ();
4334
  ;
4335
  return 0;
4336
}
4337
_ACEOF
4338
rm -f conftest.$ac_objext conftest$ac_exeext
4339
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340
  (eval $ac_link) 2>conftest.er1
4341
  ac_status=$?
4342
  grep -v '^ *+' conftest.er1 >conftest.err
4343
  rm -f conftest.er1
4344
  cat conftest.err >&5
4345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346
  (exit $ac_status); } &&
4347
   { ac_try='test -z "$ac_c_werror_flag"
4348
           || test ! -s conftest.err'
4349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350
  (eval $ac_try) 2>&5
4351
  ac_status=$?
4352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353
  (exit $ac_status); }; } &&
4354
   { ac_try='test -s conftest$ac_exeext'
4355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356
  (eval $ac_try) 2>&5
4357
  ac_status=$?
4358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359
  (exit $ac_status); }; }; then
4360
  ac_cv_lib_ipc_shmat=yes
4361
else
4362
  echo "$as_me: failed program was:" >&5
4363
sed 's/^/| /' conftest.$ac_ext >&5
4364
4365
ac_cv_lib_ipc_shmat=no
4366
fi
4367
rm -f conftest.err conftest.$ac_objext \
4368
      conftest$ac_exeext conftest.$ac_ext
4369
LIBS=$ac_check_lib_save_LIBS
4370
fi
4371
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4372
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4373
if test $ac_cv_lib_ipc_shmat = yes; then
4374
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4375
fi
4376
4377
    fi
4378
  fi
4379
4380
  # Check for libraries that X11R6 Xt/Xaw programs need.
4381
  ac_save_LDFLAGS=$LDFLAGS
4382
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4383
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4384
  # check for ICE first), but we must link in the order -lSM -lICE or
4385
  # we get undefined symbols.  So assume we have SM if we have ICE.
4386
  # These have to be linked with before -lX11, unlike the other
4387
  # libraries we check for below, so use a different variable.
4388
  # John Interrante, Karl Berry
4389
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4390
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4391
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4392
  echo $ECHO_N "(cached) $ECHO_C" >&6
4393
else
4394
  ac_check_lib_save_LIBS=$LIBS
4395
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4396
cat >conftest.$ac_ext <<_ACEOF
4397
/* confdefs.h.  */
4398
_ACEOF
4399
cat confdefs.h >>conftest.$ac_ext
4400
cat >>conftest.$ac_ext <<_ACEOF
4401
/* end confdefs.h.  */
4402
4403
/* Override any gcc2 internal prototype to avoid an error.  */
4404
#ifdef __cplusplus
4405
extern "C"
4406
#endif
4407
/* We use char because int might match the return type of a gcc2
4408
   builtin and then its argument prototype would still apply.  */
4409
char IceConnectionNumber ();
4410
int
4411
main ()
4412
{
4413
IceConnectionNumber ();
4414
  ;
4415
  return 0;
4416
}
4417
_ACEOF
4418
rm -f conftest.$ac_objext conftest$ac_exeext
4419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4420
  (eval $ac_link) 2>conftest.er1
4421
  ac_status=$?
4422
  grep -v '^ *+' conftest.er1 >conftest.err
4423
  rm -f conftest.er1
4424
  cat conftest.err >&5
4425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426
  (exit $ac_status); } &&
4427
   { ac_try='test -z "$ac_c_werror_flag"
4428
           || test ! -s conftest.err'
4429
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430
  (eval $ac_try) 2>&5
4431
  ac_status=$?
4432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433
  (exit $ac_status); }; } &&
4434
   { ac_try='test -s conftest$ac_exeext'
4435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436
  (eval $ac_try) 2>&5
4437
  ac_status=$?
4438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439
  (exit $ac_status); }; }; then
4440
  ac_cv_lib_ICE_IceConnectionNumber=yes
4441
else
4442
  echo "$as_me: failed program was:" >&5
4443
sed 's/^/| /' conftest.$ac_ext >&5
4444
4445
ac_cv_lib_ICE_IceConnectionNumber=no
4446
fi
4447
rm -f conftest.err conftest.$ac_objext \
4448
      conftest$ac_exeext conftest.$ac_ext
4449
LIBS=$ac_check_lib_save_LIBS
4450
fi
4451
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4452
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4453
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4454
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4455
fi
4456
4457
  LDFLAGS=$ac_save_LDFLAGS
4458
4459
fi
4460
4461
#echo X_CFLAGS "'$X_CFLAGS'" X_PRE_LIBS "'$X_PRE_LIBS'" X_LIBS "'$X_LIBS'" X_EXTRA_LIBS "'$X_EXTRA_LIBS'"
4462
2827
# We have to expand prefix in here, couldn't find a way to do it inside
4463
# We have to expand prefix in here, couldn't find a way to do it inside
2828
# the qt gui .pro file or Makefile. This just means that you can't change
4464
# the qt gui .pro file or Makefile. This just means that you can't change
2829
# prefix at build time. It works at install time because we dont' use the
4465
# prefix at build time. It works at install time because we dont' use the
2830
# qtgui Makefile
4466
# qtgui Makefile
2831
m_prefix=$prefix
4467
m_prefix=$prefix
2832
test "X$m_prefix" = "XNONE" && m_prefix=/usr/local
4468
test "X$m_prefix" = "XNONE" && m_prefix=/usr/local
2833
m_datadir=${m_prefix}/share
4469
m_datadir=${m_prefix}/share
2834
QTRECOLL_DATADIR=${m_datadir}/recoll
4470
QTRECOLL_DATADIR=${m_datadir}/recoll
4471
4472
4473
4474
2835
4475
2836
4476
2837
4477
2838
4478
2839
4479
...
...
3483
s,@ac_ct_CC@,$ac_ct_CC,;t t
5123
s,@ac_ct_CC@,$ac_ct_CC,;t t
3484
s,@EXEEXT@,$EXEEXT,;t t
5124
s,@EXEEXT@,$EXEEXT,;t t
3485
s,@OBJEXT@,$OBJEXT,;t t
5125
s,@OBJEXT@,$OBJEXT,;t t
3486
s,@XAPIAN_CONFIG@,$XAPIAN_CONFIG,;t t
5126
s,@XAPIAN_CONFIG@,$XAPIAN_CONFIG,;t t
3487
s,@QMAKE@,$QMAKE,;t t
5127
s,@QMAKE@,$QMAKE,;t t
5128
s,@CPP@,$CPP,;t t
5129
s,@X_CFLAGS@,$X_CFLAGS,;t t
5130
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
5131
s,@X_LIBS@,$X_LIBS,;t t
5132
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
3488
s,@INCICONV@,$INCICONV,;t t
5133
s,@INCICONV@,$INCICONV,;t t
3489
s,@LIBICONV@,$LIBICONV,;t t
5134
s,@LIBICONV@,$LIBICONV,;t t
3490
s,@LIBXAPIAN@,$LIBXAPIAN,;t t
5135
s,@LIBXAPIAN@,$LIBXAPIAN,;t t
3491
s,@LIBFAM@,$LIBFAM,;t t
5136
s,@LIBFAM@,$LIBFAM,;t t
3492
s,@QTGUI@,$QTGUI,;t t
5137
s,@QTGUI@,$QTGUI,;t t