Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
| 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | test -d ./-p && rmdir ./-p |
| 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
| 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
| 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 254 | ac_default_prefix=/usr/local |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 255 | ac_config_libobj_dir=. |
| 256 | cross_compiling=no |
| 257 | subdirs= |
| 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
| 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
| 267 | # Identity of this package. |
| 268 | PACKAGE_NAME= |
| 269 | PACKAGE_TARNAME= |
| 270 | PACKAGE_VERSION= |
| 271 | PACKAGE_STRING= |
| 272 | PACKAGE_BUGREPORT= |
| 273 | |
| 274 | ac_unique_file="vim.h" |
| 275 | # Factoring default headers for most tests. |
| 276 | ac_includes_default="\ |
| 277 | #include <stdio.h> |
| 278 | #if HAVE_SYS_TYPES_H |
| 279 | # include <sys/types.h> |
| 280 | #endif |
| 281 | #if HAVE_SYS_STAT_H |
| 282 | # include <sys/stat.h> |
| 283 | #endif |
| 284 | #if STDC_HEADERS |
| 285 | # include <stdlib.h> |
| 286 | # include <stddef.h> |
| 287 | #else |
| 288 | # if HAVE_STDLIB_H |
| 289 | # include <stdlib.h> |
| 290 | # endif |
| 291 | #endif |
| 292 | #if HAVE_STRING_H |
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 294 | # include <memory.h> |
| 295 | # endif |
| 296 | # include <string.h> |
| 297 | #endif |
| 298 | #if HAVE_STRINGS_H |
| 299 | # include <strings.h> |
| 300 | #endif |
| 301 | #if HAVE_INTTYPES_H |
| 302 | # include <inttypes.h> |
| 303 | #else |
| 304 | # if HAVE_STDINT_H |
| 305 | # include <stdint.h> |
| 306 | # endif |
| 307 | #endif |
| 308 | #if HAVE_UNISTD_H |
| 309 | # include <unistd.h> |
| 310 | #endif" |
| 311 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 312 | 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 SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK STRIP CPP_MM OS_EXTRA_SRC OS_EXTRA_OBJ VIMNAME EXNAME VIEWNAME line_break dovimdiff dogvimdiff compiledby vi_cv_path_mzscheme MZSCHEME_SRC MZSCHEME_OBJ MZSCHEME_PRO MZSCHEME_LIBS MZSCHEME_CFLAGS vi_cv_path_perl vi_cv_perllib shrpenv PERL_SRC PERL_OBJ PERL_PRO PERL_CFLAGS PERL_LIBS vi_cv_path_python PYTHON_CONFDIR PYTHON_LIBS PYTHON_GETPATH_CFLAGS PYTHON_CFLAGS PYTHON_SRC PYTHON_OBJ vi_cv_path_tcl TCL_SRC TCL_OBJ TCL_PRO TCL_CFLAGS TCL_LIBS vi_cv_path_ruby RUBY_SRC RUBY_OBJ RUBY_PRO RUBY_CFLAGS RUBY_LIBS WORKSHOP_SRC WORKSHOP_OBJ NETBEANS_SRC NETBEANS_OBJ SNIFF_SRC SNIFF_OBJ xmkmfpath X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIB GTK_CONFIG GTK12_CONFIG PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_LIBNAME GNOME_LIBS GNOME_LIBDIR GNOME_INCLUDEDIR GNOME_CONFIG MOTIF_LIBNAME NARROW_PROTO GUI_INC_LOC GUI_LIB_LOC GUITYPE GUI_X_LIBS HANGULIN_SRC HANGULIN_OBJ TAGPRG INSTALL_LANGS INSTALL_TOOL_LANGS MSGFMT MAKEMO DEPEND_CFLAGS_FILTER LIBOBJS LTLIBOBJS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 313 | ac_subst_files='' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 314 | |
| 315 | # Initialize some variables set by options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 316 | ac_init_help= |
| 317 | ac_init_version=false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 318 | # The variables have the same names as the options, with |
| 319 | # dashes changed to underlines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 320 | cache_file=/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 321 | exec_prefix=NONE |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 322 | no_create= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 323 | no_recursion= |
| 324 | prefix=NONE |
| 325 | program_prefix=NONE |
| 326 | program_suffix=NONE |
| 327 | program_transform_name=s,x,x, |
| 328 | silent= |
| 329 | site= |
| 330 | srcdir= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 331 | verbose= |
| 332 | x_includes=NONE |
| 333 | x_libraries=NONE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 334 | |
| 335 | # Installation directory options. |
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 337 | # and all the variables that are supposed to be based on exec_prefix |
| 338 | # by default will actually change. |
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 340 | bindir='${exec_prefix}/bin' |
| 341 | sbindir='${exec_prefix}/sbin' |
| 342 | libexecdir='${exec_prefix}/libexec' |
| 343 | datadir='${prefix}/share' |
| 344 | sysconfdir='${prefix}/etc' |
| 345 | sharedstatedir='${prefix}/com' |
| 346 | localstatedir='${prefix}/var' |
| 347 | libdir='${exec_prefix}/lib' |
| 348 | includedir='${prefix}/include' |
| 349 | oldincludedir='/usr/include' |
| 350 | infodir='${prefix}/info' |
| 351 | mandir='${prefix}/man' |
| 352 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 353 | ac_prev= |
| 354 | for ac_option |
| 355 | do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 356 | # If the previous option needs an argument, assign it. |
| 357 | if test -n "$ac_prev"; then |
| 358 | eval "$ac_prev=\$ac_option" |
| 359 | ac_prev= |
| 360 | continue |
| 361 | fi |
| 362 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 364 | |
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 366 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 367 | case $ac_option in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 368 | |
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 370 | ac_prev=bindir ;; |
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 372 | bindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 373 | |
| 374 | -build | --build | --buil | --bui | --bu) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 375 | ac_prev=build_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 377 | build_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 378 | |
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 381 | ac_prev=cache_file ;; |
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 384 | cache_file=$ac_optarg ;; |
| 385 | |
| 386 | --config-cache | -C) |
| 387 | cache_file=config.cache ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 388 | |
| 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 390 | ac_prev=datadir ;; |
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 392 | | --da=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 393 | datadir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 394 | |
| 395 | -disable-* | --disable-*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 397 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 400 | { (exit 1); exit 1; }; } |
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 402 | eval "enable_$ac_feature=no" ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 403 | |
| 404 | -enable-* | --enable-*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 406 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 409 | { (exit 1); exit 1; }; } |
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 411 | case $ac_option in |
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 413 | *) ac_optarg=yes ;; |
| 414 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 416 | |
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 419 | | --exec | --exe | --ex) |
| 420 | ac_prev=exec_prefix ;; |
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 423 | | --exec=* | --exe=* | --ex=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 424 | exec_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 425 | |
| 426 | -gas | --gas | --ga | --g) |
| 427 | # Obsolete; use --with-gas. |
| 428 | with_gas=yes ;; |
| 429 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 430 | -help | --help | --hel | --he | -h) |
| 431 | ac_init_help=long ;; |
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 433 | ac_init_help=recursive ;; |
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 435 | ac_init_help=short ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 436 | |
| 437 | -host | --host | --hos | --ho) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 438 | ac_prev=host_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 439 | -host=* | --host=* | --hos=* | --ho=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 440 | host_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 441 | |
| 442 | -includedir | --includedir | --includedi | --included | --include \ |
| 443 | | --includ | --inclu | --incl | --inc) |
| 444 | ac_prev=includedir ;; |
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 447 | includedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 448 | |
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 450 | ac_prev=infodir ;; |
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 452 | infodir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 453 | |
| 454 | -libdir | --libdir | --libdi | --libd) |
| 455 | ac_prev=libdir ;; |
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 457 | libdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 458 | |
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 460 | | --libexe | --libex | --libe) |
| 461 | ac_prev=libexecdir ;; |
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 463 | | --libexe=* | --libex=* | --libe=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 464 | libexecdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 465 | |
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 467 | | --localstate | --localstat | --localsta | --localst \ |
| 468 | | --locals | --local | --loca | --loc | --lo) |
| 469 | ac_prev=localstatedir ;; |
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 473 | localstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 474 | |
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 476 | ac_prev=mandir ;; |
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 478 | mandir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 479 | |
| 480 | -nfp | --nfp | --nf) |
| 481 | # Obsolete; use --without-fp. |
| 482 | with_fp=no ;; |
| 483 | |
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 485 | | --no-cr | --no-c | -n) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 486 | no_create=yes ;; |
| 487 | |
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 490 | no_recursion=yes ;; |
| 491 | |
| 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 494 | | --oldin | --oldi | --old | --ol | --o) |
| 495 | ac_prev=oldincludedir ;; |
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 499 | oldincludedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 500 | |
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 502 | ac_prev=prefix ;; |
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 504 | prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 505 | |
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 507 | | --program-pre | --program-pr | --program-p) |
| 508 | ac_prev=program_prefix ;; |
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 511 | program_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 512 | |
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 514 | | --program-suf | --program-su | --program-s) |
| 515 | ac_prev=program_suffix ;; |
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 518 | program_suffix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 519 | |
| 520 | -program-transform-name | --program-transform-name \ |
| 521 | | --program-transform-nam | --program-transform-na \ |
| 522 | | --program-transform-n | --program-transform- \ |
| 523 | | --program-transform | --program-transfor \ |
| 524 | | --program-transfo | --program-transf \ |
| 525 | | --program-trans | --program-tran \ |
| 526 | | --progr-tra | --program-tr | --program-t) |
| 527 | ac_prev=program_transform_name ;; |
| 528 | -program-transform-name=* | --program-transform-name=* \ |
| 529 | | --program-transform-nam=* | --program-transform-na=* \ |
| 530 | | --program-transform-n=* | --program-transform-=* \ |
| 531 | | --program-transform=* | --program-transfor=* \ |
| 532 | | --program-transfo=* | --program-transf=* \ |
| 533 | | --program-trans=* | --program-tran=* \ |
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 535 | program_transform_name=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 536 | |
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 538 | | -silent | --silent | --silen | --sile | --sil) |
| 539 | silent=yes ;; |
| 540 | |
| 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 542 | ac_prev=sbindir ;; |
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 544 | | --sbi=* | --sb=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 545 | sbindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 546 | |
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 549 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 550 | | --sha | --sh) |
| 551 | ac_prev=sharedstatedir ;; |
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 555 | | --sha=* | --sh=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 556 | sharedstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 557 | |
| 558 | -site | --site | --sit) |
| 559 | ac_prev=site ;; |
| 560 | -site=* | --site=* | --sit=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 561 | site=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 562 | |
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 564 | ac_prev=srcdir ;; |
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 566 | srcdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 567 | |
| 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 569 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 570 | ac_prev=sysconfdir ;; |
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 573 | sysconfdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 574 | |
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 576 | ac_prev=target_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 578 | target_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 579 | |
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 581 | verbose=yes ;; |
| 582 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 583 | -version | --version | --versio | --versi | --vers | -V) |
| 584 | ac_init_version=: ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 585 | |
| 586 | -with-* | --with-*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 588 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 591 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 593 | case $ac_option in |
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 595 | *) ac_optarg=yes ;; |
| 596 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 598 | |
| 599 | -without-* | --without-*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 601 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 604 | { (exit 1); exit 1; }; } |
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 606 | eval "with_$ac_package=no" ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 607 | |
| 608 | --x) |
| 609 | # Obsolete; use --with-x. |
| 610 | with_x=yes ;; |
| 611 | |
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 613 | | --x-incl | --x-inc | --x-in | --x-i) |
| 614 | ac_prev=x_includes ;; |
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 617 | x_includes=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 618 | |
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 621 | ac_prev=x_libraries ;; |
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 624 | x_libraries=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 625 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 627 | Try \`$0 --help' for more information." >&2 |
| 628 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 629 | ;; |
| 630 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 631 | *=*) |
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 633 | # Reject names that are not valid shell variable names. |
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 636 | { (exit 1); exit 1; }; } |
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 638 | eval "$ac_envvar='$ac_optarg'" |
| 639 | export $ac_envvar ;; |
| 640 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 641 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 642 | # FIXME: should be removed in autoconf 3.0. |
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 647 | ;; |
| 648 | |
| 649 | esac |
| 650 | done |
| 651 | |
| 652 | if test -n "$ac_prev"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 655 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 656 | fi |
| 657 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 658 | # Be sure to have absolute paths. |
| 659 | for ac_var in exec_prefix prefix |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 660 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 661 | eval ac_val=$`echo $ac_var` |
| 662 | case $ac_val in |
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 665 | { (exit 1); exit 1; }; };; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 666 | esac |
| 667 | done |
| 668 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 669 | # Be sure to have absolute paths. |
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 671 | localstatedir libdir includedir oldincludedir infodir mandir |
| 672 | do |
| 673 | eval ac_val=$`echo $ac_var` |
| 674 | case $ac_val in |
| 675 | [\\/$]* | ?:[\\/]* ) ;; |
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 677 | { (exit 1); exit 1; }; };; |
| 678 | esac |
| 679 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 680 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 681 | # There might be people who depend on the old broken behavior: `$host' |
| 682 | # used to hold the argument of --host etc. |
| 683 | # FIXME: To remove some day. |
| 684 | build=$build_alias |
| 685 | host=$host_alias |
| 686 | target=$target_alias |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 687 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 688 | # FIXME: To remove some day. |
| 689 | if test "x$host_alias" != x; then |
| 690 | if test "x$build_alias" = x; then |
| 691 | cross_compiling=maybe |
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 694 | elif test "x$build_alias" != "x$host_alias"; then |
| 695 | cross_compiling=yes |
| 696 | fi |
| 697 | fi |
| 698 | |
| 699 | ac_tool_prefix= |
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 701 | |
| 702 | test "$silent" = yes && exec 6>/dev/null |
| 703 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 704 | |
| 705 | # Find the source files, if location was not specified. |
| 706 | if test -z "$srcdir"; then |
| 707 | ac_srcdir_defaulted=yes |
| 708 | # Try the directory containing this script, then its parent. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 711 | X"$0" : 'X\(//\)[^/]' \| \ |
| 712 | X"$0" : 'X\(//\)$' \| \ |
| 713 | X"$0" : 'X\(/\)' \| \ |
| 714 | . : '\(.\)' 2>/dev/null || |
| 715 | echo X"$0" | |
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 719 | /^X\(\/\).*/{ s//\1/; q; } |
| 720 | s/.*/./; q'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 721 | srcdir=$ac_confdir |
| 722 | if test ! -r $srcdir/$ac_unique_file; then |
| 723 | srcdir=.. |
| 724 | fi |
| 725 | else |
| 726 | ac_srcdir_defaulted=no |
| 727 | fi |
| 728 | if test ! -r $srcdir/$ac_unique_file; then |
| 729 | if test "$ac_srcdir_defaulted" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 731 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 732 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 734 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 735 | fi |
| 736 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 739 | { (exit 1); exit 1; }; } |
| 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 741 | ac_env_build_alias_set=${build_alias+set} |
| 742 | ac_env_build_alias_value=$build_alias |
| 743 | ac_cv_env_build_alias_set=${build_alias+set} |
| 744 | ac_cv_env_build_alias_value=$build_alias |
| 745 | ac_env_host_alias_set=${host_alias+set} |
| 746 | ac_env_host_alias_value=$host_alias |
| 747 | ac_cv_env_host_alias_set=${host_alias+set} |
| 748 | ac_cv_env_host_alias_value=$host_alias |
| 749 | ac_env_target_alias_set=${target_alias+set} |
| 750 | ac_env_target_alias_value=$target_alias |
| 751 | ac_cv_env_target_alias_set=${target_alias+set} |
| 752 | ac_cv_env_target_alias_value=$target_alias |
| 753 | ac_env_CC_set=${CC+set} |
| 754 | ac_env_CC_value=$CC |
| 755 | ac_cv_env_CC_set=${CC+set} |
| 756 | ac_cv_env_CC_value=$CC |
| 757 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 758 | ac_env_CFLAGS_value=$CFLAGS |
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 762 | ac_env_LDFLAGS_value=$LDFLAGS |
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_env_CPP_set=${CPP+set} |
| 770 | ac_env_CPP_value=$CPP |
| 771 | ac_cv_env_CPP_set=${CPP+set} |
| 772 | ac_cv_env_CPP_value=$CPP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 773 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 774 | # |
| 775 | # Report the --help message. |
| 776 | # |
| 777 | if test "$ac_init_help" = "long"; then |
| 778 | # Omit some internal or obsolete options to make the list less imposing. |
| 779 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 780 | cat <<_ACEOF |
| 781 | \`configure' configures this package to adapt to many kinds of systems. |
| 782 | |
| 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 784 | |
| 785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 786 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 787 | |
| 788 | Defaults for the options are specified in brackets. |
| 789 | |
| 790 | Configuration: |
| 791 | -h, --help display this help and exit |
| 792 | --help=short display options specific to this package |
| 793 | --help=recursive display the short help of all the included packages |
| 794 | -V, --version display version information and exit |
| 795 | -q, --quiet, --silent do not print \`checking...' messages |
| 796 | --cache-file=FILE cache test results in FILE [disabled] |
| 797 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 798 | -n, --no-create do not create output files |
| 799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 800 | |
| 801 | _ACEOF |
| 802 | |
| 803 | cat <<_ACEOF |
| 804 | Installation directories: |
| 805 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 806 | [$ac_default_prefix] |
| 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 808 | [PREFIX] |
| 809 | |
| 810 | By default, \`make install' will install all the files in |
| 811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 813 | for instance \`--prefix=\$HOME'. |
| 814 | |
| 815 | For better control, use the options below. |
| 816 | |
| 817 | Fine tuning of the installation directories: |
| 818 | --bindir=DIR user executables [EPREFIX/bin] |
| 819 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 820 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 825 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 826 | --includedir=DIR C header files [PREFIX/include] |
| 827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 828 | --infodir=DIR info documentation [PREFIX/info] |
| 829 | --mandir=DIR man documentation [PREFIX/man] |
| 830 | _ACEOF |
| 831 | |
| 832 | cat <<\_ACEOF |
| 833 | |
| 834 | X features: |
| 835 | --x-includes=DIR X include files are in DIR |
| 836 | --x-libraries=DIR X library files are in DIR |
| 837 | _ACEOF |
| 838 | fi |
| 839 | |
| 840 | if test -n "$ac_init_help"; then |
| 841 | |
| 842 | cat <<\_ACEOF |
| 843 | |
| 844 | Optional Features: |
| 845 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 846 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 847 | --disable-darwin Disable Darwin (Mac OS X) support. |
| 848 | --disable-xsmp Disable XSMP session management |
| 849 | --disable-xsmp-interact Disable XSMP interaction |
| 850 | --enable-mzschemeinterp Include MzScheme interpreter. |
| 851 | --enable-perlinterp Include Perl interpreter. |
| 852 | --enable-pythoninterp Include Python interpreter. |
| 853 | --enable-tclinterp Include Tcl interpreter. |
| 854 | --enable-rubyinterp Include Ruby interpreter. |
| 855 | --enable-cscope Include cscope interface. |
| 856 | --enable-workshop Include Sun Visual Workshop support. |
| 857 | --disable-netbeans Disable NetBeans integration support. |
| 858 | --enable-sniff Include Sniff interface. |
| 859 | --enable-multibyte Include multibyte editing support. |
| 860 | --enable-hangulinput Include Hangul input support. |
| 861 | --enable-xim Include XIM input support. |
| 862 | --enable-fontset Include X fontset output support. |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 863 | --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 864 | --enable-gtk-check If auto-select GUI, check for GTK default=yes |
| 865 | --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes |
| 866 | --enable-gnome-check If GTK GUI, check for GNOME default=no |
| 867 | --enable-motif-check If auto-select GUI, check for Motif default=yes |
| 868 | --enable-athena-check If auto-select GUI, check for Athena default=yes |
| 869 | --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes |
| 870 | --enable-carbon-check If auto-select GUI, check for Carbon default=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 871 | --disable-gtktest Do not try to compile and run a test GTK program |
| 872 | --disable-acl Don't check for ACL support. |
| 873 | --disable-gpm Don't use gpm (Linux mouse daemon). |
| 874 | --disable-nls Don't support NLS (gettext()). |
| 875 | |
| 876 | Optional Packages: |
| 877 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 878 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 879 | --with-vim-name=NAME what to call the Vim executable |
| 880 | --with-ex-name=NAME what to call the Ex executable |
| 881 | --with-view-name=NAME what to call the View executable |
| 882 | --with-global-runtime=DIR global runtime directory in 'runtimepath' |
| 883 | --with-modified-by=NAME name of who modified a release version |
| 884 | --with-features=TYPE tiny, small, normal, big or huge (default: normal) |
| 885 | --with-compiledby=NAME name to show in :version message |
| 886 | --with-plthome=PLTHOME Use PLTHOME. |
| 887 | --with-python-config-dir=PATH Python's config directory |
| 888 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
| 889 | --with-x use the X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 890 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
| 891 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
| 892 | --with-gnome-includes=DIR Specify location of GNOME headers |
| 893 | --with-gnome-libs=DIR Specify location of GNOME libs |
| 894 | --with-gnome Specify prefix for GNOME files |
| 895 | --with-motif-lib=STRING Library for Motif |
| 896 | --with-tlib=library terminal library to be used |
| 897 | |
| 898 | Some influential environment variables: |
| 899 | CC C compiler command |
| 900 | CFLAGS C compiler flags |
| 901 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 902 | nonstandard directory <lib dir> |
| 903 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 904 | headers in a nonstandard directory <include dir> |
| 905 | CPP C preprocessor |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 906 | |
| 907 | Use these variables to override the choices made by `configure' or to help |
| 908 | it to find libraries and programs with nonstandard names/locations. |
| 909 | |
| 910 | _ACEOF |
| 911 | fi |
| 912 | |
| 913 | if test "$ac_init_help" = "recursive"; then |
| 914 | # If there are subdirs, report their specific --help. |
| 915 | ac_popdir=`pwd` |
| 916 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 917 | test -d $ac_dir || continue |
| 918 | ac_builddir=. |
| 919 | |
| 920 | if test "$ac_dir" != .; then |
| 921 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 922 | # A "../" for each directory in $ac_dir_suffix. |
| 923 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 924 | else |
| 925 | ac_dir_suffix= ac_top_builddir= |
| 926 | fi |
| 927 | |
| 928 | case $srcdir in |
| 929 | .) # No --srcdir option. We are building in place. |
| 930 | ac_srcdir=. |
| 931 | if test -z "$ac_top_builddir"; then |
| 932 | ac_top_srcdir=. |
| 933 | else |
| 934 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 935 | fi ;; |
| 936 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 937 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 938 | ac_top_srcdir=$srcdir ;; |
| 939 | *) # Relative path. |
| 940 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 941 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 942 | esac |
| 943 | |
| 944 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 945 | # the directories may not exist. |
| 946 | case `pwd` in |
| 947 | .) ac_abs_builddir="$ac_dir";; |
| 948 | *) |
| 949 | case "$ac_dir" in |
| 950 | .) ac_abs_builddir=`pwd`;; |
| 951 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 952 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 953 | esac;; |
| 954 | esac |
| 955 | case $ac_abs_builddir in |
| 956 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 957 | *) |
| 958 | case ${ac_top_builddir}. in |
| 959 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 960 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 961 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 962 | esac;; |
| 963 | esac |
| 964 | case $ac_abs_builddir in |
| 965 | .) ac_abs_srcdir=$ac_srcdir;; |
| 966 | *) |
| 967 | case $ac_srcdir in |
| 968 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 969 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 970 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 971 | esac;; |
| 972 | esac |
| 973 | case $ac_abs_builddir in |
| 974 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 975 | *) |
| 976 | case $ac_top_srcdir in |
| 977 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 978 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 979 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 980 | esac;; |
| 981 | esac |
| 982 | |
| 983 | cd $ac_dir |
| 984 | # Check for guested configure; otherwise get Cygnus style configure. |
| 985 | if test -f $ac_srcdir/configure.gnu; then |
| 986 | echo |
| 987 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 988 | elif test -f $ac_srcdir/configure; then |
| 989 | echo |
| 990 | $SHELL $ac_srcdir/configure --help=recursive |
| 991 | elif test -f $ac_srcdir/configure.ac || |
| 992 | test -f $ac_srcdir/configure.in; then |
| 993 | echo |
| 994 | $ac_configure --help |
| 995 | else |
| 996 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 997 | fi |
| 998 | cd $ac_popdir |
| 999 | done |
| 1000 | fi |
| 1001 | |
| 1002 | test -n "$ac_init_help" && exit 0 |
| 1003 | if $ac_init_version; then |
| 1004 | cat <<\_ACEOF |
| 1005 | |
| 1006 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1007 | This configure script is free software; the Free Software Foundation |
| 1008 | gives unlimited permission to copy, distribute and modify it. |
| 1009 | _ACEOF |
| 1010 | exit 0 |
| 1011 | fi |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 1012 | exec 5>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1013 | cat >&5 <<_ACEOF |
| 1014 | This file contains any messages produced by compilers while |
| 1015 | running configure, to aid debugging if configure makes a mistake. |
| 1016 | |
| 1017 | It was created by $as_me, which was |
| 1018 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1019 | |
| 1020 | $ $0 $@ |
| 1021 | |
| 1022 | _ACEOF |
| 1023 | { |
| 1024 | cat <<_ASUNAME |
| 1025 | ## --------- ## |
| 1026 | ## Platform. ## |
| 1027 | ## --------- ## |
| 1028 | |
| 1029 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1030 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1031 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1032 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1033 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1034 | |
| 1035 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1036 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1037 | |
| 1038 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1039 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1040 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1041 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1042 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1043 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1044 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1045 | |
| 1046 | _ASUNAME |
| 1047 | |
| 1048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1049 | for as_dir in $PATH |
| 1050 | do |
| 1051 | IFS=$as_save_IFS |
| 1052 | test -z "$as_dir" && as_dir=. |
| 1053 | echo "PATH: $as_dir" |
| 1054 | done |
| 1055 | |
| 1056 | } >&5 |
| 1057 | |
| 1058 | cat >&5 <<_ACEOF |
| 1059 | |
| 1060 | |
| 1061 | ## ----------- ## |
| 1062 | ## Core tests. ## |
| 1063 | ## ----------- ## |
| 1064 | |
| 1065 | _ACEOF |
| 1066 | |
| 1067 | |
| 1068 | # Keep a trace of the command line. |
| 1069 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1070 | # Strip out --silent because we don't want to record it for future runs. |
| 1071 | # Also quote any args containing shell meta-characters. |
| 1072 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1073 | ac_configure_args= |
| 1074 | ac_configure_args0= |
| 1075 | ac_configure_args1= |
| 1076 | ac_sep= |
| 1077 | ac_must_keep_next=false |
| 1078 | for ac_pass in 1 2 |
| 1079 | do |
| 1080 | for ac_arg |
| 1081 | do |
| 1082 | case $ac_arg in |
| 1083 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1084 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1085 | | -silent | --silent | --silen | --sile | --sil) |
| 1086 | continue ;; |
| 1087 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1088 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1089 | esac |
| 1090 | case $ac_pass in |
| 1091 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1092 | 2) |
| 1093 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1094 | if test $ac_must_keep_next = true; then |
| 1095 | ac_must_keep_next=false # Got value, back to normal. |
| 1096 | else |
| 1097 | case $ac_arg in |
| 1098 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1099 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1100 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1101 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1102 | case "$ac_configure_args0 " in |
| 1103 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1104 | esac |
| 1105 | ;; |
| 1106 | -* ) ac_must_keep_next=true ;; |
| 1107 | esac |
| 1108 | fi |
| 1109 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1110 | # Get rid of the leading space. |
| 1111 | ac_sep=" " |
| 1112 | ;; |
| 1113 | esac |
| 1114 | done |
| 1115 | done |
| 1116 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1117 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1118 | |
| 1119 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1120 | # config.log. We remove comments because anyway the quotes in there |
| 1121 | # would cause problems or look ugly. |
| 1122 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1123 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1124 | trap 'exit_status=$? |
| 1125 | # Save into config.log some information that might help in debugging. |
| 1126 | { |
| 1127 | echo |
| 1128 | |
| 1129 | cat <<\_ASBOX |
| 1130 | ## ---------------- ## |
| 1131 | ## Cache variables. ## |
| 1132 | ## ---------------- ## |
| 1133 | _ASBOX |
| 1134 | echo |
| 1135 | # The following way of writing the cache mishandles newlines in values, |
| 1136 | { |
| 1137 | (set) 2>&1 | |
| 1138 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1139 | *ac_space=\ *) |
| 1140 | sed -n \ |
| 1141 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1142 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1143 | ;; |
| 1144 | *) |
| 1145 | sed -n \ |
| 1146 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1147 | ;; |
| 1148 | esac; |
| 1149 | } |
| 1150 | echo |
| 1151 | |
| 1152 | cat <<\_ASBOX |
| 1153 | ## ----------------- ## |
| 1154 | ## Output variables. ## |
| 1155 | ## ----------------- ## |
| 1156 | _ASBOX |
| 1157 | echo |
| 1158 | for ac_var in $ac_subst_vars |
| 1159 | do |
| 1160 | eval ac_val=$`echo $ac_var` |
| 1161 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1162 | done | sort |
| 1163 | echo |
| 1164 | |
| 1165 | if test -n "$ac_subst_files"; then |
| 1166 | cat <<\_ASBOX |
| 1167 | ## ------------- ## |
| 1168 | ## Output files. ## |
| 1169 | ## ------------- ## |
| 1170 | _ASBOX |
| 1171 | echo |
| 1172 | for ac_var in $ac_subst_files |
| 1173 | do |
| 1174 | eval ac_val=$`echo $ac_var` |
| 1175 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1176 | done | sort |
| 1177 | echo |
| 1178 | fi |
| 1179 | |
| 1180 | if test -s confdefs.h; then |
| 1181 | cat <<\_ASBOX |
| 1182 | ## ----------- ## |
| 1183 | ## confdefs.h. ## |
| 1184 | ## ----------- ## |
| 1185 | _ASBOX |
| 1186 | echo |
| 1187 | sed "/^$/d" confdefs.h | sort |
| 1188 | echo |
| 1189 | fi |
| 1190 | test "$ac_signal" != 0 && |
| 1191 | echo "$as_me: caught signal $ac_signal" |
| 1192 | echo "$as_me: exit $exit_status" |
| 1193 | } >&5 |
| 1194 | rm -f core *.core && |
| 1195 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1196 | exit $exit_status |
| 1197 | ' 0 |
| 1198 | for ac_signal in 1 2 13 15; do |
| 1199 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1200 | done |
| 1201 | ac_signal=0 |
| 1202 | |
| 1203 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1204 | rm -rf conftest* confdefs.h |
| 1205 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1206 | echo >confdefs.h |
| 1207 | |
| 1208 | # Predefined preprocessor variables. |
| 1209 | |
| 1210 | cat >>confdefs.h <<_ACEOF |
| 1211 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1212 | _ACEOF |
| 1213 | |
| 1214 | |
| 1215 | cat >>confdefs.h <<_ACEOF |
| 1216 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1217 | _ACEOF |
| 1218 | |
| 1219 | |
| 1220 | cat >>confdefs.h <<_ACEOF |
| 1221 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1222 | _ACEOF |
| 1223 | |
| 1224 | |
| 1225 | cat >>confdefs.h <<_ACEOF |
| 1226 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1227 | _ACEOF |
| 1228 | |
| 1229 | |
| 1230 | cat >>confdefs.h <<_ACEOF |
| 1231 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1232 | _ACEOF |
| 1233 | |
| 1234 | |
| 1235 | # Let the site file select an alternate cache file if it wants to. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1236 | # Prefer explicitly selected file to automatically selected ones. |
| 1237 | if test -z "$CONFIG_SITE"; then |
| 1238 | if test "x$prefix" != xNONE; then |
| 1239 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1240 | else |
| 1241 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1242 | fi |
| 1243 | fi |
| 1244 | for ac_site_file in $CONFIG_SITE; do |
| 1245 | if test -r "$ac_site_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1246 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1247 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1248 | sed 's/^/| /' "$ac_site_file" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1249 | . "$ac_site_file" |
| 1250 | fi |
| 1251 | done |
| 1252 | |
| 1253 | if test -r "$cache_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1254 | # Some versions of bash will fail to source /dev/null (special |
| 1255 | # files actually), so we avoid doing that. |
| 1256 | if test -f "$cache_file"; then |
| 1257 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1258 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1259 | case $cache_file in |
| 1260 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1261 | *) . ./$cache_file;; |
| 1262 | esac |
| 1263 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1264 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1265 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1266 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1267 | >$cache_file |
| 1268 | fi |
| 1269 | |
| 1270 | # Check that the precious variables saved in the cache have kept the same |
| 1271 | # value. |
| 1272 | ac_cache_corrupted=false |
| 1273 | for ac_var in `(set) 2>&1 | |
| 1274 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1275 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1276 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1277 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1278 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1279 | case $ac_old_set,$ac_new_set in |
| 1280 | set,) |
| 1281 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1282 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1283 | ac_cache_corrupted=: ;; |
| 1284 | ,set) |
| 1285 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1286 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1287 | ac_cache_corrupted=: ;; |
| 1288 | ,);; |
| 1289 | *) |
| 1290 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1291 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1292 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1293 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1294 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1295 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1296 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1297 | ac_cache_corrupted=: |
| 1298 | fi;; |
| 1299 | esac |
| 1300 | # Pass precious variables to config.status. |
| 1301 | if test "$ac_new_set" = set; then |
| 1302 | case $ac_new_val in |
| 1303 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1304 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1305 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1306 | esac |
| 1307 | case " $ac_configure_args " in |
| 1308 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1309 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1310 | esac |
| 1311 | fi |
| 1312 | done |
| 1313 | if $ac_cache_corrupted; then |
| 1314 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1315 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1316 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1317 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1318 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1319 | fi |
| 1320 | |
| 1321 | ac_ext=c |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1322 | ac_cpp='$CPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | |
| 1344 | |
| 1345 | ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
| 1346 | |
| 1347 | |
| 1348 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1349 | #define UNIX 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1350 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1351 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1352 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1353 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1354 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 1355 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1357 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1358 | cat >conftest.make <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1359 | all: |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1360 | @echo 'ac_maketemp="$(MAKE)"' |
| 1361 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1362 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1363 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1364 | if test -n "$ac_maketemp"; then |
| 1365 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1366 | else |
| 1367 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1368 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1369 | rm -f conftest.make |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1370 | fi |
| 1371 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1372 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1373 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1374 | SET_MAKE= |
| 1375 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1376 | echo "$as_me:$LINENO: result: no" >&5 |
| 1377 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1378 | SET_MAKE="MAKE=${MAKE-make}" |
| 1379 | fi |
| 1380 | |
| 1381 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1382 | ac_ext=c |
| 1383 | ac_cpp='$CPP $CPPFLAGS' |
| 1384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1387 | if test -n "$ac_tool_prefix"; then |
| 1388 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1389 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1390 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1392 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1394 | else |
| 1395 | if test -n "$CC"; then |
| 1396 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1397 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1399 | for as_dir in $PATH |
| 1400 | do |
| 1401 | IFS=$as_save_IFS |
| 1402 | test -z "$as_dir" && as_dir=. |
| 1403 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1404 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1405 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1407 | break 2 |
| 1408 | fi |
| 1409 | done |
| 1410 | done |
| 1411 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1412 | fi |
| 1413 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1414 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1415 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1416 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1417 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1418 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1419 | echo "$as_me:$LINENO: result: no" >&5 |
| 1420 | echo "${ECHO_T}no" >&6 |
| 1421 | fi |
| 1422 | |
| 1423 | fi |
| 1424 | if test -z "$ac_cv_prog_CC"; then |
| 1425 | ac_ct_CC=$CC |
| 1426 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1427 | set dummy gcc; ac_word=$2 |
| 1428 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1430 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1432 | else |
| 1433 | if test -n "$ac_ct_CC"; then |
| 1434 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1435 | else |
| 1436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1437 | for as_dir in $PATH |
| 1438 | do |
| 1439 | IFS=$as_save_IFS |
| 1440 | test -z "$as_dir" && as_dir=. |
| 1441 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1442 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1443 | ac_cv_prog_ac_ct_CC="gcc" |
| 1444 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1445 | break 2 |
| 1446 | fi |
| 1447 | done |
| 1448 | done |
| 1449 | |
| 1450 | fi |
| 1451 | fi |
| 1452 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1453 | if test -n "$ac_ct_CC"; then |
| 1454 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1455 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1456 | else |
| 1457 | echo "$as_me:$LINENO: result: no" >&5 |
| 1458 | echo "${ECHO_T}no" >&6 |
| 1459 | fi |
| 1460 | |
| 1461 | CC=$ac_ct_CC |
| 1462 | else |
| 1463 | CC="$ac_cv_prog_CC" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1464 | fi |
| 1465 | |
| 1466 | if test -z "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1467 | if test -n "$ac_tool_prefix"; then |
| 1468 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1469 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1470 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1472 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1474 | else |
| 1475 | if test -n "$CC"; then |
| 1476 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1477 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1479 | for as_dir in $PATH |
| 1480 | do |
| 1481 | IFS=$as_save_IFS |
| 1482 | test -z "$as_dir" && as_dir=. |
| 1483 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1484 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1485 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1487 | break 2 |
| 1488 | fi |
| 1489 | done |
| 1490 | done |
| 1491 | |
| 1492 | fi |
| 1493 | fi |
| 1494 | CC=$ac_cv_prog_CC |
| 1495 | if test -n "$CC"; then |
| 1496 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1497 | echo "${ECHO_T}$CC" >&6 |
| 1498 | else |
| 1499 | echo "$as_me:$LINENO: result: no" >&5 |
| 1500 | echo "${ECHO_T}no" >&6 |
| 1501 | fi |
| 1502 | |
| 1503 | fi |
| 1504 | if test -z "$ac_cv_prog_CC"; then |
| 1505 | ac_ct_CC=$CC |
| 1506 | # Extract the first word of "cc", so it can be a program name with args. |
| 1507 | set dummy cc; ac_word=$2 |
| 1508 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1510 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1512 | else |
| 1513 | if test -n "$ac_ct_CC"; then |
| 1514 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1515 | else |
| 1516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1517 | for as_dir in $PATH |
| 1518 | do |
| 1519 | IFS=$as_save_IFS |
| 1520 | test -z "$as_dir" && as_dir=. |
| 1521 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1522 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1523 | ac_cv_prog_ac_ct_CC="cc" |
| 1524 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1525 | break 2 |
| 1526 | fi |
| 1527 | done |
| 1528 | done |
| 1529 | |
| 1530 | fi |
| 1531 | fi |
| 1532 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1533 | if test -n "$ac_ct_CC"; then |
| 1534 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1535 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1536 | else |
| 1537 | echo "$as_me:$LINENO: result: no" >&5 |
| 1538 | echo "${ECHO_T}no" >&6 |
| 1539 | fi |
| 1540 | |
| 1541 | CC=$ac_ct_CC |
| 1542 | else |
| 1543 | CC="$ac_cv_prog_CC" |
| 1544 | fi |
| 1545 | |
| 1546 | fi |
| 1547 | if test -z "$CC"; then |
| 1548 | # Extract the first word of "cc", so it can be a program name with args. |
| 1549 | set dummy cc; ac_word=$2 |
| 1550 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1552 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1554 | else |
| 1555 | if test -n "$CC"; then |
| 1556 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1557 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1558 | ac_prog_rejected=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1560 | for as_dir in $PATH |
| 1561 | do |
| 1562 | IFS=$as_save_IFS |
| 1563 | test -z "$as_dir" && as_dir=. |
| 1564 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1565 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1566 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1567 | ac_prog_rejected=yes |
| 1568 | continue |
| 1569 | fi |
| 1570 | ac_cv_prog_CC="cc" |
| 1571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1572 | break 2 |
| 1573 | fi |
| 1574 | done |
| 1575 | done |
| 1576 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1577 | if test $ac_prog_rejected = yes; then |
| 1578 | # We found a bogon in the path, so make sure we never use it. |
| 1579 | set dummy $ac_cv_prog_CC |
| 1580 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1581 | if test $# != 0; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1582 | # We chose a different compiler from the bogus one. |
| 1583 | # However, it has the same basename, so the bogon will be chosen |
| 1584 | # first if we set CC to just the basename; use the full file name. |
| 1585 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1586 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1587 | fi |
| 1588 | fi |
| 1589 | fi |
| 1590 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1591 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1592 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1593 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1594 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1595 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1596 | echo "$as_me:$LINENO: result: no" >&5 |
| 1597 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1598 | fi |
| 1599 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1600 | fi |
| 1601 | if test -z "$CC"; then |
| 1602 | if test -n "$ac_tool_prefix"; then |
| 1603 | for ac_prog in cl |
| 1604 | do |
| 1605 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1606 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1607 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1609 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1611 | else |
| 1612 | if test -n "$CC"; then |
| 1613 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1614 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1616 | for as_dir in $PATH |
| 1617 | do |
| 1618 | IFS=$as_save_IFS |
| 1619 | test -z "$as_dir" && as_dir=. |
| 1620 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1621 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1622 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1624 | break 2 |
| 1625 | fi |
| 1626 | done |
| 1627 | done |
| 1628 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1629 | fi |
| 1630 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1631 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1632 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1633 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1634 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1635 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1636 | echo "$as_me:$LINENO: result: no" >&5 |
| 1637 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1638 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1639 | |
| 1640 | test -n "$CC" && break |
| 1641 | done |
| 1642 | fi |
| 1643 | if test -z "$CC"; then |
| 1644 | ac_ct_CC=$CC |
| 1645 | for ac_prog in cl |
| 1646 | do |
| 1647 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1648 | set dummy $ac_prog; ac_word=$2 |
| 1649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1651 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1653 | else |
| 1654 | if test -n "$ac_ct_CC"; then |
| 1655 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1656 | else |
| 1657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1658 | for as_dir in $PATH |
| 1659 | do |
| 1660 | IFS=$as_save_IFS |
| 1661 | test -z "$as_dir" && as_dir=. |
| 1662 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1664 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1666 | break 2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1667 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1668 | done |
| 1669 | done |
| 1670 | |
| 1671 | fi |
| 1672 | fi |
| 1673 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1674 | if test -n "$ac_ct_CC"; then |
| 1675 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1676 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1677 | else |
| 1678 | echo "$as_me:$LINENO: result: no" >&5 |
| 1679 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1680 | fi |
| 1681 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1682 | test -n "$ac_ct_CC" && break |
| 1683 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1684 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1685 | CC=$ac_ct_CC |
| 1686 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1687 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1688 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1689 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1690 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1691 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1692 | See \`config.log' for more details." >&5 |
| 1693 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1694 | See \`config.log' for more details." >&2;} |
| 1695 | { (exit 1); exit 1; }; } |
| 1696 | |
| 1697 | # Provide some information about the compiler. |
| 1698 | echo "$as_me:$LINENO:" \ |
| 1699 | "checking for C compiler version" >&5 |
| 1700 | ac_compiler=`set X $ac_compile; echo $2` |
| 1701 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1702 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1703 | ac_status=$? |
| 1704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1705 | (exit $ac_status); } |
| 1706 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1707 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1708 | ac_status=$? |
| 1709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1710 | (exit $ac_status); } |
| 1711 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1712 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1713 | ac_status=$? |
| 1714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1715 | (exit $ac_status); } |
| 1716 | |
| 1717 | cat >conftest.$ac_ext <<_ACEOF |
| 1718 | /* confdefs.h. */ |
| 1719 | _ACEOF |
| 1720 | cat confdefs.h >>conftest.$ac_ext |
| 1721 | cat >>conftest.$ac_ext <<_ACEOF |
| 1722 | /* end confdefs.h. */ |
| 1723 | |
| 1724 | int |
| 1725 | main () |
| 1726 | { |
| 1727 | |
| 1728 | ; |
| 1729 | return 0; |
| 1730 | } |
| 1731 | _ACEOF |
| 1732 | ac_clean_files_save=$ac_clean_files |
| 1733 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1734 | # Try to create an executable without -o first, disregard a.out. |
| 1735 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1736 | # of exeext. |
| 1737 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1738 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1739 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1740 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1741 | (eval $ac_link_default) 2>&5 |
| 1742 | ac_status=$? |
| 1743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1744 | (exit $ac_status); }; then |
| 1745 | # Find the output, starting from the most likely. This scheme is |
| 1746 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1747 | # resort. |
| 1748 | |
| 1749 | # Be careful to initialize this variable, since it used to be cached. |
| 1750 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1751 | ac_cv_exeext= |
| 1752 | # b.out is created by i960 compilers. |
| 1753 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1754 | do |
| 1755 | test -f "$ac_file" || continue |
| 1756 | case $ac_file in |
| 1757 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1758 | ;; |
| 1759 | conftest.$ac_ext ) |
| 1760 | # This is the source file. |
| 1761 | ;; |
| 1762 | [ab].out ) |
| 1763 | # We found the default executable, but exeext='' is most |
| 1764 | # certainly right. |
| 1765 | break;; |
| 1766 | *.* ) |
| 1767 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1768 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1769 | # but it would be cool to find out if it's true. Does anybody |
| 1770 | # maintain Libtool? --akim. |
| 1771 | export ac_cv_exeext |
| 1772 | break;; |
| 1773 | * ) |
| 1774 | break;; |
| 1775 | esac |
| 1776 | done |
| 1777 | else |
| 1778 | echo "$as_me: failed program was:" >&5 |
| 1779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1780 | |
| 1781 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1782 | See \`config.log' for more details." >&5 |
| 1783 | echo "$as_me: error: C compiler cannot create executables |
| 1784 | See \`config.log' for more details." >&2;} |
| 1785 | { (exit 77); exit 77; }; } |
| 1786 | fi |
| 1787 | |
| 1788 | ac_exeext=$ac_cv_exeext |
| 1789 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1790 | echo "${ECHO_T}$ac_file" >&6 |
| 1791 | |
| 1792 | # Check the compiler produces executables we can run. If not, either |
| 1793 | # the compiler is broken, or we cross compile. |
| 1794 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1795 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1796 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1797 | # If not cross compiling, check that we can run a simple program. |
| 1798 | if test "$cross_compiling" != yes; then |
| 1799 | if { ac_try='./$ac_file' |
| 1800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1801 | (eval $ac_try) 2>&5 |
| 1802 | ac_status=$? |
| 1803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1804 | (exit $ac_status); }; }; then |
| 1805 | cross_compiling=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1806 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1807 | if test "$cross_compiling" = maybe; then |
| 1808 | cross_compiling=yes |
| 1809 | else |
| 1810 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1811 | If you meant to cross compile, use \`--host'. |
| 1812 | See \`config.log' for more details." >&5 |
| 1813 | echo "$as_me: error: cannot run C compiled programs. |
| 1814 | If you meant to cross compile, use \`--host'. |
| 1815 | See \`config.log' for more details." >&2;} |
| 1816 | { (exit 1); exit 1; }; } |
| 1817 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1818 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1819 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1820 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1821 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1822 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1823 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1824 | ac_clean_files=$ac_clean_files_save |
| 1825 | # Check the compiler produces executables we can run. If not, either |
| 1826 | # the compiler is broken, or we cross compile. |
| 1827 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1828 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1829 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1830 | echo "${ECHO_T}$cross_compiling" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1831 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1832 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1833 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1835 | (eval $ac_link) 2>&5 |
| 1836 | ac_status=$? |
| 1837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1838 | (exit $ac_status); }; then |
| 1839 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1840 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1841 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1842 | # `rm'. |
| 1843 | for ac_file in conftest.exe conftest conftest.*; do |
| 1844 | test -f "$ac_file" || continue |
| 1845 | case $ac_file in |
| 1846 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1847 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1848 | export ac_cv_exeext |
| 1849 | break;; |
| 1850 | * ) break;; |
| 1851 | esac |
| 1852 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1853 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1854 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1855 | See \`config.log' for more details." >&5 |
| 1856 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1857 | See \`config.log' for more details." >&2;} |
| 1858 | { (exit 1); exit 1; }; } |
| 1859 | fi |
| 1860 | |
| 1861 | rm -f conftest$ac_cv_exeext |
| 1862 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1863 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1864 | |
| 1865 | rm -f conftest.$ac_ext |
| 1866 | EXEEXT=$ac_cv_exeext |
| 1867 | ac_exeext=$EXEEXT |
| 1868 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1869 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1870 | if test "${ac_cv_objext+set}" = set; then |
| 1871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1872 | else |
| 1873 | cat >conftest.$ac_ext <<_ACEOF |
| 1874 | /* confdefs.h. */ |
| 1875 | _ACEOF |
| 1876 | cat confdefs.h >>conftest.$ac_ext |
| 1877 | cat >>conftest.$ac_ext <<_ACEOF |
| 1878 | /* end confdefs.h. */ |
| 1879 | |
| 1880 | int |
| 1881 | main () |
| 1882 | { |
| 1883 | |
| 1884 | ; |
| 1885 | return 0; |
| 1886 | } |
| 1887 | _ACEOF |
| 1888 | rm -f conftest.o conftest.obj |
| 1889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1890 | (eval $ac_compile) 2>&5 |
| 1891 | ac_status=$? |
| 1892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1893 | (exit $ac_status); }; then |
| 1894 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1895 | case $ac_file in |
| 1896 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1897 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1898 | break;; |
| 1899 | esac |
| 1900 | done |
| 1901 | else |
| 1902 | echo "$as_me: failed program was:" >&5 |
| 1903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1904 | |
| 1905 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1906 | See \`config.log' for more details." >&5 |
| 1907 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1908 | See \`config.log' for more details." >&2;} |
| 1909 | { (exit 1); exit 1; }; } |
| 1910 | fi |
| 1911 | |
| 1912 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1913 | fi |
| 1914 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1915 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1916 | OBJEXT=$ac_cv_objext |
| 1917 | ac_objext=$OBJEXT |
| 1918 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1919 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1920 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1922 | else |
| 1923 | cat >conftest.$ac_ext <<_ACEOF |
| 1924 | /* confdefs.h. */ |
| 1925 | _ACEOF |
| 1926 | cat confdefs.h >>conftest.$ac_ext |
| 1927 | cat >>conftest.$ac_ext <<_ACEOF |
| 1928 | /* end confdefs.h. */ |
| 1929 | |
| 1930 | int |
| 1931 | main () |
| 1932 | { |
| 1933 | #ifndef __GNUC__ |
| 1934 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1935 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1936 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1937 | ; |
| 1938 | return 0; |
| 1939 | } |
| 1940 | _ACEOF |
| 1941 | rm -f conftest.$ac_objext |
| 1942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1943 | (eval $ac_compile) 2>conftest.er1 |
| 1944 | ac_status=$? |
| 1945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1946 | rm -f conftest.er1 |
| 1947 | cat conftest.err >&5 |
| 1948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1949 | (exit $ac_status); } && |
| 1950 | { ac_try='test -z "$ac_c_werror_flag" |
| 1951 | || test ! -s conftest.err' |
| 1952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1953 | (eval $ac_try) 2>&5 |
| 1954 | ac_status=$? |
| 1955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1956 | (exit $ac_status); }; } && |
| 1957 | { ac_try='test -s conftest.$ac_objext' |
| 1958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1959 | (eval $ac_try) 2>&5 |
| 1960 | ac_status=$? |
| 1961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1962 | (exit $ac_status); }; }; then |
| 1963 | ac_compiler_gnu=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1964 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1965 | echo "$as_me: failed program was:" >&5 |
| 1966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1967 | |
| 1968 | ac_compiler_gnu=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1969 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1971 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1972 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1973 | fi |
| 1974 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1975 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1976 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1977 | ac_test_CFLAGS=${CFLAGS+set} |
| 1978 | ac_save_CFLAGS=$CFLAGS |
| 1979 | CFLAGS="-g" |
| 1980 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1981 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1982 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1984 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1985 | cat >conftest.$ac_ext <<_ACEOF |
| 1986 | /* confdefs.h. */ |
| 1987 | _ACEOF |
| 1988 | cat confdefs.h >>conftest.$ac_ext |
| 1989 | cat >>conftest.$ac_ext <<_ACEOF |
| 1990 | /* end confdefs.h. */ |
| 1991 | |
| 1992 | int |
| 1993 | main () |
| 1994 | { |
| 1995 | |
| 1996 | ; |
| 1997 | return 0; |
| 1998 | } |
| 1999 | _ACEOF |
| 2000 | rm -f conftest.$ac_objext |
| 2001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2002 | (eval $ac_compile) 2>conftest.er1 |
| 2003 | ac_status=$? |
| 2004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2005 | rm -f conftest.er1 |
| 2006 | cat conftest.err >&5 |
| 2007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2008 | (exit $ac_status); } && |
| 2009 | { ac_try='test -z "$ac_c_werror_flag" |
| 2010 | || test ! -s conftest.err' |
| 2011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2012 | (eval $ac_try) 2>&5 |
| 2013 | ac_status=$? |
| 2014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2015 | (exit $ac_status); }; } && |
| 2016 | { ac_try='test -s conftest.$ac_objext' |
| 2017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2018 | (eval $ac_try) 2>&5 |
| 2019 | ac_status=$? |
| 2020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2021 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2022 | ac_cv_prog_cc_g=yes |
| 2023 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2024 | echo "$as_me: failed program was:" >&5 |
| 2025 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2026 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2027 | ac_cv_prog_cc_g=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2028 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2030 | fi |
| 2031 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2032 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2033 | if test "$ac_test_CFLAGS" = set; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2034 | CFLAGS=$ac_save_CFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2035 | elif test $ac_cv_prog_cc_g = yes; then |
| 2036 | if test "$GCC" = yes; then |
| 2037 | CFLAGS="-g -O2" |
| 2038 | else |
| 2039 | CFLAGS="-g" |
| 2040 | fi |
| 2041 | else |
| 2042 | if test "$GCC" = yes; then |
| 2043 | CFLAGS="-O2" |
| 2044 | else |
| 2045 | CFLAGS= |
| 2046 | fi |
| 2047 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2048 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2049 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2050 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2052 | else |
| 2053 | ac_cv_prog_cc_stdc=no |
| 2054 | ac_save_CC=$CC |
| 2055 | cat >conftest.$ac_ext <<_ACEOF |
| 2056 | /* confdefs.h. */ |
| 2057 | _ACEOF |
| 2058 | cat confdefs.h >>conftest.$ac_ext |
| 2059 | cat >>conftest.$ac_ext <<_ACEOF |
| 2060 | /* end confdefs.h. */ |
| 2061 | #include <stdarg.h> |
| 2062 | #include <stdio.h> |
| 2063 | #include <sys/types.h> |
| 2064 | #include <sys/stat.h> |
| 2065 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2066 | struct buf { int x; }; |
| 2067 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2068 | static char *e (p, i) |
| 2069 | char **p; |
| 2070 | int i; |
| 2071 | { |
| 2072 | return p[i]; |
| 2073 | } |
| 2074 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2075 | { |
| 2076 | char *s; |
| 2077 | va_list v; |
| 2078 | va_start (v,p); |
| 2079 | s = g (p, va_arg (v,int)); |
| 2080 | va_end (v); |
| 2081 | return s; |
| 2082 | } |
| 2083 | |
| 2084 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2085 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2086 | These don't provoke an error unfortunately, instead are silently treated |
| 2087 | as 'x'. The following induces an error, until -std1 is added to get |
| 2088 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2089 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2090 | that's true only with -std1. */ |
| 2091 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2092 | |
| 2093 | int test (int i, double x); |
| 2094 | struct s1 {int (*f) (int a);}; |
| 2095 | struct s2 {int (*f) (double a);}; |
| 2096 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2097 | int argc; |
| 2098 | char **argv; |
| 2099 | int |
| 2100 | main () |
| 2101 | { |
| 2102 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2103 | ; |
| 2104 | return 0; |
| 2105 | } |
| 2106 | _ACEOF |
| 2107 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2108 | # breaks some systems' header files. |
| 2109 | # AIX -qlanglvl=ansi |
| 2110 | # Ultrix and OSF/1 -std1 |
| 2111 | # HP-UX 10.20 and later -Ae |
| 2112 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2113 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2114 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2115 | do |
| 2116 | CC="$ac_save_CC $ac_arg" |
| 2117 | rm -f conftest.$ac_objext |
| 2118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2119 | (eval $ac_compile) 2>conftest.er1 |
| 2120 | ac_status=$? |
| 2121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2122 | rm -f conftest.er1 |
| 2123 | cat conftest.err >&5 |
| 2124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2125 | (exit $ac_status); } && |
| 2126 | { ac_try='test -z "$ac_c_werror_flag" |
| 2127 | || test ! -s conftest.err' |
| 2128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2129 | (eval $ac_try) 2>&5 |
| 2130 | ac_status=$? |
| 2131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2132 | (exit $ac_status); }; } && |
| 2133 | { ac_try='test -s conftest.$ac_objext' |
| 2134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2135 | (eval $ac_try) 2>&5 |
| 2136 | ac_status=$? |
| 2137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2138 | (exit $ac_status); }; }; then |
| 2139 | ac_cv_prog_cc_stdc=$ac_arg |
| 2140 | break |
| 2141 | else |
| 2142 | echo "$as_me: failed program was:" >&5 |
| 2143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2144 | |
| 2145 | fi |
| 2146 | rm -f conftest.err conftest.$ac_objext |
| 2147 | done |
| 2148 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2149 | CC=$ac_save_CC |
| 2150 | |
| 2151 | fi |
| 2152 | |
| 2153 | case "x$ac_cv_prog_cc_stdc" in |
| 2154 | x|xno) |
| 2155 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2156 | echo "${ECHO_T}none needed" >&6 ;; |
| 2157 | *) |
| 2158 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2159 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2160 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2161 | esac |
| 2162 | |
| 2163 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2164 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2165 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2166 | # the declaration of exit, since it's the most demanding environment. |
| 2167 | cat >conftest.$ac_ext <<_ACEOF |
| 2168 | #ifndef __cplusplus |
| 2169 | choke me |
| 2170 | #endif |
| 2171 | _ACEOF |
| 2172 | rm -f conftest.$ac_objext |
| 2173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2174 | (eval $ac_compile) 2>conftest.er1 |
| 2175 | ac_status=$? |
| 2176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2177 | rm -f conftest.er1 |
| 2178 | cat conftest.err >&5 |
| 2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2180 | (exit $ac_status); } && |
| 2181 | { ac_try='test -z "$ac_c_werror_flag" |
| 2182 | || test ! -s conftest.err' |
| 2183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2184 | (eval $ac_try) 2>&5 |
| 2185 | ac_status=$? |
| 2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2187 | (exit $ac_status); }; } && |
| 2188 | { ac_try='test -s conftest.$ac_objext' |
| 2189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2190 | (eval $ac_try) 2>&5 |
| 2191 | ac_status=$? |
| 2192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2193 | (exit $ac_status); }; }; then |
| 2194 | for ac_declaration in \ |
| 2195 | '' \ |
| 2196 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2197 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2198 | 'extern "C" void exit (int) throw ();' \ |
| 2199 | 'extern "C" void exit (int);' \ |
| 2200 | 'void exit (int);' |
| 2201 | do |
| 2202 | cat >conftest.$ac_ext <<_ACEOF |
| 2203 | /* confdefs.h. */ |
| 2204 | _ACEOF |
| 2205 | cat confdefs.h >>conftest.$ac_ext |
| 2206 | cat >>conftest.$ac_ext <<_ACEOF |
| 2207 | /* end confdefs.h. */ |
| 2208 | $ac_declaration |
| 2209 | #include <stdlib.h> |
| 2210 | int |
| 2211 | main () |
| 2212 | { |
| 2213 | exit (42); |
| 2214 | ; |
| 2215 | return 0; |
| 2216 | } |
| 2217 | _ACEOF |
| 2218 | rm -f conftest.$ac_objext |
| 2219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2220 | (eval $ac_compile) 2>conftest.er1 |
| 2221 | ac_status=$? |
| 2222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2223 | rm -f conftest.er1 |
| 2224 | cat conftest.err >&5 |
| 2225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2226 | (exit $ac_status); } && |
| 2227 | { ac_try='test -z "$ac_c_werror_flag" |
| 2228 | || test ! -s conftest.err' |
| 2229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2230 | (eval $ac_try) 2>&5 |
| 2231 | ac_status=$? |
| 2232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2233 | (exit $ac_status); }; } && |
| 2234 | { ac_try='test -s conftest.$ac_objext' |
| 2235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2236 | (eval $ac_try) 2>&5 |
| 2237 | ac_status=$? |
| 2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2239 | (exit $ac_status); }; }; then |
| 2240 | : |
| 2241 | else |
| 2242 | echo "$as_me: failed program was:" >&5 |
| 2243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2244 | |
| 2245 | continue |
| 2246 | fi |
| 2247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2248 | cat >conftest.$ac_ext <<_ACEOF |
| 2249 | /* confdefs.h. */ |
| 2250 | _ACEOF |
| 2251 | cat confdefs.h >>conftest.$ac_ext |
| 2252 | cat >>conftest.$ac_ext <<_ACEOF |
| 2253 | /* end confdefs.h. */ |
| 2254 | $ac_declaration |
| 2255 | int |
| 2256 | main () |
| 2257 | { |
| 2258 | exit (42); |
| 2259 | ; |
| 2260 | return 0; |
| 2261 | } |
| 2262 | _ACEOF |
| 2263 | rm -f conftest.$ac_objext |
| 2264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2265 | (eval $ac_compile) 2>conftest.er1 |
| 2266 | ac_status=$? |
| 2267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2268 | rm -f conftest.er1 |
| 2269 | cat conftest.err >&5 |
| 2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2271 | (exit $ac_status); } && |
| 2272 | { ac_try='test -z "$ac_c_werror_flag" |
| 2273 | || test ! -s conftest.err' |
| 2274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2275 | (eval $ac_try) 2>&5 |
| 2276 | ac_status=$? |
| 2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2278 | (exit $ac_status); }; } && |
| 2279 | { ac_try='test -s conftest.$ac_objext' |
| 2280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2281 | (eval $ac_try) 2>&5 |
| 2282 | ac_status=$? |
| 2283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2284 | (exit $ac_status); }; }; then |
| 2285 | break |
| 2286 | else |
| 2287 | echo "$as_me: failed program was:" >&5 |
| 2288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2289 | |
| 2290 | fi |
| 2291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2292 | done |
| 2293 | rm -f conftest* |
| 2294 | if test -n "$ac_declaration"; then |
| 2295 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2296 | echo $ac_declaration >>confdefs.h |
| 2297 | echo '#endif' >>confdefs.h |
| 2298 | fi |
| 2299 | |
| 2300 | else |
| 2301 | echo "$as_me: failed program was:" >&5 |
| 2302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2303 | |
| 2304 | fi |
| 2305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2306 | ac_ext=c |
| 2307 | ac_cpp='$CPP $CPPFLAGS' |
| 2308 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2309 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2310 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2311 | ac_ext=c |
| 2312 | ac_cpp='$CPP $CPPFLAGS' |
| 2313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2316 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2317 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2318 | # On Suns, sometimes $CPP names a directory. |
| 2319 | if test -n "$CPP" && test -d "$CPP"; then |
| 2320 | CPP= |
| 2321 | fi |
| 2322 | if test -z "$CPP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2323 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2325 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2326 | # Double quotes because CPP needs to be expanded |
| 2327 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2328 | do |
| 2329 | ac_preproc_ok=false |
| 2330 | for ac_c_preproc_warn_flag in '' yes |
| 2331 | do |
| 2332 | # Use a header file that comes with gcc, so configuring glibc |
| 2333 | # with a fresh cross-compiler works. |
| 2334 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2335 | # <limits.h> exists even on freestanding compilers. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2336 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2337 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2338 | cat >conftest.$ac_ext <<_ACEOF |
| 2339 | /* confdefs.h. */ |
| 2340 | _ACEOF |
| 2341 | cat confdefs.h >>conftest.$ac_ext |
| 2342 | cat >>conftest.$ac_ext <<_ACEOF |
| 2343 | /* end confdefs.h. */ |
| 2344 | #ifdef __STDC__ |
| 2345 | # include <limits.h> |
| 2346 | #else |
| 2347 | # include <assert.h> |
| 2348 | #endif |
| 2349 | Syntax error |
| 2350 | _ACEOF |
| 2351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2353 | ac_status=$? |
| 2354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2355 | rm -f conftest.er1 |
| 2356 | cat conftest.err >&5 |
| 2357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2358 | (exit $ac_status); } >/dev/null; then |
| 2359 | if test -s conftest.err; then |
| 2360 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2361 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2362 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2363 | ac_cpp_err= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2364 | fi |
| 2365 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2366 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2367 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2368 | if test -z "$ac_cpp_err"; then |
| 2369 | : |
| 2370 | else |
| 2371 | echo "$as_me: failed program was:" >&5 |
| 2372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2373 | |
| 2374 | # Broken: fails on valid input. |
| 2375 | continue |
| 2376 | fi |
| 2377 | rm -f conftest.err conftest.$ac_ext |
| 2378 | |
| 2379 | # OK, works on sane cases. Now check whether non-existent headers |
| 2380 | # can be detected and how. |
| 2381 | cat >conftest.$ac_ext <<_ACEOF |
| 2382 | /* confdefs.h. */ |
| 2383 | _ACEOF |
| 2384 | cat confdefs.h >>conftest.$ac_ext |
| 2385 | cat >>conftest.$ac_ext <<_ACEOF |
| 2386 | /* end confdefs.h. */ |
| 2387 | #include <ac_nonexistent.h> |
| 2388 | _ACEOF |
| 2389 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2390 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2391 | ac_status=$? |
| 2392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2393 | rm -f conftest.er1 |
| 2394 | cat conftest.err >&5 |
| 2395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2396 | (exit $ac_status); } >/dev/null; then |
| 2397 | if test -s conftest.err; then |
| 2398 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2399 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2400 | else |
| 2401 | ac_cpp_err= |
| 2402 | fi |
| 2403 | else |
| 2404 | ac_cpp_err=yes |
| 2405 | fi |
| 2406 | if test -z "$ac_cpp_err"; then |
| 2407 | # Broken: success on invalid input. |
| 2408 | continue |
| 2409 | else |
| 2410 | echo "$as_me: failed program was:" >&5 |
| 2411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2412 | |
| 2413 | # Passes both tests. |
| 2414 | ac_preproc_ok=: |
| 2415 | break |
| 2416 | fi |
| 2417 | rm -f conftest.err conftest.$ac_ext |
| 2418 | |
| 2419 | done |
| 2420 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2421 | rm -f conftest.err conftest.$ac_ext |
| 2422 | if $ac_preproc_ok; then |
| 2423 | break |
| 2424 | fi |
| 2425 | |
| 2426 | done |
| 2427 | ac_cv_prog_CPP=$CPP |
| 2428 | |
| 2429 | fi |
| 2430 | CPP=$ac_cv_prog_CPP |
| 2431 | else |
| 2432 | ac_cv_prog_CPP=$CPP |
| 2433 | fi |
| 2434 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2435 | echo "${ECHO_T}$CPP" >&6 |
| 2436 | ac_preproc_ok=false |
| 2437 | for ac_c_preproc_warn_flag in '' yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2438 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2439 | # Use a header file that comes with gcc, so configuring glibc |
| 2440 | # with a fresh cross-compiler works. |
| 2441 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2442 | # <limits.h> exists even on freestanding compilers. |
| 2443 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2444 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2445 | cat >conftest.$ac_ext <<_ACEOF |
| 2446 | /* confdefs.h. */ |
| 2447 | _ACEOF |
| 2448 | cat confdefs.h >>conftest.$ac_ext |
| 2449 | cat >>conftest.$ac_ext <<_ACEOF |
| 2450 | /* end confdefs.h. */ |
| 2451 | #ifdef __STDC__ |
| 2452 | # include <limits.h> |
| 2453 | #else |
| 2454 | # include <assert.h> |
| 2455 | #endif |
| 2456 | Syntax error |
| 2457 | _ACEOF |
| 2458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2460 | ac_status=$? |
| 2461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2462 | rm -f conftest.er1 |
| 2463 | cat conftest.err >&5 |
| 2464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2465 | (exit $ac_status); } >/dev/null; then |
| 2466 | if test -s conftest.err; then |
| 2467 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2469 | else |
| 2470 | ac_cpp_err= |
| 2471 | fi |
| 2472 | else |
| 2473 | ac_cpp_err=yes |
| 2474 | fi |
| 2475 | if test -z "$ac_cpp_err"; then |
| 2476 | : |
| 2477 | else |
| 2478 | echo "$as_me: failed program was:" >&5 |
| 2479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2480 | |
| 2481 | # Broken: fails on valid input. |
| 2482 | continue |
| 2483 | fi |
| 2484 | rm -f conftest.err conftest.$ac_ext |
| 2485 | |
| 2486 | # OK, works on sane cases. Now check whether non-existent headers |
| 2487 | # can be detected and how. |
| 2488 | cat >conftest.$ac_ext <<_ACEOF |
| 2489 | /* confdefs.h. */ |
| 2490 | _ACEOF |
| 2491 | cat confdefs.h >>conftest.$ac_ext |
| 2492 | cat >>conftest.$ac_ext <<_ACEOF |
| 2493 | /* end confdefs.h. */ |
| 2494 | #include <ac_nonexistent.h> |
| 2495 | _ACEOF |
| 2496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2498 | ac_status=$? |
| 2499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2500 | rm -f conftest.er1 |
| 2501 | cat conftest.err >&5 |
| 2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2503 | (exit $ac_status); } >/dev/null; then |
| 2504 | if test -s conftest.err; then |
| 2505 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2506 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2507 | else |
| 2508 | ac_cpp_err= |
| 2509 | fi |
| 2510 | else |
| 2511 | ac_cpp_err=yes |
| 2512 | fi |
| 2513 | if test -z "$ac_cpp_err"; then |
| 2514 | # Broken: success on invalid input. |
| 2515 | continue |
| 2516 | else |
| 2517 | echo "$as_me: failed program was:" >&5 |
| 2518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2519 | |
| 2520 | # Passes both tests. |
| 2521 | ac_preproc_ok=: |
| 2522 | break |
| 2523 | fi |
| 2524 | rm -f conftest.err conftest.$ac_ext |
| 2525 | |
| 2526 | done |
| 2527 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2528 | rm -f conftest.err conftest.$ac_ext |
| 2529 | if $ac_preproc_ok; then |
| 2530 | : |
| 2531 | else |
| 2532 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2533 | See \`config.log' for more details." >&5 |
| 2534 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2535 | See \`config.log' for more details." >&2;} |
| 2536 | { (exit 1); exit 1; }; } |
| 2537 | fi |
| 2538 | |
| 2539 | ac_ext=c |
| 2540 | ac_cpp='$CPP $CPPFLAGS' |
| 2541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2544 | |
| 2545 | |
| 2546 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2547 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2548 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2550 | else |
| 2551 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2552 | then ac_cv_prog_egrep='grep -E' |
| 2553 | else ac_cv_prog_egrep='egrep' |
| 2554 | fi |
| 2555 | fi |
| 2556 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2557 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2558 | EGREP=$ac_cv_prog_egrep |
| 2559 | |
| 2560 | |
| 2561 | cat >conftest.$ac_ext <<_ACEOF |
| 2562 | /* confdefs.h. */ |
| 2563 | _ACEOF |
| 2564 | cat confdefs.h >>conftest.$ac_ext |
| 2565 | cat >>conftest.$ac_ext <<_ACEOF |
| 2566 | /* end confdefs.h. */ |
| 2567 | |
| 2568 | _ACEOF |
| 2569 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2570 | $EGREP "" >/dev/null 2>&1; then |
| 2571 | : |
| 2572 | fi |
| 2573 | rm -f conftest* |
| 2574 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 2575 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
| 2576 | if test "${ac_cv_search_strerror+set}" = set; then |
| 2577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2578 | else |
| 2579 | ac_func_search_save_LIBS=$LIBS |
| 2580 | ac_cv_search_strerror=no |
| 2581 | cat >conftest.$ac_ext <<_ACEOF |
| 2582 | /* confdefs.h. */ |
| 2583 | _ACEOF |
| 2584 | cat confdefs.h >>conftest.$ac_ext |
| 2585 | cat >>conftest.$ac_ext <<_ACEOF |
| 2586 | /* end confdefs.h. */ |
| 2587 | |
| 2588 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2589 | #ifdef __cplusplus |
| 2590 | extern "C" |
| 2591 | #endif |
| 2592 | /* We use char because int might match the return type of a gcc2 |
| 2593 | builtin and then its argument prototype would still apply. */ |
| 2594 | char strerror (); |
| 2595 | int |
| 2596 | main () |
| 2597 | { |
| 2598 | strerror (); |
| 2599 | ; |
| 2600 | return 0; |
| 2601 | } |
| 2602 | _ACEOF |
| 2603 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2605 | (eval $ac_link) 2>conftest.er1 |
| 2606 | ac_status=$? |
| 2607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2608 | rm -f conftest.er1 |
| 2609 | cat conftest.err >&5 |
| 2610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2611 | (exit $ac_status); } && |
| 2612 | { ac_try='test -z "$ac_c_werror_flag" |
| 2613 | || test ! -s conftest.err' |
| 2614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2615 | (eval $ac_try) 2>&5 |
| 2616 | ac_status=$? |
| 2617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2618 | (exit $ac_status); }; } && |
| 2619 | { ac_try='test -s conftest$ac_exeext' |
| 2620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2621 | (eval $ac_try) 2>&5 |
| 2622 | ac_status=$? |
| 2623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2624 | (exit $ac_status); }; }; then |
| 2625 | ac_cv_search_strerror="none required" |
| 2626 | else |
| 2627 | echo "$as_me: failed program was:" >&5 |
| 2628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2629 | |
| 2630 | fi |
| 2631 | rm -f conftest.err conftest.$ac_objext \ |
| 2632 | conftest$ac_exeext conftest.$ac_ext |
| 2633 | if test "$ac_cv_search_strerror" = no; then |
| 2634 | for ac_lib in cposix; do |
| 2635 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 2636 | cat >conftest.$ac_ext <<_ACEOF |
| 2637 | /* confdefs.h. */ |
| 2638 | _ACEOF |
| 2639 | cat confdefs.h >>conftest.$ac_ext |
| 2640 | cat >>conftest.$ac_ext <<_ACEOF |
| 2641 | /* end confdefs.h. */ |
| 2642 | |
| 2643 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2644 | #ifdef __cplusplus |
| 2645 | extern "C" |
| 2646 | #endif |
| 2647 | /* We use char because int might match the return type of a gcc2 |
| 2648 | builtin and then its argument prototype would still apply. */ |
| 2649 | char strerror (); |
| 2650 | int |
| 2651 | main () |
| 2652 | { |
| 2653 | strerror (); |
| 2654 | ; |
| 2655 | return 0; |
| 2656 | } |
| 2657 | _ACEOF |
| 2658 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2660 | (eval $ac_link) 2>conftest.er1 |
| 2661 | ac_status=$? |
| 2662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2663 | rm -f conftest.er1 |
| 2664 | cat conftest.err >&5 |
| 2665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2666 | (exit $ac_status); } && |
| 2667 | { ac_try='test -z "$ac_c_werror_flag" |
| 2668 | || test ! -s conftest.err' |
| 2669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2670 | (eval $ac_try) 2>&5 |
| 2671 | ac_status=$? |
| 2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2673 | (exit $ac_status); }; } && |
| 2674 | { ac_try='test -s conftest$ac_exeext' |
| 2675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2676 | (eval $ac_try) 2>&5 |
| 2677 | ac_status=$? |
| 2678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2679 | (exit $ac_status); }; }; then |
| 2680 | ac_cv_search_strerror="-l$ac_lib" |
| 2681 | break |
| 2682 | else |
| 2683 | echo "$as_me: failed program was:" >&5 |
| 2684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2685 | |
| 2686 | fi |
| 2687 | rm -f conftest.err conftest.$ac_objext \ |
| 2688 | conftest$ac_exeext conftest.$ac_ext |
| 2689 | done |
| 2690 | fi |
| 2691 | LIBS=$ac_func_search_save_LIBS |
| 2692 | fi |
| 2693 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 2694 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
| 2695 | if test "$ac_cv_search_strerror" != no; then |
| 2696 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
| 2697 | |
| 2698 | fi |
| 2699 | for ac_prog in gawk mawk nawk awk |
| 2700 | do |
| 2701 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2702 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2705 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2707 | else |
| 2708 | if test -n "$AWK"; then |
| 2709 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2710 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2712 | for as_dir in $PATH |
| 2713 | do |
| 2714 | IFS=$as_save_IFS |
| 2715 | test -z "$as_dir" && as_dir=. |
| 2716 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2717 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2718 | ac_cv_prog_AWK="$ac_prog" |
| 2719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2720 | break 2 |
| 2721 | fi |
| 2722 | done |
| 2723 | done |
| 2724 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2725 | fi |
| 2726 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2727 | AWK=$ac_cv_prog_AWK |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2728 | if test -n "$AWK"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2729 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2730 | echo "${ECHO_T}$AWK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2731 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2732 | echo "$as_me:$LINENO: result: no" >&5 |
| 2733 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2734 | fi |
| 2735 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2736 | test -n "$AWK" && break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2737 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2738 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2739 | # Extract the first word of "strip", so it can be a program name with args. |
| 2740 | set dummy strip; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2741 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2743 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2745 | else |
| 2746 | if test -n "$STRIP"; then |
| 2747 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2748 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2750 | for as_dir in $PATH |
| 2751 | do |
| 2752 | IFS=$as_save_IFS |
| 2753 | test -z "$as_dir" && as_dir=. |
| 2754 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2755 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2756 | ac_cv_prog_STRIP="strip" |
| 2757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2758 | break 2 |
| 2759 | fi |
| 2760 | done |
| 2761 | done |
| 2762 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2763 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 2764 | fi |
| 2765 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2766 | STRIP=$ac_cv_prog_STRIP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2767 | if test -n "$STRIP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2768 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2769 | echo "${ECHO_T}$STRIP" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2770 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2771 | echo "$as_me:$LINENO: result: no" >&5 |
| 2772 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2773 | fi |
| 2774 | |
| 2775 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2776 | |
| 2777 | |
| 2778 | if test -z "$CFLAGS"; then |
| 2779 | CFLAGS="-O" |
| 2780 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 2781 | fi |
| 2782 | if test "$GCC" = yes; then |
| 2783 | gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 2784 | if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then |
| 2785 | echo 'GCC 34.0.12 has a bug in the optimizer, disabling "-O#"' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2786 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 2787 | else |
| 2788 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 2789 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 2790 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 2791 | fi |
| 2792 | fi |
| 2793 | fi |
| 2794 | |
| 2795 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2796 | { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS |
| 2797 | (cross compiling doesn't work)" >&5 |
| 2798 | echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS |
| 2799 | (cross compiling doesn't work)" >&2;} |
| 2800 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2801 | fi |
| 2802 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2803 | test "$GCC" = yes && CPP_MM=M; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2804 | |
| 2805 | if test -f ./toolcheck; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2806 | { echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
| 2807 | echo "$as_me: checking for buggy tools..." >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2808 | sh ./toolcheck 1>&6 |
| 2809 | fi |
| 2810 | |
| 2811 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 2812 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2813 | echo "$as_me:$LINENO: checking for BeOS" >&5 |
| 2814 | echo $ECHO_N "checking for BeOS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2815 | case `uname` in |
| 2816 | BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2817 | BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2818 | echo "${ECHO_T}yes" >&6;; |
| 2819 | *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2820 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2821 | esac |
| 2822 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2823 | echo "$as_me:$LINENO: checking for QNX" >&5 |
| 2824 | echo $ECHO_N "checking for QNX... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2825 | case `uname` in |
| 2826 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 2827 | test -z "$with_x" && with_x=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2828 | QNX=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2829 | echo "${ECHO_T}yes" >&6;; |
| 2830 | *) QNX=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2831 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2832 | esac |
| 2833 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2834 | echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
| 2835 | echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2836 | if test "`(uname) 2>/dev/null`" = Darwin; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2837 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2838 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2839 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2840 | echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
| 2841 | echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2842 | # Check whether --enable-darwin or --disable-darwin was given. |
| 2843 | if test "${enable_darwin+set}" = set; then |
| 2844 | enableval="$enable_darwin" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2845 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2846 | else |
| 2847 | enable_darwin="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2848 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2849 | if test "$enable_darwin" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2850 | echo "$as_me:$LINENO: result: no" >&5 |
| 2851 | echo "${ECHO_T}no" >&6 |
| 2852 | echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
| 2853 | echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2854 | if test -f os_macosx.c; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2855 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2856 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2857 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2858 | echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
| 2859 | echo "${ECHO_T}no, Darwin support disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2860 | enable_darwin=no |
| 2861 | fi |
| 2862 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2863 | echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
| 2864 | echo "${ECHO_T}yes, Darwin support excluded" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2865 | fi |
| 2866 | |
| 2867 | if test "$enable_darwin" = "yes"; then |
| 2868 | MACOSX=yes |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 2869 | OS_EXTRA_SCR="os_macosx.c os_mac_conv.c"; |
| 2870 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2871 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp" |
| 2872 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2873 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2874 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2875 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2877 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2878 | cat >conftest.$ac_ext <<_ACEOF |
| 2879 | /* confdefs.h. */ |
| 2880 | _ACEOF |
| 2881 | cat confdefs.h >>conftest.$ac_ext |
| 2882 | cat >>conftest.$ac_ext <<_ACEOF |
| 2883 | /* end confdefs.h. */ |
| 2884 | #include <stdlib.h> |
| 2885 | #include <stdarg.h> |
| 2886 | #include <string.h> |
| 2887 | #include <float.h> |
| 2888 | |
| 2889 | int |
| 2890 | main () |
| 2891 | { |
| 2892 | |
| 2893 | ; |
| 2894 | return 0; |
| 2895 | } |
| 2896 | _ACEOF |
| 2897 | rm -f conftest.$ac_objext |
| 2898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2899 | (eval $ac_compile) 2>conftest.er1 |
| 2900 | ac_status=$? |
| 2901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2902 | rm -f conftest.er1 |
| 2903 | cat conftest.err >&5 |
| 2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2905 | (exit $ac_status); } && |
| 2906 | { ac_try='test -z "$ac_c_werror_flag" |
| 2907 | || test ! -s conftest.err' |
| 2908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2909 | (eval $ac_try) 2>&5 |
| 2910 | ac_status=$? |
| 2911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2912 | (exit $ac_status); }; } && |
| 2913 | { ac_try='test -s conftest.$ac_objext' |
| 2914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2915 | (eval $ac_try) 2>&5 |
| 2916 | ac_status=$? |
| 2917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2918 | (exit $ac_status); }; }; then |
| 2919 | ac_cv_header_stdc=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2920 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2921 | echo "$as_me: failed program was:" >&5 |
| 2922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2923 | |
| 2924 | ac_cv_header_stdc=no |
| 2925 | fi |
| 2926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2927 | |
| 2928 | if test $ac_cv_header_stdc = yes; then |
| 2929 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2930 | cat >conftest.$ac_ext <<_ACEOF |
| 2931 | /* confdefs.h. */ |
| 2932 | _ACEOF |
| 2933 | cat confdefs.h >>conftest.$ac_ext |
| 2934 | cat >>conftest.$ac_ext <<_ACEOF |
| 2935 | /* end confdefs.h. */ |
| 2936 | #include <string.h> |
| 2937 | |
| 2938 | _ACEOF |
| 2939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2940 | $EGREP "memchr" >/dev/null 2>&1; then |
| 2941 | : |
| 2942 | else |
| 2943 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2944 | fi |
| 2945 | rm -f conftest* |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2946 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2947 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2948 | |
| 2949 | if test $ac_cv_header_stdc = yes; then |
| 2950 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2951 | cat >conftest.$ac_ext <<_ACEOF |
| 2952 | /* confdefs.h. */ |
| 2953 | _ACEOF |
| 2954 | cat confdefs.h >>conftest.$ac_ext |
| 2955 | cat >>conftest.$ac_ext <<_ACEOF |
| 2956 | /* end confdefs.h. */ |
| 2957 | #include <stdlib.h> |
| 2958 | |
| 2959 | _ACEOF |
| 2960 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2961 | $EGREP "free" >/dev/null 2>&1; then |
| 2962 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2963 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2964 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2965 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2966 | rm -f conftest* |
| 2967 | |
| 2968 | fi |
| 2969 | |
| 2970 | if test $ac_cv_header_stdc = yes; then |
| 2971 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2972 | if test "$cross_compiling" = yes; then |
| 2973 | : |
| 2974 | else |
| 2975 | cat >conftest.$ac_ext <<_ACEOF |
| 2976 | /* confdefs.h. */ |
| 2977 | _ACEOF |
| 2978 | cat confdefs.h >>conftest.$ac_ext |
| 2979 | cat >>conftest.$ac_ext <<_ACEOF |
| 2980 | /* end confdefs.h. */ |
| 2981 | #include <ctype.h> |
| 2982 | #if ((' ' & 0x0FF) == 0x020) |
| 2983 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2984 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2985 | #else |
| 2986 | # define ISLOWER(c) \ |
| 2987 | (('a' <= (c) && (c) <= 'i') \ |
| 2988 | || ('j' <= (c) && (c) <= 'r') \ |
| 2989 | || ('s' <= (c) && (c) <= 'z')) |
| 2990 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2991 | #endif |
| 2992 | |
| 2993 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2994 | int |
| 2995 | main () |
| 2996 | { |
| 2997 | int i; |
| 2998 | for (i = 0; i < 256; i++) |
| 2999 | if (XOR (islower (i), ISLOWER (i)) |
| 3000 | || toupper (i) != TOUPPER (i)) |
| 3001 | exit(2); |
| 3002 | exit (0); |
| 3003 | } |
| 3004 | _ACEOF |
| 3005 | rm -f conftest$ac_exeext |
| 3006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3007 | (eval $ac_link) 2>&5 |
| 3008 | ac_status=$? |
| 3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3010 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3012 | (eval $ac_try) 2>&5 |
| 3013 | ac_status=$? |
| 3014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3015 | (exit $ac_status); }; }; then |
| 3016 | : |
| 3017 | else |
| 3018 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3019 | echo "$as_me: failed program was:" >&5 |
| 3020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3021 | |
| 3022 | ( exit $ac_status ) |
| 3023 | ac_cv_header_stdc=no |
| 3024 | fi |
| 3025 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3026 | fi |
| 3027 | fi |
| 3028 | fi |
| 3029 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3030 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3031 | if test $ac_cv_header_stdc = yes; then |
| 3032 | |
| 3033 | cat >>confdefs.h <<\_ACEOF |
| 3034 | #define STDC_HEADERS 1 |
| 3035 | _ACEOF |
| 3036 | |
| 3037 | fi |
| 3038 | |
| 3039 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3040 | |
| 3041 | |
| 3042 | |
| 3043 | |
| 3044 | |
| 3045 | |
| 3046 | |
| 3047 | |
| 3048 | |
| 3049 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3050 | inttypes.h stdint.h unistd.h |
| 3051 | do |
| 3052 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3053 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3054 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3057 | else |
| 3058 | cat >conftest.$ac_ext <<_ACEOF |
| 3059 | /* confdefs.h. */ |
| 3060 | _ACEOF |
| 3061 | cat confdefs.h >>conftest.$ac_ext |
| 3062 | cat >>conftest.$ac_ext <<_ACEOF |
| 3063 | /* end confdefs.h. */ |
| 3064 | $ac_includes_default |
| 3065 | |
| 3066 | #include <$ac_header> |
| 3067 | _ACEOF |
| 3068 | rm -f conftest.$ac_objext |
| 3069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3070 | (eval $ac_compile) 2>conftest.er1 |
| 3071 | ac_status=$? |
| 3072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3073 | rm -f conftest.er1 |
| 3074 | cat conftest.err >&5 |
| 3075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3076 | (exit $ac_status); } && |
| 3077 | { ac_try='test -z "$ac_c_werror_flag" |
| 3078 | || test ! -s conftest.err' |
| 3079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3080 | (eval $ac_try) 2>&5 |
| 3081 | ac_status=$? |
| 3082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3083 | (exit $ac_status); }; } && |
| 3084 | { ac_try='test -s conftest.$ac_objext' |
| 3085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3086 | (eval $ac_try) 2>&5 |
| 3087 | ac_status=$? |
| 3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3089 | (exit $ac_status); }; }; then |
| 3090 | eval "$as_ac_Header=yes" |
| 3091 | else |
| 3092 | echo "$as_me: failed program was:" >&5 |
| 3093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3094 | |
| 3095 | eval "$as_ac_Header=no" |
| 3096 | fi |
| 3097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3098 | fi |
| 3099 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3100 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3101 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3102 | cat >>confdefs.h <<_ACEOF |
| 3103 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3104 | _ACEOF |
| 3105 | |
| 3106 | fi |
| 3107 | |
| 3108 | done |
| 3109 | |
| 3110 | |
| 3111 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3112 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3113 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3114 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3116 | fi |
| 3117 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3118 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3119 | else |
| 3120 | # Is the header compilable? |
| 3121 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 3122 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 |
| 3123 | cat >conftest.$ac_ext <<_ACEOF |
| 3124 | /* confdefs.h. */ |
| 3125 | _ACEOF |
| 3126 | cat confdefs.h >>conftest.$ac_ext |
| 3127 | cat >>conftest.$ac_ext <<_ACEOF |
| 3128 | /* end confdefs.h. */ |
| 3129 | $ac_includes_default |
| 3130 | #include <Carbon/Carbon.h> |
| 3131 | _ACEOF |
| 3132 | rm -f conftest.$ac_objext |
| 3133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3134 | (eval $ac_compile) 2>conftest.er1 |
| 3135 | ac_status=$? |
| 3136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3137 | rm -f conftest.er1 |
| 3138 | cat conftest.err >&5 |
| 3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3140 | (exit $ac_status); } && |
| 3141 | { ac_try='test -z "$ac_c_werror_flag" |
| 3142 | || test ! -s conftest.err' |
| 3143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3144 | (eval $ac_try) 2>&5 |
| 3145 | ac_status=$? |
| 3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3147 | (exit $ac_status); }; } && |
| 3148 | { ac_try='test -s conftest.$ac_objext' |
| 3149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3150 | (eval $ac_try) 2>&5 |
| 3151 | ac_status=$? |
| 3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3153 | (exit $ac_status); }; }; then |
| 3154 | ac_header_compiler=yes |
| 3155 | else |
| 3156 | echo "$as_me: failed program was:" >&5 |
| 3157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3158 | |
| 3159 | ac_header_compiler=no |
| 3160 | fi |
| 3161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3162 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3163 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3164 | |
| 3165 | # Is the header present? |
| 3166 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 3167 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 |
| 3168 | cat >conftest.$ac_ext <<_ACEOF |
| 3169 | /* confdefs.h. */ |
| 3170 | _ACEOF |
| 3171 | cat confdefs.h >>conftest.$ac_ext |
| 3172 | cat >>conftest.$ac_ext <<_ACEOF |
| 3173 | /* end confdefs.h. */ |
| 3174 | #include <Carbon/Carbon.h> |
| 3175 | _ACEOF |
| 3176 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3177 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3178 | ac_status=$? |
| 3179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3180 | rm -f conftest.er1 |
| 3181 | cat conftest.err >&5 |
| 3182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3183 | (exit $ac_status); } >/dev/null; then |
| 3184 | if test -s conftest.err; then |
| 3185 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3186 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3187 | else |
| 3188 | ac_cpp_err= |
| 3189 | fi |
| 3190 | else |
| 3191 | ac_cpp_err=yes |
| 3192 | fi |
| 3193 | if test -z "$ac_cpp_err"; then |
| 3194 | ac_header_preproc=yes |
| 3195 | else |
| 3196 | echo "$as_me: failed program was:" >&5 |
| 3197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3198 | |
| 3199 | ac_header_preproc=no |
| 3200 | fi |
| 3201 | rm -f conftest.err conftest.$ac_ext |
| 3202 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3203 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3204 | |
| 3205 | # So? What about this header? |
| 3206 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3207 | yes:no: ) |
| 3208 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3209 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3210 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 3211 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} |
| 3212 | ac_header_preproc=yes |
| 3213 | ;; |
| 3214 | no:yes:* ) |
| 3215 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 3216 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 3217 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 3218 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 3219 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 3220 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 3221 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3222 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3223 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 3224 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 3225 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 3226 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 3227 | ( |
| 3228 | cat <<\_ASBOX |
| 3229 | ## ------------------------------------------ ## |
| 3230 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3231 | ## ------------------------------------------ ## |
| 3232 | _ASBOX |
| 3233 | ) | |
| 3234 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3235 | ;; |
| 3236 | esac |
| 3237 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3238 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3239 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3241 | else |
| 3242 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 3243 | fi |
| 3244 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3245 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3246 | |
| 3247 | fi |
| 3248 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
| 3249 | CARBON=yes |
| 3250 | fi |
| 3251 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3252 | |
| 3253 | if test "x$CARBON" = "xyes"; then |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 3254 | if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3255 | with_x=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3256 | fi |
| 3257 | fi |
| 3258 | fi |
| 3259 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3260 | echo "$as_me:$LINENO: result: no" >&5 |
| 3261 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3262 | fi |
| 3263 | |
| 3264 | |
| 3265 | |
| 3266 | |
| 3267 | have_local_include='' |
| 3268 | have_local_lib='' |
| 3269 | if test "$GCC" = yes; then |
| 3270 | echo 'void f(){}' > conftest.c |
| 3271 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'` |
| 3272 | have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'` |
| 3273 | rm -f conftest.c conftest.o |
| 3274 | fi |
| 3275 | if test -z "$have_local_lib" -a -d /usr/local/lib; then |
| 3276 | tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'` |
| 3277 | if test "$tt" = "$LDFLAGS"; then |
| 3278 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
| 3279 | fi |
| 3280 | fi |
| 3281 | if test -z "$have_local_include" -a -d /usr/local/include; then |
| 3282 | tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'` |
| 3283 | if test "$tt" = "$CPPFLAGS"; then |
| 3284 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 3285 | fi |
| 3286 | fi |
| 3287 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3288 | echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 |
| 3289 | echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6 |
| 3290 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3291 | # Check whether --with-vim-name or --without-vim-name was given. |
| 3292 | if test "${with_vim_name+set}" = set; then |
| 3293 | withval="$with_vim_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3294 | VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5 |
| 3295 | echo "${ECHO_T}$VIMNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3296 | else |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 3297 | VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3298 | echo "${ECHO_T}Defaulting to $VIMNAME" >&6 |
| 3299 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3300 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3301 | echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 |
| 3302 | echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3303 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3304 | # Check whether --with-ex-name or --without-ex-name was given. |
| 3305 | if test "${with_ex_name+set}" = set; then |
| 3306 | withval="$with_ex_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3307 | EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5 |
| 3308 | echo "${ECHO_T}$EXNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3309 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3310 | EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5 |
| 3311 | echo "${ECHO_T}Defaulting to ex" >&6 |
| 3312 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3313 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3314 | echo "$as_me:$LINENO: checking --with-view-name argument" >&5 |
| 3315 | echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3316 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3317 | # Check whether --with-view-name or --without-view-name was given. |
| 3318 | if test "${with_view_name+set}" = set; then |
| 3319 | withval="$with_view_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3320 | VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5 |
| 3321 | echo "${ECHO_T}$VIEWNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3322 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3323 | VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5 |
| 3324 | echo "${ECHO_T}Defaulting to view" >&6 |
| 3325 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3326 | |
| 3327 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3328 | echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 |
| 3329 | echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3330 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3331 | # Check whether --with-global-runtime or --without-global-runtime was given. |
| 3332 | if test "${with_global_runtime+set}" = set; then |
| 3333 | withval="$with_global_runtime" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3334 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 3335 | echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3336 | #define RUNTIME_GLOBAL "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3337 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3338 | |
| 3339 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3340 | echo "$as_me:$LINENO: result: no" >&5 |
| 3341 | echo "${ECHO_T}no" >&6 |
| 3342 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3343 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3344 | echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 |
| 3345 | echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3346 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3347 | # Check whether --with-modified-by or --without-modified-by was given. |
| 3348 | if test "${with_modified_by+set}" = set; then |
| 3349 | withval="$with_modified_by" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3350 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 3351 | echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3352 | #define MODIFIED_BY "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3353 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3354 | |
| 3355 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3356 | echo "$as_me:$LINENO: result: no" >&5 |
| 3357 | echo "${ECHO_T}no" >&6 |
| 3358 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3359 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3360 | echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 |
| 3361 | echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6 |
| 3362 | cat >conftest.$ac_ext <<_ACEOF |
| 3363 | /* confdefs.h. */ |
| 3364 | _ACEOF |
| 3365 | cat confdefs.h >>conftest.$ac_ext |
| 3366 | cat >>conftest.$ac_ext <<_ACEOF |
| 3367 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3368 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3369 | int |
| 3370 | main () |
| 3371 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3372 | /* TryCompile function for CharSet. |
| 3373 | Treat any failure as ASCII for compatibility with existing art. |
| 3374 | Use compile-time rather than run-time tests for cross-compiler |
| 3375 | tolerance. */ |
| 3376 | #if '0'!=240 |
| 3377 | make an error "Character set is not EBCDIC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3378 | #endif |
| 3379 | ; |
| 3380 | return 0; |
| 3381 | } |
| 3382 | _ACEOF |
| 3383 | rm -f conftest.$ac_objext |
| 3384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3385 | (eval $ac_compile) 2>conftest.er1 |
| 3386 | ac_status=$? |
| 3387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3388 | rm -f conftest.er1 |
| 3389 | cat conftest.err >&5 |
| 3390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3391 | (exit $ac_status); } && |
| 3392 | { ac_try='test -z "$ac_c_werror_flag" |
| 3393 | || test ! -s conftest.err' |
| 3394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3395 | (eval $ac_try) 2>&5 |
| 3396 | ac_status=$? |
| 3397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3398 | (exit $ac_status); }; } && |
| 3399 | { ac_try='test -s conftest.$ac_objext' |
| 3400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3401 | (eval $ac_try) 2>&5 |
| 3402 | ac_status=$? |
| 3403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3404 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3405 | # TryCompile action if true |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3406 | cf_cv_ebcdic=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3407 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3408 | echo "$as_me: failed program was:" >&5 |
| 3409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3410 | |
| 3411 | # TryCompile action if false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3412 | cf_cv_ebcdic=no |
| 3413 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3414 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3415 | # end of TryCompile ]) |
| 3416 | # end of CacheVal CvEbcdic |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3417 | echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 |
| 3418 | echo "${ECHO_T}$cf_cv_ebcdic" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3419 | case "$cf_cv_ebcdic" in #(vi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3420 | yes) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3421 | #define EBCDIC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3422 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3423 | |
| 3424 | line_break='"\\n"' |
| 3425 | ;; |
| 3426 | *) line_break='"\\012"';; |
| 3427 | esac |
| 3428 | |
| 3429 | |
| 3430 | if test "$cf_cv_ebcdic" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3431 | echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 |
| 3432 | echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3433 | case `uname` in |
| 3434 | OS/390) OS390Unix="yes"; |
| 3435 | if test "$CC" = "cc"; then |
| 3436 | ccm="$_CC_CCMODE" |
| 3437 | ccn="CC" |
| 3438 | else |
| 3439 | if test "$CC" = "c89"; then |
| 3440 | ccm="$_CC_C89MODE" |
| 3441 | ccn="C89" |
| 3442 | else |
| 3443 | ccm=1 |
| 3444 | fi |
| 3445 | fi |
| 3446 | if test "$ccm" != "1"; then |
| 3447 | echo "" |
| 3448 | echo "------------------------------------------" |
| 3449 | echo " On OS/390 Unix, the environment variable" |
| 3450 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 3451 | echo " Do:" |
| 3452 | echo " export _CC_${ccn}MODE=1" |
| 3453 | echo " and then call configure again." |
| 3454 | echo "------------------------------------------" |
| 3455 | exit 1 |
| 3456 | fi |
| 3457 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3458 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3459 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3460 | ;; |
| 3461 | *) OS390Unix="no"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3462 | echo "$as_me:$LINENO: result: no" >&5 |
| 3463 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3464 | ;; |
| 3465 | esac |
| 3466 | fi |
| 3467 | |
| 3468 | |
| 3469 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3470 | echo "$as_me:$LINENO: checking --with-features argument" >&5 |
| 3471 | echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6 |
| 3472 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3473 | # Check whether --with-features or --without-features was given. |
| 3474 | if test "${with_features+set}" = set; then |
| 3475 | withval="$with_features" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3476 | features="$withval"; echo "$as_me:$LINENO: result: $features" >&5 |
| 3477 | echo "${ECHO_T}$features" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3478 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3479 | features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5 |
| 3480 | echo "${ECHO_T}Defaulting to normal" >&6 |
| 3481 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3482 | |
| 3483 | dovimdiff="" |
| 3484 | dogvimdiff="" |
| 3485 | case "$features" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3486 | tiny) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3487 | #define FEAT_TINY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3488 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3489 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3490 | small) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3491 | #define FEAT_SMALL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3492 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3493 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3494 | normal) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3495 | #define FEAT_NORMAL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3496 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3497 | dovimdiff="installvimdiff"; |
| 3498 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3499 | big) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3500 | #define FEAT_BIG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3501 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3502 | dovimdiff="installvimdiff"; |
| 3503 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3504 | huge) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3505 | #define FEAT_HUGE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3506 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3507 | dovimdiff="installvimdiff"; |
| 3508 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3509 | *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 |
| 3510 | echo "${ECHO_T}Sorry, $features is not supported" >&6 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3511 | esac |
| 3512 | |
| 3513 | |
| 3514 | |
| 3515 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3516 | echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 |
| 3517 | echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6 |
| 3518 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3519 | # Check whether --with-compiledby or --without-compiledby was given. |
| 3520 | if test "${with_compiledby+set}" = set; then |
| 3521 | withval="$with_compiledby" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3522 | compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5 |
| 3523 | echo "${ECHO_T}$withval" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3524 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3525 | compiledby=""; echo "$as_me:$LINENO: result: no" >&5 |
| 3526 | echo "${ECHO_T}no" >&6 |
| 3527 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3528 | |
| 3529 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3530 | echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 |
| 3531 | echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3532 | # Check whether --enable-xsmp or --disable-xsmp was given. |
| 3533 | if test "${enable_xsmp+set}" = set; then |
| 3534 | enableval="$enable_xsmp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3535 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3536 | else |
| 3537 | enable_xsmp="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3538 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3539 | |
| 3540 | if test "$enable_xsmp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3541 | echo "$as_me:$LINENO: result: no" >&5 |
| 3542 | echo "${ECHO_T}no" >&6 |
| 3543 | echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 |
| 3544 | echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3545 | # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given. |
| 3546 | if test "${enable_xsmp_interact+set}" = set; then |
| 3547 | enableval="$enable_xsmp_interact" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3548 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3549 | else |
| 3550 | enable_xsmp_interact="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3551 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3552 | if test "$enable_xsmp_interact" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3553 | echo "$as_me:$LINENO: result: no" >&5 |
| 3554 | echo "${ECHO_T}no" >&6 |
| 3555 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3556 | #define USE_XSMP_INTERACT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3557 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3558 | |
| 3559 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3560 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3561 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3562 | fi |
| 3563 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3564 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3565 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3566 | fi |
| 3567 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3568 | echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 |
| 3569 | echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3570 | # Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given. |
| 3571 | if test "${enable_mzschemeinterp+set}" = set; then |
| 3572 | enableval="$enable_mzschemeinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3573 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3574 | else |
| 3575 | enable_mzschemeinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3576 | fi; |
| 3577 | echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 |
| 3578 | echo "${ECHO_T}$enable_mzschemeinterp" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3579 | |
| 3580 | if test "$enable_mzschemeinterp" = "yes"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3581 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3582 | |
| 3583 | echo "$as_me:$LINENO: checking --with-plthome argument" >&5 |
| 3584 | echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6 |
| 3585 | |
| 3586 | # Check whether --with-plthome or --without-plthome was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3587 | if test "${with_plthome+set}" = set; then |
| 3588 | withval="$with_plthome" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3589 | with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5 |
| 3590 | echo "${ECHO_T}$with_plthome" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3591 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3592 | with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3593 | echo "${ECHO_T}\"no\"" >&6 |
| 3594 | fi; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3595 | |
| 3596 | if test "X$with_plthome" != "X"; then |
| 3597 | vi_cv_path_mzscheme_pfx="$with_plthome" |
| 3598 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3599 | echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 |
| 3600 | echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3601 | if test "X$PLTHOME" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3602 | echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 |
| 3603 | echo "${ECHO_T}\"$PLTHOME\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3604 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
| 3605 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3606 | echo "$as_me:$LINENO: result: \"not set\"" >&5 |
| 3607 | echo "${ECHO_T}\"not set\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3608 | # Extract the first word of "mzscheme", so it can be a program name with args. |
| 3609 | set dummy mzscheme; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3612 | if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then |
| 3613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3614 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3615 | case $vi_cv_path_mzscheme in |
| 3616 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3617 | ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 3618 | ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3619 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3621 | for as_dir in $PATH |
| 3622 | do |
| 3623 | IFS=$as_save_IFS |
| 3624 | test -z "$as_dir" && as_dir=. |
| 3625 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3626 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3627 | ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" |
| 3628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3629 | break 2 |
| 3630 | fi |
| 3631 | done |
| 3632 | done |
| 3633 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3634 | ;; |
| 3635 | esac |
| 3636 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3637 | vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
| 3638 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3639 | if test -n "$vi_cv_path_mzscheme"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3640 | echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 |
| 3641 | echo "${ECHO_T}$vi_cv_path_mzscheme" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3642 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3643 | echo "$as_me:$LINENO: result: no" >&5 |
| 3644 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3645 | fi |
| 3646 | |
| 3647 | |
| 3648 | if test "X$vi_cv_path_mzscheme" != "X"; then |
| 3649 | lsout=`ls -l $vi_cv_path_mzscheme` |
| 3650 | if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 3651 | vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 3652 | fi |
| 3653 | fi |
| 3654 | |
| 3655 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3656 | echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
| 3657 | echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6 |
| 3658 | if test "${vi_cv_path_mzscheme_pfx+set}" = set; then |
| 3659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3660 | else |
| 3661 | vi_cv_path_mzscheme_pfx=` |
| 3662 | ${vi_cv_path_mzscheme} -evm \ |
| 3663 | "(display (simplify-path \ |
| 3664 | (build-path (call-with-values \ |
| 3665 | (lambda () (split-path (find-system-path (quote exec-file)))) \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3666 | (lambda (base name must-be-dir?) base)) (quote up))))"` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3667 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3668 | echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 3669 | echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3670 | vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'` |
| 3671 | fi |
| 3672 | fi |
| 3673 | fi |
| 3674 | |
| 3675 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3676 | echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 3677 | echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3678 | if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3679 | echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 3680 | echo "${ECHO_T}\"yes\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3681 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3682 | echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3683 | echo "${ECHO_T}\"no\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3684 | vi_cv_path_mzscheme_pfx= |
| 3685 | fi |
| 3686 | fi |
| 3687 | |
| 3688 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
| 3689 | if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then |
| 3690 | MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a" |
| 3691 | else |
| 3692 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 3693 | if test "$GCC" = yes; then |
| 3694 | MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 21cf823 | 2004-07-16 20:18:37 +0000 | [diff] [blame] | 3695 | elif test "`(uname) 2>/dev/null`" = SunOS && |
| 3696 | uname -r | grep '^5' >/dev/null; then |
| 3697 | MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 3698 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3699 | fi |
| 3700 | MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \ |
| 3701 | -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'" |
| 3702 | MZSCHEME_SRC="if_mzsch.c" |
| 3703 | MZSCHEME_OBJ="objects/if_mzsch.o" |
| 3704 | MZSCHEME_PRO="if_mzsch.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3705 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3706 | #define FEAT_MZSCHEME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3707 | _ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3708 | |
| 3709 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3710 | |
| 3711 | |
| 3712 | |
| 3713 | |
| 3714 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3715 | fi |
| 3716 | |
| 3717 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3718 | echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 |
| 3719 | echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3720 | # Check whether --enable-perlinterp or --disable-perlinterp was given. |
| 3721 | if test "${enable_perlinterp+set}" = set; then |
| 3722 | enableval="$enable_perlinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3723 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3724 | else |
| 3725 | enable_perlinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3726 | fi; |
| 3727 | echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 |
| 3728 | echo "${ECHO_T}$enable_perlinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3729 | if test "$enable_perlinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3730 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3731 | # Extract the first word of "perl", so it can be a program name with args. |
| 3732 | set dummy perl; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3733 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3735 | if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then |
| 3736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3737 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3738 | case $vi_cv_path_perl in |
| 3739 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3740 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 3741 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3742 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3744 | for as_dir in $PATH |
| 3745 | do |
| 3746 | IFS=$as_save_IFS |
| 3747 | test -z "$as_dir" && as_dir=. |
| 3748 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3749 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3750 | ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" |
| 3751 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3752 | break 2 |
| 3753 | fi |
| 3754 | done |
| 3755 | done |
| 3756 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3757 | ;; |
| 3758 | esac |
| 3759 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3760 | vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
| 3761 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3762 | if test -n "$vi_cv_path_perl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3763 | echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 |
| 3764 | echo "${ECHO_T}$vi_cv_path_perl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3765 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3766 | echo "$as_me:$LINENO: result: no" >&5 |
| 3767 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3768 | fi |
| 3769 | |
| 3770 | if test "X$vi_cv_path_perl" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3771 | echo "$as_me:$LINENO: checking Perl version" >&5 |
| 3772 | echo $ECHO_N "checking Perl version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3773 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 3774 | eval `$vi_cv_path_perl -V:usethreads` |
| 3775 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 3776 | badthreads=no |
| 3777 | else |
| 3778 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 3779 | eval `$vi_cv_path_perl -V:use5005threads` |
| 3780 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 3781 | badthreads=no |
| 3782 | else |
| 3783 | badthreads=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3784 | echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 3785 | echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3786 | fi |
| 3787 | else |
| 3788 | badthreads=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3789 | echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 3790 | echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3791 | fi |
| 3792 | fi |
| 3793 | if test $badthreads = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3794 | echo "$as_me:$LINENO: result: OK" >&5 |
| 3795 | echo "${ECHO_T}OK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3796 | eval `$vi_cv_path_perl -V:shrpenv` |
| 3797 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 3798 | shrpenv="" |
| 3799 | fi |
| 3800 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3801 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3802 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 3803 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 3804 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 3805 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 3806 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 3807 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 3808 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 3809 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3810 | echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 |
| 3811 | echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3812 | cflags_save=$CFLAGS |
| 3813 | libs_save=$LIBS |
| 3814 | ldflags_save=$LDFLAGS |
| 3815 | CFLAGS="$CFLAGS $perlcppflags" |
| 3816 | LIBS="$LIBS $perllibs" |
| 3817 | LDFLAGS="$perlldflags $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3818 | cat >conftest.$ac_ext <<_ACEOF |
| 3819 | /* confdefs.h. */ |
| 3820 | _ACEOF |
| 3821 | cat confdefs.h >>conftest.$ac_ext |
| 3822 | cat >>conftest.$ac_ext <<_ACEOF |
| 3823 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3824 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3825 | int |
| 3826 | main () |
| 3827 | { |
| 3828 | |
| 3829 | ; |
| 3830 | return 0; |
| 3831 | } |
| 3832 | _ACEOF |
| 3833 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3835 | (eval $ac_link) 2>conftest.er1 |
| 3836 | ac_status=$? |
| 3837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3838 | rm -f conftest.er1 |
| 3839 | cat conftest.err >&5 |
| 3840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3841 | (exit $ac_status); } && |
| 3842 | { ac_try='test -z "$ac_c_werror_flag" |
| 3843 | || test ! -s conftest.err' |
| 3844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3845 | (eval $ac_try) 2>&5 |
| 3846 | ac_status=$? |
| 3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3848 | (exit $ac_status); }; } && |
| 3849 | { ac_try='test -s conftest$ac_exeext' |
| 3850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3851 | (eval $ac_try) 2>&5 |
| 3852 | ac_status=$? |
| 3853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3854 | (exit $ac_status); }; }; then |
| 3855 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3856 | echo "${ECHO_T}yes" >&6; perl_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3857 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3858 | echo "$as_me: failed program was:" >&5 |
| 3859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3860 | |
| 3861 | echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 |
| 3862 | echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3863 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3864 | rm -f conftest.err conftest.$ac_objext \ |
| 3865 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3866 | CFLAGS=$cflags_save |
| 3867 | LIBS=$libs_save |
| 3868 | LDFLAGS=$ldflags_save |
| 3869 | if test $perl_ok = yes; then |
| 3870 | if test "X$perlcppflags" != "X"; then |
| 3871 | PERL_CFLAGS="$perlcppflags" |
| 3872 | fi |
| 3873 | if test "X$perlldflags" != "X"; then |
| 3874 | LDFLAGS="$perlldflags $LDFLAGS" |
| 3875 | fi |
| 3876 | PERL_LIBS=$perllibs |
| 3877 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 3878 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 3879 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3880 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3881 | #define FEAT_PERL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3882 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3883 | |
| 3884 | fi |
| 3885 | fi |
| 3886 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3887 | echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 3888 | echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3889 | fi |
| 3890 | fi |
| 3891 | |
| 3892 | if test "x$MACOSX" = "xyes"; then |
| 3893 | dir=/System/Library/Perl |
| 3894 | darwindir=$dir/darwin |
| 3895 | if test -d $darwindir; then |
| 3896 | PERL=/usr/bin/perl |
| 3897 | else |
| 3898 | dir=/System/Library/Perl/5.8.1 |
| 3899 | darwindir=$dir/darwin-thread-multi-2level |
| 3900 | if test -d $darwindir; then |
| 3901 | PERL=/usr/bin/perl |
| 3902 | fi |
| 3903 | fi |
| 3904 | if test -n "$PERL"; then |
| 3905 | PERL_DIR="$dir" |
| 3906 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 3907 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 3908 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 3909 | fi |
| 3910 | fi |
| 3911 | fi |
| 3912 | |
| 3913 | |
| 3914 | |
| 3915 | |
| 3916 | |
| 3917 | |
| 3918 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3919 | echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 |
| 3920 | echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3921 | # Check whether --enable-pythoninterp or --disable-pythoninterp was given. |
| 3922 | if test "${enable_pythoninterp+set}" = set; then |
| 3923 | enableval="$enable_pythoninterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3924 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3925 | else |
| 3926 | enable_pythoninterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3927 | fi; |
| 3928 | echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 |
| 3929 | echo "${ECHO_T}$enable_pythoninterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3930 | if test "$enable_pythoninterp" = "yes"; then |
| 3931 | # Extract the first word of "python", so it can be a program name with args. |
| 3932 | set dummy python; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3933 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3934 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3935 | if test "${ac_cv_path_vi_cv_path_python+set}" = set; then |
| 3936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3937 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3938 | case $vi_cv_path_python in |
| 3939 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3940 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 3941 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3942 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3944 | for as_dir in $PATH |
| 3945 | do |
| 3946 | IFS=$as_save_IFS |
| 3947 | test -z "$as_dir" && as_dir=. |
| 3948 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3949 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3950 | ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" |
| 3951 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3952 | break 2 |
| 3953 | fi |
| 3954 | done |
| 3955 | done |
| 3956 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3957 | ;; |
| 3958 | esac |
| 3959 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3960 | vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
| 3961 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3962 | if test -n "$vi_cv_path_python"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3963 | echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 |
| 3964 | echo "${ECHO_T}$vi_cv_path_python" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3965 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3966 | echo "$as_me:$LINENO: result: no" >&5 |
| 3967 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3968 | fi |
| 3969 | |
| 3970 | if test "X$vi_cv_path_python" != "X"; then |
| 3971 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3972 | echo "$as_me:$LINENO: checking Python version" >&5 |
| 3973 | echo $ECHO_N "checking Python version... $ECHO_C" >&6 |
| 3974 | if test "${vi_cv_var_python_version+set}" = set; then |
| 3975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3976 | else |
| 3977 | vi_cv_var_python_version=` |
| 3978 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3979 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3980 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3981 | echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 |
| 3982 | echo "${ECHO_T}$vi_cv_var_python_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3983 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3984 | echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 |
| 3985 | echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3986 | if ${vi_cv_path_python} -c \ |
| 3987 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 3988 | then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3989 | echo "$as_me:$LINENO: result: yep" >&5 |
| 3990 | echo "${ECHO_T}yep" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3991 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3992 | echo "$as_me:$LINENO: checking Python's install prefix" >&5 |
| 3993 | echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6 |
| 3994 | if test "${vi_cv_path_python_pfx+set}" = set; then |
| 3995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3996 | else |
| 3997 | vi_cv_path_python_pfx=` |
| 3998 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3999 | "import sys; print sys.prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4000 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4001 | echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 |
| 4002 | echo "${ECHO_T}$vi_cv_path_python_pfx" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4003 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4004 | echo "$as_me:$LINENO: checking Python's execution prefix" >&5 |
| 4005 | echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6 |
| 4006 | if test "${vi_cv_path_python_epfx+set}" = set; then |
| 4007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4008 | else |
| 4009 | vi_cv_path_python_epfx=` |
| 4010 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4011 | "import sys; print sys.exec_prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4012 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4013 | echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 |
| 4014 | echo "${ECHO_T}$vi_cv_path_python_epfx" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4015 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4016 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4017 | if test "${vi_cv_path_pythonpath+set}" = set; then |
| 4018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4019 | else |
| 4020 | vi_cv_path_pythonpath=` |
| 4021 | unset PYTHONPATH; |
| 4022 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4023 | "import sys, string; print string.join(sys.path,':')"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4024 | fi |
| 4025 | |
| 4026 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4027 | |
| 4028 | |
| 4029 | # Check whether --with-python-config-dir or --without-python-config-dir was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4030 | if test "${with_python_config_dir+set}" = set; then |
| 4031 | withval="$with_python_config_dir" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4032 | vi_cv_path_python_conf="${withval}" |
| 4033 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4034 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4035 | echo "$as_me:$LINENO: checking Python's configuration directory" >&5 |
| 4036 | echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6 |
| 4037 | if test "${vi_cv_path_python_conf+set}" = set; then |
| 4038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4039 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4040 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4041 | vi_cv_path_python_conf= |
| 4042 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 4043 | for subdir in lib share; do |
| 4044 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 4045 | if test -d "$d" && test -f "$d/config.c"; then |
| 4046 | vi_cv_path_python_conf="$d" |
| 4047 | fi |
| 4048 | done |
| 4049 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4050 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4051 | fi |
| 4052 | echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 |
| 4053 | echo "${ECHO_T}$vi_cv_path_python_conf" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4054 | |
| 4055 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 4056 | |
| 4057 | if test "X$PYTHON_CONFDIR" = "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4058 | echo "$as_me:$LINENO: result: can't find it!" >&5 |
| 4059 | echo "${ECHO_T}can't find it!" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4060 | else |
| 4061 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4062 | if test "${vi_cv_path_python_plibs+set}" = set; then |
| 4063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4064 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4065 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4066 | tmp_mkf="/tmp/Makefile-conf$$" |
| 4067 | cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} |
| 4068 | __: |
| 4069 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 4070 | @echo "python_LIBS='$(LIBS)'" |
| 4071 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 4072 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 4073 | eof |
| 4074 | eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" |
| 4075 | rm -f ${tmp_mkf} |
| 4076 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 4077 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 4078 | vi_cv_path_python_plibs="-framework Python" |
| 4079 | else |
| 4080 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 4081 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 4082 | else |
| 4083 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 4084 | fi |
| 4085 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 4086 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 4087 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4088 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4089 | fi |
| 4090 | |
| 4091 | |
| 4092 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 4093 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 4094 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 4095 | else |
| 4096 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}" |
| 4097 | fi |
| 4098 | PYTHON_SRC="if_python.c" |
| 4099 | if test "x$MACOSX" = "xyes"; then |
| 4100 | PYTHON_OBJ="objects/if_python.o" |
| 4101 | else |
| 4102 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 4103 | fi |
| 4104 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 4105 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 4106 | fi |
| 4107 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 4108 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4109 | echo "$as_me:$LINENO: checking if -pthread should be used" >&5 |
| 4110 | echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4111 | threadsafe_flag= |
| 4112 | thread_lib= |
| 4113 | if test "x$MACOSX" != "xyes"; then |
| 4114 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 4115 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 4116 | threadsafe_flag="-D_THREAD_SAFE" |
| 4117 | thread_lib="-pthread" |
| 4118 | fi |
| 4119 | fi |
| 4120 | libs_save_old=$LIBS |
| 4121 | if test -n "$threadsafe_flag"; then |
| 4122 | cflags_save=$CFLAGS |
| 4123 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 4124 | LIBS="$LIBS $thread_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4125 | cat >conftest.$ac_ext <<_ACEOF |
| 4126 | /* confdefs.h. */ |
| 4127 | _ACEOF |
| 4128 | cat confdefs.h >>conftest.$ac_ext |
| 4129 | cat >>conftest.$ac_ext <<_ACEOF |
| 4130 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4131 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4132 | int |
| 4133 | main () |
| 4134 | { |
| 4135 | |
| 4136 | ; |
| 4137 | return 0; |
| 4138 | } |
| 4139 | _ACEOF |
| 4140 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4142 | (eval $ac_link) 2>conftest.er1 |
| 4143 | ac_status=$? |
| 4144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4145 | rm -f conftest.er1 |
| 4146 | cat conftest.err >&5 |
| 4147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4148 | (exit $ac_status); } && |
| 4149 | { ac_try='test -z "$ac_c_werror_flag" |
| 4150 | || test ! -s conftest.err' |
| 4151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4152 | (eval $ac_try) 2>&5 |
| 4153 | ac_status=$? |
| 4154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4155 | (exit $ac_status); }; } && |
| 4156 | { ac_try='test -s conftest$ac_exeext' |
| 4157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4158 | (eval $ac_try) 2>&5 |
| 4159 | ac_status=$? |
| 4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4161 | (exit $ac_status); }; }; then |
| 4162 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4163 | echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4164 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4165 | echo "$as_me: failed program was:" >&5 |
| 4166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4167 | |
| 4168 | echo "$as_me:$LINENO: result: no" >&5 |
| 4169 | echo "${ECHO_T}no" >&6; LIBS=$libs_save_old |
| 4170 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4171 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4172 | rm -f conftest.err conftest.$ac_objext \ |
| 4173 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4174 | CFLAGS=$cflags_save |
| 4175 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4176 | echo "$as_me:$LINENO: result: no" >&5 |
| 4177 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4178 | fi |
| 4179 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4180 | echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 |
| 4181 | echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4182 | cflags_save=$CFLAGS |
| 4183 | libs_save=$LIBS |
| 4184 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 4185 | LIBS="$LIBS $PYTHON_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4186 | cat >conftest.$ac_ext <<_ACEOF |
| 4187 | /* confdefs.h. */ |
| 4188 | _ACEOF |
| 4189 | cat confdefs.h >>conftest.$ac_ext |
| 4190 | cat >>conftest.$ac_ext <<_ACEOF |
| 4191 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4192 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4193 | int |
| 4194 | main () |
| 4195 | { |
| 4196 | |
| 4197 | ; |
| 4198 | return 0; |
| 4199 | } |
| 4200 | _ACEOF |
| 4201 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4203 | (eval $ac_link) 2>conftest.er1 |
| 4204 | ac_status=$? |
| 4205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4206 | rm -f conftest.er1 |
| 4207 | cat conftest.err >&5 |
| 4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4209 | (exit $ac_status); } && |
| 4210 | { ac_try='test -z "$ac_c_werror_flag" |
| 4211 | || test ! -s conftest.err' |
| 4212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4213 | (eval $ac_try) 2>&5 |
| 4214 | ac_status=$? |
| 4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4216 | (exit $ac_status); }; } && |
| 4217 | { ac_try='test -s conftest$ac_exeext' |
| 4218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4219 | (eval $ac_try) 2>&5 |
| 4220 | ac_status=$? |
| 4221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4222 | (exit $ac_status); }; }; then |
| 4223 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4224 | echo "${ECHO_T}yes" >&6; python_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4225 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4226 | echo "$as_me: failed program was:" >&5 |
| 4227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4228 | |
| 4229 | echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 |
| 4230 | echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4231 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4232 | rm -f conftest.err conftest.$ac_objext \ |
| 4233 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4234 | CFLAGS=$cflags_save |
| 4235 | LIBS=$libs_save |
| 4236 | if test $python_ok = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4237 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4238 | #define FEAT_PYTHON 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4239 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4240 | |
| 4241 | else |
| 4242 | LIBS=$libs_save_old |
| 4243 | PYTHON_SRC= |
| 4244 | PYTHON_OBJ= |
| 4245 | PYTHON_LIBS= |
| 4246 | PYTHON_CFLAGS= |
| 4247 | fi |
| 4248 | |
| 4249 | fi |
| 4250 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4251 | echo "$as_me:$LINENO: result: too old" >&5 |
| 4252 | echo "${ECHO_T}too old" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4253 | fi |
| 4254 | fi |
| 4255 | fi |
| 4256 | |
| 4257 | |
| 4258 | |
| 4259 | |
| 4260 | |
| 4261 | |
| 4262 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4263 | echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 |
| 4264 | echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4265 | # Check whether --enable-tclinterp or --disable-tclinterp was given. |
| 4266 | if test "${enable_tclinterp+set}" = set; then |
| 4267 | enableval="$enable_tclinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4268 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4269 | else |
| 4270 | enable_tclinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4271 | fi; |
| 4272 | echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 |
| 4273 | echo "${ECHO_T}$enable_tclinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4274 | |
| 4275 | if test "$enable_tclinterp" = "yes"; then |
| 4276 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4277 | echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 |
| 4278 | echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6 |
| 4279 | |
| 4280 | # Check whether --with-tclsh or --without-tclsh was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4281 | if test "${with_tclsh+set}" = set; then |
| 4282 | withval="$with_tclsh" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4283 | tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5 |
| 4284 | echo "${ECHO_T}$tclsh_name" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4285 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4286 | tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5 |
| 4287 | echo "${ECHO_T}no" >&6 |
| 4288 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4289 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4290 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4291 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4292 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4293 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4295 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4296 | case $vi_cv_path_tcl in |
| 4297 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4298 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4299 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4300 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4302 | for as_dir in $PATH |
| 4303 | do |
| 4304 | IFS=$as_save_IFS |
| 4305 | test -z "$as_dir" && as_dir=. |
| 4306 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4307 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4308 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4310 | break 2 |
| 4311 | fi |
| 4312 | done |
| 4313 | done |
| 4314 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4315 | ;; |
| 4316 | esac |
| 4317 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4318 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4319 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4320 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4321 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4322 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4323 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4324 | echo "$as_me:$LINENO: result: no" >&5 |
| 4325 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4326 | fi |
| 4327 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4328 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4329 | |
| 4330 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4331 | tclsh_name="tclsh8.2" |
| 4332 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4333 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4334 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4336 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4338 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4339 | case $vi_cv_path_tcl in |
| 4340 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4341 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4342 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4343 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4345 | for as_dir in $PATH |
| 4346 | do |
| 4347 | IFS=$as_save_IFS |
| 4348 | test -z "$as_dir" && as_dir=. |
| 4349 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4350 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4351 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4353 | break 2 |
| 4354 | fi |
| 4355 | done |
| 4356 | done |
| 4357 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4358 | ;; |
| 4359 | esac |
| 4360 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4361 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4362 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4363 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4364 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4365 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4366 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4367 | echo "$as_me:$LINENO: result: no" >&5 |
| 4368 | echo "${ECHO_T}no" >&6 |
| 4369 | fi |
| 4370 | |
| 4371 | fi |
| 4372 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 4373 | tclsh_name="tclsh8.0" |
| 4374 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4375 | set dummy $tclsh_name; ac_word=$2 |
| 4376 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4378 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4380 | else |
| 4381 | case $vi_cv_path_tcl in |
| 4382 | [\\/]* | ?:[\\/]*) |
| 4383 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4384 | ;; |
| 4385 | *) |
| 4386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4387 | for as_dir in $PATH |
| 4388 | do |
| 4389 | IFS=$as_save_IFS |
| 4390 | test -z "$as_dir" && as_dir=. |
| 4391 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4392 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4393 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4394 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4395 | break 2 |
| 4396 | fi |
| 4397 | done |
| 4398 | done |
| 4399 | |
| 4400 | ;; |
| 4401 | esac |
| 4402 | fi |
| 4403 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4404 | |
| 4405 | if test -n "$vi_cv_path_tcl"; then |
| 4406 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4407 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
| 4408 | else |
| 4409 | echo "$as_me:$LINENO: result: no" >&5 |
| 4410 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4411 | fi |
| 4412 | |
| 4413 | fi |
| 4414 | if test "X$vi_cv_path_tcl" = "X"; then |
| 4415 | tclsh_name="tclsh" |
| 4416 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4417 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4420 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4422 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4423 | case $vi_cv_path_tcl in |
| 4424 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4425 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4426 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4427 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4429 | for as_dir in $PATH |
| 4430 | do |
| 4431 | IFS=$as_save_IFS |
| 4432 | test -z "$as_dir" && as_dir=. |
| 4433 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4434 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4435 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4436 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4437 | break 2 |
| 4438 | fi |
| 4439 | done |
| 4440 | done |
| 4441 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4442 | ;; |
| 4443 | esac |
| 4444 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4445 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4446 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4447 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4448 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4449 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4450 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4451 | echo "$as_me:$LINENO: result: no" >&5 |
| 4452 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4453 | fi |
| 4454 | |
| 4455 | fi |
| 4456 | if test "X$vi_cv_path_tcl" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4457 | echo "$as_me:$LINENO: checking Tcl version" >&5 |
| 4458 | echo $ECHO_N "checking Tcl version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4459 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 4460 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4461 | echo "$as_me:$LINENO: result: $tclver - OK" >&5 |
| 4462 | echo "${ECHO_T}$tclver - OK" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4463 | tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -` |
| 4464 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4465 | echo "$as_me:$LINENO: checking for location of Tcl include" >&5 |
| 4466 | echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4467 | if test "x$MACOSX" != "xyes"; then |
Bram Moolenaar | 47136d7 | 2004-10-12 20:02:24 +0000 | [diff] [blame] | 4468 | tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4469 | else |
| 4470 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 4471 | fi |
| 4472 | for try in $tclinc; do |
| 4473 | if test -f "$try/tcl.h"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4474 | echo "$as_me:$LINENO: result: $try/tcl.h" >&5 |
| 4475 | echo "${ECHO_T}$try/tcl.h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4476 | TCL_INC=$try |
| 4477 | break |
| 4478 | fi |
| 4479 | done |
| 4480 | if test -z "$TCL_INC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4481 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4482 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4483 | SKIP_TCL=YES |
| 4484 | fi |
| 4485 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4486 | echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 |
| 4487 | echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4488 | if test "x$MACOSX" != "xyes"; then |
| 4489 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
| 4490 | else |
| 4491 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 4492 | fi |
| 4493 | for try in $tclcnf; do |
| 4494 | if test -f $try/tclConfig.sh; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4495 | echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 |
| 4496 | echo "${ECHO_T}$try/tclConfig.sh" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4497 | . $try/tclConfig.sh |
| 4498 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 4499 | TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4500 | break |
| 4501 | fi |
| 4502 | done |
| 4503 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4504 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4505 | echo "${ECHO_T}<not found>" >&6 |
| 4506 | echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 |
| 4507 | echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4508 | tcllib=`echo $tclinc | sed s/include/lib/g` |
| 4509 | for ext in .so .a ; do |
| 4510 | for ver in "" $tclver ; do |
| 4511 | for try in $tcllib ; do |
| 4512 | trylib=tcl$ver$ext |
| 4513 | if test -f $try/lib$trylib ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4514 | echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 |
| 4515 | echo "${ECHO_T}$try/lib$trylib" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4516 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 4517 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 4518 | uname -r | grep '^5' >/dev/null; then |
| 4519 | TCL_LIBS="$TCL_LIBS -R $try" |
| 4520 | fi |
| 4521 | break 3 |
| 4522 | fi |
| 4523 | done |
| 4524 | done |
| 4525 | done |
| 4526 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4527 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4528 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4529 | SKIP_TCL=YES |
| 4530 | fi |
| 4531 | fi |
| 4532 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4533 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4534 | #define FEAT_TCL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4535 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4536 | |
| 4537 | TCL_SRC=if_tcl.c |
| 4538 | TCL_OBJ=objects/if_tcl.o |
| 4539 | TCL_PRO=if_tcl.pro |
| 4540 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 4541 | fi |
| 4542 | fi |
| 4543 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4544 | echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 |
| 4545 | echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4546 | fi |
| 4547 | fi |
| 4548 | fi |
| 4549 | |
| 4550 | |
| 4551 | |
| 4552 | |
| 4553 | |
| 4554 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4555 | echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 |
| 4556 | echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4557 | # Check whether --enable-rubyinterp or --disable-rubyinterp was given. |
| 4558 | if test "${enable_rubyinterp+set}" = set; then |
| 4559 | enableval="$enable_rubyinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4560 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4561 | else |
| 4562 | enable_rubyinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4563 | fi; |
| 4564 | echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 |
| 4565 | echo "${ECHO_T}$enable_rubyinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4566 | if test "$enable_rubyinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4567 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4568 | # Extract the first word of "ruby", so it can be a program name with args. |
| 4569 | set dummy ruby; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4570 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4572 | if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then |
| 4573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4574 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4575 | case $vi_cv_path_ruby in |
| 4576 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4577 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 4578 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4579 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4581 | for as_dir in $PATH |
| 4582 | do |
| 4583 | IFS=$as_save_IFS |
| 4584 | test -z "$as_dir" && as_dir=. |
| 4585 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4586 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4587 | ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" |
| 4588 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4589 | break 2 |
| 4590 | fi |
| 4591 | done |
| 4592 | done |
| 4593 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4594 | ;; |
| 4595 | esac |
| 4596 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4597 | vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
| 4598 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4599 | if test -n "$vi_cv_path_ruby"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4600 | echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 |
| 4601 | echo "${ECHO_T}$vi_cv_path_ruby" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4602 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4603 | echo "$as_me:$LINENO: result: no" >&5 |
| 4604 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4605 | fi |
| 4606 | |
| 4607 | if test "X$vi_cv_path_ruby" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4608 | echo "$as_me:$LINENO: checking Ruby version" >&5 |
| 4609 | echo $ECHO_N "checking Ruby version... $ECHO_C" >&6 |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 4610 | if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4611 | echo "$as_me:$LINENO: result: OK" >&5 |
| 4612 | echo "${ECHO_T}OK" >&6 |
| 4613 | echo "$as_me:$LINENO: checking Ruby header files" >&5 |
| 4614 | echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4615 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
| 4616 | if test "X$rubyhdrdir" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4617 | echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 |
| 4618 | echo "${ECHO_T}$rubyhdrdir" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4619 | RUBY_CFLAGS="-I$rubyhdrdir" |
| 4620 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 4621 | if test "X$rubylibs" != "X"; then |
| 4622 | RUBY_LIBS="$rubylibs" |
| 4623 | fi |
| 4624 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 4625 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 4626 | librubyarg="$rubyhdrdir/$librubyarg" |
| 4627 | else |
| 4628 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 4629 | if test -f "$rubylibdir/$librubyarg"; then |
| 4630 | librubyarg="$rubylibdir/$librubyarg" |
| 4631 | elif test "$librubyarg" = "libruby.a"; then |
| 4632 | librubyarg="-lruby" |
| 4633 | else |
| 4634 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 4635 | fi |
| 4636 | fi |
| 4637 | |
| 4638 | if test "X$librubyarg" != "X"; then |
| 4639 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 4640 | fi |
| 4641 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 4642 | if test "X$rubyldflags" != "X"; then |
| 4643 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 4644 | fi |
| 4645 | RUBY_SRC="if_ruby.c" |
| 4646 | RUBY_OBJ="objects/if_ruby.o" |
| 4647 | RUBY_PRO="if_ruby.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4648 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4649 | #define FEAT_RUBY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4650 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4651 | |
| 4652 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4653 | echo "$as_me:$LINENO: result: not found" >&5 |
| 4654 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4655 | fi |
| 4656 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4657 | echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 |
| 4658 | echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4659 | fi |
| 4660 | fi |
| 4661 | fi |
| 4662 | |
| 4663 | |
| 4664 | |
| 4665 | |
| 4666 | |
| 4667 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4668 | echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 |
| 4669 | echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4670 | # Check whether --enable-cscope or --disable-cscope was given. |
| 4671 | if test "${enable_cscope+set}" = set; then |
| 4672 | enableval="$enable_cscope" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4673 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4674 | else |
| 4675 | enable_cscope="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4676 | fi; |
| 4677 | echo "$as_me:$LINENO: result: $enable_cscope" >&5 |
| 4678 | echo "${ECHO_T}$enable_cscope" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4679 | if test "$enable_cscope" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4680 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4681 | #define FEAT_CSCOPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4682 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4683 | |
| 4684 | fi |
| 4685 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4686 | echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 |
| 4687 | echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4688 | # Check whether --enable-workshop or --disable-workshop was given. |
| 4689 | if test "${enable_workshop+set}" = set; then |
| 4690 | enableval="$enable_workshop" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4691 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4692 | else |
| 4693 | enable_workshop="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4694 | fi; |
| 4695 | echo "$as_me:$LINENO: result: $enable_workshop" >&5 |
| 4696 | echo "${ECHO_T}$enable_workshop" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4697 | if test "$enable_workshop" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4698 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4699 | #define FEAT_SUN_WORKSHOP 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4700 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4701 | |
| 4702 | WORKSHOP_SRC="workshop.c integration.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4703 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4704 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4705 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4706 | if test "${enable_gui-xxx}" = xxx; then |
| 4707 | enable_gui=motif |
| 4708 | fi |
| 4709 | fi |
| 4710 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4711 | echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 |
| 4712 | echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4713 | # Check whether --enable-netbeans or --disable-netbeans was given. |
| 4714 | if test "${enable_netbeans+set}" = set; then |
| 4715 | enableval="$enable_netbeans" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4716 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4717 | else |
| 4718 | enable_netbeans="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4719 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4720 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4721 | echo "$as_me:$LINENO: result: no" >&5 |
| 4722 | echo "${ECHO_T}no" >&6 |
| 4723 | |
| 4724 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 4725 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 4726 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 4727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4728 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4729 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4730 | LIBS="-lsocket $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4731 | cat >conftest.$ac_ext <<_ACEOF |
| 4732 | /* confdefs.h. */ |
| 4733 | _ACEOF |
| 4734 | cat confdefs.h >>conftest.$ac_ext |
| 4735 | cat >>conftest.$ac_ext <<_ACEOF |
| 4736 | /* end confdefs.h. */ |
| 4737 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4738 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4739 | #ifdef __cplusplus |
| 4740 | extern "C" |
| 4741 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4742 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4743 | builtin and then its argument prototype would still apply. */ |
| 4744 | char socket (); |
| 4745 | int |
| 4746 | main () |
| 4747 | { |
| 4748 | socket (); |
| 4749 | ; |
| 4750 | return 0; |
| 4751 | } |
| 4752 | _ACEOF |
| 4753 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4755 | (eval $ac_link) 2>conftest.er1 |
| 4756 | ac_status=$? |
| 4757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4758 | rm -f conftest.er1 |
| 4759 | cat conftest.err >&5 |
| 4760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4761 | (exit $ac_status); } && |
| 4762 | { ac_try='test -z "$ac_c_werror_flag" |
| 4763 | || test ! -s conftest.err' |
| 4764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4765 | (eval $ac_try) 2>&5 |
| 4766 | ac_status=$? |
| 4767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4768 | (exit $ac_status); }; } && |
| 4769 | { ac_try='test -s conftest$ac_exeext' |
| 4770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4771 | (eval $ac_try) 2>&5 |
| 4772 | ac_status=$? |
| 4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4774 | (exit $ac_status); }; }; then |
| 4775 | ac_cv_lib_socket_socket=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4776 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4777 | echo "$as_me: failed program was:" >&5 |
| 4778 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4779 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4780 | ac_cv_lib_socket_socket=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4781 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4782 | rm -f conftest.err conftest.$ac_objext \ |
| 4783 | conftest$ac_exeext conftest.$ac_ext |
| 4784 | LIBS=$ac_check_lib_save_LIBS |
| 4785 | fi |
| 4786 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 4787 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 4788 | if test $ac_cv_lib_socket_socket = yes; then |
| 4789 | cat >>confdefs.h <<_ACEOF |
| 4790 | #define HAVE_LIBSOCKET 1 |
| 4791 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4792 | |
| 4793 | LIBS="-lsocket $LIBS" |
| 4794 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4795 | fi |
| 4796 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4797 | |
| 4798 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 4799 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 4800 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4802 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4803 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4804 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4805 | cat >conftest.$ac_ext <<_ACEOF |
| 4806 | /* confdefs.h. */ |
| 4807 | _ACEOF |
| 4808 | cat confdefs.h >>conftest.$ac_ext |
| 4809 | cat >>conftest.$ac_ext <<_ACEOF |
| 4810 | /* end confdefs.h. */ |
| 4811 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4812 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4813 | #ifdef __cplusplus |
| 4814 | extern "C" |
| 4815 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4816 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4817 | builtin and then its argument prototype would still apply. */ |
| 4818 | char gethostbyname (); |
| 4819 | int |
| 4820 | main () |
| 4821 | { |
| 4822 | gethostbyname (); |
| 4823 | ; |
| 4824 | return 0; |
| 4825 | } |
| 4826 | _ACEOF |
| 4827 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4829 | (eval $ac_link) 2>conftest.er1 |
| 4830 | ac_status=$? |
| 4831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4832 | rm -f conftest.er1 |
| 4833 | cat conftest.err >&5 |
| 4834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4835 | (exit $ac_status); } && |
| 4836 | { ac_try='test -z "$ac_c_werror_flag" |
| 4837 | || test ! -s conftest.err' |
| 4838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4839 | (eval $ac_try) 2>&5 |
| 4840 | ac_status=$? |
| 4841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4842 | (exit $ac_status); }; } && |
| 4843 | { ac_try='test -s conftest$ac_exeext' |
| 4844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4845 | (eval $ac_try) 2>&5 |
| 4846 | ac_status=$? |
| 4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4848 | (exit $ac_status); }; }; then |
| 4849 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4850 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4851 | echo "$as_me: failed program was:" >&5 |
| 4852 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4853 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4854 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4855 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4856 | rm -f conftest.err conftest.$ac_objext \ |
| 4857 | conftest$ac_exeext conftest.$ac_ext |
| 4858 | LIBS=$ac_check_lib_save_LIBS |
| 4859 | fi |
| 4860 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 4861 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 4862 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 4863 | cat >>confdefs.h <<_ACEOF |
| 4864 | #define HAVE_LIBNSL 1 |
| 4865 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4866 | |
| 4867 | LIBS="-lnsl $LIBS" |
| 4868 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4869 | fi |
| 4870 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4871 | echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 |
| 4872 | echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6 |
| 4873 | cat >conftest.$ac_ext <<_ACEOF |
| 4874 | /* confdefs.h. */ |
| 4875 | _ACEOF |
| 4876 | cat confdefs.h >>conftest.$ac_ext |
| 4877 | cat >>conftest.$ac_ext <<_ACEOF |
| 4878 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4879 | |
| 4880 | #include <stdio.h> |
| 4881 | #include <stdlib.h> |
| 4882 | #include <stdarg.h> |
| 4883 | #include <fcntl.h> |
| 4884 | #include <netdb.h> |
| 4885 | #include <netinet/in.h> |
| 4886 | #include <errno.h> |
| 4887 | #include <sys/types.h> |
| 4888 | #include <sys/socket.h> |
| 4889 | /* Check bitfields */ |
| 4890 | struct nbbuf { |
| 4891 | unsigned int initDone:1; |
| 4892 | ushort signmaplen; |
| 4893 | }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4894 | |
| 4895 | int |
| 4896 | main () |
| 4897 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4898 | |
| 4899 | /* Check creating a socket. */ |
| 4900 | struct sockaddr_in server; |
| 4901 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 4902 | (void)htons(100); |
| 4903 | (void)gethostbyname("microsoft.com"); |
| 4904 | if (errno == ECONNREFUSED) |
| 4905 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4906 | |
| 4907 | ; |
| 4908 | return 0; |
| 4909 | } |
| 4910 | _ACEOF |
| 4911 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4912 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4913 | (eval $ac_link) 2>conftest.er1 |
| 4914 | ac_status=$? |
| 4915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4916 | rm -f conftest.er1 |
| 4917 | cat conftest.err >&5 |
| 4918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4919 | (exit $ac_status); } && |
| 4920 | { ac_try='test -z "$ac_c_werror_flag" |
| 4921 | || test ! -s conftest.err' |
| 4922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4923 | (eval $ac_try) 2>&5 |
| 4924 | ac_status=$? |
| 4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4926 | (exit $ac_status); }; } && |
| 4927 | { ac_try='test -s conftest$ac_exeext' |
| 4928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4929 | (eval $ac_try) 2>&5 |
| 4930 | ac_status=$? |
| 4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4932 | (exit $ac_status); }; }; then |
| 4933 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4934 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4935 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4936 | echo "$as_me: failed program was:" >&5 |
| 4937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4938 | |
| 4939 | echo "$as_me:$LINENO: result: no" >&5 |
| 4940 | echo "${ECHO_T}no" >&6; enable_netbeans="no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4941 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4942 | rm -f conftest.err conftest.$ac_objext \ |
| 4943 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4944 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4945 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4946 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4947 | fi |
| 4948 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4949 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4950 | #define FEAT_NETBEANS_INTG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4951 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4952 | |
| 4953 | NETBEANS_SRC="netbeans.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4954 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4955 | NETBEANS_OBJ="objects/netbeans.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4956 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4957 | fi |
| 4958 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4959 | echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 |
| 4960 | echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4961 | # Check whether --enable-sniff or --disable-sniff was given. |
| 4962 | if test "${enable_sniff+set}" = set; then |
| 4963 | enableval="$enable_sniff" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4964 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4965 | else |
| 4966 | enable_sniff="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4967 | fi; |
| 4968 | echo "$as_me:$LINENO: result: $enable_sniff" >&5 |
| 4969 | echo "${ECHO_T}$enable_sniff" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4970 | if test "$enable_sniff" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4971 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4972 | #define FEAT_SNIFF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4973 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4974 | |
| 4975 | SNIFF_SRC="if_sniff.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4976 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4977 | SNIFF_OBJ="objects/if_sniff.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4978 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4979 | fi |
| 4980 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4981 | echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 |
| 4982 | echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4983 | # Check whether --enable-multibyte or --disable-multibyte was given. |
| 4984 | if test "${enable_multibyte+set}" = set; then |
| 4985 | enableval="$enable_multibyte" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4986 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4987 | else |
| 4988 | enable_multibyte="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4989 | fi; |
| 4990 | echo "$as_me:$LINENO: result: $enable_multibyte" >&5 |
| 4991 | echo "${ECHO_T}$enable_multibyte" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4992 | if test "$enable_multibyte" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4993 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4994 | #define FEAT_MBYTE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4995 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4996 | |
| 4997 | fi |
| 4998 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4999 | echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 |
| 5000 | echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5001 | # Check whether --enable-hangulinput or --disable-hangulinput was given. |
| 5002 | if test "${enable_hangulinput+set}" = set; then |
| 5003 | enableval="$enable_hangulinput" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5004 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5005 | else |
| 5006 | enable_hangulinput="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5007 | fi; |
| 5008 | echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 |
| 5009 | echo "${ECHO_T}$enable_hangulinput" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5010 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5011 | echo "$as_me:$LINENO: checking --enable-xim argument" >&5 |
| 5012 | echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5013 | # Check whether --enable-xim or --disable-xim was given. |
| 5014 | if test "${enable_xim+set}" = set; then |
| 5015 | enableval="$enable_xim" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5016 | echo "$as_me:$LINENO: result: $enable_xim" >&5 |
| 5017 | echo "${ECHO_T}$enable_xim" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5018 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5019 | enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5 |
| 5020 | echo "${ECHO_T}defaulting to auto" >&6 |
| 5021 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5022 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5023 | echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 |
| 5024 | echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5025 | # Check whether --enable-fontset or --disable-fontset was given. |
| 5026 | if test "${enable_fontset+set}" = set; then |
| 5027 | enableval="$enable_fontset" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5028 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5029 | else |
| 5030 | enable_fontset="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5031 | fi; |
| 5032 | echo "$as_me:$LINENO: result: $enable_fontset" >&5 |
| 5033 | echo "${ECHO_T}$enable_fontset" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5034 | |
| 5035 | test -z "$with_x" && with_x=yes |
| 5036 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 5037 | if test "$with_x" = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5038 | echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 |
| 5039 | echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5040 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5041 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5042 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 5043 | set dummy xmkmf; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5044 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5045 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5046 | if test "${ac_cv_path_xmkmfpath+set}" = set; then |
| 5047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5048 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5049 | case $xmkmfpath in |
| 5050 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5051 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 5052 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5053 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5055 | for as_dir in $PATH |
| 5056 | do |
| 5057 | IFS=$as_save_IFS |
| 5058 | test -z "$as_dir" && as_dir=. |
| 5059 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5060 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5061 | ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" |
| 5062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5063 | break 2 |
| 5064 | fi |
| 5065 | done |
| 5066 | done |
| 5067 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5068 | ;; |
| 5069 | esac |
| 5070 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5071 | xmkmfpath=$ac_cv_path_xmkmfpath |
| 5072 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5073 | if test -n "$xmkmfpath"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5074 | echo "$as_me:$LINENO: result: $xmkmfpath" >&5 |
| 5075 | echo "${ECHO_T}$xmkmfpath" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5076 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5077 | echo "$as_me:$LINENO: result: no" >&5 |
| 5078 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5079 | fi |
| 5080 | |
| 5081 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5082 | echo "$as_me:$LINENO: checking for X" >&5 |
| 5083 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 5084 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5085 | |
| 5086 | # Check whether --with-x or --without-x was given. |
| 5087 | if test "${with_x+set}" = set; then |
| 5088 | withval="$with_x" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5089 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5090 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5091 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 5092 | if test "x$with_x" = xno; then |
| 5093 | # The user explicitly disabled X. |
| 5094 | have_x=disabled |
| 5095 | else |
| 5096 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 5097 | # Both variables are already set. |
| 5098 | have_x=yes |
| 5099 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5100 | if test "${ac_cv_have_x+set}" = set; then |
| 5101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5102 | else |
| 5103 | # One or both of the vars are not set, and there is no cached value. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5104 | ac_x_includes=no ac_x_libraries=no |
| 5105 | rm -fr conftest.dir |
| 5106 | if mkdir conftest.dir; then |
| 5107 | cd conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5108 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5109 | cat >Imakefile <<'_ACEOF' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5110 | acfindx: |
| 5111 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5112 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5113 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 5114 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 5115 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 5116 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 5117 | for ac_extension in a so sl; do |
| 5118 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5119 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 5120 | ac_im_usrlibdir=$ac_im_libdir; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5121 | fi |
| 5122 | done |
| 5123 | # Screen out bogus values from the imake configuration. They are |
| 5124 | # bogus both because they are the default anyway, and because |
| 5125 | # using them would break gcc on systems where it needs fixed includes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5126 | case $ac_im_incroot in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5127 | /usr/include) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5128 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5129 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5130 | case $ac_im_usrlibdir in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5131 | /usr/lib | /lib) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5132 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5133 | esac |
| 5134 | fi |
| 5135 | cd .. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5136 | rm -fr conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5137 | fi |
| 5138 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5139 | # Standard set of common directories for X headers. |
| 5140 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 5141 | ac_x_header_dirs=' |
| 5142 | /usr/X11/include |
| 5143 | /usr/X11R6/include |
| 5144 | /usr/X11R5/include |
| 5145 | /usr/X11R4/include |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5146 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5147 | /usr/include/X11 |
| 5148 | /usr/include/X11R6 |
| 5149 | /usr/include/X11R5 |
| 5150 | /usr/include/X11R4 |
| 5151 | |
| 5152 | /usr/local/X11/include |
| 5153 | /usr/local/X11R6/include |
| 5154 | /usr/local/X11R5/include |
| 5155 | /usr/local/X11R4/include |
| 5156 | |
| 5157 | /usr/local/include/X11 |
| 5158 | /usr/local/include/X11R6 |
| 5159 | /usr/local/include/X11R5 |
| 5160 | /usr/local/include/X11R4 |
| 5161 | |
| 5162 | /usr/X386/include |
| 5163 | /usr/x386/include |
| 5164 | /usr/XFree86/include/X11 |
| 5165 | |
| 5166 | /usr/include |
| 5167 | /usr/local/include |
| 5168 | /usr/unsupported/include |
| 5169 | /usr/athena/include |
| 5170 | /usr/local/x11r5/include |
| 5171 | /usr/lpp/Xamples/include |
| 5172 | |
| 5173 | /usr/openwin/include |
| 5174 | /usr/openwin/share/include' |
| 5175 | |
| 5176 | if test "$ac_x_includes" = no; then |
| 5177 | # Guess where to find include files, by looking for Intrinsic.h. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5178 | # First, try using that file with no special directory specified. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5179 | cat >conftest.$ac_ext <<_ACEOF |
| 5180 | /* confdefs.h. */ |
| 5181 | _ACEOF |
| 5182 | cat confdefs.h >>conftest.$ac_ext |
| 5183 | cat >>conftest.$ac_ext <<_ACEOF |
| 5184 | /* end confdefs.h. */ |
| 5185 | #include <X11/Intrinsic.h> |
| 5186 | _ACEOF |
| 5187 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5188 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5189 | ac_status=$? |
| 5190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5191 | rm -f conftest.er1 |
| 5192 | cat conftest.err >&5 |
| 5193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5194 | (exit $ac_status); } >/dev/null; then |
| 5195 | if test -s conftest.err; then |
| 5196 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5197 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5198 | else |
| 5199 | ac_cpp_err= |
| 5200 | fi |
| 5201 | else |
| 5202 | ac_cpp_err=yes |
| 5203 | fi |
| 5204 | if test -z "$ac_cpp_err"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5205 | # We can compile using X headers with no special include directory. |
| 5206 | ac_x_includes= |
| 5207 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5208 | echo "$as_me: failed program was:" >&5 |
| 5209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5210 | |
| 5211 | for ac_dir in $ac_x_header_dirs; do |
| 5212 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 5213 | ac_x_includes=$ac_dir |
| 5214 | break |
| 5215 | fi |
| 5216 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5217 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5218 | rm -f conftest.err conftest.$ac_ext |
| 5219 | fi # $ac_x_includes = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5220 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5221 | if test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5222 | # Check for the libraries. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5223 | # See if we find them without any special options. |
| 5224 | # Don't add to $LIBS permanently. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5225 | ac_save_LIBS=$LIBS |
| 5226 | LIBS="-lXt $LIBS" |
| 5227 | cat >conftest.$ac_ext <<_ACEOF |
| 5228 | /* confdefs.h. */ |
| 5229 | _ACEOF |
| 5230 | cat confdefs.h >>conftest.$ac_ext |
| 5231 | cat >>conftest.$ac_ext <<_ACEOF |
| 5232 | /* end confdefs.h. */ |
| 5233 | #include <X11/Intrinsic.h> |
| 5234 | int |
| 5235 | main () |
| 5236 | { |
| 5237 | XtMalloc (0) |
| 5238 | ; |
| 5239 | return 0; |
| 5240 | } |
| 5241 | _ACEOF |
| 5242 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5244 | (eval $ac_link) 2>conftest.er1 |
| 5245 | ac_status=$? |
| 5246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5247 | rm -f conftest.er1 |
| 5248 | cat conftest.err >&5 |
| 5249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5250 | (exit $ac_status); } && |
| 5251 | { ac_try='test -z "$ac_c_werror_flag" |
| 5252 | || test ! -s conftest.err' |
| 5253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5254 | (eval $ac_try) 2>&5 |
| 5255 | ac_status=$? |
| 5256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5257 | (exit $ac_status); }; } && |
| 5258 | { ac_try='test -s conftest$ac_exeext' |
| 5259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5260 | (eval $ac_try) 2>&5 |
| 5261 | ac_status=$? |
| 5262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5263 | (exit $ac_status); }; }; then |
| 5264 | LIBS=$ac_save_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5265 | # We can link X programs with no special library path. |
| 5266 | ac_x_libraries= |
| 5267 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5268 | echo "$as_me: failed program was:" >&5 |
| 5269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5270 | |
| 5271 | LIBS=$ac_save_LIBS |
| 5272 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5273 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5274 | # Don't even attempt the hair of trying to link an X program! |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5275 | for ac_extension in a so sl; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5276 | if test -r $ac_dir/libXt.$ac_extension; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5277 | ac_x_libraries=$ac_dir |
| 5278 | break 2 |
| 5279 | fi |
| 5280 | done |
| 5281 | done |
| 5282 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5283 | rm -f conftest.err conftest.$ac_objext \ |
| 5284 | conftest$ac_exeext conftest.$ac_ext |
| 5285 | fi # $ac_x_libraries = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5286 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5287 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5288 | # Didn't find X anywhere. Cache the known absence of X. |
| 5289 | ac_cv_have_x="have_x=no" |
| 5290 | else |
| 5291 | # Record where we found X for the cache. |
| 5292 | ac_cv_have_x="have_x=yes \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5293 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5294 | fi |
| 5295 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5296 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5297 | fi |
| 5298 | eval "$ac_cv_have_x" |
| 5299 | fi # $with_x != no |
| 5300 | |
| 5301 | if test "$have_x" != yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5302 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 5303 | echo "${ECHO_T}$have_x" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5304 | no_x=yes |
| 5305 | else |
| 5306 | # If each of the values was on the command line, it overrides each guess. |
| 5307 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 5308 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 5309 | # Update the cache value to reflect the command line values. |
| 5310 | ac_cv_have_x="have_x=yes \ |
| 5311 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5312 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 5313 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5314 | fi |
| 5315 | |
| 5316 | if test "$no_x" = yes; then |
| 5317 | # Not all programs may use this symbol, but it does not hurt to define it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5318 | |
| 5319 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5320 | #define X_DISPLAY_MISSING 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5321 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5322 | |
| 5323 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 5324 | else |
| 5325 | if test -n "$x_includes"; then |
| 5326 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 5327 | fi |
| 5328 | |
| 5329 | # It would also be nice to do this for all -L options, not just this one. |
| 5330 | if test -n "$x_libraries"; then |
| 5331 | X_LIBS="$X_LIBS -L$x_libraries" |
| 5332 | # For Solaris; some versions of Sun CC require a space after -R and |
| 5333 | # others require no space. Words are not sufficient . . . . |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5334 | case `(uname -sr) 2>/dev/null` in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5335 | "SunOS 5"*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5336 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 5337 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 5338 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 5339 | cat >conftest.$ac_ext <<_ACEOF |
| 5340 | /* confdefs.h. */ |
| 5341 | _ACEOF |
| 5342 | cat confdefs.h >>conftest.$ac_ext |
| 5343 | cat >>conftest.$ac_ext <<_ACEOF |
| 5344 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5345 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5346 | int |
| 5347 | main () |
| 5348 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5349 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5350 | ; |
| 5351 | return 0; |
| 5352 | } |
| 5353 | _ACEOF |
| 5354 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5356 | (eval $ac_link) 2>conftest.er1 |
| 5357 | ac_status=$? |
| 5358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5359 | rm -f conftest.er1 |
| 5360 | cat conftest.err >&5 |
| 5361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5362 | (exit $ac_status); } && |
| 5363 | { ac_try='test -z "$ac_c_werror_flag" |
| 5364 | || test ! -s conftest.err' |
| 5365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5366 | (eval $ac_try) 2>&5 |
| 5367 | ac_status=$? |
| 5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5369 | (exit $ac_status); }; } && |
| 5370 | { ac_try='test -s conftest$ac_exeext' |
| 5371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5372 | (eval $ac_try) 2>&5 |
| 5373 | ac_status=$? |
| 5374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5375 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5376 | ac_R_nospace=yes |
| 5377 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5378 | echo "$as_me: failed program was:" >&5 |
| 5379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5380 | |
| 5381 | ac_R_nospace=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5382 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5383 | rm -f conftest.err conftest.$ac_objext \ |
| 5384 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5385 | if test $ac_R_nospace = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5386 | echo "$as_me:$LINENO: result: no" >&5 |
| 5387 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5388 | X_LIBS="$X_LIBS -R$x_libraries" |
| 5389 | else |
| 5390 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5391 | cat >conftest.$ac_ext <<_ACEOF |
| 5392 | /* confdefs.h. */ |
| 5393 | _ACEOF |
| 5394 | cat confdefs.h >>conftest.$ac_ext |
| 5395 | cat >>conftest.$ac_ext <<_ACEOF |
| 5396 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5397 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5398 | int |
| 5399 | main () |
| 5400 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5401 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5402 | ; |
| 5403 | return 0; |
| 5404 | } |
| 5405 | _ACEOF |
| 5406 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5408 | (eval $ac_link) 2>conftest.er1 |
| 5409 | ac_status=$? |
| 5410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5411 | rm -f conftest.er1 |
| 5412 | cat conftest.err >&5 |
| 5413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5414 | (exit $ac_status); } && |
| 5415 | { ac_try='test -z "$ac_c_werror_flag" |
| 5416 | || test ! -s conftest.err' |
| 5417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5418 | (eval $ac_try) 2>&5 |
| 5419 | ac_status=$? |
| 5420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5421 | (exit $ac_status); }; } && |
| 5422 | { ac_try='test -s conftest$ac_exeext' |
| 5423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5424 | (eval $ac_try) 2>&5 |
| 5425 | ac_status=$? |
| 5426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5427 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5428 | ac_R_space=yes |
| 5429 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5430 | echo "$as_me: failed program was:" >&5 |
| 5431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5432 | |
| 5433 | ac_R_space=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5434 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5435 | rm -f conftest.err conftest.$ac_objext \ |
| 5436 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5437 | if test $ac_R_space = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5438 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5439 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5440 | X_LIBS="$X_LIBS -R $x_libraries" |
| 5441 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5442 | echo "$as_me:$LINENO: result: neither works" >&5 |
| 5443 | echo "${ECHO_T}neither works" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5444 | fi |
| 5445 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5446 | LIBS=$ac_xsave_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5447 | esac |
| 5448 | fi |
| 5449 | |
| 5450 | # Check for system-dependent libraries X programs must link with. |
| 5451 | # Do this before checking for the system-independent R6 libraries |
| 5452 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 5453 | |
| 5454 | if test "$ISC" = yes; then |
| 5455 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 5456 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5457 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 5458 | # libraries were built with DECnet support. And Karl Berry says |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5459 | # the Alpha needs dnet_stub (dnet does not exist). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5460 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 5461 | cat >conftest.$ac_ext <<_ACEOF |
| 5462 | /* confdefs.h. */ |
| 5463 | _ACEOF |
| 5464 | cat confdefs.h >>conftest.$ac_ext |
| 5465 | cat >>conftest.$ac_ext <<_ACEOF |
| 5466 | /* end confdefs.h. */ |
| 5467 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5468 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5469 | #ifdef __cplusplus |
| 5470 | extern "C" |
| 5471 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5472 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5473 | builtin and then its argument prototype would still apply. */ |
| 5474 | char XOpenDisplay (); |
| 5475 | int |
| 5476 | main () |
| 5477 | { |
| 5478 | XOpenDisplay (); |
| 5479 | ; |
| 5480 | return 0; |
| 5481 | } |
| 5482 | _ACEOF |
| 5483 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5485 | (eval $ac_link) 2>conftest.er1 |
| 5486 | ac_status=$? |
| 5487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5488 | rm -f conftest.er1 |
| 5489 | cat conftest.err >&5 |
| 5490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5491 | (exit $ac_status); } && |
| 5492 | { ac_try='test -z "$ac_c_werror_flag" |
| 5493 | || test ! -s conftest.err' |
| 5494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5495 | (eval $ac_try) 2>&5 |
| 5496 | ac_status=$? |
| 5497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5498 | (exit $ac_status); }; } && |
| 5499 | { ac_try='test -s conftest$ac_exeext' |
| 5500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5501 | (eval $ac_try) 2>&5 |
| 5502 | ac_status=$? |
| 5503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5504 | (exit $ac_status); }; }; then |
| 5505 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5506 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5507 | echo "$as_me: failed program was:" >&5 |
| 5508 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5509 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5510 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 5511 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 5512 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 5513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5514 | else |
| 5515 | ac_check_lib_save_LIBS=$LIBS |
| 5516 | LIBS="-ldnet $LIBS" |
| 5517 | cat >conftest.$ac_ext <<_ACEOF |
| 5518 | /* confdefs.h. */ |
| 5519 | _ACEOF |
| 5520 | cat confdefs.h >>conftest.$ac_ext |
| 5521 | cat >>conftest.$ac_ext <<_ACEOF |
| 5522 | /* end confdefs.h. */ |
| 5523 | |
| 5524 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5525 | #ifdef __cplusplus |
| 5526 | extern "C" |
| 5527 | #endif |
| 5528 | /* We use char because int might match the return type of a gcc2 |
| 5529 | builtin and then its argument prototype would still apply. */ |
| 5530 | char dnet_ntoa (); |
| 5531 | int |
| 5532 | main () |
| 5533 | { |
| 5534 | dnet_ntoa (); |
| 5535 | ; |
| 5536 | return 0; |
| 5537 | } |
| 5538 | _ACEOF |
| 5539 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5541 | (eval $ac_link) 2>conftest.er1 |
| 5542 | ac_status=$? |
| 5543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5544 | rm -f conftest.er1 |
| 5545 | cat conftest.err >&5 |
| 5546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5547 | (exit $ac_status); } && |
| 5548 | { ac_try='test -z "$ac_c_werror_flag" |
| 5549 | || test ! -s conftest.err' |
| 5550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5551 | (eval $ac_try) 2>&5 |
| 5552 | ac_status=$? |
| 5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5554 | (exit $ac_status); }; } && |
| 5555 | { ac_try='test -s conftest$ac_exeext' |
| 5556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5557 | (eval $ac_try) 2>&5 |
| 5558 | ac_status=$? |
| 5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5560 | (exit $ac_status); }; }; then |
| 5561 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 5562 | else |
| 5563 | echo "$as_me: failed program was:" >&5 |
| 5564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5565 | |
| 5566 | ac_cv_lib_dnet_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5567 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5568 | rm -f conftest.err conftest.$ac_objext \ |
| 5569 | conftest$ac_exeext conftest.$ac_ext |
| 5570 | LIBS=$ac_check_lib_save_LIBS |
| 5571 | fi |
| 5572 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 5573 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 5574 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5575 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5576 | fi |
| 5577 | |
| 5578 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5579 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 5580 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 5581 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 5582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5583 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5584 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5585 | LIBS="-ldnet_stub $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5586 | cat >conftest.$ac_ext <<_ACEOF |
| 5587 | /* confdefs.h. */ |
| 5588 | _ACEOF |
| 5589 | cat confdefs.h >>conftest.$ac_ext |
| 5590 | cat >>conftest.$ac_ext <<_ACEOF |
| 5591 | /* end confdefs.h. */ |
| 5592 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5593 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5594 | #ifdef __cplusplus |
| 5595 | extern "C" |
| 5596 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5597 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5598 | builtin and then its argument prototype would still apply. */ |
| 5599 | char dnet_ntoa (); |
| 5600 | int |
| 5601 | main () |
| 5602 | { |
| 5603 | dnet_ntoa (); |
| 5604 | ; |
| 5605 | return 0; |
| 5606 | } |
| 5607 | _ACEOF |
| 5608 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5610 | (eval $ac_link) 2>conftest.er1 |
| 5611 | ac_status=$? |
| 5612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5613 | rm -f conftest.er1 |
| 5614 | cat conftest.err >&5 |
| 5615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5616 | (exit $ac_status); } && |
| 5617 | { ac_try='test -z "$ac_c_werror_flag" |
| 5618 | || test ! -s conftest.err' |
| 5619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5620 | (eval $ac_try) 2>&5 |
| 5621 | ac_status=$? |
| 5622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5623 | (exit $ac_status); }; } && |
| 5624 | { ac_try='test -s conftest$ac_exeext' |
| 5625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5626 | (eval $ac_try) 2>&5 |
| 5627 | ac_status=$? |
| 5628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5629 | (exit $ac_status); }; }; then |
| 5630 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5631 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5632 | echo "$as_me: failed program was:" >&5 |
| 5633 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5634 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5635 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5636 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5637 | rm -f conftest.err conftest.$ac_objext \ |
| 5638 | conftest$ac_exeext conftest.$ac_ext |
| 5639 | LIBS=$ac_check_lib_save_LIBS |
| 5640 | fi |
| 5641 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 5642 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 5643 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5644 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5645 | fi |
| 5646 | |
| 5647 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5648 | fi |
| 5649 | rm -f conftest.err conftest.$ac_objext \ |
| 5650 | conftest$ac_exeext conftest.$ac_ext |
| 5651 | LIBS="$ac_xsave_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5652 | |
| 5653 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 5654 | # to get the SysV transport functions. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5655 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5656 | # needs -lnsl. |
| 5657 | # The nsl library prevents programs from opening the X display |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5658 | # on Irix 5.2, according to T.E. Dickey. |
| 5659 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 5660 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 5661 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 5662 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 5663 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 5664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5665 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5666 | cat >conftest.$ac_ext <<_ACEOF |
| 5667 | /* confdefs.h. */ |
| 5668 | _ACEOF |
| 5669 | cat confdefs.h >>conftest.$ac_ext |
| 5670 | cat >>conftest.$ac_ext <<_ACEOF |
| 5671 | /* end confdefs.h. */ |
| 5672 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 5673 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5674 | #define gethostbyname innocuous_gethostbyname |
| 5675 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5676 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5677 | which can conflict with char gethostbyname (); below. |
| 5678 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5679 | <limits.h> exists even on freestanding compilers. */ |
| 5680 | |
| 5681 | #ifdef __STDC__ |
| 5682 | # include <limits.h> |
| 5683 | #else |
| 5684 | # include <assert.h> |
| 5685 | #endif |
| 5686 | |
| 5687 | #undef gethostbyname |
| 5688 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5689 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5690 | #ifdef __cplusplus |
| 5691 | extern "C" |
| 5692 | { |
| 5693 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5694 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5695 | builtin and then its argument prototype would still apply. */ |
| 5696 | char gethostbyname (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5697 | /* The GNU C library defines this for functions which it implements |
| 5698 | to always fail with ENOSYS. Some functions are actually named |
| 5699 | something starting with __ and the normal name is an alias. */ |
| 5700 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 5701 | choke me |
| 5702 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5703 | char (*f) () = gethostbyname; |
| 5704 | #endif |
| 5705 | #ifdef __cplusplus |
| 5706 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5707 | #endif |
| 5708 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5709 | int |
| 5710 | main () |
| 5711 | { |
| 5712 | return f != gethostbyname; |
| 5713 | ; |
| 5714 | return 0; |
| 5715 | } |
| 5716 | _ACEOF |
| 5717 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5719 | (eval $ac_link) 2>conftest.er1 |
| 5720 | ac_status=$? |
| 5721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5722 | rm -f conftest.er1 |
| 5723 | cat conftest.err >&5 |
| 5724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5725 | (exit $ac_status); } && |
| 5726 | { ac_try='test -z "$ac_c_werror_flag" |
| 5727 | || test ! -s conftest.err' |
| 5728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5729 | (eval $ac_try) 2>&5 |
| 5730 | ac_status=$? |
| 5731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5732 | (exit $ac_status); }; } && |
| 5733 | { ac_try='test -s conftest$ac_exeext' |
| 5734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5735 | (eval $ac_try) 2>&5 |
| 5736 | ac_status=$? |
| 5737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5738 | (exit $ac_status); }; }; then |
| 5739 | ac_cv_func_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5740 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5741 | echo "$as_me: failed program was:" >&5 |
| 5742 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5743 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5744 | ac_cv_func_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5745 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5746 | rm -f conftest.err conftest.$ac_objext \ |
| 5747 | conftest$ac_exeext conftest.$ac_ext |
| 5748 | fi |
| 5749 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 5750 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5751 | |
| 5752 | if test $ac_cv_func_gethostbyname = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5753 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 5754 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 5755 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 5756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5757 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5758 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5759 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5760 | cat >conftest.$ac_ext <<_ACEOF |
| 5761 | /* confdefs.h. */ |
| 5762 | _ACEOF |
| 5763 | cat confdefs.h >>conftest.$ac_ext |
| 5764 | cat >>conftest.$ac_ext <<_ACEOF |
| 5765 | /* end confdefs.h. */ |
| 5766 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5767 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5768 | #ifdef __cplusplus |
| 5769 | extern "C" |
| 5770 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5771 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5772 | builtin and then its argument prototype would still apply. */ |
| 5773 | char gethostbyname (); |
| 5774 | int |
| 5775 | main () |
| 5776 | { |
| 5777 | gethostbyname (); |
| 5778 | ; |
| 5779 | return 0; |
| 5780 | } |
| 5781 | _ACEOF |
| 5782 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5784 | (eval $ac_link) 2>conftest.er1 |
| 5785 | ac_status=$? |
| 5786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5787 | rm -f conftest.er1 |
| 5788 | cat conftest.err >&5 |
| 5789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5790 | (exit $ac_status); } && |
| 5791 | { ac_try='test -z "$ac_c_werror_flag" |
| 5792 | || test ! -s conftest.err' |
| 5793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5794 | (eval $ac_try) 2>&5 |
| 5795 | ac_status=$? |
| 5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5797 | (exit $ac_status); }; } && |
| 5798 | { ac_try='test -s conftest$ac_exeext' |
| 5799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5800 | (eval $ac_try) 2>&5 |
| 5801 | ac_status=$? |
| 5802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5803 | (exit $ac_status); }; }; then |
| 5804 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5805 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5806 | echo "$as_me: failed program was:" >&5 |
| 5807 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5808 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5809 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5810 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5811 | rm -f conftest.err conftest.$ac_objext \ |
| 5812 | conftest$ac_exeext conftest.$ac_ext |
| 5813 | LIBS=$ac_check_lib_save_LIBS |
| 5814 | fi |
| 5815 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 5816 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 5817 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5818 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5819 | fi |
| 5820 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5821 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 5822 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 5823 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 5824 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 5825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5826 | else |
| 5827 | ac_check_lib_save_LIBS=$LIBS |
| 5828 | LIBS="-lbsd $LIBS" |
| 5829 | cat >conftest.$ac_ext <<_ACEOF |
| 5830 | /* confdefs.h. */ |
| 5831 | _ACEOF |
| 5832 | cat confdefs.h >>conftest.$ac_ext |
| 5833 | cat >>conftest.$ac_ext <<_ACEOF |
| 5834 | /* end confdefs.h. */ |
| 5835 | |
| 5836 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5837 | #ifdef __cplusplus |
| 5838 | extern "C" |
| 5839 | #endif |
| 5840 | /* We use char because int might match the return type of a gcc2 |
| 5841 | builtin and then its argument prototype would still apply. */ |
| 5842 | char gethostbyname (); |
| 5843 | int |
| 5844 | main () |
| 5845 | { |
| 5846 | gethostbyname (); |
| 5847 | ; |
| 5848 | return 0; |
| 5849 | } |
| 5850 | _ACEOF |
| 5851 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5853 | (eval $ac_link) 2>conftest.er1 |
| 5854 | ac_status=$? |
| 5855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5856 | rm -f conftest.er1 |
| 5857 | cat conftest.err >&5 |
| 5858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5859 | (exit $ac_status); } && |
| 5860 | { ac_try='test -z "$ac_c_werror_flag" |
| 5861 | || test ! -s conftest.err' |
| 5862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5863 | (eval $ac_try) 2>&5 |
| 5864 | ac_status=$? |
| 5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5866 | (exit $ac_status); }; } && |
| 5867 | { ac_try='test -s conftest$ac_exeext' |
| 5868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5869 | (eval $ac_try) 2>&5 |
| 5870 | ac_status=$? |
| 5871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5872 | (exit $ac_status); }; }; then |
| 5873 | ac_cv_lib_bsd_gethostbyname=yes |
| 5874 | else |
| 5875 | echo "$as_me: failed program was:" >&5 |
| 5876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5877 | |
| 5878 | ac_cv_lib_bsd_gethostbyname=no |
| 5879 | fi |
| 5880 | rm -f conftest.err conftest.$ac_objext \ |
| 5881 | conftest$ac_exeext conftest.$ac_ext |
| 5882 | LIBS=$ac_check_lib_save_LIBS |
| 5883 | fi |
| 5884 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 5885 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 5886 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 5887 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 5888 | fi |
| 5889 | |
| 5890 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5891 | fi |
| 5892 | |
| 5893 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 5894 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 5895 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5896 | # on later versions), says Simon Leinen: it contains gethostby* |
| 5897 | # variants that don't use the name server (or something). -lsocket |
| 5898 | # must be given before -lnsl if both are needed. We assume that |
| 5899 | # if connect needs -lnsl, so does gethostbyname. |
| 5900 | echo "$as_me:$LINENO: checking for connect" >&5 |
| 5901 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 5902 | if test "${ac_cv_func_connect+set}" = set; then |
| 5903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5904 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5905 | cat >conftest.$ac_ext <<_ACEOF |
| 5906 | /* confdefs.h. */ |
| 5907 | _ACEOF |
| 5908 | cat confdefs.h >>conftest.$ac_ext |
| 5909 | cat >>conftest.$ac_ext <<_ACEOF |
| 5910 | /* end confdefs.h. */ |
| 5911 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 5912 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5913 | #define connect innocuous_connect |
| 5914 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5915 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5916 | which can conflict with char connect (); below. |
| 5917 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5918 | <limits.h> exists even on freestanding compilers. */ |
| 5919 | |
| 5920 | #ifdef __STDC__ |
| 5921 | # include <limits.h> |
| 5922 | #else |
| 5923 | # include <assert.h> |
| 5924 | #endif |
| 5925 | |
| 5926 | #undef connect |
| 5927 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5928 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5929 | #ifdef __cplusplus |
| 5930 | extern "C" |
| 5931 | { |
| 5932 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5933 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5934 | builtin and then its argument prototype would still apply. */ |
| 5935 | char connect (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5936 | /* The GNU C library defines this for functions which it implements |
| 5937 | to always fail with ENOSYS. Some functions are actually named |
| 5938 | something starting with __ and the normal name is an alias. */ |
| 5939 | #if defined (__stub_connect) || defined (__stub___connect) |
| 5940 | choke me |
| 5941 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5942 | char (*f) () = connect; |
| 5943 | #endif |
| 5944 | #ifdef __cplusplus |
| 5945 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5946 | #endif |
| 5947 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5948 | int |
| 5949 | main () |
| 5950 | { |
| 5951 | return f != connect; |
| 5952 | ; |
| 5953 | return 0; |
| 5954 | } |
| 5955 | _ACEOF |
| 5956 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5958 | (eval $ac_link) 2>conftest.er1 |
| 5959 | ac_status=$? |
| 5960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5961 | rm -f conftest.er1 |
| 5962 | cat conftest.err >&5 |
| 5963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5964 | (exit $ac_status); } && |
| 5965 | { ac_try='test -z "$ac_c_werror_flag" |
| 5966 | || test ! -s conftest.err' |
| 5967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5968 | (eval $ac_try) 2>&5 |
| 5969 | ac_status=$? |
| 5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5971 | (exit $ac_status); }; } && |
| 5972 | { ac_try='test -s conftest$ac_exeext' |
| 5973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5974 | (eval $ac_try) 2>&5 |
| 5975 | ac_status=$? |
| 5976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5977 | (exit $ac_status); }; }; then |
| 5978 | ac_cv_func_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5979 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5980 | echo "$as_me: failed program was:" >&5 |
| 5981 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5982 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5983 | ac_cv_func_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5984 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5985 | rm -f conftest.err conftest.$ac_objext \ |
| 5986 | conftest$ac_exeext conftest.$ac_ext |
| 5987 | fi |
| 5988 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 5989 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5990 | |
| 5991 | if test $ac_cv_func_connect = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5992 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 5993 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 5994 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 5995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5996 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5997 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5998 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5999 | cat >conftest.$ac_ext <<_ACEOF |
| 6000 | /* confdefs.h. */ |
| 6001 | _ACEOF |
| 6002 | cat confdefs.h >>conftest.$ac_ext |
| 6003 | cat >>conftest.$ac_ext <<_ACEOF |
| 6004 | /* end confdefs.h. */ |
| 6005 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6006 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6007 | #ifdef __cplusplus |
| 6008 | extern "C" |
| 6009 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6010 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6011 | builtin and then its argument prototype would still apply. */ |
| 6012 | char connect (); |
| 6013 | int |
| 6014 | main () |
| 6015 | { |
| 6016 | connect (); |
| 6017 | ; |
| 6018 | return 0; |
| 6019 | } |
| 6020 | _ACEOF |
| 6021 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6023 | (eval $ac_link) 2>conftest.er1 |
| 6024 | ac_status=$? |
| 6025 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6026 | rm -f conftest.er1 |
| 6027 | cat conftest.err >&5 |
| 6028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6029 | (exit $ac_status); } && |
| 6030 | { ac_try='test -z "$ac_c_werror_flag" |
| 6031 | || test ! -s conftest.err' |
| 6032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6033 | (eval $ac_try) 2>&5 |
| 6034 | ac_status=$? |
| 6035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6036 | (exit $ac_status); }; } && |
| 6037 | { ac_try='test -s conftest$ac_exeext' |
| 6038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6039 | (eval $ac_try) 2>&5 |
| 6040 | ac_status=$? |
| 6041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6042 | (exit $ac_status); }; }; then |
| 6043 | ac_cv_lib_socket_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6044 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6045 | echo "$as_me: failed program was:" >&5 |
| 6046 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6047 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6048 | ac_cv_lib_socket_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6049 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6050 | rm -f conftest.err conftest.$ac_objext \ |
| 6051 | conftest$ac_exeext conftest.$ac_ext |
| 6052 | LIBS=$ac_check_lib_save_LIBS |
| 6053 | fi |
| 6054 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 6055 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 6056 | if test $ac_cv_lib_socket_connect = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6057 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6058 | fi |
| 6059 | |
| 6060 | fi |
| 6061 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6062 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 6063 | echo "$as_me:$LINENO: checking for remove" >&5 |
| 6064 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 6065 | if test "${ac_cv_func_remove+set}" = set; then |
| 6066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6067 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6068 | cat >conftest.$ac_ext <<_ACEOF |
| 6069 | /* confdefs.h. */ |
| 6070 | _ACEOF |
| 6071 | cat confdefs.h >>conftest.$ac_ext |
| 6072 | cat >>conftest.$ac_ext <<_ACEOF |
| 6073 | /* end confdefs.h. */ |
| 6074 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 6075 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6076 | #define remove innocuous_remove |
| 6077 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6078 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6079 | which can conflict with char remove (); below. |
| 6080 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6081 | <limits.h> exists even on freestanding compilers. */ |
| 6082 | |
| 6083 | #ifdef __STDC__ |
| 6084 | # include <limits.h> |
| 6085 | #else |
| 6086 | # include <assert.h> |
| 6087 | #endif |
| 6088 | |
| 6089 | #undef remove |
| 6090 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6091 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6092 | #ifdef __cplusplus |
| 6093 | extern "C" |
| 6094 | { |
| 6095 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6096 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6097 | builtin and then its argument prototype would still apply. */ |
| 6098 | char remove (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6099 | /* The GNU C library defines this for functions which it implements |
| 6100 | to always fail with ENOSYS. Some functions are actually named |
| 6101 | something starting with __ and the normal name is an alias. */ |
| 6102 | #if defined (__stub_remove) || defined (__stub___remove) |
| 6103 | choke me |
| 6104 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6105 | char (*f) () = remove; |
| 6106 | #endif |
| 6107 | #ifdef __cplusplus |
| 6108 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6109 | #endif |
| 6110 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6111 | int |
| 6112 | main () |
| 6113 | { |
| 6114 | return f != remove; |
| 6115 | ; |
| 6116 | return 0; |
| 6117 | } |
| 6118 | _ACEOF |
| 6119 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6121 | (eval $ac_link) 2>conftest.er1 |
| 6122 | ac_status=$? |
| 6123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6124 | rm -f conftest.er1 |
| 6125 | cat conftest.err >&5 |
| 6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6127 | (exit $ac_status); } && |
| 6128 | { ac_try='test -z "$ac_c_werror_flag" |
| 6129 | || test ! -s conftest.err' |
| 6130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6131 | (eval $ac_try) 2>&5 |
| 6132 | ac_status=$? |
| 6133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6134 | (exit $ac_status); }; } && |
| 6135 | { ac_try='test -s conftest$ac_exeext' |
| 6136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6137 | (eval $ac_try) 2>&5 |
| 6138 | ac_status=$? |
| 6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6140 | (exit $ac_status); }; }; then |
| 6141 | ac_cv_func_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6142 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6143 | echo "$as_me: failed program was:" >&5 |
| 6144 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6145 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6146 | ac_cv_func_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6147 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6148 | rm -f conftest.err conftest.$ac_objext \ |
| 6149 | conftest$ac_exeext conftest.$ac_ext |
| 6150 | fi |
| 6151 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 6152 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6153 | |
| 6154 | if test $ac_cv_func_remove = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6155 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 6156 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 6157 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 6158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6159 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6160 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6161 | LIBS="-lposix $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6162 | cat >conftest.$ac_ext <<_ACEOF |
| 6163 | /* confdefs.h. */ |
| 6164 | _ACEOF |
| 6165 | cat confdefs.h >>conftest.$ac_ext |
| 6166 | cat >>conftest.$ac_ext <<_ACEOF |
| 6167 | /* end confdefs.h. */ |
| 6168 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6169 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6170 | #ifdef __cplusplus |
| 6171 | extern "C" |
| 6172 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6173 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6174 | builtin and then its argument prototype would still apply. */ |
| 6175 | char remove (); |
| 6176 | int |
| 6177 | main () |
| 6178 | { |
| 6179 | remove (); |
| 6180 | ; |
| 6181 | return 0; |
| 6182 | } |
| 6183 | _ACEOF |
| 6184 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6186 | (eval $ac_link) 2>conftest.er1 |
| 6187 | ac_status=$? |
| 6188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6189 | rm -f conftest.er1 |
| 6190 | cat conftest.err >&5 |
| 6191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6192 | (exit $ac_status); } && |
| 6193 | { ac_try='test -z "$ac_c_werror_flag" |
| 6194 | || test ! -s conftest.err' |
| 6195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6196 | (eval $ac_try) 2>&5 |
| 6197 | ac_status=$? |
| 6198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6199 | (exit $ac_status); }; } && |
| 6200 | { ac_try='test -s conftest$ac_exeext' |
| 6201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6202 | (eval $ac_try) 2>&5 |
| 6203 | ac_status=$? |
| 6204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6205 | (exit $ac_status); }; }; then |
| 6206 | ac_cv_lib_posix_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6207 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6208 | echo "$as_me: failed program was:" >&5 |
| 6209 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6210 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6211 | ac_cv_lib_posix_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6212 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6213 | rm -f conftest.err conftest.$ac_objext \ |
| 6214 | conftest$ac_exeext conftest.$ac_ext |
| 6215 | LIBS=$ac_check_lib_save_LIBS |
| 6216 | fi |
| 6217 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 6218 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 6219 | if test $ac_cv_lib_posix_remove = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6220 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6221 | fi |
| 6222 | |
| 6223 | fi |
| 6224 | |
| 6225 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6226 | echo "$as_me:$LINENO: checking for shmat" >&5 |
| 6227 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 6228 | if test "${ac_cv_func_shmat+set}" = set; then |
| 6229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6230 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6231 | cat >conftest.$ac_ext <<_ACEOF |
| 6232 | /* confdefs.h. */ |
| 6233 | _ACEOF |
| 6234 | cat confdefs.h >>conftest.$ac_ext |
| 6235 | cat >>conftest.$ac_ext <<_ACEOF |
| 6236 | /* end confdefs.h. */ |
| 6237 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 6238 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6239 | #define shmat innocuous_shmat |
| 6240 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6241 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6242 | which can conflict with char shmat (); below. |
| 6243 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6244 | <limits.h> exists even on freestanding compilers. */ |
| 6245 | |
| 6246 | #ifdef __STDC__ |
| 6247 | # include <limits.h> |
| 6248 | #else |
| 6249 | # include <assert.h> |
| 6250 | #endif |
| 6251 | |
| 6252 | #undef shmat |
| 6253 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6254 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6255 | #ifdef __cplusplus |
| 6256 | extern "C" |
| 6257 | { |
| 6258 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6259 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6260 | builtin and then its argument prototype would still apply. */ |
| 6261 | char shmat (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6262 | /* The GNU C library defines this for functions which it implements |
| 6263 | to always fail with ENOSYS. Some functions are actually named |
| 6264 | something starting with __ and the normal name is an alias. */ |
| 6265 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 6266 | choke me |
| 6267 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6268 | char (*f) () = shmat; |
| 6269 | #endif |
| 6270 | #ifdef __cplusplus |
| 6271 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6272 | #endif |
| 6273 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6274 | int |
| 6275 | main () |
| 6276 | { |
| 6277 | return f != shmat; |
| 6278 | ; |
| 6279 | return 0; |
| 6280 | } |
| 6281 | _ACEOF |
| 6282 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6284 | (eval $ac_link) 2>conftest.er1 |
| 6285 | ac_status=$? |
| 6286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6287 | rm -f conftest.er1 |
| 6288 | cat conftest.err >&5 |
| 6289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6290 | (exit $ac_status); } && |
| 6291 | { ac_try='test -z "$ac_c_werror_flag" |
| 6292 | || test ! -s conftest.err' |
| 6293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6294 | (eval $ac_try) 2>&5 |
| 6295 | ac_status=$? |
| 6296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6297 | (exit $ac_status); }; } && |
| 6298 | { ac_try='test -s conftest$ac_exeext' |
| 6299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6300 | (eval $ac_try) 2>&5 |
| 6301 | ac_status=$? |
| 6302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6303 | (exit $ac_status); }; }; then |
| 6304 | ac_cv_func_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6305 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6306 | echo "$as_me: failed program was:" >&5 |
| 6307 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6308 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6309 | ac_cv_func_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6310 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6311 | rm -f conftest.err conftest.$ac_objext \ |
| 6312 | conftest$ac_exeext conftest.$ac_ext |
| 6313 | fi |
| 6314 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 6315 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6316 | |
| 6317 | if test $ac_cv_func_shmat = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6318 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 6319 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 6320 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 6321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6322 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6323 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6324 | LIBS="-lipc $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6325 | cat >conftest.$ac_ext <<_ACEOF |
| 6326 | /* confdefs.h. */ |
| 6327 | _ACEOF |
| 6328 | cat confdefs.h >>conftest.$ac_ext |
| 6329 | cat >>conftest.$ac_ext <<_ACEOF |
| 6330 | /* end confdefs.h. */ |
| 6331 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6332 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6333 | #ifdef __cplusplus |
| 6334 | extern "C" |
| 6335 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6336 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6337 | builtin and then its argument prototype would still apply. */ |
| 6338 | char shmat (); |
| 6339 | int |
| 6340 | main () |
| 6341 | { |
| 6342 | shmat (); |
| 6343 | ; |
| 6344 | return 0; |
| 6345 | } |
| 6346 | _ACEOF |
| 6347 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6349 | (eval $ac_link) 2>conftest.er1 |
| 6350 | ac_status=$? |
| 6351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6352 | rm -f conftest.er1 |
| 6353 | cat conftest.err >&5 |
| 6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6355 | (exit $ac_status); } && |
| 6356 | { ac_try='test -z "$ac_c_werror_flag" |
| 6357 | || test ! -s conftest.err' |
| 6358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6359 | (eval $ac_try) 2>&5 |
| 6360 | ac_status=$? |
| 6361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6362 | (exit $ac_status); }; } && |
| 6363 | { ac_try='test -s conftest$ac_exeext' |
| 6364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6365 | (eval $ac_try) 2>&5 |
| 6366 | ac_status=$? |
| 6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6368 | (exit $ac_status); }; }; then |
| 6369 | ac_cv_lib_ipc_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6370 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6371 | echo "$as_me: failed program was:" >&5 |
| 6372 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6373 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6374 | ac_cv_lib_ipc_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6375 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6376 | rm -f conftest.err conftest.$ac_objext \ |
| 6377 | conftest$ac_exeext conftest.$ac_ext |
| 6378 | LIBS=$ac_check_lib_save_LIBS |
| 6379 | fi |
| 6380 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 6381 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 6382 | if test $ac_cv_lib_ipc_shmat = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6383 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6384 | fi |
| 6385 | |
| 6386 | fi |
| 6387 | fi |
| 6388 | |
| 6389 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6390 | ac_save_LDFLAGS=$LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6391 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 6392 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 6393 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 6394 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 6395 | # These have to be linked with before -lX11, unlike the other |
| 6396 | # libraries we check for below, so use a different variable. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6397 | # John Interrante, Karl Berry |
| 6398 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 6399 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 6400 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 6401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6402 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6403 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6404 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6405 | cat >conftest.$ac_ext <<_ACEOF |
| 6406 | /* confdefs.h. */ |
| 6407 | _ACEOF |
| 6408 | cat confdefs.h >>conftest.$ac_ext |
| 6409 | cat >>conftest.$ac_ext <<_ACEOF |
| 6410 | /* end confdefs.h. */ |
| 6411 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6412 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6413 | #ifdef __cplusplus |
| 6414 | extern "C" |
| 6415 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6416 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6417 | builtin and then its argument prototype would still apply. */ |
| 6418 | char IceConnectionNumber (); |
| 6419 | int |
| 6420 | main () |
| 6421 | { |
| 6422 | IceConnectionNumber (); |
| 6423 | ; |
| 6424 | return 0; |
| 6425 | } |
| 6426 | _ACEOF |
| 6427 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6429 | (eval $ac_link) 2>conftest.er1 |
| 6430 | ac_status=$? |
| 6431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6432 | rm -f conftest.er1 |
| 6433 | cat conftest.err >&5 |
| 6434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6435 | (exit $ac_status); } && |
| 6436 | { ac_try='test -z "$ac_c_werror_flag" |
| 6437 | || test ! -s conftest.err' |
| 6438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6439 | (eval $ac_try) 2>&5 |
| 6440 | ac_status=$? |
| 6441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6442 | (exit $ac_status); }; } && |
| 6443 | { ac_try='test -s conftest$ac_exeext' |
| 6444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6445 | (eval $ac_try) 2>&5 |
| 6446 | ac_status=$? |
| 6447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6448 | (exit $ac_status); }; }; then |
| 6449 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6450 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6451 | echo "$as_me: failed program was:" >&5 |
| 6452 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6453 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6454 | ac_cv_lib_ICE_IceConnectionNumber=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6455 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6456 | rm -f conftest.err conftest.$ac_objext \ |
| 6457 | conftest$ac_exeext conftest.$ac_ext |
| 6458 | LIBS=$ac_check_lib_save_LIBS |
| 6459 | fi |
| 6460 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 6461 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 6462 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6463 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6464 | fi |
| 6465 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6466 | LDFLAGS=$ac_save_LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6467 | |
| 6468 | fi |
| 6469 | |
| 6470 | |
| 6471 | if test "$OS390Unix" = "yes"; then |
| 6472 | CFLAGS="$CFLAGS -W c,dll" |
| 6473 | LDFLAGS="$LDFLAGS -W l,dll" |
| 6474 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 6475 | fi |
| 6476 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6477 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6478 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 6479 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6480 | echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 |
| 6481 | echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6482 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6483 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 6484 | uname -r | grep '^5' >/dev/null; then |
| 6485 | X_LIBS="$X_LIBS -R $x_libraries" |
| 6486 | fi |
| 6487 | fi |
| 6488 | |
| 6489 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 6490 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6491 | echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 |
| 6492 | echo "${ECHO_T}Corrected X includes to $x_includes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6493 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6494 | fi |
| 6495 | |
| 6496 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 6497 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 6498 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 6499 | |
| 6500 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6501 | echo "$as_me:$LINENO: checking if X11 header files can be found" >&5 |
| 6502 | echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6503 | cflags_save=$CFLAGS |
| 6504 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6505 | cat >conftest.$ac_ext <<_ACEOF |
| 6506 | /* confdefs.h. */ |
| 6507 | _ACEOF |
| 6508 | cat confdefs.h >>conftest.$ac_ext |
| 6509 | cat >>conftest.$ac_ext <<_ACEOF |
| 6510 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6511 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6512 | int |
| 6513 | main () |
| 6514 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6515 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6516 | ; |
| 6517 | return 0; |
| 6518 | } |
| 6519 | _ACEOF |
| 6520 | rm -f conftest.$ac_objext |
| 6521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6522 | (eval $ac_compile) 2>conftest.er1 |
| 6523 | ac_status=$? |
| 6524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6525 | rm -f conftest.er1 |
| 6526 | cat conftest.err >&5 |
| 6527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6528 | (exit $ac_status); } && |
| 6529 | { ac_try='test -z "$ac_c_werror_flag" |
| 6530 | || test ! -s conftest.err' |
| 6531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6532 | (eval $ac_try) 2>&5 |
| 6533 | ac_status=$? |
| 6534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6535 | (exit $ac_status); }; } && |
| 6536 | { ac_try='test -s conftest.$ac_objext' |
| 6537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6538 | (eval $ac_try) 2>&5 |
| 6539 | ac_status=$? |
| 6540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6541 | (exit $ac_status); }; }; then |
| 6542 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6543 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6544 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6545 | echo "$as_me: failed program was:" >&5 |
| 6546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6547 | |
| 6548 | echo "$as_me:$LINENO: result: no" >&5 |
| 6549 | echo "${ECHO_T}no" >&6; no_x=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6550 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6551 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6552 | CFLAGS=$cflags_save |
| 6553 | |
| 6554 | if test "${no_x-no}" = yes; then |
| 6555 | with_x=no |
| 6556 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6557 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6558 | #define HAVE_X11 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6559 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6560 | |
| 6561 | X_LIB="-lXt -lX11"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6562 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6563 | |
| 6564 | ac_save_LDFLAGS="$LDFLAGS" |
| 6565 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 6566 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6567 | echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 6568 | echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6 |
| 6569 | if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then |
| 6570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6571 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6572 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6573 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6574 | cat >conftest.$ac_ext <<_ACEOF |
| 6575 | /* confdefs.h. */ |
| 6576 | _ACEOF |
| 6577 | cat confdefs.h >>conftest.$ac_ext |
| 6578 | cat >>conftest.$ac_ext <<_ACEOF |
| 6579 | /* end confdefs.h. */ |
| 6580 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6581 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6582 | #ifdef __cplusplus |
| 6583 | extern "C" |
| 6584 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6585 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6586 | builtin and then its argument prototype would still apply. */ |
| 6587 | char _XdmcpAuthDoIt (); |
| 6588 | int |
| 6589 | main () |
| 6590 | { |
| 6591 | _XdmcpAuthDoIt (); |
| 6592 | ; |
| 6593 | return 0; |
| 6594 | } |
| 6595 | _ACEOF |
| 6596 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6598 | (eval $ac_link) 2>conftest.er1 |
| 6599 | ac_status=$? |
| 6600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6601 | rm -f conftest.er1 |
| 6602 | cat conftest.err >&5 |
| 6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6604 | (exit $ac_status); } && |
| 6605 | { ac_try='test -z "$ac_c_werror_flag" |
| 6606 | || test ! -s conftest.err' |
| 6607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6608 | (eval $ac_try) 2>&5 |
| 6609 | ac_status=$? |
| 6610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6611 | (exit $ac_status); }; } && |
| 6612 | { ac_try='test -s conftest$ac_exeext' |
| 6613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6614 | (eval $ac_try) 2>&5 |
| 6615 | ac_status=$? |
| 6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6617 | (exit $ac_status); }; }; then |
| 6618 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6619 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6620 | echo "$as_me: failed program was:" >&5 |
| 6621 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6622 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6623 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6624 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6625 | rm -f conftest.err conftest.$ac_objext \ |
| 6626 | conftest$ac_exeext conftest.$ac_ext |
| 6627 | LIBS=$ac_check_lib_save_LIBS |
| 6628 | fi |
| 6629 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 |
| 6630 | echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6 |
| 6631 | if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6632 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6633 | fi |
| 6634 | |
| 6635 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6636 | echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 |
| 6637 | echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6 |
| 6638 | if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then |
| 6639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6640 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6641 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6642 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6643 | cat >conftest.$ac_ext <<_ACEOF |
| 6644 | /* confdefs.h. */ |
| 6645 | _ACEOF |
| 6646 | cat confdefs.h >>conftest.$ac_ext |
| 6647 | cat >>conftest.$ac_ext <<_ACEOF |
| 6648 | /* end confdefs.h. */ |
| 6649 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6650 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6651 | #ifdef __cplusplus |
| 6652 | extern "C" |
| 6653 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6654 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6655 | builtin and then its argument prototype would still apply. */ |
| 6656 | char IceOpenConnection (); |
| 6657 | int |
| 6658 | main () |
| 6659 | { |
| 6660 | IceOpenConnection (); |
| 6661 | ; |
| 6662 | return 0; |
| 6663 | } |
| 6664 | _ACEOF |
| 6665 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6667 | (eval $ac_link) 2>conftest.er1 |
| 6668 | ac_status=$? |
| 6669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6670 | rm -f conftest.er1 |
| 6671 | cat conftest.err >&5 |
| 6672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6673 | (exit $ac_status); } && |
| 6674 | { ac_try='test -z "$ac_c_werror_flag" |
| 6675 | || test ! -s conftest.err' |
| 6676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6677 | (eval $ac_try) 2>&5 |
| 6678 | ac_status=$? |
| 6679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6680 | (exit $ac_status); }; } && |
| 6681 | { ac_try='test -s conftest$ac_exeext' |
| 6682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6683 | (eval $ac_try) 2>&5 |
| 6684 | ac_status=$? |
| 6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6686 | (exit $ac_status); }; }; then |
| 6687 | ac_cv_lib_ICE_IceOpenConnection=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6688 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6689 | echo "$as_me: failed program was:" >&5 |
| 6690 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6691 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6692 | ac_cv_lib_ICE_IceOpenConnection=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6693 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6694 | rm -f conftest.err conftest.$ac_objext \ |
| 6695 | conftest$ac_exeext conftest.$ac_ext |
| 6696 | LIBS=$ac_check_lib_save_LIBS |
| 6697 | fi |
| 6698 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 6699 | echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6 |
| 6700 | if test $ac_cv_lib_ICE_IceOpenConnection = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6701 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6702 | fi |
| 6703 | |
| 6704 | |
| 6705 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6706 | echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 6707 | echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 |
| 6708 | if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then |
| 6709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6710 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6711 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6712 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6713 | cat >conftest.$ac_ext <<_ACEOF |
| 6714 | /* confdefs.h. */ |
| 6715 | _ACEOF |
| 6716 | cat confdefs.h >>conftest.$ac_ext |
| 6717 | cat >>conftest.$ac_ext <<_ACEOF |
| 6718 | /* end confdefs.h. */ |
| 6719 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6720 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6721 | #ifdef __cplusplus |
| 6722 | extern "C" |
| 6723 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6724 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6725 | builtin and then its argument prototype would still apply. */ |
| 6726 | char XpmCreatePixmapFromData (); |
| 6727 | int |
| 6728 | main () |
| 6729 | { |
| 6730 | XpmCreatePixmapFromData (); |
| 6731 | ; |
| 6732 | return 0; |
| 6733 | } |
| 6734 | _ACEOF |
| 6735 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6737 | (eval $ac_link) 2>conftest.er1 |
| 6738 | ac_status=$? |
| 6739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6740 | rm -f conftest.er1 |
| 6741 | cat conftest.err >&5 |
| 6742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6743 | (exit $ac_status); } && |
| 6744 | { ac_try='test -z "$ac_c_werror_flag" |
| 6745 | || test ! -s conftest.err' |
| 6746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6747 | (eval $ac_try) 2>&5 |
| 6748 | ac_status=$? |
| 6749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6750 | (exit $ac_status); }; } && |
| 6751 | { ac_try='test -s conftest$ac_exeext' |
| 6752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6753 | (eval $ac_try) 2>&5 |
| 6754 | ac_status=$? |
| 6755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6756 | (exit $ac_status); }; }; then |
| 6757 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6758 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6759 | echo "$as_me: failed program was:" >&5 |
| 6760 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6761 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6762 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6763 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6764 | rm -f conftest.err conftest.$ac_objext \ |
| 6765 | conftest$ac_exeext conftest.$ac_ext |
| 6766 | LIBS=$ac_check_lib_save_LIBS |
| 6767 | fi |
| 6768 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 6769 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 |
| 6770 | if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6771 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6772 | fi |
| 6773 | |
| 6774 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6775 | echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 |
| 6776 | echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6777 | cflags_save=$CFLAGS |
| 6778 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6779 | cat >conftest.$ac_ext <<_ACEOF |
| 6780 | /* confdefs.h. */ |
| 6781 | _ACEOF |
| 6782 | cat confdefs.h >>conftest.$ac_ext |
| 6783 | cat >>conftest.$ac_ext <<_ACEOF |
| 6784 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6785 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6786 | int |
| 6787 | main () |
| 6788 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6789 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6790 | ; |
| 6791 | return 0; |
| 6792 | } |
| 6793 | _ACEOF |
| 6794 | rm -f conftest.$ac_objext |
| 6795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6796 | (eval $ac_compile) 2>conftest.er1 |
| 6797 | ac_status=$? |
| 6798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6799 | rm -f conftest.er1 |
| 6800 | cat conftest.err >&5 |
| 6801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6802 | (exit $ac_status); } && |
| 6803 | { ac_try='test -z "$ac_c_werror_flag" |
| 6804 | || test ! -s conftest.err' |
| 6805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6806 | (eval $ac_try) 2>&5 |
| 6807 | ac_status=$? |
| 6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6809 | (exit $ac_status); }; } && |
| 6810 | { ac_try='test -s conftest.$ac_objext' |
| 6811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6812 | (eval $ac_try) 2>&5 |
| 6813 | ac_status=$? |
| 6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6815 | (exit $ac_status); }; }; then |
| 6816 | echo "$as_me:$LINENO: result: no" >&5 |
| 6817 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6818 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6819 | echo "$as_me: failed program was:" >&5 |
| 6820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6821 | |
| 6822 | CFLAGS="$CFLAGS -Wno-implicit-int" |
| 6823 | cat >conftest.$ac_ext <<_ACEOF |
| 6824 | /* confdefs.h. */ |
| 6825 | _ACEOF |
| 6826 | cat confdefs.h >>conftest.$ac_ext |
| 6827 | cat >>conftest.$ac_ext <<_ACEOF |
| 6828 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6829 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6830 | int |
| 6831 | main () |
| 6832 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6833 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6834 | ; |
| 6835 | return 0; |
| 6836 | } |
| 6837 | _ACEOF |
| 6838 | rm -f conftest.$ac_objext |
| 6839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6840 | (eval $ac_compile) 2>conftest.er1 |
| 6841 | ac_status=$? |
| 6842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6843 | rm -f conftest.er1 |
| 6844 | cat conftest.err >&5 |
| 6845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6846 | (exit $ac_status); } && |
| 6847 | { ac_try='test -z "$ac_c_werror_flag" |
| 6848 | || test ! -s conftest.err' |
| 6849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6850 | (eval $ac_try) 2>&5 |
| 6851 | ac_status=$? |
| 6852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6853 | (exit $ac_status); }; } && |
| 6854 | { ac_try='test -s conftest.$ac_objext' |
| 6855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6856 | (eval $ac_try) 2>&5 |
| 6857 | ac_status=$? |
| 6858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6859 | (exit $ac_status); }; }; then |
| 6860 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6861 | echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6862 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6863 | echo "$as_me: failed program was:" >&5 |
| 6864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6865 | |
| 6866 | echo "$as_me:$LINENO: result: test failed" >&5 |
| 6867 | echo "${ECHO_T}test failed" >&6 |
| 6868 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6869 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6871 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6872 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6874 | CFLAGS=$cflags_save |
| 6875 | |
| 6876 | LDFLAGS="$ac_save_LDFLAGS" |
| 6877 | |
| 6878 | fi |
| 6879 | fi |
| 6880 | |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 6881 | test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6882 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6883 | echo "$as_me:$LINENO: checking --enable-gui argument" >&5 |
| 6884 | echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6885 | # Check whether --enable-gui or --disable-gui was given. |
| 6886 | if test "${enable_gui+set}" = set; then |
| 6887 | enableval="$enable_gui" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6888 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6889 | else |
| 6890 | enable_gui="auto" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6891 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6892 | |
| 6893 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 6894 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 6895 | |
| 6896 | SKIP_GTK=YES |
| 6897 | SKIP_GTK2=YES |
| 6898 | SKIP_GNOME=YES |
| 6899 | SKIP_MOTIF=YES |
| 6900 | SKIP_ATHENA=YES |
| 6901 | SKIP_NEXTAW=YES |
| 6902 | SKIP_PHOTON=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6903 | SKIP_CARBON=YES |
| 6904 | GUITYPE=NONE |
| 6905 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6906 | if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6907 | SKIP_PHOTON= |
| 6908 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6909 | no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 6910 | echo "${ECHO_T}no GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6911 | SKIP_PHOTON=YES ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6912 | yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 6913 | echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
| 6914 | auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 6915 | echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
| 6916 | photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5 |
| 6917 | echo "${ECHO_T}Photon GUI support" >&6 ;; |
| 6918 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 6919 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6920 | SKIP_PHOTON=YES ;; |
| 6921 | esac |
| 6922 | |
| 6923 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 6924 | SKIP_CARBON= |
| 6925 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6926 | no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 6927 | echo "${ECHO_T}no GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6928 | SKIP_CARBON=YES ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6929 | yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 6930 | echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
| 6931 | auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 6932 | echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
| 6933 | carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5 |
| 6934 | echo "${ECHO_T}Carbon GUI support" >&6 ;; |
| 6935 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 6936 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6937 | SKIP_CARBON=YES ;; |
| 6938 | esac |
| 6939 | |
| 6940 | else |
| 6941 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6942 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6943 | no|none) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 6944 | echo "${ECHO_T}no GUI support" >&6 ;; |
| 6945 | yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 |
| 6946 | echo "${ECHO_T}yes/auto - automatic GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6947 | SKIP_GTK= |
| 6948 | SKIP_GTK2= |
| 6949 | SKIP_GNOME= |
| 6950 | SKIP_MOTIF= |
| 6951 | SKIP_ATHENA= |
| 6952 | SKIP_NEXTAW= |
| 6953 | SKIP_CARBON=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6954 | gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 |
| 6955 | echo "${ECHO_T}GTK+ 1.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6956 | SKIP_GTK=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6957 | gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 |
| 6958 | echo "${ECHO_T}GTK+ 2.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6959 | SKIP_GTK= |
| 6960 | SKIP_GTK2=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6961 | gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 |
| 6962 | echo "${ECHO_T}GNOME 1.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6963 | SKIP_GNOME= |
| 6964 | SKIP_GTK=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6965 | gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 |
| 6966 | echo "${ECHO_T}GNOME 2.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6967 | SKIP_GNOME= |
| 6968 | SKIP_GTK= |
| 6969 | SKIP_GTK2=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6970 | motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5 |
| 6971 | echo "${ECHO_T}Motif GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6972 | SKIP_MOTIF=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6973 | athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5 |
| 6974 | echo "${ECHO_T}Athena GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6975 | SKIP_ATHENA=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6976 | nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 |
| 6977 | echo "${ECHO_T}neXtaw GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6978 | SKIP_NEXTAW=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6979 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 6980 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6981 | esac |
| 6982 | |
| 6983 | fi |
| 6984 | |
| 6985 | if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6986 | echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 |
| 6987 | echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6988 | # Check whether --enable-gtk-check or --disable-gtk-check was given. |
| 6989 | if test "${enable_gtk_check+set}" = set; then |
| 6990 | enableval="$enable_gtk_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6991 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6992 | else |
| 6993 | enable_gtk_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6994 | fi; |
| 6995 | echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 |
| 6996 | echo "${ECHO_T}$enable_gtk_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6997 | if test "x$enable_gtk_check" = "xno"; then |
| 6998 | SKIP_GTK=YES |
| 6999 | SKIP_GNOME=YES |
| 7000 | fi |
| 7001 | fi |
| 7002 | |
| 7003 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 7004 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7005 | echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 |
| 7006 | echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7007 | # Check whether --enable-gtk2-check or --disable-gtk2-check was given. |
| 7008 | if test "${enable_gtk2_check+set}" = set; then |
| 7009 | enableval="$enable_gtk2_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7010 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7011 | else |
| 7012 | enable_gtk2_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7013 | fi; |
| 7014 | echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 |
| 7015 | echo "${ECHO_T}$enable_gtk2_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7016 | if test "x$enable_gtk2_check" = "xno"; then |
| 7017 | SKIP_GTK2=YES |
| 7018 | fi |
| 7019 | fi |
| 7020 | |
| 7021 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 7022 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7023 | echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 |
| 7024 | echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7025 | # Check whether --enable-gnome-check or --disable-gnome-check was given. |
| 7026 | if test "${enable_gnome_check+set}" = set; then |
| 7027 | enableval="$enable_gnome_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7028 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7029 | else |
| 7030 | enable_gnome_check="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7031 | fi; |
| 7032 | echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 |
| 7033 | echo "${ECHO_T}$enable_gnome_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7034 | if test "x$enable_gnome_check" = "xno"; then |
| 7035 | SKIP_GNOME=YES |
| 7036 | fi |
| 7037 | fi |
| 7038 | |
| 7039 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7040 | echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 |
| 7041 | echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7042 | # Check whether --enable-motif-check or --disable-motif-check was given. |
| 7043 | if test "${enable_motif_check+set}" = set; then |
| 7044 | enableval="$enable_motif_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7045 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7046 | else |
| 7047 | enable_motif_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7048 | fi; |
| 7049 | echo "$as_me:$LINENO: result: $enable_motif_check" >&5 |
| 7050 | echo "${ECHO_T}$enable_motif_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7051 | if test "x$enable_motif_check" = "xno"; then |
| 7052 | SKIP_MOTIF=YES |
| 7053 | fi |
| 7054 | fi |
| 7055 | |
| 7056 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7057 | echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 |
| 7058 | echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7059 | # Check whether --enable-athena-check or --disable-athena-check was given. |
| 7060 | if test "${enable_athena_check+set}" = set; then |
| 7061 | enableval="$enable_athena_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7062 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7063 | else |
| 7064 | enable_athena_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7065 | fi; |
| 7066 | echo "$as_me:$LINENO: result: $enable_athena_check" >&5 |
| 7067 | echo "${ECHO_T}$enable_athena_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7068 | if test "x$enable_athena_check" = "xno"; then |
| 7069 | SKIP_ATHENA=YES |
| 7070 | fi |
| 7071 | fi |
| 7072 | |
| 7073 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7074 | echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 |
| 7075 | echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7076 | # Check whether --enable-nextaw-check or --disable-nextaw-check was given. |
| 7077 | if test "${enable_nextaw_check+set}" = set; then |
| 7078 | enableval="$enable_nextaw_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7079 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7080 | else |
| 7081 | enable_nextaw_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7082 | fi; |
| 7083 | echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 |
| 7084 | echo "${ECHO_T}$enable_nextaw_check" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7085 | if test "x$enable_nextaw_check" = "xno"; then |
| 7086 | SKIP_NEXTAW=YES |
| 7087 | fi |
| 7088 | fi |
| 7089 | |
| 7090 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7091 | echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 |
| 7092 | echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7093 | # Check whether --enable-carbon-check or --disable-carbon-check was given. |
| 7094 | if test "${enable_carbon_check+set}" = set; then |
| 7095 | enableval="$enable_carbon_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7096 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7097 | else |
| 7098 | enable_carbon_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7099 | fi; |
| 7100 | echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 |
| 7101 | echo "${ECHO_T}$enable_carbon_check" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7102 | if test "x$enable_carbon_check" = "xno"; then |
| 7103 | SKIP_CARBON=YES |
| 7104 | fi |
| 7105 | fi |
| 7106 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7107 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7108 | if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7109 | echo "$as_me:$LINENO: checking for Carbon GUI" >&5 |
| 7110 | echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6 |
| 7111 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7112 | echo "${ECHO_T}yes" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7113 | GUITYPE=CARBONGUI |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 7114 | if test "$VIMNAME" = "vim"; then |
| 7115 | VIMNAME=Vim |
| 7116 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7117 | SKIP_GTK=YES; |
| 7118 | SKIP_GTK2=YES; |
| 7119 | SKIP_GNOME=YES; |
| 7120 | SKIP_MOTIF=YES; |
| 7121 | SKIP_ATHENA=YES; |
| 7122 | SKIP_NEXTAW=YES; |
| 7123 | SKIP_PHOTON=YES; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7124 | SKIP_CARBON=YES |
| 7125 | fi |
| 7126 | |
| 7127 | |
| 7128 | |
| 7129 | |
| 7130 | |
| 7131 | |
| 7132 | |
| 7133 | |
| 7134 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7135 | if test -z "$SKIP_GTK"; then |
| 7136 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7137 | echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
| 7138 | echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6 |
| 7139 | |
| 7140 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7141 | if test "${with_gtk_prefix+set}" = set; then |
| 7142 | withval="$with_gtk_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7143 | gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 7144 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7145 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7146 | gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 7147 | echo "${ECHO_T}no" >&6 |
| 7148 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7149 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7150 | echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
| 7151 | echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7152 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7153 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7154 | if test "${with_gtk_exec_prefix+set}" = set; then |
| 7155 | withval="$with_gtk_exec_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7156 | gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 7157 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7158 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7159 | gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 7160 | echo "${ECHO_T}no" >&6 |
| 7161 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7162 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7163 | echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
| 7164 | echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7165 | # Check whether --enable-gtktest or --disable-gtktest was given. |
| 7166 | if test "${enable_gtktest+set}" = set; then |
| 7167 | enableval="$enable_gtktest" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7168 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7169 | else |
| 7170 | enable_gtktest=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7171 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7172 | if test "x$enable_gtktest" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7173 | echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
| 7174 | echo "${ECHO_T}gtk test enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7175 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7176 | echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
| 7177 | echo "${ECHO_T}gtk test disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7178 | fi |
| 7179 | |
| 7180 | if test "x$gtk_config_prefix" != "x" ; then |
| 7181 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 7182 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 7183 | fi |
| 7184 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 7185 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 7186 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 7187 | fi |
| 7188 | if test "X$GTK_CONFIG" = "X"; then |
| 7189 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 7190 | set dummy gtk-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7191 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7193 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
| 7194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7195 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7196 | case $GTK_CONFIG in |
| 7197 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7198 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 7199 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7200 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7202 | for as_dir in $PATH |
| 7203 | do |
| 7204 | IFS=$as_save_IFS |
| 7205 | test -z "$as_dir" && as_dir=. |
| 7206 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7207 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7208 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7210 | break 2 |
| 7211 | fi |
| 7212 | done |
| 7213 | done |
| 7214 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7215 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 7216 | ;; |
| 7217 | esac |
| 7218 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7219 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
| 7220 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7221 | if test -n "$GTK_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7222 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
| 7223 | echo "${ECHO_T}$GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7224 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7225 | echo "$as_me:$LINENO: result: no" >&5 |
| 7226 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7227 | fi |
| 7228 | |
| 7229 | if test "X$GTK_CONFIG" = "Xno"; then |
| 7230 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 7231 | set dummy gtk12-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7232 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7234 | if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
| 7235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7236 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7237 | case $GTK12_CONFIG in |
| 7238 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7239 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 7240 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7241 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7243 | for as_dir in $PATH |
| 7244 | do |
| 7245 | IFS=$as_save_IFS |
| 7246 | test -z "$as_dir" && as_dir=. |
| 7247 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7248 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7249 | ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7251 | break 2 |
| 7252 | fi |
| 7253 | done |
| 7254 | done |
| 7255 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7256 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 7257 | ;; |
| 7258 | esac |
| 7259 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7260 | GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
| 7261 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7262 | if test -n "$GTK12_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7263 | echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
| 7264 | echo "${ECHO_T}$GTK12_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7265 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7266 | echo "$as_me:$LINENO: result: no" >&5 |
| 7267 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7268 | fi |
| 7269 | |
| 7270 | GTK_CONFIG="$GTK12_CONFIG" |
| 7271 | fi |
| 7272 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7273 | echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
| 7274 | echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7275 | fi |
| 7276 | if test "X$PKG_CONFIG" = "X"; then |
| 7277 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 7278 | set dummy pkg-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7279 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7281 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 7282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7283 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7284 | case $PKG_CONFIG in |
| 7285 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7286 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 7287 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7288 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7290 | for as_dir in $PATH |
| 7291 | do |
| 7292 | IFS=$as_save_IFS |
| 7293 | test -z "$as_dir" && as_dir=. |
| 7294 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7295 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7296 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7298 | break 2 |
| 7299 | fi |
| 7300 | done |
| 7301 | done |
| 7302 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7303 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 7304 | ;; |
| 7305 | esac |
| 7306 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7307 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 7308 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7309 | if test -n "$PKG_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7310 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 7311 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7312 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7313 | echo "$as_me:$LINENO: result: no" >&5 |
| 7314 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7315 | fi |
| 7316 | |
| 7317 | fi |
| 7318 | |
| 7319 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 7320 | if test "X$SKIP_GTK2" != "XYES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7321 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7322 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 7323 | { |
| 7324 | min_gtk_version=2.2.0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7325 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 7326 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7327 | no_gtk="" |
| 7328 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 7329 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 7330 | { |
| 7331 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7332 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7333 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 7334 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7335 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7336 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7337 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7338 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7339 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7340 | } |
| 7341 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 7342 | { |
| 7343 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7344 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7345 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 7346 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7347 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7348 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7349 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7350 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7351 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7352 | } |
| 7353 | else |
| 7354 | no_gtk=yes |
| 7355 | fi |
| 7356 | |
| 7357 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 7358 | { |
| 7359 | ac_save_CFLAGS="$CFLAGS" |
| 7360 | ac_save_LIBS="$LIBS" |
| 7361 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 7362 | LIBS="$LIBS $GTK_LIBS" |
| 7363 | |
| 7364 | rm -f conf.gtktest |
| 7365 | if test "$cross_compiling" = yes; then |
| 7366 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 7367 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7368 | cat >conftest.$ac_ext <<_ACEOF |
| 7369 | /* confdefs.h. */ |
| 7370 | _ACEOF |
| 7371 | cat confdefs.h >>conftest.$ac_ext |
| 7372 | cat >>conftest.$ac_ext <<_ACEOF |
| 7373 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7374 | |
| 7375 | #include <gtk/gtk.h> |
| 7376 | #include <stdio.h> |
| 7377 | |
| 7378 | int |
| 7379 | main () |
| 7380 | { |
| 7381 | int major, minor, micro; |
| 7382 | char *tmp_version; |
| 7383 | |
| 7384 | system ("touch conf.gtktest"); |
| 7385 | |
| 7386 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 7387 | tmp_version = g_strdup("$min_gtk_version"); |
| 7388 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 7389 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 7390 | exit(1); |
| 7391 | } |
| 7392 | |
| 7393 | if ((gtk_major_version > major) || |
| 7394 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 7395 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 7396 | (gtk_micro_version >= micro))) |
| 7397 | { |
| 7398 | return 0; |
| 7399 | } |
| 7400 | return 1; |
| 7401 | } |
| 7402 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7403 | _ACEOF |
| 7404 | rm -f conftest$ac_exeext |
| 7405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7406 | (eval $ac_link) 2>&5 |
| 7407 | ac_status=$? |
| 7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7409 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7411 | (eval $ac_try) 2>&5 |
| 7412 | ac_status=$? |
| 7413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7414 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7415 | : |
| 7416 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7417 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7418 | echo "$as_me: failed program was:" >&5 |
| 7419 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7420 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7421 | ( exit $ac_status ) |
| 7422 | no_gtk=yes |
| 7423 | fi |
| 7424 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7425 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7426 | CFLAGS="$ac_save_CFLAGS" |
| 7427 | LIBS="$ac_save_LIBS" |
| 7428 | } |
| 7429 | fi |
| 7430 | if test "x$no_gtk" = x ; then |
| 7431 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7432 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7433 | echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7434 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7435 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7436 | echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7437 | fi |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7438 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 7439 | GTK_LIBNAME="$GTK_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7440 | GUI_INC_LOC="$GTK_CFLAGS" |
| 7441 | else |
| 7442 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7443 | echo "$as_me:$LINENO: result: no" >&5 |
| 7444 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7445 | GTK_CFLAGS="" |
| 7446 | GTK_LIBS="" |
| 7447 | : |
| 7448 | } |
| 7449 | fi |
| 7450 | } |
| 7451 | else |
| 7452 | GTK_CFLAGS="" |
| 7453 | GTK_LIBS="" |
| 7454 | : |
| 7455 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7456 | |
| 7457 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7458 | rm -f conf.gtktest |
| 7459 | |
| 7460 | if test "x$GTK_CFLAGS" != "x"; then |
| 7461 | SKIP_ATHENA=YES |
| 7462 | SKIP_NEXTAW=YES |
| 7463 | SKIP_MOTIF=YES |
| 7464 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7465 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7466 | fi |
| 7467 | fi |
| 7468 | |
| 7469 | if test "x$GUITYPE" != "xGTK"; then |
| 7470 | SKIP_GTK2=YES |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7471 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7472 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 7473 | { |
| 7474 | min_gtk_version=1.1.16 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7475 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 7476 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7477 | no_gtk="" |
| 7478 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 7479 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 7480 | { |
| 7481 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7482 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7483 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 7484 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7485 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7486 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7487 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7488 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7489 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7490 | } |
| 7491 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 7492 | { |
| 7493 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7494 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7495 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 7496 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7497 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7498 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7499 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7500 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7501 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7502 | } |
| 7503 | else |
| 7504 | no_gtk=yes |
| 7505 | fi |
| 7506 | |
| 7507 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 7508 | { |
| 7509 | ac_save_CFLAGS="$CFLAGS" |
| 7510 | ac_save_LIBS="$LIBS" |
| 7511 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 7512 | LIBS="$LIBS $GTK_LIBS" |
| 7513 | |
| 7514 | rm -f conf.gtktest |
| 7515 | if test "$cross_compiling" = yes; then |
| 7516 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 7517 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7518 | cat >conftest.$ac_ext <<_ACEOF |
| 7519 | /* confdefs.h. */ |
| 7520 | _ACEOF |
| 7521 | cat confdefs.h >>conftest.$ac_ext |
| 7522 | cat >>conftest.$ac_ext <<_ACEOF |
| 7523 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7524 | |
| 7525 | #include <gtk/gtk.h> |
| 7526 | #include <stdio.h> |
| 7527 | |
| 7528 | int |
| 7529 | main () |
| 7530 | { |
| 7531 | int major, minor, micro; |
| 7532 | char *tmp_version; |
| 7533 | |
| 7534 | system ("touch conf.gtktest"); |
| 7535 | |
| 7536 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 7537 | tmp_version = g_strdup("$min_gtk_version"); |
| 7538 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 7539 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 7540 | exit(1); |
| 7541 | } |
| 7542 | |
| 7543 | if ((gtk_major_version > major) || |
| 7544 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 7545 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 7546 | (gtk_micro_version >= micro))) |
| 7547 | { |
| 7548 | return 0; |
| 7549 | } |
| 7550 | return 1; |
| 7551 | } |
| 7552 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7553 | _ACEOF |
| 7554 | rm -f conftest$ac_exeext |
| 7555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7556 | (eval $ac_link) 2>&5 |
| 7557 | ac_status=$? |
| 7558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7561 | (eval $ac_try) 2>&5 |
| 7562 | ac_status=$? |
| 7563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7564 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7565 | : |
| 7566 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7567 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7568 | echo "$as_me: failed program was:" >&5 |
| 7569 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7570 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7571 | ( exit $ac_status ) |
| 7572 | no_gtk=yes |
| 7573 | fi |
| 7574 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7575 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7576 | CFLAGS="$ac_save_CFLAGS" |
| 7577 | LIBS="$ac_save_LIBS" |
| 7578 | } |
| 7579 | fi |
| 7580 | if test "x$no_gtk" = x ; then |
| 7581 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7582 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7583 | echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7584 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7585 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7586 | echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7587 | fi |
| 7588 | GTK_LIBNAME="$GTK_LIBS" |
| 7589 | GUI_INC_LOC="$GTK_CFLAGS" |
| 7590 | else |
| 7591 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7592 | echo "$as_me:$LINENO: result: no" >&5 |
| 7593 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7594 | GTK_CFLAGS="" |
| 7595 | GTK_LIBS="" |
| 7596 | : |
| 7597 | } |
| 7598 | fi |
| 7599 | } |
| 7600 | else |
| 7601 | GTK_CFLAGS="" |
| 7602 | GTK_LIBS="" |
| 7603 | : |
| 7604 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7605 | |
| 7606 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7607 | rm -f conf.gtktest |
| 7608 | |
| 7609 | if test "x$GTK_CFLAGS" != "x"; then |
| 7610 | SKIP_ATHENA=YES |
| 7611 | SKIP_NEXTAW=YES |
| 7612 | SKIP_MOTIF=YES |
| 7613 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7614 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7615 | fi |
| 7616 | fi |
| 7617 | fi |
| 7618 | if test "x$GUITYPE" = "xGTK"; then |
| 7619 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 7620 | -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7621 | echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
| 7622 | echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7623 | else |
| 7624 | { |
| 7625 | if test "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7626 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7627 | #define HAVE_GTK2 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7628 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7629 | |
| 7630 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 7631 | || test "0$gtk_minor_version" -ge 2 \ |
| 7632 | || test "0$gtk_major_version" -gt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7633 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7634 | #define HAVE_GTK_MULTIHEAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7635 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7636 | |
| 7637 | fi |
| 7638 | fi |
| 7639 | if test -z "$SKIP_GNOME"; then |
| 7640 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7641 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7642 | |
| 7643 | |
| 7644 | |
| 7645 | |
| 7646 | |
| 7647 | # Check whether --with-gnome-includes or --without-gnome-includes was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7648 | if test "${with_gnome_includes+set}" = set; then |
| 7649 | withval="$with_gnome_includes" |
| 7650 | CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7651 | |
| 7652 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7653 | |
| 7654 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7655 | # Check whether --with-gnome-libs or --without-gnome-libs was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7656 | if test "${with_gnome_libs+set}" = set; then |
| 7657 | withval="$with_gnome_libs" |
| 7658 | LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7659 | |
| 7660 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7661 | |
| 7662 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7663 | # Check whether --with-gnome or --without-gnome was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7664 | if test "${with_gnome+set}" = set; then |
| 7665 | withval="$with_gnome" |
| 7666 | if test x$withval = xyes; then |
| 7667 | want_gnome=yes |
| 7668 | have_gnome=yes |
| 7669 | else |
| 7670 | if test "x$withval" = xno; then |
| 7671 | want_gnome=no |
| 7672 | else |
| 7673 | want_gnome=yes |
| 7674 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 7675 | CFLAGS="$CFLAGS -I$withval/include" |
| 7676 | gnome_prefix=$withval/lib |
| 7677 | fi |
| 7678 | fi |
| 7679 | else |
| 7680 | want_gnome=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7681 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7682 | |
| 7683 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 7684 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7685 | echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
| 7686 | echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7687 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7688 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7689 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7690 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 7691 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 7692 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
| 7693 | have_gnome=yes |
| 7694 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7695 | echo "$as_me:$LINENO: result: not found" >&5 |
| 7696 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7697 | if test "x" = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7698 | { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
| 7699 | echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;} |
| 7700 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7701 | fi |
| 7702 | fi |
| 7703 | } |
| 7704 | elif test "x$want_gnome" = xyes; then |
| 7705 | { |
| 7706 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 7707 | set dummy gnome-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7708 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7710 | if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
| 7711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7712 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7713 | case $GNOME_CONFIG in |
| 7714 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7715 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 7716 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7717 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7719 | for as_dir in $PATH |
| 7720 | do |
| 7721 | IFS=$as_save_IFS |
| 7722 | test -z "$as_dir" && as_dir=. |
| 7723 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7724 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7725 | ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7727 | break 2 |
| 7728 | fi |
| 7729 | done |
| 7730 | done |
| 7731 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7732 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 7733 | ;; |
| 7734 | esac |
| 7735 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7736 | GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
| 7737 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7738 | if test -n "$GNOME_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7739 | echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
| 7740 | echo "${ECHO_T}$GNOME_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7741 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7742 | echo "$as_me:$LINENO: result: no" >&5 |
| 7743 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7744 | fi |
| 7745 | |
| 7746 | if test "$GNOME_CONFIG" = "no"; then |
| 7747 | no_gnome_config="yes" |
| 7748 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7749 | echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
| 7750 | echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7751 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7752 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7753 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7754 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 7755 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 7756 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 7757 | have_gnome=yes |
| 7758 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7759 | echo "$as_me:$LINENO: result: no" >&5 |
| 7760 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7761 | no_gnome_config="yes" |
| 7762 | fi |
| 7763 | fi |
| 7764 | |
| 7765 | if test x$exec_prefix = xNONE; then |
| 7766 | if test x$prefix = xNONE; then |
| 7767 | gnome_prefix=$ac_default_prefix/lib |
| 7768 | else |
| 7769 | gnome_prefix=$prefix/lib |
| 7770 | fi |
| 7771 | else |
| 7772 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 7773 | fi |
| 7774 | |
| 7775 | if test "$no_gnome_config" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7776 | echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 7777 | echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7778 | if test -f $gnome_prefix/gnomeConf.sh; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7779 | echo "$as_me:$LINENO: result: found" >&5 |
| 7780 | echo "${ECHO_T}found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7781 | echo "loading gnome configuration from" \ |
| 7782 | "$gnome_prefix/gnomeConf.sh" |
| 7783 | . $gnome_prefix/gnomeConf.sh |
| 7784 | have_gnome=yes |
| 7785 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7786 | echo "$as_me:$LINENO: result: not found" >&5 |
| 7787 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7788 | if test x = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7789 | { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
| 7790 | echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;} |
| 7791 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7792 | fi |
| 7793 | fi |
| 7794 | fi |
| 7795 | } |
| 7796 | fi |
| 7797 | |
| 7798 | if test x$have_gnome = xyes ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7799 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7800 | #define FEAT_GUI_GNOME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7801 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7802 | |
| 7803 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 7804 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 7805 | fi |
| 7806 | } |
| 7807 | fi |
| 7808 | } |
| 7809 | fi |
| 7810 | fi |
| 7811 | fi |
| 7812 | |
| 7813 | |
| 7814 | if test -z "$SKIP_MOTIF"; then |
| 7815 | gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX" |
| 7816 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 7817 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7818 | echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
| 7819 | echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7820 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 7821 | GUI_INC_LOC= |
| 7822 | for try in $gui_includes; do |
| 7823 | if test -f "$try/Xm/Xm.h"; then |
| 7824 | GUI_INC_LOC=$try |
| 7825 | fi |
| 7826 | done |
| 7827 | if test -n "$GUI_INC_LOC"; then |
| 7828 | if test "$GUI_INC_LOC" = /usr/include; then |
| 7829 | GUI_INC_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7830 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 7831 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7832 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7833 | echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
| 7834 | echo "${ECHO_T}$GUI_INC_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7835 | fi |
| 7836 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7837 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 7838 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7839 | SKIP_MOTIF=YES |
| 7840 | fi |
| 7841 | fi |
| 7842 | |
| 7843 | |
| 7844 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7845 | echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
| 7846 | echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6 |
| 7847 | |
| 7848 | # Check whether --with-motif-lib or --without-motif-lib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7849 | if test "${with_motif_lib+set}" = set; then |
| 7850 | withval="$with_motif_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7851 | MOTIF_LIBNAME="${withval}" |
| 7852 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7853 | |
| 7854 | if test -n "$MOTIF_LIBNAME"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7855 | echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
| 7856 | echo "${ECHO_T}$MOTIF_LIBNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7857 | GUI_LIB_LOC= |
| 7858 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7859 | echo "$as_me:$LINENO: result: no" >&5 |
| 7860 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7861 | |
| 7862 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 7863 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7864 | echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
| 7865 | echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7866 | gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC" |
| 7867 | GUI_LIB_LOC= |
| 7868 | for try in $gui_libs; do |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7869 | for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7870 | if test -f "$libtry"; then |
| 7871 | GUI_LIB_LOC=$try |
| 7872 | fi |
| 7873 | done |
| 7874 | done |
| 7875 | if test -n "$GUI_LIB_LOC"; then |
| 7876 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 7877 | GUI_LIB_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7878 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 7879 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7880 | else |
| 7881 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7882 | echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
| 7883 | echo "${ECHO_T}$GUI_LIB_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7884 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 7885 | uname -r | grep '^5' >/dev/null; then |
| 7886 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 7887 | fi |
| 7888 | fi |
| 7889 | fi |
| 7890 | MOTIF_LIBNAME=-lXm |
| 7891 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7892 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 7893 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7894 | SKIP_MOTIF=YES |
| 7895 | fi |
| 7896 | fi |
| 7897 | fi |
| 7898 | |
| 7899 | if test -z "$SKIP_MOTIF"; then |
| 7900 | SKIP_ATHENA=YES |
| 7901 | SKIP_NEXTAW=YES |
| 7902 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7903 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7904 | fi |
| 7905 | |
| 7906 | |
| 7907 | GUI_X_LIBS= |
| 7908 | |
| 7909 | if test -z "$SKIP_ATHENA"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7910 | echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
| 7911 | echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7912 | cflags_save=$CFLAGS |
| 7913 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7914 | cat >conftest.$ac_ext <<_ACEOF |
| 7915 | /* confdefs.h. */ |
| 7916 | _ACEOF |
| 7917 | cat confdefs.h >>conftest.$ac_ext |
| 7918 | cat >>conftest.$ac_ext <<_ACEOF |
| 7919 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7920 | |
| 7921 | #include <X11/Intrinsic.h> |
| 7922 | #include <X11/Xaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7923 | int |
| 7924 | main () |
| 7925 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7926 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7927 | ; |
| 7928 | return 0; |
| 7929 | } |
| 7930 | _ACEOF |
| 7931 | rm -f conftest.$ac_objext |
| 7932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7933 | (eval $ac_compile) 2>conftest.er1 |
| 7934 | ac_status=$? |
| 7935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7936 | rm -f conftest.er1 |
| 7937 | cat conftest.err >&5 |
| 7938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7939 | (exit $ac_status); } && |
| 7940 | { ac_try='test -z "$ac_c_werror_flag" |
| 7941 | || test ! -s conftest.err' |
| 7942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7943 | (eval $ac_try) 2>&5 |
| 7944 | ac_status=$? |
| 7945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7946 | (exit $ac_status); }; } && |
| 7947 | { ac_try='test -s conftest.$ac_objext' |
| 7948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7949 | (eval $ac_try) 2>&5 |
| 7950 | ac_status=$? |
| 7951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7952 | (exit $ac_status); }; }; then |
| 7953 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7954 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7955 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7956 | echo "$as_me: failed program was:" >&5 |
| 7957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7958 | |
| 7959 | echo "$as_me:$LINENO: result: no" >&5 |
| 7960 | echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7961 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7963 | CFLAGS=$cflags_save |
| 7964 | fi |
| 7965 | |
| 7966 | if test -z "$SKIP_ATHENA"; then |
| 7967 | GUITYPE=ATHENA |
| 7968 | fi |
| 7969 | |
| 7970 | if test -z "$SKIP_NEXTAW"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7971 | echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
| 7972 | echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7973 | cflags_save=$CFLAGS |
| 7974 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7975 | cat >conftest.$ac_ext <<_ACEOF |
| 7976 | /* confdefs.h. */ |
| 7977 | _ACEOF |
| 7978 | cat confdefs.h >>conftest.$ac_ext |
| 7979 | cat >>conftest.$ac_ext <<_ACEOF |
| 7980 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7981 | |
| 7982 | #include <X11/Intrinsic.h> |
| 7983 | #include <X11/neXtaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7984 | int |
| 7985 | main () |
| 7986 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7987 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7988 | ; |
| 7989 | return 0; |
| 7990 | } |
| 7991 | _ACEOF |
| 7992 | rm -f conftest.$ac_objext |
| 7993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7994 | (eval $ac_compile) 2>conftest.er1 |
| 7995 | ac_status=$? |
| 7996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7997 | rm -f conftest.er1 |
| 7998 | cat conftest.err >&5 |
| 7999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8000 | (exit $ac_status); } && |
| 8001 | { ac_try='test -z "$ac_c_werror_flag" |
| 8002 | || test ! -s conftest.err' |
| 8003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8004 | (eval $ac_try) 2>&5 |
| 8005 | ac_status=$? |
| 8006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8007 | (exit $ac_status); }; } && |
| 8008 | { ac_try='test -s conftest.$ac_objext' |
| 8009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8010 | (eval $ac_try) 2>&5 |
| 8011 | ac_status=$? |
| 8012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8013 | (exit $ac_status); }; }; then |
| 8014 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8015 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8016 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8017 | echo "$as_me: failed program was:" >&5 |
| 8018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8019 | |
| 8020 | echo "$as_me:$LINENO: result: no" >&5 |
| 8021 | echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8022 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8024 | CFLAGS=$cflags_save |
| 8025 | fi |
| 8026 | |
| 8027 | if test -z "$SKIP_NEXTAW"; then |
| 8028 | GUITYPE=NEXTAW |
| 8029 | fi |
| 8030 | |
| 8031 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 8032 | if test -n "$GUI_INC_LOC"; then |
| 8033 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 8034 | fi |
| 8035 | if test -n "$GUI_LIB_LOC"; then |
| 8036 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 8037 | fi |
| 8038 | |
| 8039 | ldflags_save=$LDFLAGS |
| 8040 | LDFLAGS="$X_LIBS $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8041 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 8042 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 8043 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 8044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8045 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8046 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8047 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8048 | cat >conftest.$ac_ext <<_ACEOF |
| 8049 | /* confdefs.h. */ |
| 8050 | _ACEOF |
| 8051 | cat confdefs.h >>conftest.$ac_ext |
| 8052 | cat >>conftest.$ac_ext <<_ACEOF |
| 8053 | /* end confdefs.h. */ |
| 8054 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8055 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8056 | #ifdef __cplusplus |
| 8057 | extern "C" |
| 8058 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8059 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8060 | builtin and then its argument prototype would still apply. */ |
| 8061 | char XShapeQueryExtension (); |
| 8062 | int |
| 8063 | main () |
| 8064 | { |
| 8065 | XShapeQueryExtension (); |
| 8066 | ; |
| 8067 | return 0; |
| 8068 | } |
| 8069 | _ACEOF |
| 8070 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8072 | (eval $ac_link) 2>conftest.er1 |
| 8073 | ac_status=$? |
| 8074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8075 | rm -f conftest.er1 |
| 8076 | cat conftest.err >&5 |
| 8077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8078 | (exit $ac_status); } && |
| 8079 | { ac_try='test -z "$ac_c_werror_flag" |
| 8080 | || test ! -s conftest.err' |
| 8081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8082 | (eval $ac_try) 2>&5 |
| 8083 | ac_status=$? |
| 8084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8085 | (exit $ac_status); }; } && |
| 8086 | { ac_try='test -s conftest$ac_exeext' |
| 8087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8088 | (eval $ac_try) 2>&5 |
| 8089 | ac_status=$? |
| 8090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8091 | (exit $ac_status); }; }; then |
| 8092 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8093 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8094 | echo "$as_me: failed program was:" >&5 |
| 8095 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8096 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8097 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8098 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8099 | rm -f conftest.err conftest.$ac_objext \ |
| 8100 | conftest$ac_exeext conftest.$ac_ext |
| 8101 | LIBS=$ac_check_lib_save_LIBS |
| 8102 | fi |
| 8103 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 8104 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 8105 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8106 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8107 | fi |
| 8108 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8109 | echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
| 8110 | echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6 |
| 8111 | if test "${ac_cv_lib_w_wslen+set}" = set; then |
| 8112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8113 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8114 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8115 | LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8116 | cat >conftest.$ac_ext <<_ACEOF |
| 8117 | /* confdefs.h. */ |
| 8118 | _ACEOF |
| 8119 | cat confdefs.h >>conftest.$ac_ext |
| 8120 | cat >>conftest.$ac_ext <<_ACEOF |
| 8121 | /* end confdefs.h. */ |
| 8122 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8123 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8124 | #ifdef __cplusplus |
| 8125 | extern "C" |
| 8126 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8127 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8128 | builtin and then its argument prototype would still apply. */ |
| 8129 | char wslen (); |
| 8130 | int |
| 8131 | main () |
| 8132 | { |
| 8133 | wslen (); |
| 8134 | ; |
| 8135 | return 0; |
| 8136 | } |
| 8137 | _ACEOF |
| 8138 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8140 | (eval $ac_link) 2>conftest.er1 |
| 8141 | ac_status=$? |
| 8142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8143 | rm -f conftest.er1 |
| 8144 | cat conftest.err >&5 |
| 8145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8146 | (exit $ac_status); } && |
| 8147 | { ac_try='test -z "$ac_c_werror_flag" |
| 8148 | || test ! -s conftest.err' |
| 8149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8150 | (eval $ac_try) 2>&5 |
| 8151 | ac_status=$? |
| 8152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8153 | (exit $ac_status); }; } && |
| 8154 | { ac_try='test -s conftest$ac_exeext' |
| 8155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8156 | (eval $ac_try) 2>&5 |
| 8157 | ac_status=$? |
| 8158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8159 | (exit $ac_status); }; }; then |
| 8160 | ac_cv_lib_w_wslen=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8161 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8162 | echo "$as_me: failed program was:" >&5 |
| 8163 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8164 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8165 | ac_cv_lib_w_wslen=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8166 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8167 | rm -f conftest.err conftest.$ac_objext \ |
| 8168 | conftest$ac_exeext conftest.$ac_ext |
| 8169 | LIBS=$ac_check_lib_save_LIBS |
| 8170 | fi |
| 8171 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 |
| 8172 | echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6 |
| 8173 | if test $ac_cv_lib_w_wslen = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8174 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8175 | fi |
| 8176 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8177 | echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
| 8178 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 |
| 8179 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
| 8180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8181 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8182 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8183 | LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8184 | cat >conftest.$ac_ext <<_ACEOF |
| 8185 | /* confdefs.h. */ |
| 8186 | _ACEOF |
| 8187 | cat confdefs.h >>conftest.$ac_ext |
| 8188 | cat >>conftest.$ac_ext <<_ACEOF |
| 8189 | /* end confdefs.h. */ |
| 8190 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8191 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8192 | #ifdef __cplusplus |
| 8193 | extern "C" |
| 8194 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8195 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8196 | builtin and then its argument prototype would still apply. */ |
| 8197 | char dlsym (); |
| 8198 | int |
| 8199 | main () |
| 8200 | { |
| 8201 | dlsym (); |
| 8202 | ; |
| 8203 | return 0; |
| 8204 | } |
| 8205 | _ACEOF |
| 8206 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8208 | (eval $ac_link) 2>conftest.er1 |
| 8209 | ac_status=$? |
| 8210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8211 | rm -f conftest.er1 |
| 8212 | cat conftest.err >&5 |
| 8213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8214 | (exit $ac_status); } && |
| 8215 | { ac_try='test -z "$ac_c_werror_flag" |
| 8216 | || test ! -s conftest.err' |
| 8217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8218 | (eval $ac_try) 2>&5 |
| 8219 | ac_status=$? |
| 8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8221 | (exit $ac_status); }; } && |
| 8222 | { ac_try='test -s conftest$ac_exeext' |
| 8223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8224 | (eval $ac_try) 2>&5 |
| 8225 | ac_status=$? |
| 8226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8227 | (exit $ac_status); }; }; then |
| 8228 | ac_cv_lib_dl_dlsym=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8229 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8230 | echo "$as_me: failed program was:" >&5 |
| 8231 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8232 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8233 | ac_cv_lib_dl_dlsym=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8234 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8235 | rm -f conftest.err conftest.$ac_objext \ |
| 8236 | conftest$ac_exeext conftest.$ac_ext |
| 8237 | LIBS=$ac_check_lib_save_LIBS |
| 8238 | fi |
| 8239 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
| 8240 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 |
| 8241 | if test $ac_cv_lib_dl_dlsym = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8242 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8243 | fi |
| 8244 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8245 | echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 8246 | echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6 |
| 8247 | if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then |
| 8248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8249 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8250 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8251 | LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8252 | cat >conftest.$ac_ext <<_ACEOF |
| 8253 | /* confdefs.h. */ |
| 8254 | _ACEOF |
| 8255 | cat confdefs.h >>conftest.$ac_ext |
| 8256 | cat >>conftest.$ac_ext <<_ACEOF |
| 8257 | /* end confdefs.h. */ |
| 8258 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8259 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8260 | #ifdef __cplusplus |
| 8261 | extern "C" |
| 8262 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8263 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8264 | builtin and then its argument prototype would still apply. */ |
| 8265 | char XmuCreateStippledPixmap (); |
| 8266 | int |
| 8267 | main () |
| 8268 | { |
| 8269 | XmuCreateStippledPixmap (); |
| 8270 | ; |
| 8271 | return 0; |
| 8272 | } |
| 8273 | _ACEOF |
| 8274 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8276 | (eval $ac_link) 2>conftest.er1 |
| 8277 | ac_status=$? |
| 8278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8279 | rm -f conftest.er1 |
| 8280 | cat conftest.err >&5 |
| 8281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8282 | (exit $ac_status); } && |
| 8283 | { ac_try='test -z "$ac_c_werror_flag" |
| 8284 | || test ! -s conftest.err' |
| 8285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8286 | (eval $ac_try) 2>&5 |
| 8287 | ac_status=$? |
| 8288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8289 | (exit $ac_status); }; } && |
| 8290 | { ac_try='test -s conftest$ac_exeext' |
| 8291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8292 | (eval $ac_try) 2>&5 |
| 8293 | ac_status=$? |
| 8294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8295 | (exit $ac_status); }; }; then |
| 8296 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8297 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8298 | echo "$as_me: failed program was:" >&5 |
| 8299 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8300 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8301 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8302 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8303 | rm -f conftest.err conftest.$ac_objext \ |
| 8304 | conftest$ac_exeext conftest.$ac_ext |
| 8305 | LIBS=$ac_check_lib_save_LIBS |
| 8306 | fi |
| 8307 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 8308 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6 |
| 8309 | if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8310 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8311 | fi |
| 8312 | |
| 8313 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8314 | echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
| 8315 | echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6 |
| 8316 | if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
| 8317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8318 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8319 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8320 | LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8321 | cat >conftest.$ac_ext <<_ACEOF |
| 8322 | /* confdefs.h. */ |
| 8323 | _ACEOF |
| 8324 | cat confdefs.h >>conftest.$ac_ext |
| 8325 | cat >>conftest.$ac_ext <<_ACEOF |
| 8326 | /* end confdefs.h. */ |
| 8327 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8328 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8329 | #ifdef __cplusplus |
| 8330 | extern "C" |
| 8331 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8332 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8333 | builtin and then its argument prototype would still apply. */ |
| 8334 | char XpEndJob (); |
| 8335 | int |
| 8336 | main () |
| 8337 | { |
| 8338 | XpEndJob (); |
| 8339 | ; |
| 8340 | return 0; |
| 8341 | } |
| 8342 | _ACEOF |
| 8343 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8345 | (eval $ac_link) 2>conftest.er1 |
| 8346 | ac_status=$? |
| 8347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8348 | rm -f conftest.er1 |
| 8349 | cat conftest.err >&5 |
| 8350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8351 | (exit $ac_status); } && |
| 8352 | { ac_try='test -z "$ac_c_werror_flag" |
| 8353 | || test ! -s conftest.err' |
| 8354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8355 | (eval $ac_try) 2>&5 |
| 8356 | ac_status=$? |
| 8357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8358 | (exit $ac_status); }; } && |
| 8359 | { ac_try='test -s conftest$ac_exeext' |
| 8360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8361 | (eval $ac_try) 2>&5 |
| 8362 | ac_status=$? |
| 8363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8364 | (exit $ac_status); }; }; then |
| 8365 | ac_cv_lib_Xp_XpEndJob=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8366 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8367 | echo "$as_me: failed program was:" >&5 |
| 8368 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8369 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8370 | ac_cv_lib_Xp_XpEndJob=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8371 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8372 | rm -f conftest.err conftest.$ac_objext \ |
| 8373 | conftest$ac_exeext conftest.$ac_ext |
| 8374 | LIBS=$ac_check_lib_save_LIBS |
| 8375 | fi |
| 8376 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 8377 | echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6 |
| 8378 | if test $ac_cv_lib_Xp_XpEndJob = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8379 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8380 | fi |
| 8381 | |
| 8382 | fi |
| 8383 | LDFLAGS=$ldflags_save |
| 8384 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8385 | echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
| 8386 | echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8387 | NARROW_PROTO= |
| 8388 | rm -fr conftestdir |
| 8389 | if mkdir conftestdir; then |
| 8390 | cd conftestdir |
| 8391 | cat > Imakefile <<'EOF' |
| 8392 | acfindx: |
| 8393 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 8394 | EOF |
| 8395 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 8396 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 8397 | fi |
| 8398 | cd .. |
| 8399 | rm -fr conftestdir |
| 8400 | fi |
| 8401 | if test -z "$NARROW_PROTO"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8402 | echo "$as_me:$LINENO: result: no" >&5 |
| 8403 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8404 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8405 | echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
| 8406 | echo "${ECHO_T}$NARROW_PROTO" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8407 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8408 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8409 | fi |
| 8410 | |
| 8411 | if test "$enable_xsmp" = "yes"; then |
| 8412 | cppflags_save=$CPPFLAGS |
| 8413 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8414 | |
| 8415 | for ac_header in X11/SM/SMlib.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8416 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8417 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8419 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8420 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8421 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8423 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8425 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8426 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8427 | # Is the header compilable? |
| 8428 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8429 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8430 | cat >conftest.$ac_ext <<_ACEOF |
| 8431 | /* confdefs.h. */ |
| 8432 | _ACEOF |
| 8433 | cat confdefs.h >>conftest.$ac_ext |
| 8434 | cat >>conftest.$ac_ext <<_ACEOF |
| 8435 | /* end confdefs.h. */ |
| 8436 | $ac_includes_default |
| 8437 | #include <$ac_header> |
| 8438 | _ACEOF |
| 8439 | rm -f conftest.$ac_objext |
| 8440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8441 | (eval $ac_compile) 2>conftest.er1 |
| 8442 | ac_status=$? |
| 8443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8444 | rm -f conftest.er1 |
| 8445 | cat conftest.err >&5 |
| 8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8447 | (exit $ac_status); } && |
| 8448 | { ac_try='test -z "$ac_c_werror_flag" |
| 8449 | || test ! -s conftest.err' |
| 8450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8451 | (eval $ac_try) 2>&5 |
| 8452 | ac_status=$? |
| 8453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8454 | (exit $ac_status); }; } && |
| 8455 | { ac_try='test -s conftest.$ac_objext' |
| 8456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8457 | (eval $ac_try) 2>&5 |
| 8458 | ac_status=$? |
| 8459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8460 | (exit $ac_status); }; }; then |
| 8461 | ac_header_compiler=yes |
| 8462 | else |
| 8463 | echo "$as_me: failed program was:" >&5 |
| 8464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8465 | |
| 8466 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8467 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8469 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8470 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8471 | |
| 8472 | # Is the header present? |
| 8473 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8474 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8475 | cat >conftest.$ac_ext <<_ACEOF |
| 8476 | /* confdefs.h. */ |
| 8477 | _ACEOF |
| 8478 | cat confdefs.h >>conftest.$ac_ext |
| 8479 | cat >>conftest.$ac_ext <<_ACEOF |
| 8480 | /* end confdefs.h. */ |
| 8481 | #include <$ac_header> |
| 8482 | _ACEOF |
| 8483 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8484 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8485 | ac_status=$? |
| 8486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8487 | rm -f conftest.er1 |
| 8488 | cat conftest.err >&5 |
| 8489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8490 | (exit $ac_status); } >/dev/null; then |
| 8491 | if test -s conftest.err; then |
| 8492 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8493 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8494 | else |
| 8495 | ac_cpp_err= |
| 8496 | fi |
| 8497 | else |
| 8498 | ac_cpp_err=yes |
| 8499 | fi |
| 8500 | if test -z "$ac_cpp_err"; then |
| 8501 | ac_header_preproc=yes |
| 8502 | else |
| 8503 | echo "$as_me: failed program was:" >&5 |
| 8504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8505 | |
| 8506 | ac_header_preproc=no |
| 8507 | fi |
| 8508 | rm -f conftest.err conftest.$ac_ext |
| 8509 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8510 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8511 | |
| 8512 | # So? What about this header? |
| 8513 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8514 | yes:no: ) |
| 8515 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8516 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8517 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8518 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8519 | ac_header_preproc=yes |
| 8520 | ;; |
| 8521 | no:yes:* ) |
| 8522 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8523 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8524 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8525 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8526 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8527 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8528 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8529 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8530 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8531 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8532 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8533 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8534 | ( |
| 8535 | cat <<\_ASBOX |
| 8536 | ## ------------------------------------------ ## |
| 8537 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8538 | ## ------------------------------------------ ## |
| 8539 | _ASBOX |
| 8540 | ) | |
| 8541 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8542 | ;; |
| 8543 | esac |
| 8544 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8546 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8548 | else |
| 8549 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8550 | fi |
| 8551 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8552 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8553 | |
| 8554 | fi |
| 8555 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8556 | cat >>confdefs.h <<_ACEOF |
| 8557 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8558 | _ACEOF |
| 8559 | |
| 8560 | fi |
| 8561 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8562 | done |
| 8563 | |
| 8564 | CPPFLAGS=$cppflags_save |
| 8565 | fi |
| 8566 | |
| 8567 | |
| 8568 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 8569 | cppflags_save=$CPPFLAGS |
| 8570 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8571 | |
| 8572 | |
| 8573 | for ac_header in X11/xpm.h X11/Sunkeysym.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8574 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8575 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8576 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8577 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8578 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8579 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8581 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8582 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8583 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8584 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8585 | # Is the header compilable? |
| 8586 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8587 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8588 | cat >conftest.$ac_ext <<_ACEOF |
| 8589 | /* confdefs.h. */ |
| 8590 | _ACEOF |
| 8591 | cat confdefs.h >>conftest.$ac_ext |
| 8592 | cat >>conftest.$ac_ext <<_ACEOF |
| 8593 | /* end confdefs.h. */ |
| 8594 | $ac_includes_default |
| 8595 | #include <$ac_header> |
| 8596 | _ACEOF |
| 8597 | rm -f conftest.$ac_objext |
| 8598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8599 | (eval $ac_compile) 2>conftest.er1 |
| 8600 | ac_status=$? |
| 8601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8602 | rm -f conftest.er1 |
| 8603 | cat conftest.err >&5 |
| 8604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8605 | (exit $ac_status); } && |
| 8606 | { ac_try='test -z "$ac_c_werror_flag" |
| 8607 | || test ! -s conftest.err' |
| 8608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8609 | (eval $ac_try) 2>&5 |
| 8610 | ac_status=$? |
| 8611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8612 | (exit $ac_status); }; } && |
| 8613 | { ac_try='test -s conftest.$ac_objext' |
| 8614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8615 | (eval $ac_try) 2>&5 |
| 8616 | ac_status=$? |
| 8617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8618 | (exit $ac_status); }; }; then |
| 8619 | ac_header_compiler=yes |
| 8620 | else |
| 8621 | echo "$as_me: failed program was:" >&5 |
| 8622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8623 | |
| 8624 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8625 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8627 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8628 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8629 | |
| 8630 | # Is the header present? |
| 8631 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8632 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8633 | cat >conftest.$ac_ext <<_ACEOF |
| 8634 | /* confdefs.h. */ |
| 8635 | _ACEOF |
| 8636 | cat confdefs.h >>conftest.$ac_ext |
| 8637 | cat >>conftest.$ac_ext <<_ACEOF |
| 8638 | /* end confdefs.h. */ |
| 8639 | #include <$ac_header> |
| 8640 | _ACEOF |
| 8641 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8642 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8643 | ac_status=$? |
| 8644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8645 | rm -f conftest.er1 |
| 8646 | cat conftest.err >&5 |
| 8647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8648 | (exit $ac_status); } >/dev/null; then |
| 8649 | if test -s conftest.err; then |
| 8650 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8651 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8652 | else |
| 8653 | ac_cpp_err= |
| 8654 | fi |
| 8655 | else |
| 8656 | ac_cpp_err=yes |
| 8657 | fi |
| 8658 | if test -z "$ac_cpp_err"; then |
| 8659 | ac_header_preproc=yes |
| 8660 | else |
| 8661 | echo "$as_me: failed program was:" >&5 |
| 8662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8663 | |
| 8664 | ac_header_preproc=no |
| 8665 | fi |
| 8666 | rm -f conftest.err conftest.$ac_ext |
| 8667 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8668 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8669 | |
| 8670 | # So? What about this header? |
| 8671 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8672 | yes:no: ) |
| 8673 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8674 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8675 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8676 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8677 | ac_header_preproc=yes |
| 8678 | ;; |
| 8679 | no:yes:* ) |
| 8680 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8681 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8682 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8683 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8684 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8685 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8686 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8687 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8688 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8689 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8690 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8691 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8692 | ( |
| 8693 | cat <<\_ASBOX |
| 8694 | ## ------------------------------------------ ## |
| 8695 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8696 | ## ------------------------------------------ ## |
| 8697 | _ASBOX |
| 8698 | ) | |
| 8699 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8700 | ;; |
| 8701 | esac |
| 8702 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8703 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8704 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8706 | else |
| 8707 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8708 | fi |
| 8709 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8710 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8711 | |
| 8712 | fi |
| 8713 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8714 | cat >>confdefs.h <<_ACEOF |
| 8715 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8716 | _ACEOF |
| 8717 | |
| 8718 | fi |
| 8719 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8720 | done |
| 8721 | |
| 8722 | |
| 8723 | if test ! "$enable_xim" = "no"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8724 | echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
| 8725 | echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6 |
| 8726 | cat >conftest.$ac_ext <<_ACEOF |
| 8727 | /* confdefs.h. */ |
| 8728 | _ACEOF |
| 8729 | cat confdefs.h >>conftest.$ac_ext |
| 8730 | cat >>conftest.$ac_ext <<_ACEOF |
| 8731 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8732 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8733 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8734 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8735 | $EGREP "XIMText" >/dev/null 2>&1; then |
| 8736 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8737 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8738 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8739 | echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
| 8740 | echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8741 | fi |
| 8742 | rm -f conftest* |
| 8743 | |
| 8744 | fi |
| 8745 | CPPFLAGS=$cppflags_save |
| 8746 | |
| 8747 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 8748 | -a "x$GUITYPE" != "xNONE" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8749 | echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
| 8750 | echo "${ECHO_T}X GUI selected; xim has been enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8751 | enable_xim="yes" |
| 8752 | fi |
| 8753 | fi |
| 8754 | |
| 8755 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 8756 | cppflags_save=$CPPFLAGS |
| 8757 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8758 | echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 |
| 8759 | echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6 |
| 8760 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8761 | /* confdefs.h. */ |
| 8762 | _ACEOF |
| 8763 | cat confdefs.h >>conftest.$ac_ext |
| 8764 | cat >>conftest.$ac_ext <<_ACEOF |
| 8765 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8766 | |
| 8767 | #include <X11/Intrinsic.h> |
| 8768 | #include <X11/Xmu/Editres.h> |
| 8769 | int |
| 8770 | main () |
| 8771 | { |
| 8772 | int i; i = 0; |
| 8773 | ; |
| 8774 | return 0; |
| 8775 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8776 | _ACEOF |
| 8777 | rm -f conftest.$ac_objext |
| 8778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8779 | (eval $ac_compile) 2>conftest.er1 |
| 8780 | ac_status=$? |
| 8781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8782 | rm -f conftest.er1 |
| 8783 | cat conftest.err >&5 |
| 8784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8785 | (exit $ac_status); } && |
| 8786 | { ac_try='test -z "$ac_c_werror_flag" |
| 8787 | || test ! -s conftest.err' |
| 8788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8789 | (eval $ac_try) 2>&5 |
| 8790 | ac_status=$? |
| 8791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8792 | (exit $ac_status); }; } && |
| 8793 | { ac_try='test -s conftest.$ac_objext' |
| 8794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8795 | (eval $ac_try) 2>&5 |
| 8796 | ac_status=$? |
| 8797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8798 | (exit $ac_status); }; }; then |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8799 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8800 | echo "${ECHO_T}yes" >&6 |
| 8801 | cat >>confdefs.h <<\_ACEOF |
| 8802 | #define HAVE_X11_XMU_EDITRES_H 1 |
| 8803 | _ACEOF |
| 8804 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8805 | else |
| 8806 | echo "$as_me: failed program was:" >&5 |
| 8807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8808 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8809 | echo "$as_me:$LINENO: result: no" >&5 |
| 8810 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8811 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8813 | CPPFLAGS=$cppflags_save |
| 8814 | fi |
| 8815 | |
| 8816 | if test -z "$SKIP_MOTIF"; then |
| 8817 | cppflags_save=$CPPFLAGS |
| 8818 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8819 | |
| 8820 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8821 | |
| 8822 | |
| 8823 | |
| 8824 | |
| 8825 | for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \ |
| 8826 | Xm/UnhighlightT.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8827 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8828 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8829 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8830 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8831 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8832 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8834 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8835 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8836 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8837 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8838 | # Is the header compilable? |
| 8839 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8840 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8841 | cat >conftest.$ac_ext <<_ACEOF |
| 8842 | /* confdefs.h. */ |
| 8843 | _ACEOF |
| 8844 | cat confdefs.h >>conftest.$ac_ext |
| 8845 | cat >>conftest.$ac_ext <<_ACEOF |
| 8846 | /* end confdefs.h. */ |
| 8847 | $ac_includes_default |
| 8848 | #include <$ac_header> |
| 8849 | _ACEOF |
| 8850 | rm -f conftest.$ac_objext |
| 8851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8852 | (eval $ac_compile) 2>conftest.er1 |
| 8853 | ac_status=$? |
| 8854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8855 | rm -f conftest.er1 |
| 8856 | cat conftest.err >&5 |
| 8857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8858 | (exit $ac_status); } && |
| 8859 | { ac_try='test -z "$ac_c_werror_flag" |
| 8860 | || test ! -s conftest.err' |
| 8861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8862 | (eval $ac_try) 2>&5 |
| 8863 | ac_status=$? |
| 8864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8865 | (exit $ac_status); }; } && |
| 8866 | { ac_try='test -s conftest.$ac_objext' |
| 8867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8868 | (eval $ac_try) 2>&5 |
| 8869 | ac_status=$? |
| 8870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8871 | (exit $ac_status); }; }; then |
| 8872 | ac_header_compiler=yes |
| 8873 | else |
| 8874 | echo "$as_me: failed program was:" >&5 |
| 8875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8876 | |
| 8877 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8878 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8880 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8881 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8882 | |
| 8883 | # Is the header present? |
| 8884 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8885 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8886 | cat >conftest.$ac_ext <<_ACEOF |
| 8887 | /* confdefs.h. */ |
| 8888 | _ACEOF |
| 8889 | cat confdefs.h >>conftest.$ac_ext |
| 8890 | cat >>conftest.$ac_ext <<_ACEOF |
| 8891 | /* end confdefs.h. */ |
| 8892 | #include <$ac_header> |
| 8893 | _ACEOF |
| 8894 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8895 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8896 | ac_status=$? |
| 8897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8898 | rm -f conftest.er1 |
| 8899 | cat conftest.err >&5 |
| 8900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8901 | (exit $ac_status); } >/dev/null; then |
| 8902 | if test -s conftest.err; then |
| 8903 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8904 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8905 | else |
| 8906 | ac_cpp_err= |
| 8907 | fi |
| 8908 | else |
| 8909 | ac_cpp_err=yes |
| 8910 | fi |
| 8911 | if test -z "$ac_cpp_err"; then |
| 8912 | ac_header_preproc=yes |
| 8913 | else |
| 8914 | echo "$as_me: failed program was:" >&5 |
| 8915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8916 | |
| 8917 | ac_header_preproc=no |
| 8918 | fi |
| 8919 | rm -f conftest.err conftest.$ac_ext |
| 8920 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8921 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8922 | |
| 8923 | # So? What about this header? |
| 8924 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8925 | yes:no: ) |
| 8926 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8927 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8928 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8929 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8930 | ac_header_preproc=yes |
| 8931 | ;; |
| 8932 | no:yes:* ) |
| 8933 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8934 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8935 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8936 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8937 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8938 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8939 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8940 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8941 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8942 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8943 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8944 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8945 | ( |
| 8946 | cat <<\_ASBOX |
| 8947 | ## ------------------------------------------ ## |
| 8948 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8949 | ## ------------------------------------------ ## |
| 8950 | _ASBOX |
| 8951 | ) | |
| 8952 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8953 | ;; |
| 8954 | esac |
| 8955 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8956 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8957 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8959 | else |
| 8960 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8961 | fi |
| 8962 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8963 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8964 | |
| 8965 | fi |
| 8966 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8967 | cat >>confdefs.h <<_ACEOF |
| 8968 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8969 | _ACEOF |
| 8970 | |
| 8971 | fi |
| 8972 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8973 | done |
| 8974 | |
| 8975 | CPPFLAGS=$cppflags_save |
| 8976 | fi |
| 8977 | |
| 8978 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8979 | echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
| 8980 | echo "${ECHO_T}no GUI selected; xim has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8981 | enable_xim="no" |
| 8982 | fi |
| 8983 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8984 | echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
| 8985 | echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8986 | enable_fontset="no" |
| 8987 | fi |
| 8988 | if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8989 | echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 8990 | echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8991 | enable_fontset="no" |
| 8992 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8993 | |
| 8994 | if test -z "$SKIP_PHOTON"; then |
| 8995 | GUITYPE=PHOTONGUI |
| 8996 | fi |
| 8997 | |
| 8998 | |
| 8999 | |
| 9000 | |
| 9001 | |
| 9002 | |
| 9003 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9004 | { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
| 9005 | echo "$as_me: error: cannot use workshop without Motif" >&2;} |
| 9006 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9007 | fi |
| 9008 | |
| 9009 | if test "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9010 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9011 | #define FEAT_XIM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9012 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9013 | |
| 9014 | fi |
| 9015 | if test "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9016 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9017 | #define FEAT_XFONTSET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9018 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9019 | |
| 9020 | fi |
| 9021 | |
| 9022 | |
| 9023 | |
| 9024 | |
| 9025 | if test "$enable_hangulinput" = "yes"; then |
| 9026 | if test "x$GUITYPE" = "xNONE"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9027 | echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
| 9028 | echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9029 | enable_hangulinput=no |
| 9030 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9031 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9032 | #define FEAT_HANGULIN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9033 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9034 | |
| 9035 | HANGULIN_SRC=hangulin.c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9036 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9037 | HANGULIN_OBJ=objects/hangulin.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9038 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9039 | fi |
| 9040 | fi |
| 9041 | |
| 9042 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9043 | echo "$as_me:$LINENO: checking quality of toupper" >&5 |
| 9044 | echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9045 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9046 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 9047 | echo "$as_me: error: failed to compile test program" >&2;} |
| 9048 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9049 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9050 | cat >conftest.$ac_ext <<_ACEOF |
| 9051 | /* confdefs.h. */ |
| 9052 | _ACEOF |
| 9053 | cat confdefs.h >>conftest.$ac_ext |
| 9054 | cat >>conftest.$ac_ext <<_ACEOF |
| 9055 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9056 | #include <ctype.h> |
| 9057 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9058 | _ACEOF |
| 9059 | rm -f conftest$ac_exeext |
| 9060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9061 | (eval $ac_link) 2>&5 |
| 9062 | ac_status=$? |
| 9063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9064 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9066 | (eval $ac_try) 2>&5 |
| 9067 | ac_status=$? |
| 9068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9069 | (exit $ac_status); }; }; then |
| 9070 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9071 | #define BROKEN_TOUPPER 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9072 | _ACEOF |
| 9073 | echo "$as_me:$LINENO: result: bad" >&5 |
| 9074 | echo "${ECHO_T}bad" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9075 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9076 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9077 | echo "$as_me: failed program was:" >&5 |
| 9078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9079 | |
| 9080 | ( exit $ac_status ) |
| 9081 | echo "$as_me:$LINENO: result: good" >&5 |
| 9082 | echo "${ECHO_T}good" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9083 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9084 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9085 | fi |
| 9086 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9087 | echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
| 9088 | echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6 |
| 9089 | cat >conftest.$ac_ext <<_ACEOF |
| 9090 | /* confdefs.h. */ |
| 9091 | _ACEOF |
| 9092 | cat confdefs.h >>conftest.$ac_ext |
| 9093 | cat >>conftest.$ac_ext <<_ACEOF |
| 9094 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9095 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9096 | int |
| 9097 | main () |
| 9098 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9099 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9100 | ; |
| 9101 | return 0; |
| 9102 | } |
| 9103 | _ACEOF |
| 9104 | rm -f conftest.$ac_objext |
| 9105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9106 | (eval $ac_compile) 2>conftest.er1 |
| 9107 | ac_status=$? |
| 9108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9109 | rm -f conftest.er1 |
| 9110 | cat conftest.err >&5 |
| 9111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9112 | (exit $ac_status); } && |
| 9113 | { ac_try='test -z "$ac_c_werror_flag" |
| 9114 | || test ! -s conftest.err' |
| 9115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9116 | (eval $ac_try) 2>&5 |
| 9117 | ac_status=$? |
| 9118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9119 | (exit $ac_status); }; } && |
| 9120 | { ac_try='test -s conftest.$ac_objext' |
| 9121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9122 | (eval $ac_try) 2>&5 |
| 9123 | ac_status=$? |
| 9124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9125 | (exit $ac_status); }; }; then |
| 9126 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9127 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9128 | #define HAVE_DATE_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9129 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9130 | |
| 9131 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9132 | echo "$as_me: failed program was:" >&5 |
| 9133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9134 | |
| 9135 | echo "$as_me:$LINENO: result: no" >&5 |
| 9136 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9137 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9139 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9140 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9141 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 9142 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 9143 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9145 | fi |
| 9146 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 9147 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9148 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9149 | # Is the header compilable? |
| 9150 | echo "$as_me:$LINENO: checking elf.h usability" >&5 |
| 9151 | echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6 |
| 9152 | cat >conftest.$ac_ext <<_ACEOF |
| 9153 | /* confdefs.h. */ |
| 9154 | _ACEOF |
| 9155 | cat confdefs.h >>conftest.$ac_ext |
| 9156 | cat >>conftest.$ac_ext <<_ACEOF |
| 9157 | /* end confdefs.h. */ |
| 9158 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9159 | #include <elf.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9160 | _ACEOF |
| 9161 | rm -f conftest.$ac_objext |
| 9162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9163 | (eval $ac_compile) 2>conftest.er1 |
| 9164 | ac_status=$? |
| 9165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9166 | rm -f conftest.er1 |
| 9167 | cat conftest.err >&5 |
| 9168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9169 | (exit $ac_status); } && |
| 9170 | { ac_try='test -z "$ac_c_werror_flag" |
| 9171 | || test ! -s conftest.err' |
| 9172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9173 | (eval $ac_try) 2>&5 |
| 9174 | ac_status=$? |
| 9175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9176 | (exit $ac_status); }; } && |
| 9177 | { ac_try='test -s conftest.$ac_objext' |
| 9178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9179 | (eval $ac_try) 2>&5 |
| 9180 | ac_status=$? |
| 9181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9182 | (exit $ac_status); }; }; then |
| 9183 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9184 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9185 | echo "$as_me: failed program was:" >&5 |
| 9186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9187 | |
| 9188 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9189 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9191 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9192 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9193 | |
| 9194 | # Is the header present? |
| 9195 | echo "$as_me:$LINENO: checking elf.h presence" >&5 |
| 9196 | echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6 |
| 9197 | cat >conftest.$ac_ext <<_ACEOF |
| 9198 | /* confdefs.h. */ |
| 9199 | _ACEOF |
| 9200 | cat confdefs.h >>conftest.$ac_ext |
| 9201 | cat >>conftest.$ac_ext <<_ACEOF |
| 9202 | /* end confdefs.h. */ |
| 9203 | #include <elf.h> |
| 9204 | _ACEOF |
| 9205 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9206 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9207 | ac_status=$? |
| 9208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9209 | rm -f conftest.er1 |
| 9210 | cat conftest.err >&5 |
| 9211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9212 | (exit $ac_status); } >/dev/null; then |
| 9213 | if test -s conftest.err; then |
| 9214 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9215 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9216 | else |
| 9217 | ac_cpp_err= |
| 9218 | fi |
| 9219 | else |
| 9220 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9221 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9222 | if test -z "$ac_cpp_err"; then |
| 9223 | ac_header_preproc=yes |
| 9224 | else |
| 9225 | echo "$as_me: failed program was:" >&5 |
| 9226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9227 | |
| 9228 | ac_header_preproc=no |
| 9229 | fi |
| 9230 | rm -f conftest.err conftest.$ac_ext |
| 9231 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9232 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9233 | |
| 9234 | # So? What about this header? |
| 9235 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9236 | yes:no: ) |
| 9237 | { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9238 | echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9239 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 |
| 9240 | echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;} |
| 9241 | ac_header_preproc=yes |
| 9242 | ;; |
| 9243 | no:yes:* ) |
| 9244 | { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 |
| 9245 | echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} |
| 9246 | { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 |
| 9247 | echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} |
| 9248 | { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 |
| 9249 | echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} |
| 9250 | { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9251 | echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9252 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 |
| 9253 | echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} |
| 9254 | { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 |
| 9255 | echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} |
| 9256 | ( |
| 9257 | cat <<\_ASBOX |
| 9258 | ## ------------------------------------------ ## |
| 9259 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9260 | ## ------------------------------------------ ## |
| 9261 | _ASBOX |
| 9262 | ) | |
| 9263 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9264 | ;; |
| 9265 | esac |
| 9266 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 9267 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 9268 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9270 | else |
| 9271 | ac_cv_header_elf_h=$ac_header_preproc |
| 9272 | fi |
| 9273 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 9274 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
| 9275 | |
| 9276 | fi |
| 9277 | if test $ac_cv_header_elf_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9278 | HAS_ELF=1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9279 | fi |
| 9280 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9281 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9282 | if test "$HAS_ELF" = 1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9283 | |
| 9284 | echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
| 9285 | echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6 |
| 9286 | if test "${ac_cv_lib_elf_main+set}" = set; then |
| 9287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9288 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9289 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9290 | LIBS="-lelf $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9291 | cat >conftest.$ac_ext <<_ACEOF |
| 9292 | /* confdefs.h. */ |
| 9293 | _ACEOF |
| 9294 | cat confdefs.h >>conftest.$ac_ext |
| 9295 | cat >>conftest.$ac_ext <<_ACEOF |
| 9296 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9297 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9298 | |
| 9299 | int |
| 9300 | main () |
| 9301 | { |
| 9302 | main (); |
| 9303 | ; |
| 9304 | return 0; |
| 9305 | } |
| 9306 | _ACEOF |
| 9307 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9309 | (eval $ac_link) 2>conftest.er1 |
| 9310 | ac_status=$? |
| 9311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9312 | rm -f conftest.er1 |
| 9313 | cat conftest.err >&5 |
| 9314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9315 | (exit $ac_status); } && |
| 9316 | { ac_try='test -z "$ac_c_werror_flag" |
| 9317 | || test ! -s conftest.err' |
| 9318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9319 | (eval $ac_try) 2>&5 |
| 9320 | ac_status=$? |
| 9321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9322 | (exit $ac_status); }; } && |
| 9323 | { ac_try='test -s conftest$ac_exeext' |
| 9324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9325 | (eval $ac_try) 2>&5 |
| 9326 | ac_status=$? |
| 9327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9328 | (exit $ac_status); }; }; then |
| 9329 | ac_cv_lib_elf_main=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9330 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9331 | echo "$as_me: failed program was:" >&5 |
| 9332 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9333 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9334 | ac_cv_lib_elf_main=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9335 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9336 | rm -f conftest.err conftest.$ac_objext \ |
| 9337 | conftest$ac_exeext conftest.$ac_ext |
| 9338 | LIBS=$ac_check_lib_save_LIBS |
| 9339 | fi |
| 9340 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 |
| 9341 | echo "${ECHO_T}$ac_cv_lib_elf_main" >&6 |
| 9342 | if test $ac_cv_lib_elf_main = yes; then |
| 9343 | cat >>confdefs.h <<_ACEOF |
| 9344 | #define HAVE_LIBELF 1 |
| 9345 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9346 | |
| 9347 | LIBS="-lelf $LIBS" |
| 9348 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9349 | fi |
| 9350 | |
| 9351 | fi |
| 9352 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9353 | |
| 9354 | |
| 9355 | |
| 9356 | |
| 9357 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9358 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9359 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 9360 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9361 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9362 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 9363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9365 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9366 | cat >conftest.$ac_ext <<_ACEOF |
| 9367 | /* confdefs.h. */ |
| 9368 | _ACEOF |
| 9369 | cat confdefs.h >>conftest.$ac_ext |
| 9370 | cat >>conftest.$ac_ext <<_ACEOF |
| 9371 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9372 | #include <sys/types.h> |
| 9373 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9374 | |
| 9375 | int |
| 9376 | main () |
| 9377 | { |
| 9378 | if ((DIR *) 0) |
| 9379 | return 0; |
| 9380 | ; |
| 9381 | return 0; |
| 9382 | } |
| 9383 | _ACEOF |
| 9384 | rm -f conftest.$ac_objext |
| 9385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9386 | (eval $ac_compile) 2>conftest.er1 |
| 9387 | ac_status=$? |
| 9388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9389 | rm -f conftest.er1 |
| 9390 | cat conftest.err >&5 |
| 9391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9392 | (exit $ac_status); } && |
| 9393 | { ac_try='test -z "$ac_c_werror_flag" |
| 9394 | || test ! -s conftest.err' |
| 9395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9396 | (eval $ac_try) 2>&5 |
| 9397 | ac_status=$? |
| 9398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9399 | (exit $ac_status); }; } && |
| 9400 | { ac_try='test -s conftest.$ac_objext' |
| 9401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9402 | (eval $ac_try) 2>&5 |
| 9403 | ac_status=$? |
| 9404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9405 | (exit $ac_status); }; }; then |
| 9406 | eval "$as_ac_Header=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9407 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9408 | echo "$as_me: failed program was:" >&5 |
| 9409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9410 | |
| 9411 | eval "$as_ac_Header=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9412 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9414 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9416 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9417 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9418 | cat >>confdefs.h <<_ACEOF |
| 9419 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 9420 | _ACEOF |
| 9421 | |
| 9422 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9423 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9424 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9425 | done |
| 9426 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9427 | if test $ac_header_dirent = dirent.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9428 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9429 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 9430 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9432 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9433 | ac_func_search_save_LIBS=$LIBS |
| 9434 | ac_cv_search_opendir=no |
| 9435 | cat >conftest.$ac_ext <<_ACEOF |
| 9436 | /* confdefs.h. */ |
| 9437 | _ACEOF |
| 9438 | cat confdefs.h >>conftest.$ac_ext |
| 9439 | cat >>conftest.$ac_ext <<_ACEOF |
| 9440 | /* end confdefs.h. */ |
| 9441 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9442 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9443 | #ifdef __cplusplus |
| 9444 | extern "C" |
| 9445 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9446 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9447 | builtin and then its argument prototype would still apply. */ |
| 9448 | char opendir (); |
| 9449 | int |
| 9450 | main () |
| 9451 | { |
| 9452 | opendir (); |
| 9453 | ; |
| 9454 | return 0; |
| 9455 | } |
| 9456 | _ACEOF |
| 9457 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9459 | (eval $ac_link) 2>conftest.er1 |
| 9460 | ac_status=$? |
| 9461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9462 | rm -f conftest.er1 |
| 9463 | cat conftest.err >&5 |
| 9464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9465 | (exit $ac_status); } && |
| 9466 | { ac_try='test -z "$ac_c_werror_flag" |
| 9467 | || test ! -s conftest.err' |
| 9468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9469 | (eval $ac_try) 2>&5 |
| 9470 | ac_status=$? |
| 9471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9472 | (exit $ac_status); }; } && |
| 9473 | { ac_try='test -s conftest$ac_exeext' |
| 9474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9475 | (eval $ac_try) 2>&5 |
| 9476 | ac_status=$? |
| 9477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9478 | (exit $ac_status); }; }; then |
| 9479 | ac_cv_search_opendir="none required" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9480 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9481 | echo "$as_me: failed program was:" >&5 |
| 9482 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9483 | |
| 9484 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9485 | rm -f conftest.err conftest.$ac_objext \ |
| 9486 | conftest$ac_exeext conftest.$ac_ext |
| 9487 | if test "$ac_cv_search_opendir" = no; then |
| 9488 | for ac_lib in dir; do |
| 9489 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9490 | cat >conftest.$ac_ext <<_ACEOF |
| 9491 | /* confdefs.h. */ |
| 9492 | _ACEOF |
| 9493 | cat confdefs.h >>conftest.$ac_ext |
| 9494 | cat >>conftest.$ac_ext <<_ACEOF |
| 9495 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9496 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9497 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9498 | #ifdef __cplusplus |
| 9499 | extern "C" |
| 9500 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9501 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9502 | builtin and then its argument prototype would still apply. */ |
| 9503 | char opendir (); |
| 9504 | int |
| 9505 | main () |
| 9506 | { |
| 9507 | opendir (); |
| 9508 | ; |
| 9509 | return 0; |
| 9510 | } |
| 9511 | _ACEOF |
| 9512 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9514 | (eval $ac_link) 2>conftest.er1 |
| 9515 | ac_status=$? |
| 9516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9517 | rm -f conftest.er1 |
| 9518 | cat conftest.err >&5 |
| 9519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9520 | (exit $ac_status); } && |
| 9521 | { ac_try='test -z "$ac_c_werror_flag" |
| 9522 | || test ! -s conftest.err' |
| 9523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9524 | (eval $ac_try) 2>&5 |
| 9525 | ac_status=$? |
| 9526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9527 | (exit $ac_status); }; } && |
| 9528 | { ac_try='test -s conftest$ac_exeext' |
| 9529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9530 | (eval $ac_try) 2>&5 |
| 9531 | ac_status=$? |
| 9532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9533 | (exit $ac_status); }; }; then |
| 9534 | ac_cv_search_opendir="-l$ac_lib" |
| 9535 | break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9536 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9537 | echo "$as_me: failed program was:" >&5 |
| 9538 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9539 | |
| 9540 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9541 | rm -f conftest.err conftest.$ac_objext \ |
| 9542 | conftest$ac_exeext conftest.$ac_ext |
| 9543 | done |
| 9544 | fi |
| 9545 | LIBS=$ac_func_search_save_LIBS |
| 9546 | fi |
| 9547 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9548 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 9549 | if test "$ac_cv_search_opendir" != no; then |
| 9550 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 9551 | |
| 9552 | fi |
| 9553 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9554 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9555 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9556 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 9557 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9559 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9560 | ac_func_search_save_LIBS=$LIBS |
| 9561 | ac_cv_search_opendir=no |
| 9562 | cat >conftest.$ac_ext <<_ACEOF |
| 9563 | /* confdefs.h. */ |
| 9564 | _ACEOF |
| 9565 | cat confdefs.h >>conftest.$ac_ext |
| 9566 | cat >>conftest.$ac_ext <<_ACEOF |
| 9567 | /* end confdefs.h. */ |
| 9568 | |
| 9569 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9570 | #ifdef __cplusplus |
| 9571 | extern "C" |
| 9572 | #endif |
| 9573 | /* We use char because int might match the return type of a gcc2 |
| 9574 | builtin and then its argument prototype would still apply. */ |
| 9575 | char opendir (); |
| 9576 | int |
| 9577 | main () |
| 9578 | { |
| 9579 | opendir (); |
| 9580 | ; |
| 9581 | return 0; |
| 9582 | } |
| 9583 | _ACEOF |
| 9584 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9586 | (eval $ac_link) 2>conftest.er1 |
| 9587 | ac_status=$? |
| 9588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9589 | rm -f conftest.er1 |
| 9590 | cat conftest.err >&5 |
| 9591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9592 | (exit $ac_status); } && |
| 9593 | { ac_try='test -z "$ac_c_werror_flag" |
| 9594 | || test ! -s conftest.err' |
| 9595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9596 | (eval $ac_try) 2>&5 |
| 9597 | ac_status=$? |
| 9598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9599 | (exit $ac_status); }; } && |
| 9600 | { ac_try='test -s conftest$ac_exeext' |
| 9601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9602 | (eval $ac_try) 2>&5 |
| 9603 | ac_status=$? |
| 9604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9605 | (exit $ac_status); }; }; then |
| 9606 | ac_cv_search_opendir="none required" |
| 9607 | else |
| 9608 | echo "$as_me: failed program was:" >&5 |
| 9609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9610 | |
| 9611 | fi |
| 9612 | rm -f conftest.err conftest.$ac_objext \ |
| 9613 | conftest$ac_exeext conftest.$ac_ext |
| 9614 | if test "$ac_cv_search_opendir" = no; then |
| 9615 | for ac_lib in x; do |
| 9616 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9617 | cat >conftest.$ac_ext <<_ACEOF |
| 9618 | /* confdefs.h. */ |
| 9619 | _ACEOF |
| 9620 | cat confdefs.h >>conftest.$ac_ext |
| 9621 | cat >>conftest.$ac_ext <<_ACEOF |
| 9622 | /* end confdefs.h. */ |
| 9623 | |
| 9624 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9625 | #ifdef __cplusplus |
| 9626 | extern "C" |
| 9627 | #endif |
| 9628 | /* We use char because int might match the return type of a gcc2 |
| 9629 | builtin and then its argument prototype would still apply. */ |
| 9630 | char opendir (); |
| 9631 | int |
| 9632 | main () |
| 9633 | { |
| 9634 | opendir (); |
| 9635 | ; |
| 9636 | return 0; |
| 9637 | } |
| 9638 | _ACEOF |
| 9639 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9641 | (eval $ac_link) 2>conftest.er1 |
| 9642 | ac_status=$? |
| 9643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9644 | rm -f conftest.er1 |
| 9645 | cat conftest.err >&5 |
| 9646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9647 | (exit $ac_status); } && |
| 9648 | { ac_try='test -z "$ac_c_werror_flag" |
| 9649 | || test ! -s conftest.err' |
| 9650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9651 | (eval $ac_try) 2>&5 |
| 9652 | ac_status=$? |
| 9653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9654 | (exit $ac_status); }; } && |
| 9655 | { ac_try='test -s conftest$ac_exeext' |
| 9656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9657 | (eval $ac_try) 2>&5 |
| 9658 | ac_status=$? |
| 9659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9660 | (exit $ac_status); }; }; then |
| 9661 | ac_cv_search_opendir="-l$ac_lib" |
| 9662 | break |
| 9663 | else |
| 9664 | echo "$as_me: failed program was:" >&5 |
| 9665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9666 | |
| 9667 | fi |
| 9668 | rm -f conftest.err conftest.$ac_objext \ |
| 9669 | conftest$ac_exeext conftest.$ac_ext |
| 9670 | done |
| 9671 | fi |
| 9672 | LIBS=$ac_func_search_save_LIBS |
| 9673 | fi |
| 9674 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9675 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 9676 | if test "$ac_cv_search_opendir" != no; then |
| 9677 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 9678 | |
| 9679 | fi |
| 9680 | |
| 9681 | fi |
| 9682 | |
| 9683 | |
| 9684 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 9685 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 9686 | if test "${ac_cv_header_stdc+set}" = set; then |
| 9687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9688 | else |
| 9689 | cat >conftest.$ac_ext <<_ACEOF |
| 9690 | /* confdefs.h. */ |
| 9691 | _ACEOF |
| 9692 | cat confdefs.h >>conftest.$ac_ext |
| 9693 | cat >>conftest.$ac_ext <<_ACEOF |
| 9694 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9695 | #include <stdlib.h> |
| 9696 | #include <stdarg.h> |
| 9697 | #include <string.h> |
| 9698 | #include <float.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9699 | |
| 9700 | int |
| 9701 | main () |
| 9702 | { |
| 9703 | |
| 9704 | ; |
| 9705 | return 0; |
| 9706 | } |
| 9707 | _ACEOF |
| 9708 | rm -f conftest.$ac_objext |
| 9709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9710 | (eval $ac_compile) 2>conftest.er1 |
| 9711 | ac_status=$? |
| 9712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9713 | rm -f conftest.er1 |
| 9714 | cat conftest.err >&5 |
| 9715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9716 | (exit $ac_status); } && |
| 9717 | { ac_try='test -z "$ac_c_werror_flag" |
| 9718 | || test ! -s conftest.err' |
| 9719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9720 | (eval $ac_try) 2>&5 |
| 9721 | ac_status=$? |
| 9722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9723 | (exit $ac_status); }; } && |
| 9724 | { ac_try='test -s conftest.$ac_objext' |
| 9725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9726 | (eval $ac_try) 2>&5 |
| 9727 | ac_status=$? |
| 9728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9729 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9730 | ac_cv_header_stdc=yes |
| 9731 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9732 | echo "$as_me: failed program was:" >&5 |
| 9733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9734 | |
| 9735 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9736 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9738 | |
| 9739 | if test $ac_cv_header_stdc = yes; then |
| 9740 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9741 | cat >conftest.$ac_ext <<_ACEOF |
| 9742 | /* confdefs.h. */ |
| 9743 | _ACEOF |
| 9744 | cat confdefs.h >>conftest.$ac_ext |
| 9745 | cat >>conftest.$ac_ext <<_ACEOF |
| 9746 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9747 | #include <string.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9748 | |
| 9749 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9750 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9751 | $EGREP "memchr" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9752 | : |
| 9753 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9754 | ac_cv_header_stdc=no |
| 9755 | fi |
| 9756 | rm -f conftest* |
| 9757 | |
| 9758 | fi |
| 9759 | |
| 9760 | if test $ac_cv_header_stdc = yes; then |
| 9761 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9762 | cat >conftest.$ac_ext <<_ACEOF |
| 9763 | /* confdefs.h. */ |
| 9764 | _ACEOF |
| 9765 | cat confdefs.h >>conftest.$ac_ext |
| 9766 | cat >>conftest.$ac_ext <<_ACEOF |
| 9767 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9768 | #include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9769 | |
| 9770 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9771 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9772 | $EGREP "free" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9773 | : |
| 9774 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9775 | ac_cv_header_stdc=no |
| 9776 | fi |
| 9777 | rm -f conftest* |
| 9778 | |
| 9779 | fi |
| 9780 | |
| 9781 | if test $ac_cv_header_stdc = yes; then |
| 9782 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9783 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9784 | : |
| 9785 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9786 | cat >conftest.$ac_ext <<_ACEOF |
| 9787 | /* confdefs.h. */ |
| 9788 | _ACEOF |
| 9789 | cat confdefs.h >>conftest.$ac_ext |
| 9790 | cat >>conftest.$ac_ext <<_ACEOF |
| 9791 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9792 | #include <ctype.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9793 | #if ((' ' & 0x0FF) == 0x020) |
| 9794 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 9795 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 9796 | #else |
| 9797 | # define ISLOWER(c) \ |
| 9798 | (('a' <= (c) && (c) <= 'i') \ |
| 9799 | || ('j' <= (c) && (c) <= 'r') \ |
| 9800 | || ('s' <= (c) && (c) <= 'z')) |
| 9801 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 9802 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9803 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9804 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 9805 | int |
| 9806 | main () |
| 9807 | { |
| 9808 | int i; |
| 9809 | for (i = 0; i < 256; i++) |
| 9810 | if (XOR (islower (i), ISLOWER (i)) |
| 9811 | || toupper (i) != TOUPPER (i)) |
| 9812 | exit(2); |
| 9813 | exit (0); |
| 9814 | } |
| 9815 | _ACEOF |
| 9816 | rm -f conftest$ac_exeext |
| 9817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9818 | (eval $ac_link) 2>&5 |
| 9819 | ac_status=$? |
| 9820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9821 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9823 | (eval $ac_try) 2>&5 |
| 9824 | ac_status=$? |
| 9825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9826 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9827 | : |
| 9828 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9829 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9830 | echo "$as_me: failed program was:" >&5 |
| 9831 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9832 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9833 | ( exit $ac_status ) |
| 9834 | ac_cv_header_stdc=no |
| 9835 | fi |
| 9836 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9837 | fi |
| 9838 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9839 | fi |
| 9840 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 9841 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9842 | if test $ac_cv_header_stdc = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9843 | |
| 9844 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9845 | #define STDC_HEADERS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9846 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9847 | |
| 9848 | fi |
| 9849 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9850 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 9851 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 9852 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 9853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9854 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9855 | cat >conftest.$ac_ext <<_ACEOF |
| 9856 | /* confdefs.h. */ |
| 9857 | _ACEOF |
| 9858 | cat confdefs.h >>conftest.$ac_ext |
| 9859 | cat >>conftest.$ac_ext <<_ACEOF |
| 9860 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9861 | #include <sys/types.h> |
| 9862 | #include <sys/wait.h> |
| 9863 | #ifndef WEXITSTATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9864 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9865 | #endif |
| 9866 | #ifndef WIFEXITED |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9867 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9868 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9869 | |
| 9870 | int |
| 9871 | main () |
| 9872 | { |
| 9873 | int s; |
| 9874 | wait (&s); |
| 9875 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 9876 | ; |
| 9877 | return 0; |
| 9878 | } |
| 9879 | _ACEOF |
| 9880 | rm -f conftest.$ac_objext |
| 9881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9882 | (eval $ac_compile) 2>conftest.er1 |
| 9883 | ac_status=$? |
| 9884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9885 | rm -f conftest.er1 |
| 9886 | cat conftest.err >&5 |
| 9887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9888 | (exit $ac_status); } && |
| 9889 | { ac_try='test -z "$ac_c_werror_flag" |
| 9890 | || test ! -s conftest.err' |
| 9891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9892 | (eval $ac_try) 2>&5 |
| 9893 | ac_status=$? |
| 9894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9895 | (exit $ac_status); }; } && |
| 9896 | { ac_try='test -s conftest.$ac_objext' |
| 9897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9898 | (eval $ac_try) 2>&5 |
| 9899 | ac_status=$? |
| 9900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9901 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9902 | ac_cv_header_sys_wait_h=yes |
| 9903 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9904 | echo "$as_me: failed program was:" >&5 |
| 9905 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9906 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9907 | ac_cv_header_sys_wait_h=no |
| 9908 | fi |
| 9909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9910 | fi |
| 9911 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 9912 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9913 | if test $ac_cv_header_sys_wait_h = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9914 | |
| 9915 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9916 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9917 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9918 | |
| 9919 | fi |
| 9920 | |
| 9921 | |
| 9922 | if test $ac_cv_header_sys_wait_h = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9923 | echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
| 9924 | echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6 |
| 9925 | cat >conftest.$ac_ext <<_ACEOF |
| 9926 | /* confdefs.h. */ |
| 9927 | _ACEOF |
| 9928 | cat confdefs.h >>conftest.$ac_ext |
| 9929 | cat >>conftest.$ac_ext <<_ACEOF |
| 9930 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9931 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9932 | int |
| 9933 | main () |
| 9934 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9935 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9936 | ; |
| 9937 | return 0; |
| 9938 | } |
| 9939 | _ACEOF |
| 9940 | rm -f conftest.$ac_objext |
| 9941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9942 | (eval $ac_compile) 2>conftest.er1 |
| 9943 | ac_status=$? |
| 9944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9945 | rm -f conftest.er1 |
| 9946 | cat conftest.err >&5 |
| 9947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9948 | (exit $ac_status); } && |
| 9949 | { ac_try='test -z "$ac_c_werror_flag" |
| 9950 | || test ! -s conftest.err' |
| 9951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9952 | (eval $ac_try) 2>&5 |
| 9953 | ac_status=$? |
| 9954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9955 | (exit $ac_status); }; } && |
| 9956 | { ac_try='test -s conftest.$ac_objext' |
| 9957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9958 | (eval $ac_try) 2>&5 |
| 9959 | ac_status=$? |
| 9960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9961 | (exit $ac_status); }; }; then |
| 9962 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9963 | echo "${ECHO_T}yes" >&6 |
| 9964 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9965 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9966 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9967 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9968 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9969 | #define HAVE_UNION_WAIT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9970 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9971 | |
| 9972 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9973 | echo "$as_me: failed program was:" >&5 |
| 9974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9975 | |
| 9976 | echo "$as_me:$LINENO: result: no" >&5 |
| 9977 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9978 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9980 | fi |
| 9981 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9982 | |
| 9983 | |
| 9984 | |
| 9985 | |
| 9986 | |
| 9987 | |
| 9988 | |
| 9989 | |
| 9990 | |
| 9991 | |
| 9992 | |
| 9993 | |
| 9994 | |
| 9995 | |
| 9996 | |
| 9997 | |
| 9998 | |
| 9999 | |
| 10000 | |
| 10001 | |
| 10002 | |
| 10003 | |
| 10004 | |
| 10005 | |
| 10006 | |
| 10007 | |
| 10008 | |
| 10009 | |
| 10010 | |
| 10011 | |
| 10012 | |
| 10013 | |
| 10014 | |
| 10015 | |
| 10016 | |
| 10017 | |
| 10018 | |
| 10019 | |
| 10020 | |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10021 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10022 | for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10023 | termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \ |
| 10024 | iconv.h langinfo.h unistd.h stropts.h errno.h \ |
| 10025 | sys/resource.h sys/systeminfo.h locale.h \ |
| 10026 | sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ |
| 10027 | poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10028 | libgen.h util/debug.h util/msg18n.h frame.h \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10029 | sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10030 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10031 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10032 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10033 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10034 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10035 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10037 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10038 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10039 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10040 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10041 | # Is the header compilable? |
| 10042 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10043 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10044 | cat >conftest.$ac_ext <<_ACEOF |
| 10045 | /* confdefs.h. */ |
| 10046 | _ACEOF |
| 10047 | cat confdefs.h >>conftest.$ac_ext |
| 10048 | cat >>conftest.$ac_ext <<_ACEOF |
| 10049 | /* end confdefs.h. */ |
| 10050 | $ac_includes_default |
| 10051 | #include <$ac_header> |
| 10052 | _ACEOF |
| 10053 | rm -f conftest.$ac_objext |
| 10054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10055 | (eval $ac_compile) 2>conftest.er1 |
| 10056 | ac_status=$? |
| 10057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10058 | rm -f conftest.er1 |
| 10059 | cat conftest.err >&5 |
| 10060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10061 | (exit $ac_status); } && |
| 10062 | { ac_try='test -z "$ac_c_werror_flag" |
| 10063 | || test ! -s conftest.err' |
| 10064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10065 | (eval $ac_try) 2>&5 |
| 10066 | ac_status=$? |
| 10067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10068 | (exit $ac_status); }; } && |
| 10069 | { ac_try='test -s conftest.$ac_objext' |
| 10070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10071 | (eval $ac_try) 2>&5 |
| 10072 | ac_status=$? |
| 10073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10074 | (exit $ac_status); }; }; then |
| 10075 | ac_header_compiler=yes |
| 10076 | else |
| 10077 | echo "$as_me: failed program was:" >&5 |
| 10078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10079 | |
| 10080 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10081 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10083 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10084 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10085 | |
| 10086 | # Is the header present? |
| 10087 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10088 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10089 | cat >conftest.$ac_ext <<_ACEOF |
| 10090 | /* confdefs.h. */ |
| 10091 | _ACEOF |
| 10092 | cat confdefs.h >>conftest.$ac_ext |
| 10093 | cat >>conftest.$ac_ext <<_ACEOF |
| 10094 | /* end confdefs.h. */ |
| 10095 | #include <$ac_header> |
| 10096 | _ACEOF |
| 10097 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10098 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10099 | ac_status=$? |
| 10100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10101 | rm -f conftest.er1 |
| 10102 | cat conftest.err >&5 |
| 10103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10104 | (exit $ac_status); } >/dev/null; then |
| 10105 | if test -s conftest.err; then |
| 10106 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10107 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10108 | else |
| 10109 | ac_cpp_err= |
| 10110 | fi |
| 10111 | else |
| 10112 | ac_cpp_err=yes |
| 10113 | fi |
| 10114 | if test -z "$ac_cpp_err"; then |
| 10115 | ac_header_preproc=yes |
| 10116 | else |
| 10117 | echo "$as_me: failed program was:" >&5 |
| 10118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10119 | |
| 10120 | ac_header_preproc=no |
| 10121 | fi |
| 10122 | rm -f conftest.err conftest.$ac_ext |
| 10123 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10124 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10125 | |
| 10126 | # So? What about this header? |
| 10127 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10128 | yes:no: ) |
| 10129 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10130 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10131 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10132 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10133 | ac_header_preproc=yes |
| 10134 | ;; |
| 10135 | no:yes:* ) |
| 10136 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10137 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10138 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10139 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10140 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10141 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10142 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10143 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10144 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10145 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10146 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10147 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10148 | ( |
| 10149 | cat <<\_ASBOX |
| 10150 | ## ------------------------------------------ ## |
| 10151 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10152 | ## ------------------------------------------ ## |
| 10153 | _ASBOX |
| 10154 | ) | |
| 10155 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10156 | ;; |
| 10157 | esac |
| 10158 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10159 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10160 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10162 | else |
| 10163 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10164 | fi |
| 10165 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10166 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10167 | |
| 10168 | fi |
| 10169 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10170 | cat >>confdefs.h <<_ACEOF |
| 10171 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10172 | _ACEOF |
| 10173 | |
| 10174 | fi |
| 10175 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10176 | done |
| 10177 | |
| 10178 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10179 | echo "$as_me:$LINENO: checking for pthread_np.h" >&5 |
| 10180 | echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6 |
| 10181 | cat >conftest.$ac_ext <<_ACEOF |
| 10182 | /* confdefs.h. */ |
| 10183 | _ACEOF |
| 10184 | cat confdefs.h >>conftest.$ac_ext |
| 10185 | cat >>conftest.$ac_ext <<_ACEOF |
| 10186 | /* end confdefs.h. */ |
| 10187 | |
| 10188 | #include <pthread.h> |
| 10189 | #include <pthread_np.h> |
| 10190 | int |
| 10191 | main () |
| 10192 | { |
| 10193 | int i; i = 0; |
| 10194 | ; |
| 10195 | return 0; |
| 10196 | } |
| 10197 | _ACEOF |
| 10198 | rm -f conftest.$ac_objext |
| 10199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10200 | (eval $ac_compile) 2>conftest.er1 |
| 10201 | ac_status=$? |
| 10202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10203 | rm -f conftest.er1 |
| 10204 | cat conftest.err >&5 |
| 10205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10206 | (exit $ac_status); } && |
| 10207 | { ac_try='test -z "$ac_c_werror_flag" |
| 10208 | || test ! -s conftest.err' |
| 10209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10210 | (eval $ac_try) 2>&5 |
| 10211 | ac_status=$? |
| 10212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10213 | (exit $ac_status); }; } && |
| 10214 | { ac_try='test -s conftest.$ac_objext' |
| 10215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10216 | (eval $ac_try) 2>&5 |
| 10217 | ac_status=$? |
| 10218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10219 | (exit $ac_status); }; }; then |
| 10220 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10221 | echo "${ECHO_T}yes" >&6 |
| 10222 | cat >>confdefs.h <<\_ACEOF |
| 10223 | #define HAVE_PTHREAD_NP_H 1 |
| 10224 | _ACEOF |
| 10225 | |
| 10226 | else |
| 10227 | echo "$as_me: failed program was:" >&5 |
| 10228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10229 | |
| 10230 | echo "$as_me:$LINENO: result: no" >&5 |
| 10231 | echo "${ECHO_T}no" >&6 |
| 10232 | fi |
| 10233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10234 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10235 | |
| 10236 | for ac_header in strings.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10237 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10238 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10239 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10240 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10241 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10242 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10244 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10245 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10246 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10247 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10248 | # Is the header compilable? |
| 10249 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10250 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10251 | cat >conftest.$ac_ext <<_ACEOF |
| 10252 | /* confdefs.h. */ |
| 10253 | _ACEOF |
| 10254 | cat confdefs.h >>conftest.$ac_ext |
| 10255 | cat >>conftest.$ac_ext <<_ACEOF |
| 10256 | /* end confdefs.h. */ |
| 10257 | $ac_includes_default |
| 10258 | #include <$ac_header> |
| 10259 | _ACEOF |
| 10260 | rm -f conftest.$ac_objext |
| 10261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10262 | (eval $ac_compile) 2>conftest.er1 |
| 10263 | ac_status=$? |
| 10264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10265 | rm -f conftest.er1 |
| 10266 | cat conftest.err >&5 |
| 10267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10268 | (exit $ac_status); } && |
| 10269 | { ac_try='test -z "$ac_c_werror_flag" |
| 10270 | || test ! -s conftest.err' |
| 10271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10272 | (eval $ac_try) 2>&5 |
| 10273 | ac_status=$? |
| 10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10275 | (exit $ac_status); }; } && |
| 10276 | { ac_try='test -s conftest.$ac_objext' |
| 10277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10278 | (eval $ac_try) 2>&5 |
| 10279 | ac_status=$? |
| 10280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10281 | (exit $ac_status); }; }; then |
| 10282 | ac_header_compiler=yes |
| 10283 | else |
| 10284 | echo "$as_me: failed program was:" >&5 |
| 10285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10286 | |
| 10287 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10288 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10290 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10291 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10292 | |
| 10293 | # Is the header present? |
| 10294 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10295 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10296 | cat >conftest.$ac_ext <<_ACEOF |
| 10297 | /* confdefs.h. */ |
| 10298 | _ACEOF |
| 10299 | cat confdefs.h >>conftest.$ac_ext |
| 10300 | cat >>conftest.$ac_ext <<_ACEOF |
| 10301 | /* end confdefs.h. */ |
| 10302 | #include <$ac_header> |
| 10303 | _ACEOF |
| 10304 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10305 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10306 | ac_status=$? |
| 10307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10308 | rm -f conftest.er1 |
| 10309 | cat conftest.err >&5 |
| 10310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10311 | (exit $ac_status); } >/dev/null; then |
| 10312 | if test -s conftest.err; then |
| 10313 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10314 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10315 | else |
| 10316 | ac_cpp_err= |
| 10317 | fi |
| 10318 | else |
| 10319 | ac_cpp_err=yes |
| 10320 | fi |
| 10321 | if test -z "$ac_cpp_err"; then |
| 10322 | ac_header_preproc=yes |
| 10323 | else |
| 10324 | echo "$as_me: failed program was:" >&5 |
| 10325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10326 | |
| 10327 | ac_header_preproc=no |
| 10328 | fi |
| 10329 | rm -f conftest.err conftest.$ac_ext |
| 10330 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10331 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10332 | |
| 10333 | # So? What about this header? |
| 10334 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10335 | yes:no: ) |
| 10336 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10337 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10338 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10339 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10340 | ac_header_preproc=yes |
| 10341 | ;; |
| 10342 | no:yes:* ) |
| 10343 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10344 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10345 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10346 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10347 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10348 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10349 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10350 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10351 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10352 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10353 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10354 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10355 | ( |
| 10356 | cat <<\_ASBOX |
| 10357 | ## ------------------------------------------ ## |
| 10358 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10359 | ## ------------------------------------------ ## |
| 10360 | _ASBOX |
| 10361 | ) | |
| 10362 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10363 | ;; |
| 10364 | esac |
| 10365 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10366 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10367 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10369 | else |
| 10370 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10371 | fi |
| 10372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10373 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10374 | |
| 10375 | fi |
| 10376 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10377 | cat >>confdefs.h <<_ACEOF |
| 10378 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10379 | _ACEOF |
| 10380 | |
| 10381 | fi |
| 10382 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10383 | done |
| 10384 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 10385 | if test "x$MACOSX" = "xyes"; then |
| 10386 | cat >>confdefs.h <<\_ACEOF |
| 10387 | #define NO_STRINGS_WITH_STRING_H 1 |
| 10388 | _ACEOF |
| 10389 | |
| 10390 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10391 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10392 | echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
| 10393 | echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10394 | cppflags_save=$CPPFLAGS |
| 10395 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10396 | cat >conftest.$ac_ext <<_ACEOF |
| 10397 | /* confdefs.h. */ |
| 10398 | _ACEOF |
| 10399 | cat confdefs.h >>conftest.$ac_ext |
| 10400 | cat >>conftest.$ac_ext <<_ACEOF |
| 10401 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10402 | |
| 10403 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 10404 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 10405 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 10406 | #endif |
| 10407 | #ifdef HAVE_XM_XM_H |
| 10408 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 10409 | #endif |
| 10410 | #ifdef HAVE_STRING_H |
| 10411 | # include <string.h> |
| 10412 | #endif |
| 10413 | #if defined(HAVE_STRINGS_H) |
| 10414 | # include <strings.h> |
| 10415 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10416 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10417 | int |
| 10418 | main () |
| 10419 | { |
| 10420 | int i; i = 0; |
| 10421 | ; |
| 10422 | return 0; |
| 10423 | } |
| 10424 | _ACEOF |
| 10425 | rm -f conftest.$ac_objext |
| 10426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10427 | (eval $ac_compile) 2>conftest.er1 |
| 10428 | ac_status=$? |
| 10429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10430 | rm -f conftest.er1 |
| 10431 | cat conftest.err >&5 |
| 10432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10433 | (exit $ac_status); } && |
| 10434 | { ac_try='test -z "$ac_c_werror_flag" |
| 10435 | || test ! -s conftest.err' |
| 10436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10437 | (eval $ac_try) 2>&5 |
| 10438 | ac_status=$? |
| 10439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10440 | (exit $ac_status); }; } && |
| 10441 | { ac_try='test -s conftest.$ac_objext' |
| 10442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10443 | (eval $ac_try) 2>&5 |
| 10444 | ac_status=$? |
| 10445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10446 | (exit $ac_status); }; }; then |
| 10447 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10448 | echo "${ECHO_T}yes" >&6 |
| 10449 | else |
| 10450 | echo "$as_me: failed program was:" >&5 |
| 10451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10452 | |
| 10453 | cat >>confdefs.h <<\_ACEOF |
| 10454 | #define NO_STRINGS_WITH_STRING_H 1 |
| 10455 | _ACEOF |
| 10456 | |
| 10457 | echo "$as_me:$LINENO: result: no" >&5 |
| 10458 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10459 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10461 | CPPFLAGS=$cppflags_save |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 10462 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10463 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10464 | if test $ac_cv_c_compiler_gnu = yes; then |
| 10465 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 10466 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
| 10467 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 10468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10469 | else |
| 10470 | ac_pattern="Autoconf.*'x'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10471 | cat >conftest.$ac_ext <<_ACEOF |
| 10472 | /* confdefs.h. */ |
| 10473 | _ACEOF |
| 10474 | cat confdefs.h >>conftest.$ac_ext |
| 10475 | cat >>conftest.$ac_ext <<_ACEOF |
| 10476 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10477 | #include <sgtty.h> |
| 10478 | Autoconf TIOCGETP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10479 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10480 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10481 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10482 | ac_cv_prog_gcc_traditional=yes |
| 10483 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10484 | ac_cv_prog_gcc_traditional=no |
| 10485 | fi |
| 10486 | rm -f conftest* |
| 10487 | |
| 10488 | |
| 10489 | if test $ac_cv_prog_gcc_traditional = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10490 | cat >conftest.$ac_ext <<_ACEOF |
| 10491 | /* confdefs.h. */ |
| 10492 | _ACEOF |
| 10493 | cat confdefs.h >>conftest.$ac_ext |
| 10494 | cat >>conftest.$ac_ext <<_ACEOF |
| 10495 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10496 | #include <termio.h> |
| 10497 | Autoconf TCGETA |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10498 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10499 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10500 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10501 | ac_cv_prog_gcc_traditional=yes |
| 10502 | fi |
| 10503 | rm -f conftest* |
| 10504 | |
| 10505 | fi |
| 10506 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10507 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 10508 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10509 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 10510 | CC="$CC -traditional" |
| 10511 | fi |
| 10512 | fi |
| 10513 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10514 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 10515 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 10516 | if test "${ac_cv_c_const+set}" = set; then |
| 10517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10518 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10519 | cat >conftest.$ac_ext <<_ACEOF |
| 10520 | /* confdefs.h. */ |
| 10521 | _ACEOF |
| 10522 | cat confdefs.h >>conftest.$ac_ext |
| 10523 | cat >>conftest.$ac_ext <<_ACEOF |
| 10524 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10525 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10526 | int |
| 10527 | main () |
| 10528 | { |
| 10529 | /* FIXME: Include the comments suggested by Paul. */ |
| 10530 | #ifndef __cplusplus |
| 10531 | /* Ultrix mips cc rejects this. */ |
| 10532 | typedef int charset[2]; |
| 10533 | const charset x; |
| 10534 | /* SunOS 4.1.1 cc rejects this. */ |
| 10535 | char const *const *ccp; |
| 10536 | char **p; |
| 10537 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 10538 | struct point {int x, y;}; |
| 10539 | static struct point const zero = {0,0}; |
| 10540 | /* AIX XL C 1.02.0.0 rejects this. |
| 10541 | It does not let you subtract one const X* pointer from another in |
| 10542 | an arm of an if-expression whose if-part is not a constant |
| 10543 | expression */ |
| 10544 | const char *g = "string"; |
| 10545 | ccp = &g + (g ? g-g : 0); |
| 10546 | /* HPUX 7.0 cc rejects these. */ |
| 10547 | ++ccp; |
| 10548 | p = (char**) ccp; |
| 10549 | ccp = (char const *const *) p; |
| 10550 | { /* SCO 3.2v4 cc rejects this. */ |
| 10551 | char *t; |
| 10552 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10553 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10554 | *t++ = 0; |
| 10555 | } |
| 10556 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 10557 | int x[] = {25, 17}; |
| 10558 | const int *foo = &x[0]; |
| 10559 | ++foo; |
| 10560 | } |
| 10561 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 10562 | typedef const int *iptr; |
| 10563 | iptr p = 0; |
| 10564 | ++p; |
| 10565 | } |
| 10566 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 10567 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 10568 | struct s { int j; const int *ap[3]; }; |
| 10569 | struct s *b; b->j = 5; |
| 10570 | } |
| 10571 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 10572 | const int foo = 10; |
| 10573 | } |
| 10574 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10575 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10576 | ; |
| 10577 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10578 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10579 | _ACEOF |
| 10580 | rm -f conftest.$ac_objext |
| 10581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10582 | (eval $ac_compile) 2>conftest.er1 |
| 10583 | ac_status=$? |
| 10584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10585 | rm -f conftest.er1 |
| 10586 | cat conftest.err >&5 |
| 10587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10588 | (exit $ac_status); } && |
| 10589 | { ac_try='test -z "$ac_c_werror_flag" |
| 10590 | || test ! -s conftest.err' |
| 10591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10592 | (eval $ac_try) 2>&5 |
| 10593 | ac_status=$? |
| 10594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10595 | (exit $ac_status); }; } && |
| 10596 | { ac_try='test -s conftest.$ac_objext' |
| 10597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10598 | (eval $ac_try) 2>&5 |
| 10599 | ac_status=$? |
| 10600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10601 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10602 | ac_cv_c_const=yes |
| 10603 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10604 | echo "$as_me: failed program was:" >&5 |
| 10605 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10606 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10607 | ac_cv_c_const=no |
| 10608 | fi |
| 10609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10610 | fi |
| 10611 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 10612 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10613 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10614 | |
| 10615 | cat >>confdefs.h <<\_ACEOF |
| 10616 | #define const |
| 10617 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10618 | |
| 10619 | fi |
| 10620 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10621 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 10622 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 10623 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 10624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10625 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10626 | cat >conftest.$ac_ext <<_ACEOF |
| 10627 | /* confdefs.h. */ |
| 10628 | _ACEOF |
| 10629 | cat confdefs.h >>conftest.$ac_ext |
| 10630 | cat >>conftest.$ac_ext <<_ACEOF |
| 10631 | /* end confdefs.h. */ |
| 10632 | $ac_includes_default |
| 10633 | int |
| 10634 | main () |
| 10635 | { |
| 10636 | if ((mode_t *) 0) |
| 10637 | return 0; |
| 10638 | if (sizeof (mode_t)) |
| 10639 | return 0; |
| 10640 | ; |
| 10641 | return 0; |
| 10642 | } |
| 10643 | _ACEOF |
| 10644 | rm -f conftest.$ac_objext |
| 10645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10646 | (eval $ac_compile) 2>conftest.er1 |
| 10647 | ac_status=$? |
| 10648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10649 | rm -f conftest.er1 |
| 10650 | cat conftest.err >&5 |
| 10651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10652 | (exit $ac_status); } && |
| 10653 | { ac_try='test -z "$ac_c_werror_flag" |
| 10654 | || test ! -s conftest.err' |
| 10655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10656 | (eval $ac_try) 2>&5 |
| 10657 | ac_status=$? |
| 10658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10659 | (exit $ac_status); }; } && |
| 10660 | { ac_try='test -s conftest.$ac_objext' |
| 10661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10662 | (eval $ac_try) 2>&5 |
| 10663 | ac_status=$? |
| 10664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10665 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10666 | ac_cv_type_mode_t=yes |
| 10667 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10668 | echo "$as_me: failed program was:" >&5 |
| 10669 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10670 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10671 | ac_cv_type_mode_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10672 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10673 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10674 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10675 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 10676 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 10677 | if test $ac_cv_type_mode_t = yes; then |
| 10678 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10679 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10680 | |
| 10681 | cat >>confdefs.h <<_ACEOF |
| 10682 | #define mode_t int |
| 10683 | _ACEOF |
| 10684 | |
| 10685 | fi |
| 10686 | |
| 10687 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 10688 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 10689 | if test "${ac_cv_type_off_t+set}" = set; then |
| 10690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10691 | else |
| 10692 | cat >conftest.$ac_ext <<_ACEOF |
| 10693 | /* confdefs.h. */ |
| 10694 | _ACEOF |
| 10695 | cat confdefs.h >>conftest.$ac_ext |
| 10696 | cat >>conftest.$ac_ext <<_ACEOF |
| 10697 | /* end confdefs.h. */ |
| 10698 | $ac_includes_default |
| 10699 | int |
| 10700 | main () |
| 10701 | { |
| 10702 | if ((off_t *) 0) |
| 10703 | return 0; |
| 10704 | if (sizeof (off_t)) |
| 10705 | return 0; |
| 10706 | ; |
| 10707 | return 0; |
| 10708 | } |
| 10709 | _ACEOF |
| 10710 | rm -f conftest.$ac_objext |
| 10711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10712 | (eval $ac_compile) 2>conftest.er1 |
| 10713 | ac_status=$? |
| 10714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10715 | rm -f conftest.er1 |
| 10716 | cat conftest.err >&5 |
| 10717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10718 | (exit $ac_status); } && |
| 10719 | { ac_try='test -z "$ac_c_werror_flag" |
| 10720 | || test ! -s conftest.err' |
| 10721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10722 | (eval $ac_try) 2>&5 |
| 10723 | ac_status=$? |
| 10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10725 | (exit $ac_status); }; } && |
| 10726 | { ac_try='test -s conftest.$ac_objext' |
| 10727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10728 | (eval $ac_try) 2>&5 |
| 10729 | ac_status=$? |
| 10730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10731 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10732 | ac_cv_type_off_t=yes |
| 10733 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10734 | echo "$as_me: failed program was:" >&5 |
| 10735 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10736 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10737 | ac_cv_type_off_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10738 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10740 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10741 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 10742 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 10743 | if test $ac_cv_type_off_t = yes; then |
| 10744 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10745 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10746 | |
| 10747 | cat >>confdefs.h <<_ACEOF |
| 10748 | #define off_t long |
| 10749 | _ACEOF |
| 10750 | |
| 10751 | fi |
| 10752 | |
| 10753 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10754 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 10755 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10757 | else |
| 10758 | cat >conftest.$ac_ext <<_ACEOF |
| 10759 | /* confdefs.h. */ |
| 10760 | _ACEOF |
| 10761 | cat confdefs.h >>conftest.$ac_ext |
| 10762 | cat >>conftest.$ac_ext <<_ACEOF |
| 10763 | /* end confdefs.h. */ |
| 10764 | $ac_includes_default |
| 10765 | int |
| 10766 | main () |
| 10767 | { |
| 10768 | if ((pid_t *) 0) |
| 10769 | return 0; |
| 10770 | if (sizeof (pid_t)) |
| 10771 | return 0; |
| 10772 | ; |
| 10773 | return 0; |
| 10774 | } |
| 10775 | _ACEOF |
| 10776 | rm -f conftest.$ac_objext |
| 10777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10778 | (eval $ac_compile) 2>conftest.er1 |
| 10779 | ac_status=$? |
| 10780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10781 | rm -f conftest.er1 |
| 10782 | cat conftest.err >&5 |
| 10783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10784 | (exit $ac_status); } && |
| 10785 | { ac_try='test -z "$ac_c_werror_flag" |
| 10786 | || test ! -s conftest.err' |
| 10787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10788 | (eval $ac_try) 2>&5 |
| 10789 | ac_status=$? |
| 10790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10791 | (exit $ac_status); }; } && |
| 10792 | { ac_try='test -s conftest.$ac_objext' |
| 10793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10794 | (eval $ac_try) 2>&5 |
| 10795 | ac_status=$? |
| 10796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10797 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10798 | ac_cv_type_pid_t=yes |
| 10799 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10800 | echo "$as_me: failed program was:" >&5 |
| 10801 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10802 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10803 | ac_cv_type_pid_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10804 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10806 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10807 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10808 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 10809 | if test $ac_cv_type_pid_t = yes; then |
| 10810 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10811 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10812 | |
| 10813 | cat >>confdefs.h <<_ACEOF |
| 10814 | #define pid_t int |
| 10815 | _ACEOF |
| 10816 | |
| 10817 | fi |
| 10818 | |
| 10819 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10820 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 10821 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10823 | else |
| 10824 | cat >conftest.$ac_ext <<_ACEOF |
| 10825 | /* confdefs.h. */ |
| 10826 | _ACEOF |
| 10827 | cat confdefs.h >>conftest.$ac_ext |
| 10828 | cat >>conftest.$ac_ext <<_ACEOF |
| 10829 | /* end confdefs.h. */ |
| 10830 | $ac_includes_default |
| 10831 | int |
| 10832 | main () |
| 10833 | { |
| 10834 | if ((size_t *) 0) |
| 10835 | return 0; |
| 10836 | if (sizeof (size_t)) |
| 10837 | return 0; |
| 10838 | ; |
| 10839 | return 0; |
| 10840 | } |
| 10841 | _ACEOF |
| 10842 | rm -f conftest.$ac_objext |
| 10843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10844 | (eval $ac_compile) 2>conftest.er1 |
| 10845 | ac_status=$? |
| 10846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10847 | rm -f conftest.er1 |
| 10848 | cat conftest.err >&5 |
| 10849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10850 | (exit $ac_status); } && |
| 10851 | { ac_try='test -z "$ac_c_werror_flag" |
| 10852 | || test ! -s conftest.err' |
| 10853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10854 | (eval $ac_try) 2>&5 |
| 10855 | ac_status=$? |
| 10856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10857 | (exit $ac_status); }; } && |
| 10858 | { ac_try='test -s conftest.$ac_objext' |
| 10859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10860 | (eval $ac_try) 2>&5 |
| 10861 | ac_status=$? |
| 10862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10863 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10864 | ac_cv_type_size_t=yes |
| 10865 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10866 | echo "$as_me: failed program was:" >&5 |
| 10867 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10868 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10869 | ac_cv_type_size_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10870 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10872 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10873 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10874 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 10875 | if test $ac_cv_type_size_t = yes; then |
| 10876 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10877 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10878 | |
| 10879 | cat >>confdefs.h <<_ACEOF |
| 10880 | #define size_t unsigned |
| 10881 | _ACEOF |
| 10882 | |
| 10883 | fi |
| 10884 | |
| 10885 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 10886 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 10887 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 10888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10889 | else |
| 10890 | cat >conftest.$ac_ext <<_ACEOF |
| 10891 | /* confdefs.h. */ |
| 10892 | _ACEOF |
| 10893 | cat confdefs.h >>conftest.$ac_ext |
| 10894 | cat >>conftest.$ac_ext <<_ACEOF |
| 10895 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10896 | #include <sys/types.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10897 | |
| 10898 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10899 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10900 | $EGREP "uid_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10901 | ac_cv_type_uid_t=yes |
| 10902 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10903 | ac_cv_type_uid_t=no |
| 10904 | fi |
| 10905 | rm -f conftest* |
| 10906 | |
| 10907 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10908 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 10909 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10910 | if test $ac_cv_type_uid_t = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10911 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10912 | cat >>confdefs.h <<\_ACEOF |
| 10913 | #define uid_t int |
| 10914 | _ACEOF |
| 10915 | |
| 10916 | |
| 10917 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10918 | #define gid_t int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10919 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10920 | |
| 10921 | fi |
| 10922 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10923 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 10924 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 10925 | if test "${ac_cv_header_time+set}" = set; then |
| 10926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10927 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10928 | cat >conftest.$ac_ext <<_ACEOF |
| 10929 | /* confdefs.h. */ |
| 10930 | _ACEOF |
| 10931 | cat confdefs.h >>conftest.$ac_ext |
| 10932 | cat >>conftest.$ac_ext <<_ACEOF |
| 10933 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10934 | #include <sys/types.h> |
| 10935 | #include <sys/time.h> |
| 10936 | #include <time.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10937 | |
| 10938 | int |
| 10939 | main () |
| 10940 | { |
| 10941 | if ((struct tm *) 0) |
| 10942 | return 0; |
| 10943 | ; |
| 10944 | return 0; |
| 10945 | } |
| 10946 | _ACEOF |
| 10947 | rm -f conftest.$ac_objext |
| 10948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10949 | (eval $ac_compile) 2>conftest.er1 |
| 10950 | ac_status=$? |
| 10951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10952 | rm -f conftest.er1 |
| 10953 | cat conftest.err >&5 |
| 10954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10955 | (exit $ac_status); } && |
| 10956 | { ac_try='test -z "$ac_c_werror_flag" |
| 10957 | || test ! -s conftest.err' |
| 10958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10959 | (eval $ac_try) 2>&5 |
| 10960 | ac_status=$? |
| 10961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10962 | (exit $ac_status); }; } && |
| 10963 | { ac_try='test -s conftest.$ac_objext' |
| 10964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10965 | (eval $ac_try) 2>&5 |
| 10966 | ac_status=$? |
| 10967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10968 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10969 | ac_cv_header_time=yes |
| 10970 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10971 | echo "$as_me: failed program was:" >&5 |
| 10972 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10973 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10974 | ac_cv_header_time=no |
| 10975 | fi |
| 10976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10977 | fi |
| 10978 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 10979 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10980 | if test $ac_cv_header_time = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10981 | |
| 10982 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10983 | #define TIME_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10984 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10985 | |
| 10986 | fi |
| 10987 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10988 | echo "$as_me:$LINENO: checking for ino_t" >&5 |
| 10989 | echo $ECHO_N "checking for ino_t... $ECHO_C" >&6 |
| 10990 | if test "${ac_cv_type_ino_t+set}" = set; then |
| 10991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10992 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10993 | cat >conftest.$ac_ext <<_ACEOF |
| 10994 | /* confdefs.h. */ |
| 10995 | _ACEOF |
| 10996 | cat confdefs.h >>conftest.$ac_ext |
| 10997 | cat >>conftest.$ac_ext <<_ACEOF |
| 10998 | /* end confdefs.h. */ |
| 10999 | $ac_includes_default |
| 11000 | int |
| 11001 | main () |
| 11002 | { |
| 11003 | if ((ino_t *) 0) |
| 11004 | return 0; |
| 11005 | if (sizeof (ino_t)) |
| 11006 | return 0; |
| 11007 | ; |
| 11008 | return 0; |
| 11009 | } |
| 11010 | _ACEOF |
| 11011 | rm -f conftest.$ac_objext |
| 11012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11013 | (eval $ac_compile) 2>conftest.er1 |
| 11014 | ac_status=$? |
| 11015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11016 | rm -f conftest.er1 |
| 11017 | cat conftest.err >&5 |
| 11018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11019 | (exit $ac_status); } && |
| 11020 | { ac_try='test -z "$ac_c_werror_flag" |
| 11021 | || test ! -s conftest.err' |
| 11022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11023 | (eval $ac_try) 2>&5 |
| 11024 | ac_status=$? |
| 11025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11026 | (exit $ac_status); }; } && |
| 11027 | { ac_try='test -s conftest.$ac_objext' |
| 11028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11029 | (eval $ac_try) 2>&5 |
| 11030 | ac_status=$? |
| 11031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11032 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11033 | ac_cv_type_ino_t=yes |
| 11034 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11035 | echo "$as_me: failed program was:" >&5 |
| 11036 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11037 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11038 | ac_cv_type_ino_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11039 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11041 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11042 | echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
| 11043 | echo "${ECHO_T}$ac_cv_type_ino_t" >&6 |
| 11044 | if test $ac_cv_type_ino_t = yes; then |
| 11045 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11046 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11047 | |
| 11048 | cat >>confdefs.h <<_ACEOF |
| 11049 | #define ino_t long |
| 11050 | _ACEOF |
| 11051 | |
| 11052 | fi |
| 11053 | |
| 11054 | echo "$as_me:$LINENO: checking for dev_t" >&5 |
| 11055 | echo $ECHO_N "checking for dev_t... $ECHO_C" >&6 |
| 11056 | if test "${ac_cv_type_dev_t+set}" = set; then |
| 11057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11058 | else |
| 11059 | cat >conftest.$ac_ext <<_ACEOF |
| 11060 | /* confdefs.h. */ |
| 11061 | _ACEOF |
| 11062 | cat confdefs.h >>conftest.$ac_ext |
| 11063 | cat >>conftest.$ac_ext <<_ACEOF |
| 11064 | /* end confdefs.h. */ |
| 11065 | $ac_includes_default |
| 11066 | int |
| 11067 | main () |
| 11068 | { |
| 11069 | if ((dev_t *) 0) |
| 11070 | return 0; |
| 11071 | if (sizeof (dev_t)) |
| 11072 | return 0; |
| 11073 | ; |
| 11074 | return 0; |
| 11075 | } |
| 11076 | _ACEOF |
| 11077 | rm -f conftest.$ac_objext |
| 11078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11079 | (eval $ac_compile) 2>conftest.er1 |
| 11080 | ac_status=$? |
| 11081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11082 | rm -f conftest.er1 |
| 11083 | cat conftest.err >&5 |
| 11084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11085 | (exit $ac_status); } && |
| 11086 | { ac_try='test -z "$ac_c_werror_flag" |
| 11087 | || test ! -s conftest.err' |
| 11088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11089 | (eval $ac_try) 2>&5 |
| 11090 | ac_status=$? |
| 11091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11092 | (exit $ac_status); }; } && |
| 11093 | { ac_try='test -s conftest.$ac_objext' |
| 11094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11095 | (eval $ac_try) 2>&5 |
| 11096 | ac_status=$? |
| 11097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11098 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11099 | ac_cv_type_dev_t=yes |
| 11100 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11101 | echo "$as_me: failed program was:" >&5 |
| 11102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11103 | |
| 11104 | ac_cv_type_dev_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11105 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11107 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11108 | echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
| 11109 | echo "${ECHO_T}$ac_cv_type_dev_t" >&6 |
| 11110 | if test $ac_cv_type_dev_t = yes; then |
| 11111 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11112 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11113 | |
| 11114 | cat >>confdefs.h <<_ACEOF |
| 11115 | #define dev_t unsigned |
| 11116 | _ACEOF |
| 11117 | |
| 11118 | fi |
| 11119 | |
| 11120 | |
| 11121 | echo "$as_me:$LINENO: checking for rlim_t" >&5 |
| 11122 | echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6 |
| 11123 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
| 11124 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 11125 | echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6 |
| 11126 | else |
| 11127 | cat >conftest.$ac_ext <<_ACEOF |
| 11128 | /* confdefs.h. */ |
| 11129 | _ACEOF |
| 11130 | cat confdefs.h >>conftest.$ac_ext |
| 11131 | cat >>conftest.$ac_ext <<_ACEOF |
| 11132 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11133 | |
| 11134 | #include <sys/types.h> |
| 11135 | #if STDC_HEADERS |
| 11136 | #include <stdlib.h> |
| 11137 | #include <stddef.h> |
| 11138 | #endif |
| 11139 | #ifdef HAVE_SYS_RESOURCE_H |
| 11140 | #include <sys/resource.h> |
| 11141 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11142 | |
| 11143 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11144 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11145 | $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11146 | ac_cv_type_rlim_t=yes |
| 11147 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11148 | ac_cv_type_rlim_t=no |
| 11149 | fi |
| 11150 | rm -f conftest* |
| 11151 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11152 | echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
| 11153 | echo "${ECHO_T}$ac_cv_type_rlim_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11154 | fi |
| 11155 | if test $ac_cv_type_rlim_t = no; then |
| 11156 | cat >> confdefs.h <<\EOF |
| 11157 | #define rlim_t unsigned long |
| 11158 | EOF |
| 11159 | fi |
| 11160 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11161 | echo "$as_me:$LINENO: checking for stack_t" >&5 |
| 11162 | echo $ECHO_N "checking for stack_t... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11163 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11164 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
| 11165 | echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11166 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11167 | cat >conftest.$ac_ext <<_ACEOF |
| 11168 | /* confdefs.h. */ |
| 11169 | _ACEOF |
| 11170 | cat confdefs.h >>conftest.$ac_ext |
| 11171 | cat >>conftest.$ac_ext <<_ACEOF |
| 11172 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11173 | |
| 11174 | #include <sys/types.h> |
| 11175 | #if STDC_HEADERS |
| 11176 | #include <stdlib.h> |
| 11177 | #include <stddef.h> |
| 11178 | #endif |
| 11179 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11180 | |
| 11181 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11182 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11183 | $EGREP "stack_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11184 | ac_cv_type_stack_t=yes |
| 11185 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11186 | ac_cv_type_stack_t=no |
| 11187 | fi |
| 11188 | rm -f conftest* |
| 11189 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11190 | echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
| 11191 | echo "${ECHO_T}$ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11192 | fi |
| 11193 | if test $ac_cv_type_stack_t = no; then |
| 11194 | cat >> confdefs.h <<\EOF |
| 11195 | #define stack_t struct sigaltstack |
| 11196 | EOF |
| 11197 | fi |
| 11198 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11199 | echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
| 11200 | echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6 |
| 11201 | cat >conftest.$ac_ext <<_ACEOF |
| 11202 | /* confdefs.h. */ |
| 11203 | _ACEOF |
| 11204 | cat confdefs.h >>conftest.$ac_ext |
| 11205 | cat >>conftest.$ac_ext <<_ACEOF |
| 11206 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11207 | |
| 11208 | #include <sys/types.h> |
| 11209 | #if STDC_HEADERS |
| 11210 | #include <stdlib.h> |
| 11211 | #include <stddef.h> |
| 11212 | #endif |
| 11213 | #include <signal.h> |
| 11214 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11215 | |
| 11216 | int |
| 11217 | main () |
| 11218 | { |
| 11219 | stack_t sigstk; sigstk.ss_base = 0; |
| 11220 | ; |
| 11221 | return 0; |
| 11222 | } |
| 11223 | _ACEOF |
| 11224 | rm -f conftest.$ac_objext |
| 11225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11226 | (eval $ac_compile) 2>conftest.er1 |
| 11227 | ac_status=$? |
| 11228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11229 | rm -f conftest.er1 |
| 11230 | cat conftest.err >&5 |
| 11231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11232 | (exit $ac_status); } && |
| 11233 | { ac_try='test -z "$ac_c_werror_flag" |
| 11234 | || test ! -s conftest.err' |
| 11235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11236 | (eval $ac_try) 2>&5 |
| 11237 | ac_status=$? |
| 11238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11239 | (exit $ac_status); }; } && |
| 11240 | { ac_try='test -s conftest.$ac_objext' |
| 11241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11242 | (eval $ac_try) 2>&5 |
| 11243 | ac_status=$? |
| 11244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11245 | (exit $ac_status); }; }; then |
| 11246 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11247 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11248 | #define HAVE_SS_BASE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11249 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11250 | |
| 11251 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11252 | echo "$as_me: failed program was:" >&5 |
| 11253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11254 | |
| 11255 | echo "$as_me:$LINENO: result: no" >&5 |
| 11256 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11257 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11259 | |
| 11260 | olibs="$LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11261 | echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
| 11262 | echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6 |
| 11263 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11264 | # Check whether --with-tlib or --without-tlib was given. |
| 11265 | if test "${with_tlib+set}" = set; then |
| 11266 | withval="$with_tlib" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11267 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11268 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11269 | if test -n "$with_tlib"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11270 | echo "$as_me:$LINENO: result: $with_tlib" >&5 |
| 11271 | echo "${ECHO_T}$with_tlib" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11272 | LIBS="$LIBS -l$with_tlib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11273 | echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
| 11274 | echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6 |
| 11275 | cat >conftest.$ac_ext <<_ACEOF |
| 11276 | /* confdefs.h. */ |
| 11277 | _ACEOF |
| 11278 | cat confdefs.h >>conftest.$ac_ext |
| 11279 | cat >>conftest.$ac_ext <<_ACEOF |
| 11280 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11281 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11282 | int |
| 11283 | main () |
| 11284 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11285 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11286 | ; |
| 11287 | return 0; |
| 11288 | } |
| 11289 | _ACEOF |
| 11290 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11292 | (eval $ac_link) 2>conftest.er1 |
| 11293 | ac_status=$? |
| 11294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11295 | rm -f conftest.er1 |
| 11296 | cat conftest.err >&5 |
| 11297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11298 | (exit $ac_status); } && |
| 11299 | { ac_try='test -z "$ac_c_werror_flag" |
| 11300 | || test ! -s conftest.err' |
| 11301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11302 | (eval $ac_try) 2>&5 |
| 11303 | ac_status=$? |
| 11304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11305 | (exit $ac_status); }; } && |
| 11306 | { ac_try='test -s conftest$ac_exeext' |
| 11307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11308 | (eval $ac_try) 2>&5 |
| 11309 | ac_status=$? |
| 11310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11311 | (exit $ac_status); }; }; then |
| 11312 | echo "$as_me:$LINENO: result: OK" >&5 |
| 11313 | echo "${ECHO_T}OK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11314 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11315 | echo "$as_me: failed program was:" >&5 |
| 11316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11317 | |
| 11318 | { { echo "$as_me:$LINENO: error: FAILED" >&5 |
| 11319 | echo "$as_me: error: FAILED" >&2;} |
| 11320 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11321 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11322 | rm -f conftest.err conftest.$ac_objext \ |
| 11323 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11324 | olibs="$LIBS" |
| 11325 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11326 | echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
| 11327 | echo "${ECHO_T}empty: automatic terminal library selection" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11328 | case "`uname -s 2>/dev/null`" in |
| 11329 | OSF1) tlibs="ncurses curses termlib termcap";; |
| 11330 | *) tlibs="ncurses termlib termcap curses";; |
| 11331 | esac |
| 11332 | for libname in $tlibs; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11333 | |
| 11334 | as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
| 11335 | echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
| 11336 | echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6 |
| 11337 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
| 11338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11339 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11340 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11341 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11342 | cat >conftest.$ac_ext <<_ACEOF |
| 11343 | /* confdefs.h. */ |
| 11344 | _ACEOF |
| 11345 | cat confdefs.h >>conftest.$ac_ext |
| 11346 | cat >>conftest.$ac_ext <<_ACEOF |
| 11347 | /* end confdefs.h. */ |
| 11348 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11349 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11350 | #ifdef __cplusplus |
| 11351 | extern "C" |
| 11352 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11353 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11354 | builtin and then its argument prototype would still apply. */ |
| 11355 | char tgetent (); |
| 11356 | int |
| 11357 | main () |
| 11358 | { |
| 11359 | tgetent (); |
| 11360 | ; |
| 11361 | return 0; |
| 11362 | } |
| 11363 | _ACEOF |
| 11364 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11366 | (eval $ac_link) 2>conftest.er1 |
| 11367 | ac_status=$? |
| 11368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11369 | rm -f conftest.er1 |
| 11370 | cat conftest.err >&5 |
| 11371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11372 | (exit $ac_status); } && |
| 11373 | { ac_try='test -z "$ac_c_werror_flag" |
| 11374 | || test ! -s conftest.err' |
| 11375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11376 | (eval $ac_try) 2>&5 |
| 11377 | ac_status=$? |
| 11378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11379 | (exit $ac_status); }; } && |
| 11380 | { ac_try='test -s conftest$ac_exeext' |
| 11381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11382 | (eval $ac_try) 2>&5 |
| 11383 | ac_status=$? |
| 11384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11385 | (exit $ac_status); }; }; then |
| 11386 | eval "$as_ac_Lib=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11387 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11388 | echo "$as_me: failed program was:" >&5 |
| 11389 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11390 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11391 | eval "$as_ac_Lib=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11392 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11393 | rm -f conftest.err conftest.$ac_objext \ |
| 11394 | conftest$ac_exeext conftest.$ac_ext |
| 11395 | LIBS=$ac_check_lib_save_LIBS |
| 11396 | fi |
| 11397 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
| 11398 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
| 11399 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
| 11400 | cat >>confdefs.h <<_ACEOF |
| 11401 | #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 |
| 11402 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11403 | |
| 11404 | LIBS="-l${libname} $LIBS" |
| 11405 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11406 | fi |
| 11407 | |
| 11408 | if test "x$olibs" != "x$LIBS"; then |
| 11409 | if test "$cross_compiling" = yes; then |
| 11410 | res="FAIL" |
| 11411 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11412 | cat >conftest.$ac_ext <<_ACEOF |
| 11413 | /* confdefs.h. */ |
| 11414 | _ACEOF |
| 11415 | cat confdefs.h >>conftest.$ac_ext |
| 11416 | cat >>conftest.$ac_ext <<_ACEOF |
| 11417 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11418 | |
| 11419 | #ifdef HAVE_TERMCAP_H |
| 11420 | # include <termcap.h> |
| 11421 | #endif |
| 11422 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11423 | _ACEOF |
| 11424 | rm -f conftest$ac_exeext |
| 11425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11426 | (eval $ac_link) 2>&5 |
| 11427 | ac_status=$? |
| 11428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11429 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11431 | (eval $ac_try) 2>&5 |
| 11432 | ac_status=$? |
| 11433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11434 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11435 | res="OK" |
| 11436 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11437 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11438 | echo "$as_me: failed program was:" >&5 |
| 11439 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11440 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11441 | ( exit $ac_status ) |
| 11442 | res="FAIL" |
| 11443 | fi |
| 11444 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11445 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11446 | if test "$res" = "OK"; then |
| 11447 | break |
| 11448 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11449 | echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
| 11450 | echo "${ECHO_T}$libname library is not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11451 | LIBS="$olibs" |
| 11452 | fi |
| 11453 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11454 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11455 | echo "$as_me:$LINENO: result: no terminal library found" >&5 |
| 11456 | echo "${ECHO_T}no terminal library found" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11457 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11458 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11459 | |
| 11460 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11461 | echo "$as_me:$LINENO: checking for tgetent()" >&5 |
| 11462 | echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6 |
| 11463 | cat >conftest.$ac_ext <<_ACEOF |
| 11464 | /* confdefs.h. */ |
| 11465 | _ACEOF |
| 11466 | cat confdefs.h >>conftest.$ac_ext |
| 11467 | cat >>conftest.$ac_ext <<_ACEOF |
| 11468 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11469 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11470 | int |
| 11471 | main () |
| 11472 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11473 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11474 | ; |
| 11475 | return 0; |
| 11476 | } |
| 11477 | _ACEOF |
| 11478 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11480 | (eval $ac_link) 2>conftest.er1 |
| 11481 | ac_status=$? |
| 11482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11483 | rm -f conftest.er1 |
| 11484 | cat conftest.err >&5 |
| 11485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11486 | (exit $ac_status); } && |
| 11487 | { ac_try='test -z "$ac_c_werror_flag" |
| 11488 | || test ! -s conftest.err' |
| 11489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11490 | (eval $ac_try) 2>&5 |
| 11491 | ac_status=$? |
| 11492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11493 | (exit $ac_status); }; } && |
| 11494 | { ac_try='test -s conftest$ac_exeext' |
| 11495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11496 | (eval $ac_try) 2>&5 |
| 11497 | ac_status=$? |
| 11498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11499 | (exit $ac_status); }; }; then |
| 11500 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11501 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11502 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11503 | echo "$as_me: failed program was:" >&5 |
| 11504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11505 | |
| 11506 | { { echo "$as_me:$LINENO: error: NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11507 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11508 | Or specify the name of the library with --with-tlib." >&5 |
| 11509 | echo "$as_me: error: NOT FOUND! |
| 11510 | You need to install a terminal library; for example ncurses. |
| 11511 | Or specify the name of the library with --with-tlib." >&2;} |
| 11512 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11513 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11514 | rm -f conftest.err conftest.$ac_objext \ |
| 11515 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11516 | fi |
| 11517 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11518 | echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 |
| 11519 | echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11520 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11521 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 11522 | echo "$as_me: error: failed to compile test program." >&2;} |
| 11523 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11524 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11525 | cat >conftest.$ac_ext <<_ACEOF |
| 11526 | /* confdefs.h. */ |
| 11527 | _ACEOF |
| 11528 | cat confdefs.h >>conftest.$ac_ext |
| 11529 | cat >>conftest.$ac_ext <<_ACEOF |
| 11530 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11531 | |
| 11532 | #ifdef HAVE_TERMCAP_H |
| 11533 | # include <termcap.h> |
| 11534 | #endif |
| 11535 | main() |
| 11536 | {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11537 | _ACEOF |
| 11538 | rm -f conftest$ac_exeext |
| 11539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11540 | (eval $ac_link) 2>&5 |
| 11541 | ac_status=$? |
| 11542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11543 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11545 | (eval $ac_try) 2>&5 |
| 11546 | ac_status=$? |
| 11547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11548 | (exit $ac_status); }; }; then |
| 11549 | echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5 |
| 11550 | echo "${ECHO_T}no -- we are in termcap land" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11551 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11552 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11553 | echo "$as_me: failed program was:" >&5 |
| 11554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11555 | |
| 11556 | ( exit $ac_status ) |
| 11557 | echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5 |
| 11558 | echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11559 | #define TERMINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11560 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11561 | |
| 11562 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11563 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11564 | fi |
| 11565 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11566 | if test "x$olibs" != "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11567 | echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
| 11568 | echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11569 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11570 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 11571 | echo "$as_me: error: failed to compile test program." >&2;} |
| 11572 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11573 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11574 | cat >conftest.$ac_ext <<_ACEOF |
| 11575 | /* confdefs.h. */ |
| 11576 | _ACEOF |
| 11577 | cat confdefs.h >>conftest.$ac_ext |
| 11578 | cat >>conftest.$ac_ext <<_ACEOF |
| 11579 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11580 | |
| 11581 | #ifdef HAVE_TERMCAP_H |
| 11582 | # include <termcap.h> |
| 11583 | #endif |
| 11584 | main() |
| 11585 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11586 | _ACEOF |
| 11587 | rm -f conftest$ac_exeext |
| 11588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11589 | (eval $ac_link) 2>&5 |
| 11590 | ac_status=$? |
| 11591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11592 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11594 | (eval $ac_try) 2>&5 |
| 11595 | ac_status=$? |
| 11596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11597 | (exit $ac_status); }; }; then |
| 11598 | echo "$as_me:$LINENO: result: zero" >&5 |
| 11599 | echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11600 | #define TGETENT_ZERO_ERR 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11601 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11602 | |
| 11603 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11604 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11605 | echo "$as_me: failed program was:" >&5 |
| 11606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11607 | |
| 11608 | ( exit $ac_status ) |
| 11609 | echo "$as_me:$LINENO: result: non-zero" >&5 |
| 11610 | echo "${ECHO_T}non-zero" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11611 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11612 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11613 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11614 | fi |
| 11615 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11616 | echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
| 11617 | echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6 |
| 11618 | cat >conftest.$ac_ext <<_ACEOF |
| 11619 | /* confdefs.h. */ |
| 11620 | _ACEOF |
| 11621 | cat confdefs.h >>conftest.$ac_ext |
| 11622 | cat >>conftest.$ac_ext <<_ACEOF |
| 11623 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11624 | |
| 11625 | #ifdef HAVE_TERMCAP_H |
| 11626 | # include <termcap.h> |
| 11627 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11628 | |
| 11629 | int |
| 11630 | main () |
| 11631 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11632 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11633 | ; |
| 11634 | return 0; |
| 11635 | } |
| 11636 | _ACEOF |
| 11637 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11639 | (eval $ac_link) 2>conftest.er1 |
| 11640 | ac_status=$? |
| 11641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11642 | rm -f conftest.er1 |
| 11643 | cat conftest.err >&5 |
| 11644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11645 | (exit $ac_status); } && |
| 11646 | { ac_try='test -z "$ac_c_werror_flag" |
| 11647 | || test ! -s conftest.err' |
| 11648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11649 | (eval $ac_try) 2>&5 |
| 11650 | ac_status=$? |
| 11651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11652 | (exit $ac_status); }; } && |
| 11653 | { ac_try='test -s conftest$ac_exeext' |
| 11654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11655 | (eval $ac_try) 2>&5 |
| 11656 | ac_status=$? |
| 11657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11658 | (exit $ac_status); }; }; then |
| 11659 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11660 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11661 | #define HAVE_OSPEED 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11662 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11663 | |
| 11664 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11665 | echo "$as_me: failed program was:" >&5 |
| 11666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11667 | |
| 11668 | echo "$as_me:$LINENO: result: no" >&5 |
| 11669 | echo "${ECHO_T}no" >&6 |
| 11670 | echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
| 11671 | echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6 |
| 11672 | cat >conftest.$ac_ext <<_ACEOF |
| 11673 | /* confdefs.h. */ |
| 11674 | _ACEOF |
| 11675 | cat confdefs.h >>conftest.$ac_ext |
| 11676 | cat >>conftest.$ac_ext <<_ACEOF |
| 11677 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11678 | |
| 11679 | #ifdef HAVE_TERMCAP_H |
| 11680 | # include <termcap.h> |
| 11681 | #endif |
| 11682 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11683 | |
| 11684 | int |
| 11685 | main () |
| 11686 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11687 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11688 | ; |
| 11689 | return 0; |
| 11690 | } |
| 11691 | _ACEOF |
| 11692 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11694 | (eval $ac_link) 2>conftest.er1 |
| 11695 | ac_status=$? |
| 11696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11697 | rm -f conftest.er1 |
| 11698 | cat conftest.err >&5 |
| 11699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11700 | (exit $ac_status); } && |
| 11701 | { ac_try='test -z "$ac_c_werror_flag" |
| 11702 | || test ! -s conftest.err' |
| 11703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11704 | (eval $ac_try) 2>&5 |
| 11705 | ac_status=$? |
| 11706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11707 | (exit $ac_status); }; } && |
| 11708 | { ac_try='test -s conftest$ac_exeext' |
| 11709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11710 | (eval $ac_try) 2>&5 |
| 11711 | ac_status=$? |
| 11712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11713 | (exit $ac_status); }; }; then |
| 11714 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11715 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11716 | #define OSPEED_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11717 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11718 | |
| 11719 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11720 | echo "$as_me: failed program was:" >&5 |
| 11721 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11722 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11723 | echo "$as_me:$LINENO: result: no" >&5 |
| 11724 | echo "${ECHO_T}no" >&6 |
| 11725 | fi |
| 11726 | rm -f conftest.err conftest.$ac_objext \ |
| 11727 | conftest$ac_exeext conftest.$ac_ext |
| 11728 | |
| 11729 | fi |
| 11730 | rm -f conftest.err conftest.$ac_objext \ |
| 11731 | conftest$ac_exeext conftest.$ac_ext |
| 11732 | |
| 11733 | echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
| 11734 | echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6 |
| 11735 | cat >conftest.$ac_ext <<_ACEOF |
| 11736 | /* confdefs.h. */ |
| 11737 | _ACEOF |
| 11738 | cat confdefs.h >>conftest.$ac_ext |
| 11739 | cat >>conftest.$ac_ext <<_ACEOF |
| 11740 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11741 | |
| 11742 | #ifdef HAVE_TERMCAP_H |
| 11743 | # include <termcap.h> |
| 11744 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11745 | |
| 11746 | int |
| 11747 | main () |
| 11748 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11749 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11750 | ; |
| 11751 | return 0; |
| 11752 | } |
| 11753 | _ACEOF |
| 11754 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11756 | (eval $ac_link) 2>conftest.er1 |
| 11757 | ac_status=$? |
| 11758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11759 | rm -f conftest.er1 |
| 11760 | cat conftest.err >&5 |
| 11761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11762 | (exit $ac_status); } && |
| 11763 | { ac_try='test -z "$ac_c_werror_flag" |
| 11764 | || test ! -s conftest.err' |
| 11765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11766 | (eval $ac_try) 2>&5 |
| 11767 | ac_status=$? |
| 11768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11769 | (exit $ac_status); }; } && |
| 11770 | { ac_try='test -s conftest$ac_exeext' |
| 11771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11772 | (eval $ac_try) 2>&5 |
| 11773 | ac_status=$? |
| 11774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11775 | (exit $ac_status); }; }; then |
| 11776 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11777 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11778 | #define HAVE_UP_BC_PC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11779 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11780 | |
| 11781 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11782 | echo "$as_me: failed program was:" >&5 |
| 11783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11784 | |
| 11785 | echo "$as_me:$LINENO: result: no" >&5 |
| 11786 | echo "${ECHO_T}no" >&6 |
| 11787 | echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
| 11788 | echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6 |
| 11789 | cat >conftest.$ac_ext <<_ACEOF |
| 11790 | /* confdefs.h. */ |
| 11791 | _ACEOF |
| 11792 | cat confdefs.h >>conftest.$ac_ext |
| 11793 | cat >>conftest.$ac_ext <<_ACEOF |
| 11794 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11795 | |
| 11796 | #ifdef HAVE_TERMCAP_H |
| 11797 | # include <termcap.h> |
| 11798 | #endif |
| 11799 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11800 | |
| 11801 | int |
| 11802 | main () |
| 11803 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11804 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11805 | ; |
| 11806 | return 0; |
| 11807 | } |
| 11808 | _ACEOF |
| 11809 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11811 | (eval $ac_link) 2>conftest.er1 |
| 11812 | ac_status=$? |
| 11813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11814 | rm -f conftest.er1 |
| 11815 | cat conftest.err >&5 |
| 11816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11817 | (exit $ac_status); } && |
| 11818 | { ac_try='test -z "$ac_c_werror_flag" |
| 11819 | || test ! -s conftest.err' |
| 11820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11821 | (eval $ac_try) 2>&5 |
| 11822 | ac_status=$? |
| 11823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11824 | (exit $ac_status); }; } && |
| 11825 | { ac_try='test -s conftest$ac_exeext' |
| 11826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11827 | (eval $ac_try) 2>&5 |
| 11828 | ac_status=$? |
| 11829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11830 | (exit $ac_status); }; }; then |
| 11831 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11832 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11833 | #define UP_BC_PC_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11834 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11835 | |
| 11836 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11837 | echo "$as_me: failed program was:" >&5 |
| 11838 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11839 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11840 | echo "$as_me:$LINENO: result: no" >&5 |
| 11841 | echo "${ECHO_T}no" >&6 |
| 11842 | fi |
| 11843 | rm -f conftest.err conftest.$ac_objext \ |
| 11844 | conftest$ac_exeext conftest.$ac_ext |
| 11845 | |
| 11846 | fi |
| 11847 | rm -f conftest.err conftest.$ac_objext \ |
| 11848 | conftest$ac_exeext conftest.$ac_ext |
| 11849 | |
| 11850 | echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
| 11851 | echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6 |
| 11852 | cat >conftest.$ac_ext <<_ACEOF |
| 11853 | /* confdefs.h. */ |
| 11854 | _ACEOF |
| 11855 | cat confdefs.h >>conftest.$ac_ext |
| 11856 | cat >>conftest.$ac_ext <<_ACEOF |
| 11857 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11858 | |
| 11859 | #ifdef HAVE_TERMCAP_H |
| 11860 | # include <termcap.h> |
| 11861 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11862 | |
| 11863 | int |
| 11864 | main () |
| 11865 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11866 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11867 | ; |
| 11868 | return 0; |
| 11869 | } |
| 11870 | _ACEOF |
| 11871 | rm -f conftest.$ac_objext |
| 11872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11873 | (eval $ac_compile) 2>conftest.er1 |
| 11874 | ac_status=$? |
| 11875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11876 | rm -f conftest.er1 |
| 11877 | cat conftest.err >&5 |
| 11878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11879 | (exit $ac_status); } && |
| 11880 | { ac_try='test -z "$ac_c_werror_flag" |
| 11881 | || test ! -s conftest.err' |
| 11882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11883 | (eval $ac_try) 2>&5 |
| 11884 | ac_status=$? |
| 11885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11886 | (exit $ac_status); }; } && |
| 11887 | { ac_try='test -s conftest.$ac_objext' |
| 11888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11889 | (eval $ac_try) 2>&5 |
| 11890 | ac_status=$? |
| 11891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11892 | (exit $ac_status); }; }; then |
| 11893 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11894 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11895 | #define HAVE_OUTFUNTYPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11896 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11897 | |
| 11898 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11899 | echo "$as_me: failed program was:" >&5 |
| 11900 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11901 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11902 | echo "$as_me:$LINENO: result: no" >&5 |
| 11903 | echo "${ECHO_T}no" >&6 |
| 11904 | fi |
| 11905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11906 | |
| 11907 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 11908 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 11909 | cat >conftest.$ac_ext <<_ACEOF |
| 11910 | /* confdefs.h. */ |
| 11911 | _ACEOF |
| 11912 | cat confdefs.h >>conftest.$ac_ext |
| 11913 | cat >>conftest.$ac_ext <<_ACEOF |
| 11914 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11915 | |
| 11916 | #include <sys/types.h> |
| 11917 | #include <sys/time.h> |
| 11918 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11919 | int |
| 11920 | main () |
| 11921 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11922 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11923 | ; |
| 11924 | return 0; |
| 11925 | } |
| 11926 | _ACEOF |
| 11927 | rm -f conftest.$ac_objext |
| 11928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11929 | (eval $ac_compile) 2>conftest.er1 |
| 11930 | ac_status=$? |
| 11931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11932 | rm -f conftest.er1 |
| 11933 | cat conftest.err >&5 |
| 11934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11935 | (exit $ac_status); } && |
| 11936 | { ac_try='test -z "$ac_c_werror_flag" |
| 11937 | || test ! -s conftest.err' |
| 11938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11939 | (eval $ac_try) 2>&5 |
| 11940 | ac_status=$? |
| 11941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11942 | (exit $ac_status); }; } && |
| 11943 | { ac_try='test -s conftest.$ac_objext' |
| 11944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11945 | (eval $ac_try) 2>&5 |
| 11946 | ac_status=$? |
| 11947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11948 | (exit $ac_status); }; }; then |
| 11949 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11950 | echo "${ECHO_T}yes" >&6 |
| 11951 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11952 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11953 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11954 | |
| 11955 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11956 | echo "$as_me: failed program was:" >&5 |
| 11957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11958 | |
| 11959 | echo "$as_me:$LINENO: result: no" >&5 |
| 11960 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11961 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11963 | |
| 11964 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11965 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 11966 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11967 | if test -r /dev/ptc; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11968 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11969 | #define HAVE_DEV_PTC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11970 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11971 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11972 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11973 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11974 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11975 | echo "$as_me:$LINENO: result: no" >&5 |
| 11976 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11977 | fi |
| 11978 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11979 | echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 |
| 11980 | echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11981 | if test -c /dev/ptmx ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11982 | cat >conftest.$ac_ext <<_ACEOF |
| 11983 | /* confdefs.h. */ |
| 11984 | _ACEOF |
| 11985 | cat confdefs.h >>conftest.$ac_ext |
| 11986 | cat >>conftest.$ac_ext <<_ACEOF |
| 11987 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11988 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11989 | int |
| 11990 | main () |
| 11991 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11992 | ptsname(0);grantpt(0);unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11993 | ; |
| 11994 | return 0; |
| 11995 | } |
| 11996 | _ACEOF |
| 11997 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11999 | (eval $ac_link) 2>conftest.er1 |
| 12000 | ac_status=$? |
| 12001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12002 | rm -f conftest.er1 |
| 12003 | cat conftest.err >&5 |
| 12004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12005 | (exit $ac_status); } && |
| 12006 | { ac_try='test -z "$ac_c_werror_flag" |
| 12007 | || test ! -s conftest.err' |
| 12008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12009 | (eval $ac_try) 2>&5 |
| 12010 | ac_status=$? |
| 12011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12012 | (exit $ac_status); }; } && |
| 12013 | { ac_try='test -s conftest$ac_exeext' |
| 12014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12015 | (eval $ac_try) 2>&5 |
| 12016 | ac_status=$? |
| 12017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12018 | (exit $ac_status); }; }; then |
| 12019 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12020 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12021 | #define HAVE_SVR4_PTYS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12022 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12023 | |
| 12024 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12025 | echo "$as_me: failed program was:" >&5 |
| 12026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12027 | |
| 12028 | echo "$as_me:$LINENO: result: no" >&5 |
| 12029 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12030 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12031 | rm -f conftest.err conftest.$ac_objext \ |
| 12032 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12033 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12034 | echo "$as_me:$LINENO: result: no" >&5 |
| 12035 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12036 | fi |
| 12037 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12038 | echo "$as_me:$LINENO: checking for ptyranges" >&5 |
| 12039 | echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12040 | if test -d /dev/ptym ; then |
| 12041 | pdir='/dev/ptym' |
| 12042 | else |
| 12043 | pdir='/dev' |
| 12044 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12045 | cat >conftest.$ac_ext <<_ACEOF |
| 12046 | /* confdefs.h. */ |
| 12047 | _ACEOF |
| 12048 | cat confdefs.h >>conftest.$ac_ext |
| 12049 | cat >>conftest.$ac_ext <<_ACEOF |
| 12050 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12051 | #ifdef M_UNIX |
| 12052 | yes; |
| 12053 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12054 | |
| 12055 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12056 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12057 | $EGREP "yes" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12058 | ptys=`echo /dev/ptyp??` |
| 12059 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12060 | ptys=`echo $pdir/pty??` |
| 12061 | fi |
| 12062 | rm -f conftest* |
| 12063 | |
| 12064 | if test "$ptys" != "$pdir/pty??" ; then |
| 12065 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 12066 | p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12067 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12068 | #define PTYRANGE0 "$p0" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12069 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12070 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12071 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12072 | #define PTYRANGE1 "$p1" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12073 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12074 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12075 | echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
| 12076 | echo "${ECHO_T}$p0 / $p1" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12077 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12078 | echo "$as_me:$LINENO: result: don't know" >&5 |
| 12079 | echo "${ECHO_T}don't know" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12080 | fi |
| 12081 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12082 | echo "$as_me:$LINENO: checking default tty permissions/group" >&5 |
| 12083 | echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12084 | rm -f conftest_grp |
| 12085 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12086 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12087 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12088 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12089 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12090 | cat >conftest.$ac_ext <<_ACEOF |
| 12091 | /* confdefs.h. */ |
| 12092 | _ACEOF |
| 12093 | cat confdefs.h >>conftest.$ac_ext |
| 12094 | cat >>conftest.$ac_ext <<_ACEOF |
| 12095 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12096 | |
| 12097 | #include <sys/types.h> |
| 12098 | #include <sys/stat.h> |
| 12099 | #include <stdio.h> |
| 12100 | main() |
| 12101 | { |
| 12102 | struct stat sb; |
| 12103 | char *x,*ttyname(); |
| 12104 | int om, m; |
| 12105 | FILE *fp; |
| 12106 | |
| 12107 | if (!(x = ttyname(0))) exit(1); |
| 12108 | if (stat(x, &sb)) exit(1); |
| 12109 | om = sb.st_mode; |
| 12110 | if (om & 002) exit(0); |
| 12111 | m = system("mesg y"); |
| 12112 | if (m == -1 || m == 127) exit(1); |
| 12113 | if (stat(x, &sb)) exit(1); |
| 12114 | m = sb.st_mode; |
| 12115 | if (chmod(x, om)) exit(1); |
| 12116 | if (m & 002) exit(0); |
| 12117 | if (sb.st_gid == getgid()) exit(1); |
| 12118 | if (!(fp=fopen("conftest_grp", "w"))) |
| 12119 | exit(1); |
| 12120 | fprintf(fp, "%d\n", sb.st_gid); |
| 12121 | fclose(fp); |
| 12122 | exit(0); |
| 12123 | } |
| 12124 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12125 | _ACEOF |
| 12126 | rm -f conftest$ac_exeext |
| 12127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12128 | (eval $ac_link) 2>&5 |
| 12129 | ac_status=$? |
| 12130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12131 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12133 | (eval $ac_try) 2>&5 |
| 12134 | ac_status=$? |
| 12135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12136 | (exit $ac_status); }; }; then |
| 12137 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12138 | if test -f conftest_grp; then |
| 12139 | ptygrp=`cat conftest_grp` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12140 | echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5 |
| 12141 | echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6 |
| 12142 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12143 | #define PTYMODE 0620 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12144 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12145 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12146 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12147 | #define PTYGROUP $ptygrp |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12148 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12149 | |
| 12150 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12151 | echo "$as_me:$LINENO: result: ptys are world accessable" >&5 |
| 12152 | echo "${ECHO_T}ptys are world accessable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12153 | fi |
| 12154 | |
| 12155 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12156 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12157 | echo "$as_me: failed program was:" >&5 |
| 12158 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12159 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12160 | ( exit $ac_status ) |
| 12161 | echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5 |
| 12162 | echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6 |
| 12163 | fi |
| 12164 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12165 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12166 | rm -f conftest_grp |
| 12167 | |
| 12168 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12169 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 12170 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 12171 | if test "${ac_cv_type_signal+set}" = set; then |
| 12172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12173 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12174 | cat >conftest.$ac_ext <<_ACEOF |
| 12175 | /* confdefs.h. */ |
| 12176 | _ACEOF |
| 12177 | cat confdefs.h >>conftest.$ac_ext |
| 12178 | cat >>conftest.$ac_ext <<_ACEOF |
| 12179 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12180 | #include <sys/types.h> |
| 12181 | #include <signal.h> |
| 12182 | #ifdef signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12183 | # undef signal |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12184 | #endif |
| 12185 | #ifdef __cplusplus |
| 12186 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 12187 | #else |
| 12188 | void (*signal ()) (); |
| 12189 | #endif |
| 12190 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12191 | int |
| 12192 | main () |
| 12193 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12194 | int i; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12195 | ; |
| 12196 | return 0; |
| 12197 | } |
| 12198 | _ACEOF |
| 12199 | rm -f conftest.$ac_objext |
| 12200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12201 | (eval $ac_compile) 2>conftest.er1 |
| 12202 | ac_status=$? |
| 12203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12204 | rm -f conftest.er1 |
| 12205 | cat conftest.err >&5 |
| 12206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12207 | (exit $ac_status); } && |
| 12208 | { ac_try='test -z "$ac_c_werror_flag" |
| 12209 | || test ! -s conftest.err' |
| 12210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12211 | (eval $ac_try) 2>&5 |
| 12212 | ac_status=$? |
| 12213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12214 | (exit $ac_status); }; } && |
| 12215 | { ac_try='test -s conftest.$ac_objext' |
| 12216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12217 | (eval $ac_try) 2>&5 |
| 12218 | ac_status=$? |
| 12219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12220 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12221 | ac_cv_type_signal=void |
| 12222 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12223 | echo "$as_me: failed program was:" >&5 |
| 12224 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12225 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12226 | ac_cv_type_signal=int |
| 12227 | fi |
| 12228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12229 | fi |
| 12230 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 12231 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 12232 | |
| 12233 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12234 | #define RETSIGTYPE $ac_cv_type_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12235 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12236 | |
| 12237 | |
| 12238 | |
| 12239 | if test $ac_cv_type_signal = void; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12240 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12241 | #define SIGRETURN return |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12242 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12243 | |
| 12244 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12245 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12246 | #define SIGRETURN return 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12247 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12248 | |
| 12249 | fi |
| 12250 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12251 | echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
| 12252 | echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6 |
| 12253 | cat >conftest.$ac_ext <<_ACEOF |
| 12254 | /* confdefs.h. */ |
| 12255 | _ACEOF |
| 12256 | cat confdefs.h >>conftest.$ac_ext |
| 12257 | cat >>conftest.$ac_ext <<_ACEOF |
| 12258 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12259 | |
| 12260 | #include <signal.h> |
| 12261 | test_sig() |
| 12262 | { |
| 12263 | struct sigcontext *scont; |
| 12264 | scont = (struct sigcontext *)0; |
| 12265 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12266 | } |
| 12267 | int |
| 12268 | main () |
| 12269 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12270 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12271 | ; |
| 12272 | return 0; |
| 12273 | } |
| 12274 | _ACEOF |
| 12275 | rm -f conftest.$ac_objext |
| 12276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12277 | (eval $ac_compile) 2>conftest.er1 |
| 12278 | ac_status=$? |
| 12279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12280 | rm -f conftest.er1 |
| 12281 | cat conftest.err >&5 |
| 12282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12283 | (exit $ac_status); } && |
| 12284 | { ac_try='test -z "$ac_c_werror_flag" |
| 12285 | || test ! -s conftest.err' |
| 12286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12287 | (eval $ac_try) 2>&5 |
| 12288 | ac_status=$? |
| 12289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12290 | (exit $ac_status); }; } && |
| 12291 | { ac_try='test -s conftest.$ac_objext' |
| 12292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12293 | (eval $ac_try) 2>&5 |
| 12294 | ac_status=$? |
| 12295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12296 | (exit $ac_status); }; }; then |
| 12297 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12298 | echo "${ECHO_T}yes" >&6 |
| 12299 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12300 | #define HAVE_SIGCONTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12301 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12302 | |
| 12303 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12304 | echo "$as_me: failed program was:" >&5 |
| 12305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12306 | |
| 12307 | echo "$as_me:$LINENO: result: no" >&5 |
| 12308 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12309 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12311 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12312 | echo "$as_me:$LINENO: checking getcwd implementation" >&5 |
| 12313 | echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12314 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12315 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12316 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12317 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12318 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12319 | cat >conftest.$ac_ext <<_ACEOF |
| 12320 | /* confdefs.h. */ |
| 12321 | _ACEOF |
| 12322 | cat confdefs.h >>conftest.$ac_ext |
| 12323 | cat >>conftest.$ac_ext <<_ACEOF |
| 12324 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12325 | |
| 12326 | char *dagger[] = { "IFS=pwd", 0 }; |
| 12327 | main() |
| 12328 | { |
| 12329 | char buffer[500]; |
| 12330 | extern char **environ; |
| 12331 | environ = dagger; |
| 12332 | return getcwd(buffer, 500) ? 0 : 1; |
| 12333 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12334 | _ACEOF |
| 12335 | rm -f conftest$ac_exeext |
| 12336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12337 | (eval $ac_link) 2>&5 |
| 12338 | ac_status=$? |
| 12339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12340 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12342 | (eval $ac_try) 2>&5 |
| 12343 | ac_status=$? |
| 12344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12345 | (exit $ac_status); }; }; then |
| 12346 | echo "$as_me:$LINENO: result: it is usable" >&5 |
| 12347 | echo "${ECHO_T}it is usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12348 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12349 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12350 | echo "$as_me: failed program was:" >&5 |
| 12351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12352 | |
| 12353 | ( exit $ac_status ) |
| 12354 | echo "$as_me:$LINENO: result: it stinks" >&5 |
| 12355 | echo "${ECHO_T}it stinks" >&6 |
| 12356 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12357 | #define BAD_GETCWD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12358 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12359 | |
| 12360 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12361 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12362 | fi |
| 12363 | |
| 12364 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12365 | |
| 12366 | |
| 12367 | |
| 12368 | |
| 12369 | |
| 12370 | |
| 12371 | |
| 12372 | |
| 12373 | |
| 12374 | |
| 12375 | |
| 12376 | |
| 12377 | |
| 12378 | |
| 12379 | |
| 12380 | |
| 12381 | |
| 12382 | |
| 12383 | |
| 12384 | |
| 12385 | |
| 12386 | |
| 12387 | |
| 12388 | |
| 12389 | |
| 12390 | |
| 12391 | |
| 12392 | |
| 12393 | |
| 12394 | |
| 12395 | |
| 12396 | |
| 12397 | |
| 12398 | |
| 12399 | |
| 12400 | |
| 12401 | |
| 12402 | |
| 12403 | |
| 12404 | |
| 12405 | |
| 12406 | |
| 12407 | |
| 12408 | |
| 12409 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12410 | for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
| 12411 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
| 12412 | memset nanosleep opendir putenv qsort readlink select setenv \ |
| 12413 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 12414 | sigvec strcasecmp strerror strftime stricmp strncasecmp \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 12415 | strnicmp strpbrk strtol tgetent towlower towupper iswupper \ |
| 12416 | usleep utime utimes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12417 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12418 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12419 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12420 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12421 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12423 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12424 | cat >conftest.$ac_ext <<_ACEOF |
| 12425 | /* confdefs.h. */ |
| 12426 | _ACEOF |
| 12427 | cat confdefs.h >>conftest.$ac_ext |
| 12428 | cat >>conftest.$ac_ext <<_ACEOF |
| 12429 | /* end confdefs.h. */ |
| 12430 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12431 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12432 | #define $ac_func innocuous_$ac_func |
| 12433 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12434 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12435 | which can conflict with char $ac_func (); below. |
| 12436 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12437 | <limits.h> exists even on freestanding compilers. */ |
| 12438 | |
| 12439 | #ifdef __STDC__ |
| 12440 | # include <limits.h> |
| 12441 | #else |
| 12442 | # include <assert.h> |
| 12443 | #endif |
| 12444 | |
| 12445 | #undef $ac_func |
| 12446 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12447 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12448 | #ifdef __cplusplus |
| 12449 | extern "C" |
| 12450 | { |
| 12451 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12452 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12453 | builtin and then its argument prototype would still apply. */ |
| 12454 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12455 | /* The GNU C library defines this for functions which it implements |
| 12456 | to always fail with ENOSYS. Some functions are actually named |
| 12457 | something starting with __ and the normal name is an alias. */ |
| 12458 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12459 | choke me |
| 12460 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12461 | char (*f) () = $ac_func; |
| 12462 | #endif |
| 12463 | #ifdef __cplusplus |
| 12464 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12465 | #endif |
| 12466 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12467 | int |
| 12468 | main () |
| 12469 | { |
| 12470 | return f != $ac_func; |
| 12471 | ; |
| 12472 | return 0; |
| 12473 | } |
| 12474 | _ACEOF |
| 12475 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12477 | (eval $ac_link) 2>conftest.er1 |
| 12478 | ac_status=$? |
| 12479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12480 | rm -f conftest.er1 |
| 12481 | cat conftest.err >&5 |
| 12482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12483 | (exit $ac_status); } && |
| 12484 | { ac_try='test -z "$ac_c_werror_flag" |
| 12485 | || test ! -s conftest.err' |
| 12486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12487 | (eval $ac_try) 2>&5 |
| 12488 | ac_status=$? |
| 12489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12490 | (exit $ac_status); }; } && |
| 12491 | { ac_try='test -s conftest$ac_exeext' |
| 12492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12493 | (eval $ac_try) 2>&5 |
| 12494 | ac_status=$? |
| 12495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12496 | (exit $ac_status); }; }; then |
| 12497 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12498 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12499 | echo "$as_me: failed program was:" >&5 |
| 12500 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12501 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12502 | eval "$as_ac_var=no" |
| 12503 | fi |
| 12504 | rm -f conftest.err conftest.$ac_objext \ |
| 12505 | conftest$ac_exeext conftest.$ac_ext |
| 12506 | fi |
| 12507 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12508 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12509 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12510 | cat >>confdefs.h <<_ACEOF |
| 12511 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12512 | _ACEOF |
| 12513 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12514 | fi |
| 12515 | done |
| 12516 | |
| 12517 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12518 | echo "$as_me:$LINENO: checking for st_blksize" >&5 |
| 12519 | echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6 |
| 12520 | cat >conftest.$ac_ext <<_ACEOF |
| 12521 | /* confdefs.h. */ |
| 12522 | _ACEOF |
| 12523 | cat confdefs.h >>conftest.$ac_ext |
| 12524 | cat >>conftest.$ac_ext <<_ACEOF |
| 12525 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12526 | #include <sys/types.h> |
| 12527 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12528 | int |
| 12529 | main () |
| 12530 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12531 | struct stat st; |
| 12532 | int n; |
| 12533 | |
| 12534 | stat("/", &st); |
| 12535 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12536 | ; |
| 12537 | return 0; |
| 12538 | } |
| 12539 | _ACEOF |
| 12540 | rm -f conftest.$ac_objext |
| 12541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12542 | (eval $ac_compile) 2>conftest.er1 |
| 12543 | ac_status=$? |
| 12544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12545 | rm -f conftest.er1 |
| 12546 | cat conftest.err >&5 |
| 12547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12548 | (exit $ac_status); } && |
| 12549 | { ac_try='test -z "$ac_c_werror_flag" |
| 12550 | || test ! -s conftest.err' |
| 12551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12552 | (eval $ac_try) 2>&5 |
| 12553 | ac_status=$? |
| 12554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12555 | (exit $ac_status); }; } && |
| 12556 | { ac_try='test -s conftest.$ac_objext' |
| 12557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12558 | (eval $ac_try) 2>&5 |
| 12559 | ac_status=$? |
| 12560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12561 | (exit $ac_status); }; }; then |
| 12562 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12563 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12564 | #define HAVE_ST_BLKSIZE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12565 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12566 | |
| 12567 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12568 | echo "$as_me: failed program was:" >&5 |
| 12569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12570 | |
| 12571 | echo "$as_me:$LINENO: result: no" >&5 |
| 12572 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12573 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12575 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12576 | echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
| 12577 | echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12578 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12579 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12580 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12581 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12582 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12583 | cat >conftest.$ac_ext <<_ACEOF |
| 12584 | /* confdefs.h. */ |
| 12585 | _ACEOF |
| 12586 | cat confdefs.h >>conftest.$ac_ext |
| 12587 | cat >>conftest.$ac_ext <<_ACEOF |
| 12588 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12589 | #include <sys/types.h> |
| 12590 | #include <sys/stat.h> |
| 12591 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12592 | _ACEOF |
| 12593 | rm -f conftest$ac_exeext |
| 12594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12595 | (eval $ac_link) 2>&5 |
| 12596 | ac_status=$? |
| 12597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12598 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12600 | (eval $ac_try) 2>&5 |
| 12601 | ac_status=$? |
| 12602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12603 | (exit $ac_status); }; }; then |
| 12604 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12605 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12606 | #define STAT_IGNORES_SLASH 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12607 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12608 | |
| 12609 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12610 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12611 | echo "$as_me: failed program was:" >&5 |
| 12612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12613 | |
| 12614 | ( exit $ac_status ) |
| 12615 | echo "$as_me:$LINENO: result: no" >&5 |
| 12616 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12617 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12618 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12619 | fi |
| 12620 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12621 | echo "$as_me:$LINENO: checking for iconv_open()" >&5 |
| 12622 | echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12623 | save_LIBS="$LIBS" |
| 12624 | LIBS="$LIBS -liconv" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12625 | cat >conftest.$ac_ext <<_ACEOF |
| 12626 | /* confdefs.h. */ |
| 12627 | _ACEOF |
| 12628 | cat confdefs.h >>conftest.$ac_ext |
| 12629 | cat >>conftest.$ac_ext <<_ACEOF |
| 12630 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12631 | |
| 12632 | #ifdef HAVE_ICONV_H |
| 12633 | # include <iconv.h> |
| 12634 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12635 | |
| 12636 | int |
| 12637 | main () |
| 12638 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12639 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12640 | ; |
| 12641 | return 0; |
| 12642 | } |
| 12643 | _ACEOF |
| 12644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12646 | (eval $ac_link) 2>conftest.er1 |
| 12647 | ac_status=$? |
| 12648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12649 | rm -f conftest.er1 |
| 12650 | cat conftest.err >&5 |
| 12651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12652 | (exit $ac_status); } && |
| 12653 | { ac_try='test -z "$ac_c_werror_flag" |
| 12654 | || test ! -s conftest.err' |
| 12655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12656 | (eval $ac_try) 2>&5 |
| 12657 | ac_status=$? |
| 12658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12659 | (exit $ac_status); }; } && |
| 12660 | { ac_try='test -s conftest$ac_exeext' |
| 12661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12662 | (eval $ac_try) 2>&5 |
| 12663 | ac_status=$? |
| 12664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12665 | (exit $ac_status); }; }; then |
| 12666 | echo "$as_me:$LINENO: result: yes; with -liconv" >&5 |
| 12667 | echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12668 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12669 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12670 | |
| 12671 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12672 | echo "$as_me: failed program was:" >&5 |
| 12673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12674 | |
| 12675 | LIBS="$save_LIBS" |
| 12676 | cat >conftest.$ac_ext <<_ACEOF |
| 12677 | /* confdefs.h. */ |
| 12678 | _ACEOF |
| 12679 | cat confdefs.h >>conftest.$ac_ext |
| 12680 | cat >>conftest.$ac_ext <<_ACEOF |
| 12681 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12682 | |
| 12683 | #ifdef HAVE_ICONV_H |
| 12684 | # include <iconv.h> |
| 12685 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12686 | |
| 12687 | int |
| 12688 | main () |
| 12689 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12690 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12691 | ; |
| 12692 | return 0; |
| 12693 | } |
| 12694 | _ACEOF |
| 12695 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12697 | (eval $ac_link) 2>conftest.er1 |
| 12698 | ac_status=$? |
| 12699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12700 | rm -f conftest.er1 |
| 12701 | cat conftest.err >&5 |
| 12702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12703 | (exit $ac_status); } && |
| 12704 | { ac_try='test -z "$ac_c_werror_flag" |
| 12705 | || test ! -s conftest.err' |
| 12706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12707 | (eval $ac_try) 2>&5 |
| 12708 | ac_status=$? |
| 12709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12710 | (exit $ac_status); }; } && |
| 12711 | { ac_try='test -s conftest$ac_exeext' |
| 12712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12713 | (eval $ac_try) 2>&5 |
| 12714 | ac_status=$? |
| 12715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12716 | (exit $ac_status); }; }; then |
| 12717 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12718 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12719 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12720 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12721 | |
| 12722 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12723 | echo "$as_me: failed program was:" >&5 |
| 12724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12725 | |
| 12726 | echo "$as_me:$LINENO: result: no" >&5 |
| 12727 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12728 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12729 | rm -f conftest.err conftest.$ac_objext \ |
| 12730 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12731 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12732 | rm -f conftest.err conftest.$ac_objext \ |
| 12733 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12734 | |
| 12735 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12736 | echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
| 12737 | echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6 |
| 12738 | cat >conftest.$ac_ext <<_ACEOF |
| 12739 | /* confdefs.h. */ |
| 12740 | _ACEOF |
| 12741 | cat confdefs.h >>conftest.$ac_ext |
| 12742 | cat >>conftest.$ac_ext <<_ACEOF |
| 12743 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12744 | |
| 12745 | #ifdef HAVE_LANGINFO_H |
| 12746 | # include <langinfo.h> |
| 12747 | #endif |
| 12748 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12749 | int |
| 12750 | main () |
| 12751 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12752 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12753 | ; |
| 12754 | return 0; |
| 12755 | } |
| 12756 | _ACEOF |
| 12757 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12759 | (eval $ac_link) 2>conftest.er1 |
| 12760 | ac_status=$? |
| 12761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12762 | rm -f conftest.er1 |
| 12763 | cat conftest.err >&5 |
| 12764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12765 | (exit $ac_status); } && |
| 12766 | { ac_try='test -z "$ac_c_werror_flag" |
| 12767 | || test ! -s conftest.err' |
| 12768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12769 | (eval $ac_try) 2>&5 |
| 12770 | ac_status=$? |
| 12771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12772 | (exit $ac_status); }; } && |
| 12773 | { ac_try='test -s conftest$ac_exeext' |
| 12774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12775 | (eval $ac_try) 2>&5 |
| 12776 | ac_status=$? |
| 12777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12778 | (exit $ac_status); }; }; then |
| 12779 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12780 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12781 | #define HAVE_NL_LANGINFO_CODESET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12782 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12783 | |
| 12784 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12785 | echo "$as_me: failed program was:" >&5 |
| 12786 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12787 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12788 | echo "$as_me:$LINENO: result: no" >&5 |
| 12789 | echo "${ECHO_T}no" >&6 |
| 12790 | fi |
| 12791 | rm -f conftest.err conftest.$ac_objext \ |
| 12792 | conftest$ac_exeext conftest.$ac_ext |
| 12793 | |
| 12794 | echo "$as_me:$LINENO: checking --disable-acl argument" >&5 |
| 12795 | echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12796 | # Check whether --enable-acl or --disable-acl was given. |
| 12797 | if test "${enable_acl+set}" = set; then |
| 12798 | enableval="$enable_acl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12799 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12800 | else |
| 12801 | enable_acl="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12802 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12803 | if test "$enable_acl" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12804 | echo "$as_me:$LINENO: result: no" >&5 |
| 12805 | echo "${ECHO_T}no" >&6 |
| 12806 | echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
| 12807 | echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6 |
| 12808 | if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
| 12809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12810 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12811 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12812 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12813 | cat >conftest.$ac_ext <<_ACEOF |
| 12814 | /* confdefs.h. */ |
| 12815 | _ACEOF |
| 12816 | cat confdefs.h >>conftest.$ac_ext |
| 12817 | cat >>conftest.$ac_ext <<_ACEOF |
| 12818 | /* end confdefs.h. */ |
| 12819 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12820 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12821 | #ifdef __cplusplus |
| 12822 | extern "C" |
| 12823 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12824 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12825 | builtin and then its argument prototype would still apply. */ |
| 12826 | char acl_get_file (); |
| 12827 | int |
| 12828 | main () |
| 12829 | { |
| 12830 | acl_get_file (); |
| 12831 | ; |
| 12832 | return 0; |
| 12833 | } |
| 12834 | _ACEOF |
| 12835 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12837 | (eval $ac_link) 2>conftest.er1 |
| 12838 | ac_status=$? |
| 12839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12840 | rm -f conftest.er1 |
| 12841 | cat conftest.err >&5 |
| 12842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12843 | (exit $ac_status); } && |
| 12844 | { ac_try='test -z "$ac_c_werror_flag" |
| 12845 | || test ! -s conftest.err' |
| 12846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12847 | (eval $ac_try) 2>&5 |
| 12848 | ac_status=$? |
| 12849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12850 | (exit $ac_status); }; } && |
| 12851 | { ac_try='test -s conftest$ac_exeext' |
| 12852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12853 | (eval $ac_try) 2>&5 |
| 12854 | ac_status=$? |
| 12855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12856 | (exit $ac_status); }; }; then |
| 12857 | ac_cv_lib_posix1e_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12858 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12859 | echo "$as_me: failed program was:" >&5 |
| 12860 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12861 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12862 | ac_cv_lib_posix1e_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12863 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12864 | rm -f conftest.err conftest.$ac_objext \ |
| 12865 | conftest$ac_exeext conftest.$ac_ext |
| 12866 | LIBS=$ac_check_lib_save_LIBS |
| 12867 | fi |
| 12868 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 12869 | echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6 |
| 12870 | if test $ac_cv_lib_posix1e_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12871 | LIBS="$LIBS -lposix1e" |
| 12872 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12873 | echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
| 12874 | echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6 |
| 12875 | if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
| 12876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12877 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12878 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12879 | LIBS="-lacl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12880 | cat >conftest.$ac_ext <<_ACEOF |
| 12881 | /* confdefs.h. */ |
| 12882 | _ACEOF |
| 12883 | cat confdefs.h >>conftest.$ac_ext |
| 12884 | cat >>conftest.$ac_ext <<_ACEOF |
| 12885 | /* end confdefs.h. */ |
| 12886 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12887 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12888 | #ifdef __cplusplus |
| 12889 | extern "C" |
| 12890 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12891 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12892 | builtin and then its argument prototype would still apply. */ |
| 12893 | char acl_get_file (); |
| 12894 | int |
| 12895 | main () |
| 12896 | { |
| 12897 | acl_get_file (); |
| 12898 | ; |
| 12899 | return 0; |
| 12900 | } |
| 12901 | _ACEOF |
| 12902 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12903 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12904 | (eval $ac_link) 2>conftest.er1 |
| 12905 | ac_status=$? |
| 12906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12907 | rm -f conftest.er1 |
| 12908 | cat conftest.err >&5 |
| 12909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12910 | (exit $ac_status); } && |
| 12911 | { ac_try='test -z "$ac_c_werror_flag" |
| 12912 | || test ! -s conftest.err' |
| 12913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12914 | (eval $ac_try) 2>&5 |
| 12915 | ac_status=$? |
| 12916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12917 | (exit $ac_status); }; } && |
| 12918 | { ac_try='test -s conftest$ac_exeext' |
| 12919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12920 | (eval $ac_try) 2>&5 |
| 12921 | ac_status=$? |
| 12922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12923 | (exit $ac_status); }; }; then |
| 12924 | ac_cv_lib_acl_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12925 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12926 | echo "$as_me: failed program was:" >&5 |
| 12927 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12928 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12929 | ac_cv_lib_acl_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12930 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12931 | rm -f conftest.err conftest.$ac_objext \ |
| 12932 | conftest$ac_exeext conftest.$ac_ext |
| 12933 | LIBS=$ac_check_lib_save_LIBS |
| 12934 | fi |
| 12935 | echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 12936 | echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6 |
| 12937 | if test $ac_cv_lib_acl_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12938 | LIBS="$LIBS -lacl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12939 | echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
| 12940 | echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6 |
| 12941 | if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
| 12942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12943 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12944 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12945 | LIBS="-lattr $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12946 | cat >conftest.$ac_ext <<_ACEOF |
| 12947 | /* confdefs.h. */ |
| 12948 | _ACEOF |
| 12949 | cat confdefs.h >>conftest.$ac_ext |
| 12950 | cat >>conftest.$ac_ext <<_ACEOF |
| 12951 | /* end confdefs.h. */ |
| 12952 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12953 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12954 | #ifdef __cplusplus |
| 12955 | extern "C" |
| 12956 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12957 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12958 | builtin and then its argument prototype would still apply. */ |
| 12959 | char fgetxattr (); |
| 12960 | int |
| 12961 | main () |
| 12962 | { |
| 12963 | fgetxattr (); |
| 12964 | ; |
| 12965 | return 0; |
| 12966 | } |
| 12967 | _ACEOF |
| 12968 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12970 | (eval $ac_link) 2>conftest.er1 |
| 12971 | ac_status=$? |
| 12972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12973 | rm -f conftest.er1 |
| 12974 | cat conftest.err >&5 |
| 12975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12976 | (exit $ac_status); } && |
| 12977 | { ac_try='test -z "$ac_c_werror_flag" |
| 12978 | || test ! -s conftest.err' |
| 12979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12980 | (eval $ac_try) 2>&5 |
| 12981 | ac_status=$? |
| 12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12983 | (exit $ac_status); }; } && |
| 12984 | { ac_try='test -s conftest$ac_exeext' |
| 12985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12986 | (eval $ac_try) 2>&5 |
| 12987 | ac_status=$? |
| 12988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12989 | (exit $ac_status); }; }; then |
| 12990 | ac_cv_lib_attr_fgetxattr=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12991 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12992 | echo "$as_me: failed program was:" >&5 |
| 12993 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12994 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12995 | ac_cv_lib_attr_fgetxattr=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12996 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12997 | rm -f conftest.err conftest.$ac_objext \ |
| 12998 | conftest$ac_exeext conftest.$ac_ext |
| 12999 | LIBS=$ac_check_lib_save_LIBS |
| 13000 | fi |
| 13001 | echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 13002 | echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6 |
| 13003 | if test $ac_cv_lib_attr_fgetxattr = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13004 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13005 | fi |
| 13006 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13007 | fi |
| 13008 | |
| 13009 | fi |
| 13010 | |
| 13011 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13012 | echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
| 13013 | echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6 |
| 13014 | cat >conftest.$ac_ext <<_ACEOF |
| 13015 | /* confdefs.h. */ |
| 13016 | _ACEOF |
| 13017 | cat confdefs.h >>conftest.$ac_ext |
| 13018 | cat >>conftest.$ac_ext <<_ACEOF |
| 13019 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13020 | |
| 13021 | #include <sys/types.h> |
| 13022 | #ifdef HAVE_SYS_ACL_H |
| 13023 | # include <sys/acl.h> |
| 13024 | #endif |
| 13025 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13026 | int |
| 13027 | main () |
| 13028 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13029 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 13030 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 13031 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13032 | ; |
| 13033 | return 0; |
| 13034 | } |
| 13035 | _ACEOF |
| 13036 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13038 | (eval $ac_link) 2>conftest.er1 |
| 13039 | ac_status=$? |
| 13040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13041 | rm -f conftest.er1 |
| 13042 | cat conftest.err >&5 |
| 13043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13044 | (exit $ac_status); } && |
| 13045 | { ac_try='test -z "$ac_c_werror_flag" |
| 13046 | || test ! -s conftest.err' |
| 13047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13048 | (eval $ac_try) 2>&5 |
| 13049 | ac_status=$? |
| 13050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13051 | (exit $ac_status); }; } && |
| 13052 | { ac_try='test -s conftest$ac_exeext' |
| 13053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13054 | (eval $ac_try) 2>&5 |
| 13055 | ac_status=$? |
| 13056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13057 | (exit $ac_status); }; }; then |
| 13058 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13059 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13060 | #define HAVE_POSIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13061 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13062 | |
| 13063 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13064 | echo "$as_me: failed program was:" >&5 |
| 13065 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13066 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13067 | echo "$as_me:$LINENO: result: no" >&5 |
| 13068 | echo "${ECHO_T}no" >&6 |
| 13069 | fi |
| 13070 | rm -f conftest.err conftest.$ac_objext \ |
| 13071 | conftest$ac_exeext conftest.$ac_ext |
| 13072 | |
| 13073 | echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
| 13074 | echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6 |
| 13075 | cat >conftest.$ac_ext <<_ACEOF |
| 13076 | /* confdefs.h. */ |
| 13077 | _ACEOF |
| 13078 | cat confdefs.h >>conftest.$ac_ext |
| 13079 | cat >>conftest.$ac_ext <<_ACEOF |
| 13080 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13081 | |
| 13082 | #ifdef HAVE_SYS_ACL_H |
| 13083 | # include <sys/acl.h> |
| 13084 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13085 | int |
| 13086 | main () |
| 13087 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13088 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13089 | |
| 13090 | ; |
| 13091 | return 0; |
| 13092 | } |
| 13093 | _ACEOF |
| 13094 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13096 | (eval $ac_link) 2>conftest.er1 |
| 13097 | ac_status=$? |
| 13098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13099 | rm -f conftest.er1 |
| 13100 | cat conftest.err >&5 |
| 13101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13102 | (exit $ac_status); } && |
| 13103 | { ac_try='test -z "$ac_c_werror_flag" |
| 13104 | || test ! -s conftest.err' |
| 13105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13106 | (eval $ac_try) 2>&5 |
| 13107 | ac_status=$? |
| 13108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13109 | (exit $ac_status); }; } && |
| 13110 | { ac_try='test -s conftest$ac_exeext' |
| 13111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13112 | (eval $ac_try) 2>&5 |
| 13113 | ac_status=$? |
| 13114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13115 | (exit $ac_status); }; }; then |
| 13116 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13117 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13118 | #define HAVE_SOLARIS_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13119 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13120 | |
| 13121 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13122 | echo "$as_me: failed program was:" >&5 |
| 13123 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13124 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13125 | echo "$as_me:$LINENO: result: no" >&5 |
| 13126 | echo "${ECHO_T}no" >&6 |
| 13127 | fi |
| 13128 | rm -f conftest.err conftest.$ac_objext \ |
| 13129 | conftest$ac_exeext conftest.$ac_ext |
| 13130 | |
| 13131 | echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
| 13132 | echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6 |
| 13133 | cat >conftest.$ac_ext <<_ACEOF |
| 13134 | /* confdefs.h. */ |
| 13135 | _ACEOF |
| 13136 | cat confdefs.h >>conftest.$ac_ext |
| 13137 | cat >>conftest.$ac_ext <<_ACEOF |
| 13138 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13139 | |
| 13140 | #ifdef HAVE_SYS_ACL_H |
| 13141 | # include <sys/acl.h> |
| 13142 | #endif |
| 13143 | #ifdef HAVE_SYS_ACCESS_H |
| 13144 | # include <sys/access.h> |
| 13145 | #endif |
| 13146 | #define _ALL_SOURCE |
| 13147 | |
| 13148 | #include <sys/stat.h> |
| 13149 | |
| 13150 | int aclsize; |
| 13151 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13152 | int |
| 13153 | main () |
| 13154 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13155 | aclsize = sizeof(struct acl); |
| 13156 | aclent = (void *)malloc(aclsize); |
| 13157 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13158 | |
| 13159 | ; |
| 13160 | return 0; |
| 13161 | } |
| 13162 | _ACEOF |
| 13163 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13165 | (eval $ac_link) 2>conftest.er1 |
| 13166 | ac_status=$? |
| 13167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13168 | rm -f conftest.er1 |
| 13169 | cat conftest.err >&5 |
| 13170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13171 | (exit $ac_status); } && |
| 13172 | { ac_try='test -z "$ac_c_werror_flag" |
| 13173 | || test ! -s conftest.err' |
| 13174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13175 | (eval $ac_try) 2>&5 |
| 13176 | ac_status=$? |
| 13177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13178 | (exit $ac_status); }; } && |
| 13179 | { ac_try='test -s conftest$ac_exeext' |
| 13180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13181 | (eval $ac_try) 2>&5 |
| 13182 | ac_status=$? |
| 13183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13184 | (exit $ac_status); }; }; then |
| 13185 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13186 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13187 | #define HAVE_AIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13188 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13189 | |
| 13190 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13191 | echo "$as_me: failed program was:" >&5 |
| 13192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13193 | |
| 13194 | echo "$as_me:$LINENO: result: no" >&5 |
| 13195 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13196 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13197 | rm -f conftest.err conftest.$ac_objext \ |
| 13198 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13199 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13200 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13201 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13202 | fi |
| 13203 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13204 | echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 |
| 13205 | echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13206 | # Check whether --enable-gpm or --disable-gpm was given. |
| 13207 | if test "${enable_gpm+set}" = set; then |
| 13208 | enableval="$enable_gpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13209 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13210 | else |
| 13211 | enable_gpm="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13212 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13213 | |
| 13214 | if test "$enable_gpm" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13215 | echo "$as_me:$LINENO: result: no" >&5 |
| 13216 | echo "${ECHO_T}no" >&6 |
| 13217 | echo "$as_me:$LINENO: checking for gpm" >&5 |
| 13218 | echo $ECHO_N "checking for gpm... $ECHO_C" >&6 |
| 13219 | if test "${vi_cv_have_gpm+set}" = set; then |
| 13220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13221 | else |
| 13222 | olibs="$LIBS" ; LIBS="-lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13223 | cat >conftest.$ac_ext <<_ACEOF |
| 13224 | /* confdefs.h. */ |
| 13225 | _ACEOF |
| 13226 | cat confdefs.h >>conftest.$ac_ext |
| 13227 | cat >>conftest.$ac_ext <<_ACEOF |
| 13228 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13229 | #include <gpm.h> |
| 13230 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13231 | int |
| 13232 | main () |
| 13233 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13234 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13235 | ; |
| 13236 | return 0; |
| 13237 | } |
| 13238 | _ACEOF |
| 13239 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13241 | (eval $ac_link) 2>conftest.er1 |
| 13242 | ac_status=$? |
| 13243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13244 | rm -f conftest.er1 |
| 13245 | cat conftest.err >&5 |
| 13246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13247 | (exit $ac_status); } && |
| 13248 | { ac_try='test -z "$ac_c_werror_flag" |
| 13249 | || test ! -s conftest.err' |
| 13250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13251 | (eval $ac_try) 2>&5 |
| 13252 | ac_status=$? |
| 13253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13254 | (exit $ac_status); }; } && |
| 13255 | { ac_try='test -s conftest$ac_exeext' |
| 13256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13257 | (eval $ac_try) 2>&5 |
| 13258 | ac_status=$? |
| 13259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13260 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13261 | vi_cv_have_gpm=yes |
| 13262 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13263 | echo "$as_me: failed program was:" >&5 |
| 13264 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13265 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13266 | vi_cv_have_gpm=no |
| 13267 | fi |
| 13268 | rm -f conftest.err conftest.$ac_objext \ |
| 13269 | conftest$ac_exeext conftest.$ac_ext |
| 13270 | LIBS="$olibs" |
| 13271 | |
| 13272 | fi |
| 13273 | echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
| 13274 | echo "${ECHO_T}$vi_cv_have_gpm" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13275 | if test $vi_cv_have_gpm = yes; then |
| 13276 | LIBS="$LIBS -lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13277 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13278 | #define HAVE_GPM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13279 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13280 | |
| 13281 | fi |
| 13282 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13283 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13284 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13285 | fi |
| 13286 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13287 | echo "$as_me:$LINENO: checking for rename" >&5 |
| 13288 | echo $ECHO_N "checking for rename... $ECHO_C" >&6 |
| 13289 | cat >conftest.$ac_ext <<_ACEOF |
| 13290 | /* confdefs.h. */ |
| 13291 | _ACEOF |
| 13292 | cat confdefs.h >>conftest.$ac_ext |
| 13293 | cat >>conftest.$ac_ext <<_ACEOF |
| 13294 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13295 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13296 | int |
| 13297 | main () |
| 13298 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13299 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13300 | ; |
| 13301 | return 0; |
| 13302 | } |
| 13303 | _ACEOF |
| 13304 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13306 | (eval $ac_link) 2>conftest.er1 |
| 13307 | ac_status=$? |
| 13308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13309 | rm -f conftest.er1 |
| 13310 | cat conftest.err >&5 |
| 13311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13312 | (exit $ac_status); } && |
| 13313 | { ac_try='test -z "$ac_c_werror_flag" |
| 13314 | || test ! -s conftest.err' |
| 13315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13316 | (eval $ac_try) 2>&5 |
| 13317 | ac_status=$? |
| 13318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13319 | (exit $ac_status); }; } && |
| 13320 | { ac_try='test -s conftest$ac_exeext' |
| 13321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13322 | (eval $ac_try) 2>&5 |
| 13323 | ac_status=$? |
| 13324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13325 | (exit $ac_status); }; }; then |
| 13326 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13327 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13328 | #define HAVE_RENAME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13329 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13330 | |
| 13331 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13332 | echo "$as_me: failed program was:" >&5 |
| 13333 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13334 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13335 | echo "$as_me:$LINENO: result: no" >&5 |
| 13336 | echo "${ECHO_T}no" >&6 |
| 13337 | fi |
| 13338 | rm -f conftest.err conftest.$ac_objext \ |
| 13339 | conftest$ac_exeext conftest.$ac_ext |
| 13340 | |
| 13341 | echo "$as_me:$LINENO: checking for sysctl" >&5 |
| 13342 | echo $ECHO_N "checking for sysctl... $ECHO_C" >&6 |
| 13343 | cat >conftest.$ac_ext <<_ACEOF |
| 13344 | /* confdefs.h. */ |
| 13345 | _ACEOF |
| 13346 | cat confdefs.h >>conftest.$ac_ext |
| 13347 | cat >>conftest.$ac_ext <<_ACEOF |
| 13348 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13349 | #include <sys/types.h> |
| 13350 | #include <sys/sysctl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13351 | int |
| 13352 | main () |
| 13353 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13354 | int mib[2], r; |
| 13355 | size_t len; |
| 13356 | |
| 13357 | mib[0] = CTL_HW; |
| 13358 | mib[1] = HW_USERMEM; |
| 13359 | len = sizeof(r); |
| 13360 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13361 | |
| 13362 | ; |
| 13363 | return 0; |
| 13364 | } |
| 13365 | _ACEOF |
| 13366 | rm -f conftest.$ac_objext |
| 13367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13368 | (eval $ac_compile) 2>conftest.er1 |
| 13369 | ac_status=$? |
| 13370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13371 | rm -f conftest.er1 |
| 13372 | cat conftest.err >&5 |
| 13373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13374 | (exit $ac_status); } && |
| 13375 | { ac_try='test -z "$ac_c_werror_flag" |
| 13376 | || test ! -s conftest.err' |
| 13377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13378 | (eval $ac_try) 2>&5 |
| 13379 | ac_status=$? |
| 13380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13381 | (exit $ac_status); }; } && |
| 13382 | { ac_try='test -s conftest.$ac_objext' |
| 13383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13384 | (eval $ac_try) 2>&5 |
| 13385 | ac_status=$? |
| 13386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13387 | (exit $ac_status); }; }; then |
| 13388 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13389 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13390 | #define HAVE_SYSCTL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13391 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13392 | |
| 13393 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13394 | echo "$as_me: failed program was:" >&5 |
| 13395 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13396 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13397 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13398 | echo "${ECHO_T}not usable" >&6 |
| 13399 | fi |
| 13400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13401 | |
| 13402 | echo "$as_me:$LINENO: checking for sysinfo" >&5 |
| 13403 | echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6 |
| 13404 | cat >conftest.$ac_ext <<_ACEOF |
| 13405 | /* confdefs.h. */ |
| 13406 | _ACEOF |
| 13407 | cat confdefs.h >>conftest.$ac_ext |
| 13408 | cat >>conftest.$ac_ext <<_ACEOF |
| 13409 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13410 | #include <sys/types.h> |
| 13411 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13412 | int |
| 13413 | main () |
| 13414 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13415 | struct sysinfo sinfo; |
| 13416 | int t; |
| 13417 | |
| 13418 | (void)sysinfo(&sinfo); |
| 13419 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13420 | |
| 13421 | ; |
| 13422 | return 0; |
| 13423 | } |
| 13424 | _ACEOF |
| 13425 | rm -f conftest.$ac_objext |
| 13426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13427 | (eval $ac_compile) 2>conftest.er1 |
| 13428 | ac_status=$? |
| 13429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13430 | rm -f conftest.er1 |
| 13431 | cat conftest.err >&5 |
| 13432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13433 | (exit $ac_status); } && |
| 13434 | { ac_try='test -z "$ac_c_werror_flag" |
| 13435 | || test ! -s conftest.err' |
| 13436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13437 | (eval $ac_try) 2>&5 |
| 13438 | ac_status=$? |
| 13439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13440 | (exit $ac_status); }; } && |
| 13441 | { ac_try='test -s conftest.$ac_objext' |
| 13442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13443 | (eval $ac_try) 2>&5 |
| 13444 | ac_status=$? |
| 13445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13446 | (exit $ac_status); }; }; then |
| 13447 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13448 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13449 | #define HAVE_SYSINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13450 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13451 | |
| 13452 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13453 | echo "$as_me: failed program was:" >&5 |
| 13454 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13455 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13456 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13457 | echo "${ECHO_T}not usable" >&6 |
| 13458 | fi |
| 13459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13460 | |
| 13461 | echo "$as_me:$LINENO: checking for sysconf" >&5 |
| 13462 | echo $ECHO_N "checking for sysconf... $ECHO_C" >&6 |
| 13463 | cat >conftest.$ac_ext <<_ACEOF |
| 13464 | /* confdefs.h. */ |
| 13465 | _ACEOF |
| 13466 | cat confdefs.h >>conftest.$ac_ext |
| 13467 | cat >>conftest.$ac_ext <<_ACEOF |
| 13468 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13469 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13470 | int |
| 13471 | main () |
| 13472 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13473 | (void)sysconf(_SC_PAGESIZE); |
| 13474 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13475 | |
| 13476 | ; |
| 13477 | return 0; |
| 13478 | } |
| 13479 | _ACEOF |
| 13480 | rm -f conftest.$ac_objext |
| 13481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13482 | (eval $ac_compile) 2>conftest.er1 |
| 13483 | ac_status=$? |
| 13484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13485 | rm -f conftest.er1 |
| 13486 | cat conftest.err >&5 |
| 13487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13488 | (exit $ac_status); } && |
| 13489 | { ac_try='test -z "$ac_c_werror_flag" |
| 13490 | || test ! -s conftest.err' |
| 13491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13492 | (eval $ac_try) 2>&5 |
| 13493 | ac_status=$? |
| 13494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13495 | (exit $ac_status); }; } && |
| 13496 | { ac_try='test -s conftest.$ac_objext' |
| 13497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13498 | (eval $ac_try) 2>&5 |
| 13499 | ac_status=$? |
| 13500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13501 | (exit $ac_status); }; }; then |
| 13502 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13503 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13504 | #define HAVE_SYSCONF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13505 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13506 | |
| 13507 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13508 | echo "$as_me: failed program was:" >&5 |
| 13509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13510 | |
| 13511 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13512 | echo "${ECHO_T}not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13513 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13515 | |
| 13516 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13517 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 13518 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 13519 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 13520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13521 | else |
| 13522 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13523 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13524 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13525 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13526 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13527 | cat >conftest.$ac_ext <<_ACEOF |
| 13528 | /* confdefs.h. */ |
| 13529 | _ACEOF |
| 13530 | cat confdefs.h >>conftest.$ac_ext |
| 13531 | cat >>conftest.$ac_ext <<_ACEOF |
| 13532 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13533 | #include <stdio.h> |
| 13534 | main() |
| 13535 | { |
| 13536 | FILE *f=fopen("conftestval", "w"); |
| 13537 | if (!f) exit(1); |
| 13538 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 13539 | exit(0); |
| 13540 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13541 | _ACEOF |
| 13542 | rm -f conftest$ac_exeext |
| 13543 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13544 | (eval $ac_link) 2>&5 |
| 13545 | ac_status=$? |
| 13546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13547 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13549 | (eval $ac_try) 2>&5 |
| 13550 | ac_status=$? |
| 13551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13552 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13553 | ac_cv_sizeof_int=`cat conftestval` |
| 13554 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13555 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13556 | echo "$as_me: failed program was:" >&5 |
| 13557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13558 | |
| 13559 | ( exit $ac_status ) |
| 13560 | ac_cv_sizeof_int=0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13561 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13562 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13563 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13564 | fi |
| 13565 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13566 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13567 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 13568 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13569 | #define SIZEOF_INT $ac_cv_sizeof_int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13570 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13571 | |
| 13572 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13573 | echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5 |
| 13574 | echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13575 | bcopy_test_prog=' |
| 13576 | main() { |
| 13577 | char buf[10]; |
| 13578 | strcpy(buf, "abcdefghi"); |
| 13579 | mch_memmove(buf, buf + 2, 3); |
| 13580 | if (strncmp(buf, "ababcf", 6)) |
| 13581 | exit(1); |
| 13582 | strcpy(buf, "abcdefghi"); |
| 13583 | mch_memmove(buf + 2, buf, 3); |
| 13584 | if (strncmp(buf, "cdedef", 6)) |
| 13585 | exit(1); |
| 13586 | exit(0); /* libc version works properly. */ |
| 13587 | }' |
| 13588 | |
| 13589 | |
| 13590 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13591 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13592 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13593 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13594 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13595 | cat >conftest.$ac_ext <<_ACEOF |
| 13596 | /* confdefs.h. */ |
| 13597 | _ACEOF |
| 13598 | cat confdefs.h >>conftest.$ac_ext |
| 13599 | cat >>conftest.$ac_ext <<_ACEOF |
| 13600 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13601 | #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13602 | _ACEOF |
| 13603 | rm -f conftest$ac_exeext |
| 13604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13605 | (eval $ac_link) 2>&5 |
| 13606 | ac_status=$? |
| 13607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13608 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13610 | (eval $ac_try) 2>&5 |
| 13611 | ac_status=$? |
| 13612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13613 | (exit $ac_status); }; }; then |
| 13614 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13615 | #define USEMEMMOVE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13616 | _ACEOF |
| 13617 | echo "$as_me:$LINENO: result: memmove does" >&5 |
| 13618 | echo "${ECHO_T}memmove does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13619 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13620 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13621 | echo "$as_me: failed program was:" >&5 |
| 13622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13623 | |
| 13624 | ( exit $ac_status ) |
| 13625 | if test "$cross_compiling" = yes; then |
| 13626 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13627 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13628 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13629 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13630 | cat >conftest.$ac_ext <<_ACEOF |
| 13631 | /* confdefs.h. */ |
| 13632 | _ACEOF |
| 13633 | cat confdefs.h >>conftest.$ac_ext |
| 13634 | cat >>conftest.$ac_ext <<_ACEOF |
| 13635 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13636 | #define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13637 | _ACEOF |
| 13638 | rm -f conftest$ac_exeext |
| 13639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13640 | (eval $ac_link) 2>&5 |
| 13641 | ac_status=$? |
| 13642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13643 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13645 | (eval $ac_try) 2>&5 |
| 13646 | ac_status=$? |
| 13647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13648 | (exit $ac_status); }; }; then |
| 13649 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13650 | #define USEBCOPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13651 | _ACEOF |
| 13652 | echo "$as_me:$LINENO: result: bcopy does" >&5 |
| 13653 | echo "${ECHO_T}bcopy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13654 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13655 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13656 | echo "$as_me: failed program was:" >&5 |
| 13657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13658 | |
| 13659 | ( exit $ac_status ) |
| 13660 | if test "$cross_compiling" = yes; then |
| 13661 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13662 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13663 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13664 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13665 | cat >conftest.$ac_ext <<_ACEOF |
| 13666 | /* confdefs.h. */ |
| 13667 | _ACEOF |
| 13668 | cat confdefs.h >>conftest.$ac_ext |
| 13669 | cat >>conftest.$ac_ext <<_ACEOF |
| 13670 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13671 | #define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13672 | _ACEOF |
| 13673 | rm -f conftest$ac_exeext |
| 13674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13675 | (eval $ac_link) 2>&5 |
| 13676 | ac_status=$? |
| 13677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13678 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13680 | (eval $ac_try) 2>&5 |
| 13681 | ac_status=$? |
| 13682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13683 | (exit $ac_status); }; }; then |
| 13684 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13685 | #define USEMEMCPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13686 | _ACEOF |
| 13687 | echo "$as_me:$LINENO: result: memcpy does" >&5 |
| 13688 | echo "${ECHO_T}memcpy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13689 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13690 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13691 | echo "$as_me: failed program was:" >&5 |
| 13692 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13693 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13694 | ( exit $ac_status ) |
| 13695 | echo "$as_me:$LINENO: result: no" >&5 |
| 13696 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13697 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13698 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13699 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13700 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13701 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13702 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13703 | fi |
| 13704 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13705 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13706 | |
| 13707 | |
| 13708 | if test "$enable_multibyte" = "yes"; then |
| 13709 | cflags_save=$CFLAGS |
| 13710 | ldflags_save=$LDFLAGS |
| 13711 | if test -n "$x_includes" ; then |
| 13712 | CFLAGS="$CFLAGS -I$x_includes" |
| 13713 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13714 | echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
| 13715 | echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6 |
| 13716 | cat >conftest.$ac_ext <<_ACEOF |
| 13717 | /* confdefs.h. */ |
| 13718 | _ACEOF |
| 13719 | cat confdefs.h >>conftest.$ac_ext |
| 13720 | cat >>conftest.$ac_ext <<_ACEOF |
| 13721 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13722 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13723 | int |
| 13724 | main () |
| 13725 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13726 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13727 | ; |
| 13728 | return 0; |
| 13729 | } |
| 13730 | _ACEOF |
| 13731 | rm -f conftest.$ac_objext |
| 13732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13733 | (eval $ac_compile) 2>conftest.er1 |
| 13734 | ac_status=$? |
| 13735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13736 | rm -f conftest.er1 |
| 13737 | cat conftest.err >&5 |
| 13738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13739 | (exit $ac_status); } && |
| 13740 | { ac_try='test -z "$ac_c_werror_flag" |
| 13741 | || test ! -s conftest.err' |
| 13742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13743 | (eval $ac_try) 2>&5 |
| 13744 | ac_status=$? |
| 13745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13746 | (exit $ac_status); }; } && |
| 13747 | { ac_try='test -s conftest.$ac_objext' |
| 13748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13749 | (eval $ac_try) 2>&5 |
| 13750 | ac_status=$? |
| 13751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13752 | (exit $ac_status); }; }; then |
| 13753 | cat >conftest.$ac_ext <<_ACEOF |
| 13754 | /* confdefs.h. */ |
| 13755 | _ACEOF |
| 13756 | cat confdefs.h >>conftest.$ac_ext |
| 13757 | cat >>conftest.$ac_ext <<_ACEOF |
| 13758 | /* end confdefs.h. */ |
| 13759 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13760 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13761 | #ifdef __cplusplus |
| 13762 | extern "C" |
| 13763 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13764 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13765 | builtin and then its argument prototype would still apply. */ |
| 13766 | char _Xsetlocale (); |
| 13767 | int |
| 13768 | main () |
| 13769 | { |
| 13770 | _Xsetlocale (); |
| 13771 | ; |
| 13772 | return 0; |
| 13773 | } |
| 13774 | _ACEOF |
| 13775 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13777 | (eval $ac_link) 2>conftest.er1 |
| 13778 | ac_status=$? |
| 13779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13780 | rm -f conftest.er1 |
| 13781 | cat conftest.err >&5 |
| 13782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13783 | (exit $ac_status); } && |
| 13784 | { ac_try='test -z "$ac_c_werror_flag" |
| 13785 | || test ! -s conftest.err' |
| 13786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13787 | (eval $ac_try) 2>&5 |
| 13788 | ac_status=$? |
| 13789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13790 | (exit $ac_status); }; } && |
| 13791 | { ac_try='test -s conftest$ac_exeext' |
| 13792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13793 | (eval $ac_try) 2>&5 |
| 13794 | ac_status=$? |
| 13795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13796 | (exit $ac_status); }; }; then |
| 13797 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13798 | echo "${ECHO_T}yes" >&6 |
| 13799 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13800 | #define X_LOCALE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13801 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13802 | |
| 13803 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13804 | echo "$as_me: failed program was:" >&5 |
| 13805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13806 | |
| 13807 | echo "$as_me:$LINENO: result: no" >&5 |
| 13808 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13809 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13810 | rm -f conftest.err conftest.$ac_objext \ |
| 13811 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13812 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13813 | echo "$as_me: failed program was:" >&5 |
| 13814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13815 | |
| 13816 | echo "$as_me:$LINENO: result: no" >&5 |
| 13817 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13818 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13820 | fi |
| 13821 | CFLAGS=$cflags_save |
| 13822 | LDFLAGS=$ldflags_save |
| 13823 | fi |
| 13824 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13825 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 13826 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 13827 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 13828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13829 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13830 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13831 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13832 | cat >conftest.$ac_ext <<_ACEOF |
| 13833 | /* confdefs.h. */ |
| 13834 | _ACEOF |
| 13835 | cat confdefs.h >>conftest.$ac_ext |
| 13836 | cat >>conftest.$ac_ext <<_ACEOF |
| 13837 | /* end confdefs.h. */ |
| 13838 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13839 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13840 | #ifdef __cplusplus |
| 13841 | extern "C" |
| 13842 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13843 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13844 | builtin and then its argument prototype would still apply. */ |
| 13845 | char _xpg4_setrunelocale (); |
| 13846 | int |
| 13847 | main () |
| 13848 | { |
| 13849 | _xpg4_setrunelocale (); |
| 13850 | ; |
| 13851 | return 0; |
| 13852 | } |
| 13853 | _ACEOF |
| 13854 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13856 | (eval $ac_link) 2>conftest.er1 |
| 13857 | ac_status=$? |
| 13858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13859 | rm -f conftest.er1 |
| 13860 | cat conftest.err >&5 |
| 13861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13862 | (exit $ac_status); } && |
| 13863 | { ac_try='test -z "$ac_c_werror_flag" |
| 13864 | || test ! -s conftest.err' |
| 13865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13866 | (eval $ac_try) 2>&5 |
| 13867 | ac_status=$? |
| 13868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13869 | (exit $ac_status); }; } && |
| 13870 | { ac_try='test -s conftest$ac_exeext' |
| 13871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13872 | (eval $ac_try) 2>&5 |
| 13873 | ac_status=$? |
| 13874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13875 | (exit $ac_status); }; }; then |
| 13876 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13877 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13878 | echo "$as_me: failed program was:" >&5 |
| 13879 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13880 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13881 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13882 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13883 | rm -f conftest.err conftest.$ac_objext \ |
| 13884 | conftest$ac_exeext conftest.$ac_ext |
| 13885 | LIBS=$ac_check_lib_save_LIBS |
| 13886 | fi |
| 13887 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 13888 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 13889 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13890 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13891 | fi |
| 13892 | |
| 13893 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13894 | echo "$as_me:$LINENO: checking how to create tags" >&5 |
| 13895 | echo $ECHO_N "checking how to create tags... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13896 | test -f tags && mv tags tags.save |
| 13897 | if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
Bram Moolenaar | 78984f5 | 2005-08-01 07:19:10 +0000 | [diff] [blame] | 13898 | TAGPRG="ctags -I INIT+" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13899 | else |
| 13900 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 13901 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 13902 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 13903 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 13904 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 13905 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 13906 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 13907 | fi |
| 13908 | test -f tags.save && mv tags.save tags |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13909 | echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
| 13910 | echo "${ECHO_T}$TAGPRG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13911 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13912 | echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
| 13913 | echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13914 | MANDEF="man" |
| 13915 | (eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13916 | echo "$as_me:$LINENO: result: $MANDEF" >&5 |
| 13917 | echo "${ECHO_T}$MANDEF" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13918 | if test "$MANDEF" = "man -s"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13919 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13920 | #define USEMAN_S 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13921 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13922 | |
| 13923 | fi |
| 13924 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13925 | echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
| 13926 | echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13927 | # Check whether --enable-nls or --disable-nls was given. |
| 13928 | if test "${enable_nls+set}" = set; then |
| 13929 | enableval="$enable_nls" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13930 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13931 | else |
| 13932 | enable_nls="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13933 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13934 | |
| 13935 | if test "$enable_nls" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13936 | echo "$as_me:$LINENO: result: no" >&5 |
| 13937 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 13938 | |
| 13939 | INSTALL_LANGS=install-languages |
| 13940 | |
| 13941 | INSTALL_TOOL_LANGS=install-tool-languages |
| 13942 | |
| 13943 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13944 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 13945 | set dummy msgfmt; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13946 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13947 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13948 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
| 13949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13950 | else |
| 13951 | if test -n "$MSGFMT"; then |
| 13952 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 13953 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13955 | for as_dir in $PATH |
| 13956 | do |
| 13957 | IFS=$as_save_IFS |
| 13958 | test -z "$as_dir" && as_dir=. |
| 13959 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13960 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13961 | ac_cv_prog_MSGFMT="msgfmt" |
| 13962 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13963 | break 2 |
| 13964 | fi |
| 13965 | done |
| 13966 | done |
| 13967 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13968 | fi |
| 13969 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13970 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13971 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13972 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 13973 | echo "${ECHO_T}$MSGFMT" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13974 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13975 | echo "$as_me:$LINENO: result: no" >&5 |
| 13976 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13977 | fi |
| 13978 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13979 | echo "$as_me:$LINENO: checking for NLS" >&5 |
| 13980 | echo $ECHO_N "checking for NLS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13981 | if test -f po/Makefile; then |
| 13982 | have_gettext="no" |
| 13983 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13984 | cat >conftest.$ac_ext <<_ACEOF |
| 13985 | /* confdefs.h. */ |
| 13986 | _ACEOF |
| 13987 | cat confdefs.h >>conftest.$ac_ext |
| 13988 | cat >>conftest.$ac_ext <<_ACEOF |
| 13989 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13990 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13991 | int |
| 13992 | main () |
| 13993 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13994 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13995 | ; |
| 13996 | return 0; |
| 13997 | } |
| 13998 | _ACEOF |
| 13999 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14001 | (eval $ac_link) 2>conftest.er1 |
| 14002 | ac_status=$? |
| 14003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14004 | rm -f conftest.er1 |
| 14005 | cat conftest.err >&5 |
| 14006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14007 | (exit $ac_status); } && |
| 14008 | { ac_try='test -z "$ac_c_werror_flag" |
| 14009 | || test ! -s conftest.err' |
| 14010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14011 | (eval $ac_try) 2>&5 |
| 14012 | ac_status=$? |
| 14013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14014 | (exit $ac_status); }; } && |
| 14015 | { ac_try='test -s conftest$ac_exeext' |
| 14016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14017 | (eval $ac_try) 2>&5 |
| 14018 | ac_status=$? |
| 14019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14020 | (exit $ac_status); }; }; then |
| 14021 | echo "$as_me:$LINENO: result: gettext() works" >&5 |
| 14022 | echo "${ECHO_T}gettext() works" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14023 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14024 | echo "$as_me: failed program was:" >&5 |
| 14025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14026 | |
| 14027 | olibs=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14028 | LIBS="$LIBS -lintl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14029 | cat >conftest.$ac_ext <<_ACEOF |
| 14030 | /* confdefs.h. */ |
| 14031 | _ACEOF |
| 14032 | cat confdefs.h >>conftest.$ac_ext |
| 14033 | cat >>conftest.$ac_ext <<_ACEOF |
| 14034 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14035 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14036 | int |
| 14037 | main () |
| 14038 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14039 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14040 | ; |
| 14041 | return 0; |
| 14042 | } |
| 14043 | _ACEOF |
| 14044 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14046 | (eval $ac_link) 2>conftest.er1 |
| 14047 | ac_status=$? |
| 14048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14049 | rm -f conftest.er1 |
| 14050 | cat conftest.err >&5 |
| 14051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14052 | (exit $ac_status); } && |
| 14053 | { ac_try='test -z "$ac_c_werror_flag" |
| 14054 | || test ! -s conftest.err' |
| 14055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14056 | (eval $ac_try) 2>&5 |
| 14057 | ac_status=$? |
| 14058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14059 | (exit $ac_status); }; } && |
| 14060 | { ac_try='test -s conftest$ac_exeext' |
| 14061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14062 | (eval $ac_try) 2>&5 |
| 14063 | ac_status=$? |
| 14064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14065 | (exit $ac_status); }; }; then |
| 14066 | echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 |
| 14067 | echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14068 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14069 | echo "$as_me: failed program was:" >&5 |
| 14070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14071 | |
| 14072 | echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 |
| 14073 | echo "${ECHO_T}gettext() doesn't work" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14074 | LIBS=$olibs |
| 14075 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14076 | rm -f conftest.err conftest.$ac_objext \ |
| 14077 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14078 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14079 | rm -f conftest.err conftest.$ac_objext \ |
| 14080 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14081 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14082 | echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
| 14083 | echo "${ECHO_T}msgfmt not found - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14084 | fi |
| 14085 | if test $have_gettext = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14086 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14087 | #define HAVE_GETTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14088 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14089 | |
| 14090 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14091 | |
| 14092 | |
| 14093 | for ac_func in bind_textdomain_codeset |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14094 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14095 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14096 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14097 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14098 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14100 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14101 | cat >conftest.$ac_ext <<_ACEOF |
| 14102 | /* confdefs.h. */ |
| 14103 | _ACEOF |
| 14104 | cat confdefs.h >>conftest.$ac_ext |
| 14105 | cat >>conftest.$ac_ext <<_ACEOF |
| 14106 | /* end confdefs.h. */ |
| 14107 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14108 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14109 | #define $ac_func innocuous_$ac_func |
| 14110 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14111 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14112 | which can conflict with char $ac_func (); below. |
| 14113 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14114 | <limits.h> exists even on freestanding compilers. */ |
| 14115 | |
| 14116 | #ifdef __STDC__ |
| 14117 | # include <limits.h> |
| 14118 | #else |
| 14119 | # include <assert.h> |
| 14120 | #endif |
| 14121 | |
| 14122 | #undef $ac_func |
| 14123 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14124 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14125 | #ifdef __cplusplus |
| 14126 | extern "C" |
| 14127 | { |
| 14128 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14129 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14130 | builtin and then its argument prototype would still apply. */ |
| 14131 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14132 | /* The GNU C library defines this for functions which it implements |
| 14133 | to always fail with ENOSYS. Some functions are actually named |
| 14134 | something starting with __ and the normal name is an alias. */ |
| 14135 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14136 | choke me |
| 14137 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14138 | char (*f) () = $ac_func; |
| 14139 | #endif |
| 14140 | #ifdef __cplusplus |
| 14141 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14142 | #endif |
| 14143 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14144 | int |
| 14145 | main () |
| 14146 | { |
| 14147 | return f != $ac_func; |
| 14148 | ; |
| 14149 | return 0; |
| 14150 | } |
| 14151 | _ACEOF |
| 14152 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14154 | (eval $ac_link) 2>conftest.er1 |
| 14155 | ac_status=$? |
| 14156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14157 | rm -f conftest.er1 |
| 14158 | cat conftest.err >&5 |
| 14159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14160 | (exit $ac_status); } && |
| 14161 | { ac_try='test -z "$ac_c_werror_flag" |
| 14162 | || test ! -s conftest.err' |
| 14163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14164 | (eval $ac_try) 2>&5 |
| 14165 | ac_status=$? |
| 14166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14167 | (exit $ac_status); }; } && |
| 14168 | { ac_try='test -s conftest$ac_exeext' |
| 14169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14170 | (eval $ac_try) 2>&5 |
| 14171 | ac_status=$? |
| 14172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14173 | (exit $ac_status); }; }; then |
| 14174 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14175 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14176 | echo "$as_me: failed program was:" >&5 |
| 14177 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14178 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14179 | eval "$as_ac_var=no" |
| 14180 | fi |
| 14181 | rm -f conftest.err conftest.$ac_objext \ |
| 14182 | conftest$ac_exeext conftest.$ac_ext |
| 14183 | fi |
| 14184 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14185 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14186 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14187 | cat >>confdefs.h <<_ACEOF |
| 14188 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14189 | _ACEOF |
| 14190 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14191 | fi |
| 14192 | done |
| 14193 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14194 | echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
| 14195 | echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6 |
| 14196 | cat >conftest.$ac_ext <<_ACEOF |
| 14197 | /* confdefs.h. */ |
| 14198 | _ACEOF |
| 14199 | cat confdefs.h >>conftest.$ac_ext |
| 14200 | cat >>conftest.$ac_ext <<_ACEOF |
| 14201 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14202 | #include <libintl.h> |
| 14203 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14204 | int |
| 14205 | main () |
| 14206 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14207 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14208 | ; |
| 14209 | return 0; |
| 14210 | } |
| 14211 | _ACEOF |
| 14212 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14214 | (eval $ac_link) 2>conftest.er1 |
| 14215 | ac_status=$? |
| 14216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14217 | rm -f conftest.er1 |
| 14218 | cat conftest.err >&5 |
| 14219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14220 | (exit $ac_status); } && |
| 14221 | { ac_try='test -z "$ac_c_werror_flag" |
| 14222 | || test ! -s conftest.err' |
| 14223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14224 | (eval $ac_try) 2>&5 |
| 14225 | ac_status=$? |
| 14226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14227 | (exit $ac_status); }; } && |
| 14228 | { ac_try='test -s conftest$ac_exeext' |
| 14229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14230 | (eval $ac_try) 2>&5 |
| 14231 | ac_status=$? |
| 14232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14233 | (exit $ac_status); }; }; then |
| 14234 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14235 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14236 | #define HAVE_NL_MSG_CAT_CNTR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14237 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14238 | |
| 14239 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14240 | echo "$as_me: failed program was:" >&5 |
| 14241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14242 | |
| 14243 | echo "$as_me:$LINENO: result: no" >&5 |
| 14244 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14245 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14246 | rm -f conftest.err conftest.$ac_objext \ |
| 14247 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14248 | fi |
| 14249 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14250 | echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
| 14251 | echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14252 | fi |
| 14253 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14254 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14255 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14256 | fi |
| 14257 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14258 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14259 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 14260 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 14261 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14263 | fi |
| 14264 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 14265 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14266 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14267 | # Is the header compilable? |
| 14268 | echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 14269 | echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 |
| 14270 | cat >conftest.$ac_ext <<_ACEOF |
| 14271 | /* confdefs.h. */ |
| 14272 | _ACEOF |
| 14273 | cat confdefs.h >>conftest.$ac_ext |
| 14274 | cat >>conftest.$ac_ext <<_ACEOF |
| 14275 | /* end confdefs.h. */ |
| 14276 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14277 | #include <dlfcn.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14278 | _ACEOF |
| 14279 | rm -f conftest.$ac_objext |
| 14280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14281 | (eval $ac_compile) 2>conftest.er1 |
| 14282 | ac_status=$? |
| 14283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14284 | rm -f conftest.er1 |
| 14285 | cat conftest.err >&5 |
| 14286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14287 | (exit $ac_status); } && |
| 14288 | { ac_try='test -z "$ac_c_werror_flag" |
| 14289 | || test ! -s conftest.err' |
| 14290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14291 | (eval $ac_try) 2>&5 |
| 14292 | ac_status=$? |
| 14293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14294 | (exit $ac_status); }; } && |
| 14295 | { ac_try='test -s conftest.$ac_objext' |
| 14296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14297 | (eval $ac_try) 2>&5 |
| 14298 | ac_status=$? |
| 14299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14300 | (exit $ac_status); }; }; then |
| 14301 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14302 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14303 | echo "$as_me: failed program was:" >&5 |
| 14304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14305 | |
| 14306 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14307 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14309 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14310 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14311 | |
| 14312 | # Is the header present? |
| 14313 | echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 14314 | echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 |
| 14315 | cat >conftest.$ac_ext <<_ACEOF |
| 14316 | /* confdefs.h. */ |
| 14317 | _ACEOF |
| 14318 | cat confdefs.h >>conftest.$ac_ext |
| 14319 | cat >>conftest.$ac_ext <<_ACEOF |
| 14320 | /* end confdefs.h. */ |
| 14321 | #include <dlfcn.h> |
| 14322 | _ACEOF |
| 14323 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14324 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14325 | ac_status=$? |
| 14326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14327 | rm -f conftest.er1 |
| 14328 | cat conftest.err >&5 |
| 14329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14330 | (exit $ac_status); } >/dev/null; then |
| 14331 | if test -s conftest.err; then |
| 14332 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14333 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14334 | else |
| 14335 | ac_cpp_err= |
| 14336 | fi |
| 14337 | else |
| 14338 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14339 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14340 | if test -z "$ac_cpp_err"; then |
| 14341 | ac_header_preproc=yes |
| 14342 | else |
| 14343 | echo "$as_me: failed program was:" >&5 |
| 14344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14345 | |
| 14346 | ac_header_preproc=no |
| 14347 | fi |
| 14348 | rm -f conftest.err conftest.$ac_ext |
| 14349 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14350 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14351 | |
| 14352 | # So? What about this header? |
| 14353 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14354 | yes:no: ) |
| 14355 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14356 | echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14357 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 14358 | echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} |
| 14359 | ac_header_preproc=yes |
| 14360 | ;; |
| 14361 | no:yes:* ) |
| 14362 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 14363 | echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 14364 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 14365 | echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 14366 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 14367 | echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 14368 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14369 | echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14370 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 14371 | echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 14372 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 14373 | echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 14374 | ( |
| 14375 | cat <<\_ASBOX |
| 14376 | ## ------------------------------------------ ## |
| 14377 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14378 | ## ------------------------------------------ ## |
| 14379 | _ASBOX |
| 14380 | ) | |
| 14381 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14382 | ;; |
| 14383 | esac |
| 14384 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 14385 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 14386 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14388 | else |
| 14389 | ac_cv_header_dlfcn_h=$ac_header_preproc |
| 14390 | fi |
| 14391 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 14392 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
| 14393 | |
| 14394 | fi |
| 14395 | if test $ac_cv_header_dlfcn_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14396 | DLL=dlfcn.h |
| 14397 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14398 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14399 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 14400 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 14401 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14403 | fi |
| 14404 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 14405 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14406 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14407 | # Is the header compilable? |
| 14408 | echo "$as_me:$LINENO: checking dl.h usability" >&5 |
| 14409 | echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6 |
| 14410 | cat >conftest.$ac_ext <<_ACEOF |
| 14411 | /* confdefs.h. */ |
| 14412 | _ACEOF |
| 14413 | cat confdefs.h >>conftest.$ac_ext |
| 14414 | cat >>conftest.$ac_ext <<_ACEOF |
| 14415 | /* end confdefs.h. */ |
| 14416 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14417 | #include <dl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14418 | _ACEOF |
| 14419 | rm -f conftest.$ac_objext |
| 14420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14421 | (eval $ac_compile) 2>conftest.er1 |
| 14422 | ac_status=$? |
| 14423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14424 | rm -f conftest.er1 |
| 14425 | cat conftest.err >&5 |
| 14426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14427 | (exit $ac_status); } && |
| 14428 | { ac_try='test -z "$ac_c_werror_flag" |
| 14429 | || test ! -s conftest.err' |
| 14430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14431 | (eval $ac_try) 2>&5 |
| 14432 | ac_status=$? |
| 14433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14434 | (exit $ac_status); }; } && |
| 14435 | { ac_try='test -s conftest.$ac_objext' |
| 14436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14437 | (eval $ac_try) 2>&5 |
| 14438 | ac_status=$? |
| 14439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14440 | (exit $ac_status); }; }; then |
| 14441 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14442 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14443 | echo "$as_me: failed program was:" >&5 |
| 14444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14445 | |
| 14446 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14447 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14449 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14450 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14451 | |
| 14452 | # Is the header present? |
| 14453 | echo "$as_me:$LINENO: checking dl.h presence" >&5 |
| 14454 | echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6 |
| 14455 | cat >conftest.$ac_ext <<_ACEOF |
| 14456 | /* confdefs.h. */ |
| 14457 | _ACEOF |
| 14458 | cat confdefs.h >>conftest.$ac_ext |
| 14459 | cat >>conftest.$ac_ext <<_ACEOF |
| 14460 | /* end confdefs.h. */ |
| 14461 | #include <dl.h> |
| 14462 | _ACEOF |
| 14463 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14464 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14465 | ac_status=$? |
| 14466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14467 | rm -f conftest.er1 |
| 14468 | cat conftest.err >&5 |
| 14469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14470 | (exit $ac_status); } >/dev/null; then |
| 14471 | if test -s conftest.err; then |
| 14472 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14473 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14474 | else |
| 14475 | ac_cpp_err= |
| 14476 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14477 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14478 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14479 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14480 | if test -z "$ac_cpp_err"; then |
| 14481 | ac_header_preproc=yes |
| 14482 | else |
| 14483 | echo "$as_me: failed program was:" >&5 |
| 14484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14485 | |
| 14486 | ac_header_preproc=no |
| 14487 | fi |
| 14488 | rm -f conftest.err conftest.$ac_ext |
| 14489 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14490 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14491 | |
| 14492 | # So? What about this header? |
| 14493 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14494 | yes:no: ) |
| 14495 | { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14496 | echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14497 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 |
| 14498 | echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;} |
| 14499 | ac_header_preproc=yes |
| 14500 | ;; |
| 14501 | no:yes:* ) |
| 14502 | { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 |
| 14503 | echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} |
| 14504 | { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 |
| 14505 | echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} |
| 14506 | { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 |
| 14507 | echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} |
| 14508 | { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14509 | echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14510 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 |
| 14511 | echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} |
| 14512 | { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 |
| 14513 | echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} |
| 14514 | ( |
| 14515 | cat <<\_ASBOX |
| 14516 | ## ------------------------------------------ ## |
| 14517 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14518 | ## ------------------------------------------ ## |
| 14519 | _ASBOX |
| 14520 | ) | |
| 14521 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14522 | ;; |
| 14523 | esac |
| 14524 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 14525 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 14526 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14528 | else |
| 14529 | ac_cv_header_dl_h=$ac_header_preproc |
| 14530 | fi |
| 14531 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 14532 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14533 | |
| 14534 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14535 | if test $ac_cv_header_dl_h = yes; then |
| 14536 | DLL=dl.h |
| 14537 | fi |
| 14538 | |
| 14539 | |
| 14540 | fi |
| 14541 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14542 | |
| 14543 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14544 | |
| 14545 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14546 | #define HAVE_DLFCN_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14547 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14548 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14549 | echo "$as_me:$LINENO: checking for dlopen()" >&5 |
| 14550 | echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6 |
| 14551 | cat >conftest.$ac_ext <<_ACEOF |
| 14552 | /* confdefs.h. */ |
| 14553 | _ACEOF |
| 14554 | cat confdefs.h >>conftest.$ac_ext |
| 14555 | cat >>conftest.$ac_ext <<_ACEOF |
| 14556 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14557 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14558 | int |
| 14559 | main () |
| 14560 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14561 | |
| 14562 | extern void* dlopen(); |
| 14563 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14564 | |
| 14565 | ; |
| 14566 | return 0; |
| 14567 | } |
| 14568 | _ACEOF |
| 14569 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14571 | (eval $ac_link) 2>conftest.er1 |
| 14572 | ac_status=$? |
| 14573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14574 | rm -f conftest.er1 |
| 14575 | cat conftest.err >&5 |
| 14576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14577 | (exit $ac_status); } && |
| 14578 | { ac_try='test -z "$ac_c_werror_flag" |
| 14579 | || test ! -s conftest.err' |
| 14580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14581 | (eval $ac_try) 2>&5 |
| 14582 | ac_status=$? |
| 14583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14584 | (exit $ac_status); }; } && |
| 14585 | { ac_try='test -s conftest$ac_exeext' |
| 14586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14587 | (eval $ac_try) 2>&5 |
| 14588 | ac_status=$? |
| 14589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14590 | (exit $ac_status); }; }; then |
| 14591 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14592 | echo "${ECHO_T}yes" >&6; |
| 14593 | |
| 14594 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14595 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14596 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14597 | |
| 14598 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14599 | echo "$as_me: failed program was:" >&5 |
| 14600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14601 | |
| 14602 | echo "$as_me:$LINENO: result: no" >&5 |
| 14603 | echo "${ECHO_T}no" >&6; |
| 14604 | echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
| 14605 | echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14606 | olibs=$LIBS |
| 14607 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14608 | cat >conftest.$ac_ext <<_ACEOF |
| 14609 | /* confdefs.h. */ |
| 14610 | _ACEOF |
| 14611 | cat confdefs.h >>conftest.$ac_ext |
| 14612 | cat >>conftest.$ac_ext <<_ACEOF |
| 14613 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14614 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14615 | int |
| 14616 | main () |
| 14617 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14618 | |
| 14619 | extern void* dlopen(); |
| 14620 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14621 | |
| 14622 | ; |
| 14623 | return 0; |
| 14624 | } |
| 14625 | _ACEOF |
| 14626 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14628 | (eval $ac_link) 2>conftest.er1 |
| 14629 | ac_status=$? |
| 14630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14631 | rm -f conftest.er1 |
| 14632 | cat conftest.err >&5 |
| 14633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14634 | (exit $ac_status); } && |
| 14635 | { ac_try='test -z "$ac_c_werror_flag" |
| 14636 | || test ! -s conftest.err' |
| 14637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14638 | (eval $ac_try) 2>&5 |
| 14639 | ac_status=$? |
| 14640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14641 | (exit $ac_status); }; } && |
| 14642 | { ac_try='test -s conftest$ac_exeext' |
| 14643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14644 | (eval $ac_try) 2>&5 |
| 14645 | ac_status=$? |
| 14646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14647 | (exit $ac_status); }; }; then |
| 14648 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14649 | echo "${ECHO_T}yes" >&6; |
| 14650 | |
| 14651 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14652 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14653 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14654 | |
| 14655 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14656 | echo "$as_me: failed program was:" >&5 |
| 14657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14658 | |
| 14659 | echo "$as_me:$LINENO: result: no" >&5 |
| 14660 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14661 | LIBS=$olibs |
| 14662 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14663 | rm -f conftest.err conftest.$ac_objext \ |
| 14664 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14665 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14666 | rm -f conftest.err conftest.$ac_objext \ |
| 14667 | conftest$ac_exeext conftest.$ac_ext |
| 14668 | echo "$as_me:$LINENO: checking for dlsym()" >&5 |
| 14669 | echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6 |
| 14670 | cat >conftest.$ac_ext <<_ACEOF |
| 14671 | /* confdefs.h. */ |
| 14672 | _ACEOF |
| 14673 | cat confdefs.h >>conftest.$ac_ext |
| 14674 | cat >>conftest.$ac_ext <<_ACEOF |
| 14675 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14676 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14677 | int |
| 14678 | main () |
| 14679 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14680 | |
| 14681 | extern void* dlsym(); |
| 14682 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14683 | |
| 14684 | ; |
| 14685 | return 0; |
| 14686 | } |
| 14687 | _ACEOF |
| 14688 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14690 | (eval $ac_link) 2>conftest.er1 |
| 14691 | ac_status=$? |
| 14692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14693 | rm -f conftest.er1 |
| 14694 | cat conftest.err >&5 |
| 14695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14696 | (exit $ac_status); } && |
| 14697 | { ac_try='test -z "$ac_c_werror_flag" |
| 14698 | || test ! -s conftest.err' |
| 14699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14700 | (eval $ac_try) 2>&5 |
| 14701 | ac_status=$? |
| 14702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14703 | (exit $ac_status); }; } && |
| 14704 | { ac_try='test -s conftest$ac_exeext' |
| 14705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14706 | (eval $ac_try) 2>&5 |
| 14707 | ac_status=$? |
| 14708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14709 | (exit $ac_status); }; }; then |
| 14710 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14711 | echo "${ECHO_T}yes" >&6; |
| 14712 | |
| 14713 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14714 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14715 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14716 | |
| 14717 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14718 | echo "$as_me: failed program was:" >&5 |
| 14719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14720 | |
| 14721 | echo "$as_me:$LINENO: result: no" >&5 |
| 14722 | echo "${ECHO_T}no" >&6; |
| 14723 | echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
| 14724 | echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14725 | olibs=$LIBS |
| 14726 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14727 | cat >conftest.$ac_ext <<_ACEOF |
| 14728 | /* confdefs.h. */ |
| 14729 | _ACEOF |
| 14730 | cat confdefs.h >>conftest.$ac_ext |
| 14731 | cat >>conftest.$ac_ext <<_ACEOF |
| 14732 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14733 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14734 | int |
| 14735 | main () |
| 14736 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14737 | |
| 14738 | extern void* dlsym(); |
| 14739 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14740 | |
| 14741 | ; |
| 14742 | return 0; |
| 14743 | } |
| 14744 | _ACEOF |
| 14745 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14747 | (eval $ac_link) 2>conftest.er1 |
| 14748 | ac_status=$? |
| 14749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14750 | rm -f conftest.er1 |
| 14751 | cat conftest.err >&5 |
| 14752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14753 | (exit $ac_status); } && |
| 14754 | { ac_try='test -z "$ac_c_werror_flag" |
| 14755 | || test ! -s conftest.err' |
| 14756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14757 | (eval $ac_try) 2>&5 |
| 14758 | ac_status=$? |
| 14759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14760 | (exit $ac_status); }; } && |
| 14761 | { ac_try='test -s conftest$ac_exeext' |
| 14762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14763 | (eval $ac_try) 2>&5 |
| 14764 | ac_status=$? |
| 14765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14766 | (exit $ac_status); }; }; then |
| 14767 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14768 | echo "${ECHO_T}yes" >&6; |
| 14769 | |
| 14770 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14771 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14772 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14773 | |
| 14774 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14775 | echo "$as_me: failed program was:" >&5 |
| 14776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14777 | |
| 14778 | echo "$as_me:$LINENO: result: no" >&5 |
| 14779 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14780 | LIBS=$olibs |
| 14781 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14782 | rm -f conftest.err conftest.$ac_objext \ |
| 14783 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14784 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14785 | rm -f conftest.err conftest.$ac_objext \ |
| 14786 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14787 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14788 | |
| 14789 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14790 | #define HAVE_DL_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14791 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14792 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14793 | echo "$as_me:$LINENO: checking for shl_load()" >&5 |
| 14794 | echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6 |
| 14795 | cat >conftest.$ac_ext <<_ACEOF |
| 14796 | /* confdefs.h. */ |
| 14797 | _ACEOF |
| 14798 | cat confdefs.h >>conftest.$ac_ext |
| 14799 | cat >>conftest.$ac_ext <<_ACEOF |
| 14800 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14801 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14802 | int |
| 14803 | main () |
| 14804 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14805 | |
| 14806 | extern void* shl_load(); |
| 14807 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14808 | |
| 14809 | ; |
| 14810 | return 0; |
| 14811 | } |
| 14812 | _ACEOF |
| 14813 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14815 | (eval $ac_link) 2>conftest.er1 |
| 14816 | ac_status=$? |
| 14817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14818 | rm -f conftest.er1 |
| 14819 | cat conftest.err >&5 |
| 14820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14821 | (exit $ac_status); } && |
| 14822 | { ac_try='test -z "$ac_c_werror_flag" |
| 14823 | || test ! -s conftest.err' |
| 14824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14825 | (eval $ac_try) 2>&5 |
| 14826 | ac_status=$? |
| 14827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14828 | (exit $ac_status); }; } && |
| 14829 | { ac_try='test -s conftest$ac_exeext' |
| 14830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14831 | (eval $ac_try) 2>&5 |
| 14832 | ac_status=$? |
| 14833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14834 | (exit $ac_status); }; }; then |
| 14835 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14836 | echo "${ECHO_T}yes" >&6; |
| 14837 | |
| 14838 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14839 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14840 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14841 | |
| 14842 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14843 | echo "$as_me: failed program was:" >&5 |
| 14844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14845 | |
| 14846 | echo "$as_me:$LINENO: result: no" >&5 |
| 14847 | echo "${ECHO_T}no" >&6; |
| 14848 | echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
| 14849 | echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14850 | olibs=$LIBS |
| 14851 | LIBS="$LIBS -ldld" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14852 | cat >conftest.$ac_ext <<_ACEOF |
| 14853 | /* confdefs.h. */ |
| 14854 | _ACEOF |
| 14855 | cat confdefs.h >>conftest.$ac_ext |
| 14856 | cat >>conftest.$ac_ext <<_ACEOF |
| 14857 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14858 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14859 | int |
| 14860 | main () |
| 14861 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14862 | |
| 14863 | extern void* shl_load(); |
| 14864 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14865 | |
| 14866 | ; |
| 14867 | return 0; |
| 14868 | } |
| 14869 | _ACEOF |
| 14870 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14872 | (eval $ac_link) 2>conftest.er1 |
| 14873 | ac_status=$? |
| 14874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14875 | rm -f conftest.er1 |
| 14876 | cat conftest.err >&5 |
| 14877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14878 | (exit $ac_status); } && |
| 14879 | { ac_try='test -z "$ac_c_werror_flag" |
| 14880 | || test ! -s conftest.err' |
| 14881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14882 | (eval $ac_try) 2>&5 |
| 14883 | ac_status=$? |
| 14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14885 | (exit $ac_status); }; } && |
| 14886 | { ac_try='test -s conftest$ac_exeext' |
| 14887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14888 | (eval $ac_try) 2>&5 |
| 14889 | ac_status=$? |
| 14890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14891 | (exit $ac_status); }; }; then |
| 14892 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14893 | echo "${ECHO_T}yes" >&6; |
| 14894 | |
| 14895 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14896 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14897 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14898 | |
| 14899 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14900 | echo "$as_me: failed program was:" >&5 |
| 14901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14902 | |
| 14903 | echo "$as_me:$LINENO: result: no" >&5 |
| 14904 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14905 | LIBS=$olibs |
| 14906 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14907 | rm -f conftest.err conftest.$ac_objext \ |
| 14908 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14909 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14910 | rm -f conftest.err conftest.$ac_objext \ |
| 14911 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14912 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14913 | |
| 14914 | for ac_header in setjmp.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14915 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14916 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14917 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14918 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14919 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14920 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14922 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14925 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14926 | # Is the header compilable? |
| 14927 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14928 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 14929 | cat >conftest.$ac_ext <<_ACEOF |
| 14930 | /* confdefs.h. */ |
| 14931 | _ACEOF |
| 14932 | cat confdefs.h >>conftest.$ac_ext |
| 14933 | cat >>conftest.$ac_ext <<_ACEOF |
| 14934 | /* end confdefs.h. */ |
| 14935 | $ac_includes_default |
| 14936 | #include <$ac_header> |
| 14937 | _ACEOF |
| 14938 | rm -f conftest.$ac_objext |
| 14939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14940 | (eval $ac_compile) 2>conftest.er1 |
| 14941 | ac_status=$? |
| 14942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14943 | rm -f conftest.er1 |
| 14944 | cat conftest.err >&5 |
| 14945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14946 | (exit $ac_status); } && |
| 14947 | { ac_try='test -z "$ac_c_werror_flag" |
| 14948 | || test ! -s conftest.err' |
| 14949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14950 | (eval $ac_try) 2>&5 |
| 14951 | ac_status=$? |
| 14952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14953 | (exit $ac_status); }; } && |
| 14954 | { ac_try='test -s conftest.$ac_objext' |
| 14955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14956 | (eval $ac_try) 2>&5 |
| 14957 | ac_status=$? |
| 14958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14959 | (exit $ac_status); }; }; then |
| 14960 | ac_header_compiler=yes |
| 14961 | else |
| 14962 | echo "$as_me: failed program was:" >&5 |
| 14963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14964 | |
| 14965 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14966 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14968 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14969 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14970 | |
| 14971 | # Is the header present? |
| 14972 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14973 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 14974 | cat >conftest.$ac_ext <<_ACEOF |
| 14975 | /* confdefs.h. */ |
| 14976 | _ACEOF |
| 14977 | cat confdefs.h >>conftest.$ac_ext |
| 14978 | cat >>conftest.$ac_ext <<_ACEOF |
| 14979 | /* end confdefs.h. */ |
| 14980 | #include <$ac_header> |
| 14981 | _ACEOF |
| 14982 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14983 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14984 | ac_status=$? |
| 14985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14986 | rm -f conftest.er1 |
| 14987 | cat conftest.err >&5 |
| 14988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14989 | (exit $ac_status); } >/dev/null; then |
| 14990 | if test -s conftest.err; then |
| 14991 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14992 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14993 | else |
| 14994 | ac_cpp_err= |
| 14995 | fi |
| 14996 | else |
| 14997 | ac_cpp_err=yes |
| 14998 | fi |
| 14999 | if test -z "$ac_cpp_err"; then |
| 15000 | ac_header_preproc=yes |
| 15001 | else |
| 15002 | echo "$as_me: failed program was:" >&5 |
| 15003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15004 | |
| 15005 | ac_header_preproc=no |
| 15006 | fi |
| 15007 | rm -f conftest.err conftest.$ac_ext |
| 15008 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15009 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15010 | |
| 15011 | # So? What about this header? |
| 15012 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15013 | yes:no: ) |
| 15014 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15015 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15016 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15017 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15018 | ac_header_preproc=yes |
| 15019 | ;; |
| 15020 | no:yes:* ) |
| 15021 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15022 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15023 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15024 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15025 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15026 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15027 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15028 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15030 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15031 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15032 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15033 | ( |
| 15034 | cat <<\_ASBOX |
| 15035 | ## ------------------------------------------ ## |
| 15036 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15037 | ## ------------------------------------------ ## |
| 15038 | _ASBOX |
| 15039 | ) | |
| 15040 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15041 | ;; |
| 15042 | esac |
| 15043 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15044 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15045 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15047 | else |
| 15048 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15049 | fi |
| 15050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15051 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15052 | |
| 15053 | fi |
| 15054 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15055 | cat >>confdefs.h <<_ACEOF |
| 15056 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15057 | _ACEOF |
| 15058 | |
| 15059 | fi |
| 15060 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15061 | done |
| 15062 | |
| 15063 | |
| 15064 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 15065 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 15066 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 15067 | PERL_LIBS="$PERL_LIBS -ldl" |
| 15068 | fi |
| 15069 | fi |
| 15070 | |
| 15071 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 15072 | && test "x$GUITYPE" != "xCARBONGUI"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15073 | echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
| 15074 | echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15075 | if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \ |
| 15076 | || test "x$features" = "xhuge"; then |
| 15077 | LIBS="$LIBS -framework Carbon" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15078 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15079 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15080 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15081 | echo "$as_me:$LINENO: result: no" >&5 |
| 15082 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15083 | fi |
| 15084 | fi |
| 15085 | |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 15086 | echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 |
| 15087 | echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6 |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15088 | DEPEND_CFLAGS_FILTER= |
| 15089 | if test "$GCC" = yes; then |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 15090 | gccmajor=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([1-9]\)\.[0-9.]*.*$/\1/g'` |
| 15091 | if test "$gccmajor" > "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15092 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
| 15093 | fi |
| 15094 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 15095 | if test "$DEPEND_CFLAGS_FILTER" = ""; then |
| 15096 | echo "$as_me:$LINENO: result: no" >&5 |
| 15097 | echo "${ECHO_T}no" >&6 |
| 15098 | else |
| 15099 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15100 | echo "${ECHO_T}yes" >&6 |
| 15101 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15102 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15103 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15104 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 15105 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15106 | # This file is a shell script that caches the results of configure |
| 15107 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15108 | # scripts and configure runs, see configure's option --config-cache. |
| 15109 | # It is not useful on other systems. If it contains results you don't |
| 15110 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15111 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15112 | # config.status only pays attention to the cache file if you give it |
| 15113 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15114 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15115 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15116 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15117 | # following values. |
| 15118 | |
| 15119 | _ACEOF |
| 15120 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15121 | # The following way of writing the cache mishandles newlines in values, |
| 15122 | # but we know of no workaround that is simple, portable, and efficient. |
| 15123 | # So, don't put newlines in cache variables' values. |
| 15124 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15125 | # and sets the high bit in the cache file unless we assign to the vars. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15126 | { |
| 15127 | (set) 2>&1 | |
| 15128 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15129 | *ac_space=\ *) |
| 15130 | # `set' does not quote correctly, so add quotes (double-quote |
| 15131 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15132 | sed -n \ |
| 15133 | "s/'/'\\\\''/g; |
| 15134 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15135 | ;; |
| 15136 | *) |
| 15137 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15138 | sed -n \ |
| 15139 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15140 | ;; |
| 15141 | esac; |
| 15142 | } | |
| 15143 | sed ' |
| 15144 | t clear |
| 15145 | : clear |
| 15146 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15147 | t end |
| 15148 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15149 | : end' >>confcache |
| 15150 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15151 | if test -w $cache_file; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15152 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15153 | cat confcache >$cache_file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15154 | else |
| 15155 | echo "not updating unwritable cache $cache_file" |
| 15156 | fi |
| 15157 | fi |
| 15158 | rm -f confcache |
| 15159 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15160 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15161 | # Let make expand exec_prefix. |
| 15162 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15163 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15164 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15165 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15166 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15167 | # (actually we leave an empty line to preserve line numbers). |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15168 | if test "x$srcdir" = x.; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15169 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15170 | s/:*\$(srcdir):*/:/; |
| 15171 | s/:*\${srcdir}:*/:/; |
| 15172 | s/:*@srcdir@:*/:/; |
| 15173 | s/^\([^=]*=[ ]*\):*/\1/; |
| 15174 | s/:*$//; |
| 15175 | s/^[^=]*=[ ]*$//; |
| 15176 | }' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15177 | fi |
| 15178 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15179 | DEFS=-DHAVE_CONFIG_H |
| 15180 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15181 | ac_libobjs= |
| 15182 | ac_ltlibobjs= |
| 15183 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15184 | # 1. Remove the extension, and $U if already installed. |
| 15185 | ac_i=`echo "$ac_i" | |
| 15186 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 15187 | # 2. Add them. |
| 15188 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 15189 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 15190 | done |
| 15191 | LIBOBJS=$ac_libobjs |
| 15192 | |
| 15193 | LTLIBOBJS=$ac_ltlibobjs |
| 15194 | |
| 15195 | |
| 15196 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15197 | : ${CONFIG_STATUS=./config.status} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15198 | ac_clean_files_save=$ac_clean_files |
| 15199 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15200 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15201 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15202 | cat >$CONFIG_STATUS <<_ACEOF |
| 15203 | #! $SHELL |
| 15204 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15205 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15206 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15207 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15208 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15209 | debug=false |
| 15210 | ac_cs_recheck=false |
| 15211 | ac_cs_silent=false |
| 15212 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15213 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15214 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15215 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15216 | ## --------------------- ## |
| 15217 | ## M4sh Initialization. ## |
| 15218 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15219 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15220 | # Be Bourne compatible |
| 15221 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15222 | emulate sh |
| 15223 | NULLCMD=: |
| 15224 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15225 | # is contrary to our usage. Disable this feature. |
| 15226 | alias -g '${1+"$@"}'='"$@"' |
| 15227 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 15228 | set -o posix |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15229 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15230 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15231 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15232 | # Support unset when possible. |
| 15233 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15234 | as_unset=unset |
| 15235 | else |
| 15236 | as_unset=false |
| 15237 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15238 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15239 | |
| 15240 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15241 | $as_unset ENV MAIL MAILPATH |
| 15242 | PS1='$ ' |
| 15243 | PS2='> ' |
| 15244 | PS4='+ ' |
| 15245 | |
| 15246 | # NLS nuisances. |
| 15247 | for as_var in \ |
| 15248 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15249 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15250 | LC_TELEPHONE LC_TIME |
| 15251 | do |
| 15252 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15253 | eval $as_var=C; export $as_var |
| 15254 | else |
| 15255 | $as_unset $as_var |
| 15256 | fi |
| 15257 | done |
| 15258 | |
| 15259 | # Required to use basename. |
| 15260 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15261 | as_expr=expr |
| 15262 | else |
| 15263 | as_expr=false |
| 15264 | fi |
| 15265 | |
| 15266 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 15267 | as_basename=basename |
| 15268 | else |
| 15269 | as_basename=false |
| 15270 | fi |
| 15271 | |
| 15272 | |
| 15273 | # Name of the executable. |
| 15274 | as_me=`$as_basename "$0" || |
| 15275 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15276 | X"$0" : 'X\(//\)$' \| \ |
| 15277 | X"$0" : 'X\(/\)$' \| \ |
| 15278 | . : '\(.\)' 2>/dev/null || |
| 15279 | echo X/"$0" | |
| 15280 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 15281 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 15282 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 15283 | s/.*/./; q'` |
| 15284 | |
| 15285 | |
| 15286 | # PATH needs CR, and LINENO needs CR and PATH. |
| 15287 | # Avoid depending upon Character Ranges. |
| 15288 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15289 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15290 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15291 | as_cr_digits='0123456789' |
| 15292 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15293 | |
| 15294 | # The user is always right. |
| 15295 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15296 | echo "#! /bin/sh" >conf$$.sh |
| 15297 | echo "exit 0" >>conf$$.sh |
| 15298 | chmod +x conf$$.sh |
| 15299 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15300 | PATH_SEPARATOR=';' |
| 15301 | else |
| 15302 | PATH_SEPARATOR=: |
| 15303 | fi |
| 15304 | rm -f conf$$.sh |
| 15305 | fi |
| 15306 | |
| 15307 | |
| 15308 | as_lineno_1=$LINENO |
| 15309 | as_lineno_2=$LINENO |
| 15310 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15311 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15312 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 15313 | # Find who we are. Look in the path if we contain no path at all |
| 15314 | # relative or not. |
| 15315 | case $0 in |
| 15316 | *[\\/]* ) as_myself=$0 ;; |
| 15317 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15318 | for as_dir in $PATH |
| 15319 | do |
| 15320 | IFS=$as_save_IFS |
| 15321 | test -z "$as_dir" && as_dir=. |
| 15322 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15323 | done |
| 15324 | |
| 15325 | ;; |
| 15326 | esac |
| 15327 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15328 | # in which case we are not to be found in the path. |
| 15329 | if test "x$as_myself" = x; then |
| 15330 | as_myself=$0 |
| 15331 | fi |
| 15332 | if test ! -f "$as_myself"; then |
| 15333 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 15334 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 15335 | { (exit 1); exit 1; }; } |
| 15336 | fi |
| 15337 | case $CONFIG_SHELL in |
| 15338 | '') |
| 15339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15340 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 15341 | do |
| 15342 | IFS=$as_save_IFS |
| 15343 | test -z "$as_dir" && as_dir=. |
| 15344 | for as_base in sh bash ksh sh5; do |
| 15345 | case $as_dir in |
| 15346 | /*) |
| 15347 | if ("$as_dir/$as_base" -c ' |
| 15348 | as_lineno_1=$LINENO |
| 15349 | as_lineno_2=$LINENO |
| 15350 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15351 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15352 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 15353 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 15354 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 15355 | CONFIG_SHELL=$as_dir/$as_base |
| 15356 | export CONFIG_SHELL |
| 15357 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 15358 | fi;; |
| 15359 | esac |
| 15360 | done |
| 15361 | done |
| 15362 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15363 | esac |
| 15364 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15365 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15366 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 15367 | # line-number line before each line; the second 'sed' does the real |
| 15368 | # work. The second script uses 'N' to pair each line-number line |
| 15369 | # with the numbered line, and appends trailing '-' during |
| 15370 | # substitution so that $LINENO is not a special case at line end. |
| 15371 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 15372 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 15373 | sed '=' <$as_myself | |
| 15374 | sed ' |
| 15375 | N |
| 15376 | s,$,-, |
| 15377 | : loop |
| 15378 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 15379 | t loop |
| 15380 | s,-$,, |
| 15381 | s,^['$as_cr_digits']*\n,, |
| 15382 | ' >$as_me.lineno && |
| 15383 | chmod +x $as_me.lineno || |
| 15384 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 15385 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 15386 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15387 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15388 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15389 | # (the dirname of $[0] is not the place where we might find the |
| 15390 | # original and so on. Autoconf is especially sensible to this). |
| 15391 | . ./$as_me.lineno |
| 15392 | # Exit status is that of the last command. |
| 15393 | exit |
| 15394 | } |
| 15395 | |
| 15396 | |
| 15397 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 15398 | *c*,-n*) ECHO_N= ECHO_C=' |
| 15399 | ' ECHO_T=' ' ;; |
| 15400 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 15401 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 15402 | esac |
| 15403 | |
| 15404 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15405 | as_expr=expr |
| 15406 | else |
| 15407 | as_expr=false |
| 15408 | fi |
| 15409 | |
| 15410 | rm -f conf$$ conf$$.exe conf$$.file |
| 15411 | echo >conf$$.file |
| 15412 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15413 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 15414 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 15415 | if test -f conf$$.exe; then |
| 15416 | # Don't use ln at all; we don't have any links |
| 15417 | as_ln_s='cp -p' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15418 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15419 | as_ln_s='ln -s' |
| 15420 | fi |
| 15421 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15422 | as_ln_s=ln |
| 15423 | else |
| 15424 | as_ln_s='cp -p' |
| 15425 | fi |
| 15426 | rm -f conf$$ conf$$.exe conf$$.file |
| 15427 | |
| 15428 | if mkdir -p . 2>/dev/null; then |
| 15429 | as_mkdir_p=: |
| 15430 | else |
| 15431 | test -d ./-p && rmdir ./-p |
| 15432 | as_mkdir_p=false |
| 15433 | fi |
| 15434 | |
| 15435 | as_executable_p="test -f" |
| 15436 | |
| 15437 | # Sed expression to map a string onto a valid CPP name. |
| 15438 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15439 | |
| 15440 | # Sed expression to map a string onto a valid variable name. |
| 15441 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15442 | |
| 15443 | |
| 15444 | # IFS |
| 15445 | # We need space, tab and new line, in precisely that order. |
| 15446 | as_nl=' |
| 15447 | ' |
| 15448 | IFS=" $as_nl" |
| 15449 | |
| 15450 | # CDPATH. |
| 15451 | $as_unset CDPATH |
| 15452 | |
| 15453 | exec 6>&1 |
| 15454 | |
| 15455 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 15456 | # report actual input values of CONFIG_FILES etc. instead of their |
| 15457 | # values after options handling. Logging --version etc. is OK. |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 15458 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15459 | { |
| 15460 | echo |
| 15461 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15462 | ## Running $as_me. ## |
| 15463 | _ASBOX |
| 15464 | } >&5 |
| 15465 | cat >&5 <<_CSEOF |
| 15466 | |
| 15467 | This file was extended by $as_me, which was |
| 15468 | generated by GNU Autoconf 2.59. Invocation command line was |
| 15469 | |
| 15470 | CONFIG_FILES = $CONFIG_FILES |
| 15471 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15472 | CONFIG_LINKS = $CONFIG_LINKS |
| 15473 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15474 | $ $0 $@ |
| 15475 | |
| 15476 | _CSEOF |
| 15477 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 15478 | echo >&5 |
| 15479 | _ACEOF |
| 15480 | |
| 15481 | # Files that config.status was made for. |
| 15482 | if test -n "$ac_config_files"; then |
| 15483 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 15484 | fi |
| 15485 | |
| 15486 | if test -n "$ac_config_headers"; then |
| 15487 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 15488 | fi |
| 15489 | |
| 15490 | if test -n "$ac_config_links"; then |
| 15491 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 15492 | fi |
| 15493 | |
| 15494 | if test -n "$ac_config_commands"; then |
| 15495 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 15496 | fi |
| 15497 | |
| 15498 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15499 | |
| 15500 | ac_cs_usage="\ |
| 15501 | \`$as_me' instantiates files from templates according to the |
| 15502 | current configuration. |
| 15503 | |
| 15504 | Usage: $0 [OPTIONS] [FILE]... |
| 15505 | |
| 15506 | -h, --help print this help, then exit |
| 15507 | -V, --version print version number, then exit |
| 15508 | -q, --quiet do not print progress messages |
| 15509 | -d, --debug don't remove temporary files |
| 15510 | --recheck update $as_me by reconfiguring in the same conditions |
| 15511 | --file=FILE[:TEMPLATE] |
| 15512 | instantiate the configuration file FILE |
| 15513 | --header=FILE[:TEMPLATE] |
| 15514 | instantiate the configuration header FILE |
| 15515 | |
| 15516 | Configuration files: |
| 15517 | $config_files |
| 15518 | |
| 15519 | Configuration headers: |
| 15520 | $config_headers |
| 15521 | |
| 15522 | Report bugs to <bug-autoconf@gnu.org>." |
| 15523 | _ACEOF |
| 15524 | |
| 15525 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15526 | ac_cs_version="\\ |
| 15527 | config.status |
| 15528 | configured by $0, generated by GNU Autoconf 2.59, |
| 15529 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 15530 | |
| 15531 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 15532 | This config.status script is free software; the Free Software Foundation |
| 15533 | gives unlimited permission to copy, distribute and modify it." |
| 15534 | srcdir=$srcdir |
| 15535 | _ACEOF |
| 15536 | |
| 15537 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15538 | # If no file are specified by the user, then we need to provide default |
| 15539 | # value. By we need to know if files were specified by the user. |
| 15540 | ac_need_defaults=: |
| 15541 | while test $# != 0 |
| 15542 | do |
| 15543 | case $1 in |
| 15544 | --*=*) |
| 15545 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 15546 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 15547 | ac_shift=: |
| 15548 | ;; |
| 15549 | -*) |
| 15550 | ac_option=$1 |
| 15551 | ac_optarg=$2 |
| 15552 | ac_shift=shift |
| 15553 | ;; |
| 15554 | *) # This is not an option, so the user has probably given explicit |
| 15555 | # arguments. |
| 15556 | ac_option=$1 |
| 15557 | ac_need_defaults=false;; |
| 15558 | esac |
| 15559 | |
| 15560 | case $ac_option in |
| 15561 | # Handling of the options. |
| 15562 | _ACEOF |
| 15563 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15564 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15565 | ac_cs_recheck=: ;; |
| 15566 | --version | --vers* | -V ) |
| 15567 | echo "$ac_cs_version"; exit 0 ;; |
| 15568 | --he | --h) |
| 15569 | # Conflict between --help and --header |
| 15570 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 15571 | Try \`$0 --help' for more information." >&5 |
| 15572 | echo "$as_me: error: ambiguous option: $1 |
| 15573 | Try \`$0 --help' for more information." >&2;} |
| 15574 | { (exit 1); exit 1; }; };; |
| 15575 | --help | --hel | -h ) |
| 15576 | echo "$ac_cs_usage"; exit 0 ;; |
| 15577 | --debug | --d* | -d ) |
| 15578 | debug=: ;; |
| 15579 | --file | --fil | --fi | --f ) |
| 15580 | $ac_shift |
| 15581 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15582 | ac_need_defaults=false;; |
| 15583 | --header | --heade | --head | --hea ) |
| 15584 | $ac_shift |
| 15585 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 15586 | ac_need_defaults=false;; |
| 15587 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15588 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15589 | ac_cs_silent=: ;; |
| 15590 | |
| 15591 | # This is an error. |
| 15592 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 15593 | Try \`$0 --help' for more information." >&5 |
| 15594 | echo "$as_me: error: unrecognized option: $1 |
| 15595 | Try \`$0 --help' for more information." >&2;} |
| 15596 | { (exit 1); exit 1; }; } ;; |
| 15597 | |
| 15598 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 15599 | |
| 15600 | esac |
| 15601 | shift |
| 15602 | done |
| 15603 | |
| 15604 | ac_configure_extra_args= |
| 15605 | |
| 15606 | if $ac_cs_silent; then |
| 15607 | exec 6>/dev/null |
| 15608 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15609 | fi |
| 15610 | |
| 15611 | _ACEOF |
| 15612 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15613 | if \$ac_cs_recheck; then |
| 15614 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15615 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 15616 | fi |
| 15617 | |
| 15618 | _ACEOF |
| 15619 | |
| 15620 | |
| 15621 | |
| 15622 | |
| 15623 | |
| 15624 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15625 | for ac_config_target in $ac_config_targets |
| 15626 | do |
| 15627 | case "$ac_config_target" in |
| 15628 | # Handling of arguments. |
| 15629 | "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 15630 | "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 15631 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15632 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15633 | { (exit 1); exit 1; }; };; |
| 15634 | esac |
| 15635 | done |
| 15636 | |
| 15637 | # If the user did not use the arguments to specify the items to instantiate, |
| 15638 | # then the envvar interface is used. Set only those that are not. |
| 15639 | # We use the long form for the default assignment because of an extremely |
| 15640 | # bizarre bug on SunOS 4.1.3. |
| 15641 | if $ac_need_defaults; then |
| 15642 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15643 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 15644 | fi |
| 15645 | |
| 15646 | # Have a temporary directory for convenience. Make it in the build tree |
| 15647 | # simply because there is no reason to put it here, and in addition, |
| 15648 | # creating and moving files from /tmp can sometimes cause problems. |
| 15649 | # Create a temporary directory, and hook for its removal unless debugging. |
| 15650 | $debug || |
| 15651 | { |
| 15652 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 15653 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15654 | } |
| 15655 | |
| 15656 | # Create a (secure) tmp directory for tmp files. |
| 15657 | |
| 15658 | { |
| 15659 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 15660 | test -n "$tmp" && test -d "$tmp" |
| 15661 | } || |
| 15662 | { |
| 15663 | tmp=./confstat$$-$RANDOM |
| 15664 | (umask 077 && mkdir $tmp) |
| 15665 | } || |
| 15666 | { |
| 15667 | echo "$me: cannot create a temporary directory in ." >&2 |
| 15668 | { (exit 1); exit 1; } |
| 15669 | } |
| 15670 | |
| 15671 | _ACEOF |
| 15672 | |
| 15673 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15674 | |
| 15675 | # |
| 15676 | # CONFIG_FILES section. |
| 15677 | # |
| 15678 | |
| 15679 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 15680 | # This happens for instance when ./config.status config.h |
| 15681 | if test -n "\$CONFIG_FILES"; then |
| 15682 | # Protect against being on the right side of a sed subst in config.status. |
| 15683 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 15684 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 15685 | s,@SHELL@,$SHELL,;t t |
| 15686 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 15687 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 15688 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 15689 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 15690 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 15691 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 15692 | s,@exec_prefix@,$exec_prefix,;t t |
| 15693 | s,@prefix@,$prefix,;t t |
| 15694 | s,@program_transform_name@,$program_transform_name,;t t |
| 15695 | s,@bindir@,$bindir,;t t |
| 15696 | s,@sbindir@,$sbindir,;t t |
| 15697 | s,@libexecdir@,$libexecdir,;t t |
| 15698 | s,@datadir@,$datadir,;t t |
| 15699 | s,@sysconfdir@,$sysconfdir,;t t |
| 15700 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 15701 | s,@localstatedir@,$localstatedir,;t t |
| 15702 | s,@libdir@,$libdir,;t t |
| 15703 | s,@includedir@,$includedir,;t t |
| 15704 | s,@oldincludedir@,$oldincludedir,;t t |
| 15705 | s,@infodir@,$infodir,;t t |
| 15706 | s,@mandir@,$mandir,;t t |
| 15707 | s,@build_alias@,$build_alias,;t t |
| 15708 | s,@host_alias@,$host_alias,;t t |
| 15709 | s,@target_alias@,$target_alias,;t t |
| 15710 | s,@DEFS@,$DEFS,;t t |
| 15711 | s,@ECHO_C@,$ECHO_C,;t t |
| 15712 | s,@ECHO_N@,$ECHO_N,;t t |
| 15713 | s,@ECHO_T@,$ECHO_T,;t t |
| 15714 | s,@LIBS@,$LIBS,;t t |
| 15715 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 15716 | s,@CC@,$CC,;t t |
| 15717 | s,@CFLAGS@,$CFLAGS,;t t |
| 15718 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 15719 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 15720 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 15721 | s,@EXEEXT@,$EXEEXT,;t t |
| 15722 | s,@OBJEXT@,$OBJEXT,;t t |
| 15723 | s,@CPP@,$CPP,;t t |
| 15724 | s,@EGREP@,$EGREP,;t t |
| 15725 | s,@AWK@,$AWK,;t t |
| 15726 | s,@STRIP@,$STRIP,;t t |
| 15727 | s,@CPP_MM@,$CPP_MM,;t t |
| 15728 | s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t |
| 15729 | s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t |
| 15730 | s,@VIMNAME@,$VIMNAME,;t t |
| 15731 | s,@EXNAME@,$EXNAME,;t t |
| 15732 | s,@VIEWNAME@,$VIEWNAME,;t t |
| 15733 | s,@line_break@,$line_break,;t t |
| 15734 | s,@dovimdiff@,$dovimdiff,;t t |
| 15735 | s,@dogvimdiff@,$dogvimdiff,;t t |
| 15736 | s,@compiledby@,$compiledby,;t t |
| 15737 | s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t |
| 15738 | s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t |
| 15739 | s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t |
| 15740 | s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t |
| 15741 | s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t |
| 15742 | s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t |
| 15743 | s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t |
| 15744 | s,@vi_cv_perllib@,$vi_cv_perllib,;t t |
| 15745 | s,@shrpenv@,$shrpenv,;t t |
| 15746 | s,@PERL_SRC@,$PERL_SRC,;t t |
| 15747 | s,@PERL_OBJ@,$PERL_OBJ,;t t |
| 15748 | s,@PERL_PRO@,$PERL_PRO,;t t |
| 15749 | s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t |
| 15750 | s,@PERL_LIBS@,$PERL_LIBS,;t t |
| 15751 | s,@vi_cv_path_python@,$vi_cv_path_python,;t t |
| 15752 | s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t |
| 15753 | s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t |
| 15754 | s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t |
| 15755 | s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t |
| 15756 | s,@PYTHON_SRC@,$PYTHON_SRC,;t t |
| 15757 | s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t |
| 15758 | s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t |
| 15759 | s,@TCL_SRC@,$TCL_SRC,;t t |
| 15760 | s,@TCL_OBJ@,$TCL_OBJ,;t t |
| 15761 | s,@TCL_PRO@,$TCL_PRO,;t t |
| 15762 | s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t |
| 15763 | s,@TCL_LIBS@,$TCL_LIBS,;t t |
| 15764 | s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t |
| 15765 | s,@RUBY_SRC@,$RUBY_SRC,;t t |
| 15766 | s,@RUBY_OBJ@,$RUBY_OBJ,;t t |
| 15767 | s,@RUBY_PRO@,$RUBY_PRO,;t t |
| 15768 | s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t |
| 15769 | s,@RUBY_LIBS@,$RUBY_LIBS,;t t |
| 15770 | s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t |
| 15771 | s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t |
| 15772 | s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t |
| 15773 | s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t |
| 15774 | s,@SNIFF_SRC@,$SNIFF_SRC,;t t |
| 15775 | s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t |
| 15776 | s,@xmkmfpath@,$xmkmfpath,;t t |
| 15777 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 15778 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 15779 | s,@X_LIBS@,$X_LIBS,;t t |
| 15780 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 15781 | s,@X_LIB@,$X_LIB,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15782 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t |
| 15783 | s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t |
| 15784 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
| 15785 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t |
| 15786 | s,@GTK_LIBS@,$GTK_LIBS,;t t |
| 15787 | s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t |
| 15788 | s,@GNOME_LIBS@,$GNOME_LIBS,;t t |
| 15789 | s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t |
| 15790 | s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t |
| 15791 | s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t |
| 15792 | s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t |
| 15793 | s,@NARROW_PROTO@,$NARROW_PROTO,;t t |
| 15794 | s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t |
| 15795 | s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t |
| 15796 | s,@GUITYPE@,$GUITYPE,;t t |
| 15797 | s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t |
| 15798 | s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t |
| 15799 | s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t |
| 15800 | s,@TAGPRG@,$TAGPRG,;t t |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 15801 | s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t |
| 15802 | s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15803 | s,@MSGFMT@,$MSGFMT,;t t |
| 15804 | s,@MAKEMO@,$MAKEMO,;t t |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15805 | s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15806 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 15807 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 15808 | CEOF |
| 15809 | |
| 15810 | _ACEOF |
| 15811 | |
| 15812 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15813 | # Split the substitutions into bite-sized pieces for seds with |
| 15814 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 15815 | ac_max_sed_lines=48 |
| 15816 | ac_sed_frag=1 # Number of current file. |
| 15817 | ac_beg=1 # First line for current file. |
| 15818 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 15819 | ac_more_lines=: |
| 15820 | ac_sed_cmds= |
| 15821 | while $ac_more_lines; do |
| 15822 | if test $ac_beg -gt 1; then |
| 15823 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 15824 | else |
| 15825 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 15826 | fi |
| 15827 | if test ! -s $tmp/subs.frag; then |
| 15828 | ac_more_lines=false |
| 15829 | else |
| 15830 | # The purpose of the label and of the branching condition is to |
| 15831 | # speed up the sed processing (if there are no `@' at all, there |
| 15832 | # is no need to browse any of the substitutions). |
| 15833 | # These are the two extra sed commands mentioned above. |
| 15834 | (echo ':t |
| 15835 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 15836 | if test -z "$ac_sed_cmds"; then |
| 15837 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 15838 | else |
| 15839 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 15840 | fi |
| 15841 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 15842 | ac_beg=$ac_end |
| 15843 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 15844 | fi |
| 15845 | done |
| 15846 | if test -z "$ac_sed_cmds"; then |
| 15847 | ac_sed_cmds=cat |
| 15848 | fi |
| 15849 | fi # test -n "$CONFIG_FILES" |
| 15850 | |
| 15851 | _ACEOF |
| 15852 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15853 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 15854 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 15855 | case $ac_file in |
| 15856 | - | *:- | *:-:* ) # input from stdin |
| 15857 | cat >$tmp/stdin |
| 15858 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 15859 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 15860 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 15861 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 15862 | * ) ac_file_in=$ac_file.in ;; |
| 15863 | esac |
| 15864 | |
| 15865 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 15866 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 15867 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15868 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 15869 | X"$ac_file" : 'X\(//\)$' \| \ |
| 15870 | X"$ac_file" : 'X\(/\)' \| \ |
| 15871 | . : '\(.\)' 2>/dev/null || |
| 15872 | echo X"$ac_file" | |
| 15873 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 15874 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 15875 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 15876 | /^X\(\/\).*/{ s//\1/; q; } |
| 15877 | s/.*/./; q'` |
| 15878 | { if $as_mkdir_p; then |
| 15879 | mkdir -p "$ac_dir" |
| 15880 | else |
| 15881 | as_dir="$ac_dir" |
| 15882 | as_dirs= |
| 15883 | while test ! -d "$as_dir"; do |
| 15884 | as_dirs="$as_dir $as_dirs" |
| 15885 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 15886 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15887 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 15888 | X"$as_dir" : 'X\(//\)$' \| \ |
| 15889 | X"$as_dir" : 'X\(/\)' \| \ |
| 15890 | . : '\(.\)' 2>/dev/null || |
| 15891 | echo X"$as_dir" | |
| 15892 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 15893 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 15894 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 15895 | /^X\(\/\).*/{ s//\1/; q; } |
| 15896 | s/.*/./; q'` |
| 15897 | done |
| 15898 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 15899 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 15900 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 15901 | { (exit 1); exit 1; }; }; } |
| 15902 | |
| 15903 | ac_builddir=. |
| 15904 | |
| 15905 | if test "$ac_dir" != .; then |
| 15906 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 15907 | # A "../" for each directory in $ac_dir_suffix. |
| 15908 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 15909 | else |
| 15910 | ac_dir_suffix= ac_top_builddir= |
| 15911 | fi |
| 15912 | |
| 15913 | case $srcdir in |
| 15914 | .) # No --srcdir option. We are building in place. |
| 15915 | ac_srcdir=. |
| 15916 | if test -z "$ac_top_builddir"; then |
| 15917 | ac_top_srcdir=. |
| 15918 | else |
| 15919 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 15920 | fi ;; |
| 15921 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 15922 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 15923 | ac_top_srcdir=$srcdir ;; |
| 15924 | *) # Relative path. |
| 15925 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 15926 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 15927 | esac |
| 15928 | |
| 15929 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 15930 | # the directories may not exist. |
| 15931 | case `pwd` in |
| 15932 | .) ac_abs_builddir="$ac_dir";; |
| 15933 | *) |
| 15934 | case "$ac_dir" in |
| 15935 | .) ac_abs_builddir=`pwd`;; |
| 15936 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 15937 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 15938 | esac;; |
| 15939 | esac |
| 15940 | case $ac_abs_builddir in |
| 15941 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 15942 | *) |
| 15943 | case ${ac_top_builddir}. in |
| 15944 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 15945 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 15946 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 15947 | esac;; |
| 15948 | esac |
| 15949 | case $ac_abs_builddir in |
| 15950 | .) ac_abs_srcdir=$ac_srcdir;; |
| 15951 | *) |
| 15952 | case $ac_srcdir in |
| 15953 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 15954 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 15955 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 15956 | esac;; |
| 15957 | esac |
| 15958 | case $ac_abs_builddir in |
| 15959 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 15960 | *) |
| 15961 | case $ac_top_srcdir in |
| 15962 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 15963 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 15964 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 15965 | esac;; |
| 15966 | esac |
| 15967 | |
| 15968 | |
| 15969 | |
| 15970 | if test x"$ac_file" != x-; then |
| 15971 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 15972 | echo "$as_me: creating $ac_file" >&6;} |
| 15973 | rm -f "$ac_file" |
| 15974 | fi |
| 15975 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 15976 | # use $as_me), people would be surprised to read: |
| 15977 | # /* config.h. Generated by config.status. */ |
| 15978 | if test x"$ac_file" = x-; then |
| 15979 | configure_input= |
| 15980 | else |
| 15981 | configure_input="$ac_file. " |
| 15982 | fi |
| 15983 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 15984 | sed 's,.*/,,'` by configure." |
| 15985 | |
| 15986 | # First look for the input files in the build tree, otherwise in the |
| 15987 | # src tree. |
| 15988 | ac_file_inputs=`IFS=: |
| 15989 | for f in $ac_file_in; do |
| 15990 | case $f in |
| 15991 | -) echo $tmp/stdin ;; |
| 15992 | [\\/$]*) |
| 15993 | # Absolute (can't be DOS-style, as IFS=:) |
| 15994 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 15995 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 15996 | { (exit 1); exit 1; }; } |
| 15997 | echo "$f";; |
| 15998 | *) # Relative |
| 15999 | if test -f "$f"; then |
| 16000 | # Build tree |
| 16001 | echo "$f" |
| 16002 | elif test -f "$srcdir/$f"; then |
| 16003 | # Source tree |
| 16004 | echo "$srcdir/$f" |
| 16005 | else |
| 16006 | # /dev/null tree |
| 16007 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16008 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16009 | { (exit 1); exit 1; }; } |
| 16010 | fi;; |
| 16011 | esac |
| 16012 | done` || { (exit 1); exit 1; } |
| 16013 | _ACEOF |
| 16014 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16015 | sed "$ac_vpsub |
| 16016 | $extrasub |
| 16017 | _ACEOF |
| 16018 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16019 | :t |
| 16020 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16021 | s,@configure_input@,$configure_input,;t t |
| 16022 | s,@srcdir@,$ac_srcdir,;t t |
| 16023 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16024 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16025 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16026 | s,@builddir@,$ac_builddir,;t t |
| 16027 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16028 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16029 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16030 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16031 | rm -f $tmp/stdin |
| 16032 | if test x"$ac_file" != x-; then |
| 16033 | mv $tmp/out $ac_file |
| 16034 | else |
| 16035 | cat $tmp/out |
| 16036 | rm -f $tmp/out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16037 | fi |
| 16038 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16039 | done |
| 16040 | _ACEOF |
| 16041 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16042 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16043 | # |
| 16044 | # CONFIG_HEADER section. |
| 16045 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16046 | |
| 16047 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16048 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 16049 | # |
| 16050 | # ac_d sets the value in "#define NAME VALUE" lines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16051 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16052 | ac_dB='[ ].*$,\1#\2' |
| 16053 | ac_dC=' ' |
| 16054 | ac_dD=',;t' |
| 16055 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16056 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16057 | ac_uB='$,\1#\2define\3' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16058 | ac_uC=' ' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16059 | ac_uD=',;t' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16060 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16061 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16062 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16063 | case $ac_file in |
| 16064 | - | *:- | *:-:* ) # input from stdin |
| 16065 | cat >$tmp/stdin |
| 16066 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16067 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16068 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16069 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16070 | * ) ac_file_in=$ac_file.in ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16071 | esac |
| 16072 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16073 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16074 | echo "$as_me: creating $ac_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16075 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16076 | # First look for the input files in the build tree, otherwise in the |
| 16077 | # src tree. |
| 16078 | ac_file_inputs=`IFS=: |
| 16079 | for f in $ac_file_in; do |
| 16080 | case $f in |
| 16081 | -) echo $tmp/stdin ;; |
| 16082 | [\\/$]*) |
| 16083 | # Absolute (can't be DOS-style, as IFS=:) |
| 16084 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16085 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16086 | { (exit 1); exit 1; }; } |
| 16087 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 16088 | echo "$f";; |
| 16089 | *) # Relative |
| 16090 | if test -f "$f"; then |
| 16091 | # Build tree |
| 16092 | echo "$f" |
| 16093 | elif test -f "$srcdir/$f"; then |
| 16094 | # Source tree |
| 16095 | echo "$srcdir/$f" |
| 16096 | else |
| 16097 | # /dev/null tree |
| 16098 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16099 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16100 | { (exit 1); exit 1; }; } |
| 16101 | fi;; |
| 16102 | esac |
| 16103 | done` || { (exit 1); exit 1; } |
| 16104 | # Remove the trailing spaces. |
| 16105 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16106 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16107 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16108 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16109 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16110 | # `conftest.undefs', that substitutes the proper values into |
| 16111 | # config.h.in to produce config.h. The first handles `#define' |
| 16112 | # templates, and the second `#undef' templates. |
| 16113 | # And first: Protect against being on the right side of a sed subst in |
| 16114 | # config.status. Protect against being in an unquoted here document |
| 16115 | # in config.status. |
| 16116 | rm -f conftest.defines conftest.undefs |
| 16117 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16118 | # Putting comments in sed scripts is not portable. |
| 16119 | # |
| 16120 | # `end' is used to avoid that the second main sed command (meant for |
| 16121 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16122 | # See the Autoconf documentation for `clear'. |
| 16123 | cat >confdef2sed.sed <<\_ACEOF |
| 16124 | s/[\\&,]/\\&/g |
| 16125 | s,[\\$`],\\&,g |
| 16126 | t clear |
| 16127 | : clear |
| 16128 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16129 | t end |
| 16130 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16131 | : end |
| 16132 | _ACEOF |
| 16133 | # If some macros were called several times there might be several times |
| 16134 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16135 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16136 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16137 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16138 | rm -f confdef2sed.sed |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16139 | |
| 16140 | # This sed command replaces #undef with comments. This is necessary, for |
| 16141 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16142 | # on some systems where configure will not decide to define it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16143 | cat >>conftest.undefs <<\_ACEOF |
| 16144 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16145 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16146 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16147 | # Break up conftest.defines because some shells have a limit on the size |
| 16148 | # of here documents, and old seds have small limits too (100 cmds). |
| 16149 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16150 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16151 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16152 | echo ' :' >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16153 | rm -f conftest.tail |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16154 | while grep . conftest.defines >/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16155 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16156 | # Write a limited-size here document to $tmp/defines.sed. |
| 16157 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16158 | # Speed up: don't consider the non `#define' lines. |
| 16159 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16160 | # Work around the forget-to-reset-the-flag bug. |
| 16161 | echo 't clr' >>$CONFIG_STATUS |
| 16162 | echo ': clr' >>$CONFIG_STATUS |
| 16163 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16164 | echo 'CEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16165 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16166 | rm -f $tmp/in |
| 16167 | mv $tmp/out $tmp/in |
| 16168 | ' >>$CONFIG_STATUS |
| 16169 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16170 | rm -f conftest.defines |
| 16171 | mv conftest.tail conftest.defines |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16172 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16173 | rm -f conftest.defines |
| 16174 | echo ' fi # grep' >>$CONFIG_STATUS |
| 16175 | echo >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16176 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16177 | # Break up conftest.undefs because some shells have a limit on the size |
| 16178 | # of here documents, and old seds have small limits too (100 cmds). |
| 16179 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16180 | rm -f conftest.tail |
| 16181 | while grep . conftest.undefs >/dev/null |
| 16182 | do |
| 16183 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16184 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16185 | # Speed up: don't consider the non `#undef' |
| 16186 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16187 | # Work around the forget-to-reset-the-flag bug. |
| 16188 | echo 't clr' >>$CONFIG_STATUS |
| 16189 | echo ': clr' >>$CONFIG_STATUS |
| 16190 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16191 | echo 'CEOF |
| 16192 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16193 | rm -f $tmp/in |
| 16194 | mv $tmp/out $tmp/in |
| 16195 | ' >>$CONFIG_STATUS |
| 16196 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16197 | rm -f conftest.undefs |
| 16198 | mv conftest.tail conftest.undefs |
| 16199 | done |
| 16200 | rm -f conftest.undefs |
| 16201 | |
| 16202 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16203 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16204 | # use $as_me), people would be surprised to read: |
| 16205 | # /* config.h. Generated by config.status. */ |
| 16206 | if test x"$ac_file" = x-; then |
| 16207 | echo "/* Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16208 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16209 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16210 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16211 | cat $tmp/in >>$tmp/config.h |
| 16212 | rm -f $tmp/in |
| 16213 | if test x"$ac_file" != x-; then |
| 16214 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 16215 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16216 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16217 | else |
| 16218 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16219 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16220 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16221 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16222 | X"$ac_file" : 'X\(/\)' \| \ |
| 16223 | . : '\(.\)' 2>/dev/null || |
| 16224 | echo X"$ac_file" | |
| 16225 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16226 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16227 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16228 | /^X\(\/\).*/{ s//\1/; q; } |
| 16229 | s/.*/./; q'` |
| 16230 | { if $as_mkdir_p; then |
| 16231 | mkdir -p "$ac_dir" |
| 16232 | else |
| 16233 | as_dir="$ac_dir" |
| 16234 | as_dirs= |
| 16235 | while test ! -d "$as_dir"; do |
| 16236 | as_dirs="$as_dir $as_dirs" |
| 16237 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16238 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16239 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16240 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16241 | X"$as_dir" : 'X\(/\)' \| \ |
| 16242 | . : '\(.\)' 2>/dev/null || |
| 16243 | echo X"$as_dir" | |
| 16244 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16245 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16246 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16247 | /^X\(\/\).*/{ s//\1/; q; } |
| 16248 | s/.*/./; q'` |
| 16249 | done |
| 16250 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16251 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16252 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16253 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16254 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16255 | rm -f $ac_file |
| 16256 | mv $tmp/config.h $ac_file |
| 16257 | fi |
| 16258 | else |
| 16259 | cat $tmp/config.h |
| 16260 | rm -f $tmp/config.h |
| 16261 | fi |
| 16262 | done |
| 16263 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16264 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16265 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16266 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16267 | { (exit 0); exit 0; } |
| 16268 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16269 | chmod +x $CONFIG_STATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16270 | ac_clean_files=$ac_clean_files_save |
| 16271 | |
| 16272 | |
| 16273 | # configure is writing to config.log, and then calls config.status. |
| 16274 | # config.status does its own redirection, appending to config.log. |
| 16275 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16276 | # by configure, so config.status won't be able to write to it; its |
| 16277 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16278 | # effectively closing config.log, so it can be properly (re)opened and |
| 16279 | # appended to by config.status. When coming back to configure, we |
| 16280 | # need to make the FD available again. |
| 16281 | if test "$no_create" != yes; then |
| 16282 | ac_cs_success=: |
| 16283 | ac_config_status_args= |
| 16284 | test "$silent" = yes && |
| 16285 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16286 | exec 5>/dev/null |
| 16287 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 16288 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16289 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16290 | # would make configure fail if this is the last instruction. |
| 16291 | $ac_cs_success || { (exit 1); exit 1; } |
| 16292 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16293 | |
| 16294 | |