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) |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 879 | --with-mac-arch=ARCH intel, ppc or both |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 880 | --with-vim-name=NAME what to call the Vim executable |
| 881 | --with-ex-name=NAME what to call the Ex executable |
| 882 | --with-view-name=NAME what to call the View executable |
| 883 | --with-global-runtime=DIR global runtime directory in 'runtimepath' |
| 884 | --with-modified-by=NAME name of who modified a release version |
| 885 | --with-features=TYPE tiny, small, normal, big or huge (default: normal) |
| 886 | --with-compiledby=NAME name to show in :version message |
| 887 | --with-plthome=PLTHOME Use PLTHOME. |
| 888 | --with-python-config-dir=PATH Python's config directory |
| 889 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
| 890 | --with-x use the X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 891 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
| 892 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
| 893 | --with-gnome-includes=DIR Specify location of GNOME headers |
| 894 | --with-gnome-libs=DIR Specify location of GNOME libs |
| 895 | --with-gnome Specify prefix for GNOME files |
| 896 | --with-motif-lib=STRING Library for Motif |
| 897 | --with-tlib=library terminal library to be used |
| 898 | |
| 899 | Some influential environment variables: |
| 900 | CC C compiler command |
| 901 | CFLAGS C compiler flags |
| 902 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 903 | nonstandard directory <lib dir> |
| 904 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 905 | headers in a nonstandard directory <include dir> |
| 906 | CPP C preprocessor |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 907 | |
| 908 | Use these variables to override the choices made by `configure' or to help |
| 909 | it to find libraries and programs with nonstandard names/locations. |
| 910 | |
| 911 | _ACEOF |
| 912 | fi |
| 913 | |
| 914 | if test "$ac_init_help" = "recursive"; then |
| 915 | # If there are subdirs, report their specific --help. |
| 916 | ac_popdir=`pwd` |
| 917 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 918 | test -d $ac_dir || continue |
| 919 | ac_builddir=. |
| 920 | |
| 921 | if test "$ac_dir" != .; then |
| 922 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 923 | # A "../" for each directory in $ac_dir_suffix. |
| 924 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 925 | else |
| 926 | ac_dir_suffix= ac_top_builddir= |
| 927 | fi |
| 928 | |
| 929 | case $srcdir in |
| 930 | .) # No --srcdir option. We are building in place. |
| 931 | ac_srcdir=. |
| 932 | if test -z "$ac_top_builddir"; then |
| 933 | ac_top_srcdir=. |
| 934 | else |
| 935 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 936 | fi ;; |
| 937 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 938 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 939 | ac_top_srcdir=$srcdir ;; |
| 940 | *) # Relative path. |
| 941 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 942 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 943 | esac |
| 944 | |
| 945 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 946 | # the directories may not exist. |
| 947 | case `pwd` in |
| 948 | .) ac_abs_builddir="$ac_dir";; |
| 949 | *) |
| 950 | case "$ac_dir" in |
| 951 | .) ac_abs_builddir=`pwd`;; |
| 952 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 953 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 954 | esac;; |
| 955 | esac |
| 956 | case $ac_abs_builddir in |
| 957 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 958 | *) |
| 959 | case ${ac_top_builddir}. in |
| 960 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 961 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 962 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 963 | esac;; |
| 964 | esac |
| 965 | case $ac_abs_builddir in |
| 966 | .) ac_abs_srcdir=$ac_srcdir;; |
| 967 | *) |
| 968 | case $ac_srcdir in |
| 969 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 970 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 971 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 972 | esac;; |
| 973 | esac |
| 974 | case $ac_abs_builddir in |
| 975 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 976 | *) |
| 977 | case $ac_top_srcdir in |
| 978 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 979 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 980 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 981 | esac;; |
| 982 | esac |
| 983 | |
| 984 | cd $ac_dir |
| 985 | # Check for guested configure; otherwise get Cygnus style configure. |
| 986 | if test -f $ac_srcdir/configure.gnu; then |
| 987 | echo |
| 988 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 989 | elif test -f $ac_srcdir/configure; then |
| 990 | echo |
| 991 | $SHELL $ac_srcdir/configure --help=recursive |
| 992 | elif test -f $ac_srcdir/configure.ac || |
| 993 | test -f $ac_srcdir/configure.in; then |
| 994 | echo |
| 995 | $ac_configure --help |
| 996 | else |
| 997 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 998 | fi |
| 999 | cd $ac_popdir |
| 1000 | done |
| 1001 | fi |
| 1002 | |
| 1003 | test -n "$ac_init_help" && exit 0 |
| 1004 | if $ac_init_version; then |
| 1005 | cat <<\_ACEOF |
| 1006 | |
| 1007 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1008 | This configure script is free software; the Free Software Foundation |
| 1009 | gives unlimited permission to copy, distribute and modify it. |
| 1010 | _ACEOF |
| 1011 | exit 0 |
| 1012 | fi |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 1013 | exec 5>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1014 | cat >&5 <<_ACEOF |
| 1015 | This file contains any messages produced by compilers while |
| 1016 | running configure, to aid debugging if configure makes a mistake. |
| 1017 | |
| 1018 | It was created by $as_me, which was |
| 1019 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1020 | |
| 1021 | $ $0 $@ |
| 1022 | |
| 1023 | _ACEOF |
| 1024 | { |
| 1025 | cat <<_ASUNAME |
| 1026 | ## --------- ## |
| 1027 | ## Platform. ## |
| 1028 | ## --------- ## |
| 1029 | |
| 1030 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1031 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1032 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1033 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1034 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1035 | |
| 1036 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1037 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1038 | |
| 1039 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1040 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1041 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1042 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1043 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1044 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1045 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1046 | |
| 1047 | _ASUNAME |
| 1048 | |
| 1049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1050 | for as_dir in $PATH |
| 1051 | do |
| 1052 | IFS=$as_save_IFS |
| 1053 | test -z "$as_dir" && as_dir=. |
| 1054 | echo "PATH: $as_dir" |
| 1055 | done |
| 1056 | |
| 1057 | } >&5 |
| 1058 | |
| 1059 | cat >&5 <<_ACEOF |
| 1060 | |
| 1061 | |
| 1062 | ## ----------- ## |
| 1063 | ## Core tests. ## |
| 1064 | ## ----------- ## |
| 1065 | |
| 1066 | _ACEOF |
| 1067 | |
| 1068 | |
| 1069 | # Keep a trace of the command line. |
| 1070 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1071 | # Strip out --silent because we don't want to record it for future runs. |
| 1072 | # Also quote any args containing shell meta-characters. |
| 1073 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1074 | ac_configure_args= |
| 1075 | ac_configure_args0= |
| 1076 | ac_configure_args1= |
| 1077 | ac_sep= |
| 1078 | ac_must_keep_next=false |
| 1079 | for ac_pass in 1 2 |
| 1080 | do |
| 1081 | for ac_arg |
| 1082 | do |
| 1083 | case $ac_arg in |
| 1084 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1085 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1086 | | -silent | --silent | --silen | --sile | --sil) |
| 1087 | continue ;; |
| 1088 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1089 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1090 | esac |
| 1091 | case $ac_pass in |
| 1092 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1093 | 2) |
| 1094 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1095 | if test $ac_must_keep_next = true; then |
| 1096 | ac_must_keep_next=false # Got value, back to normal. |
| 1097 | else |
| 1098 | case $ac_arg in |
| 1099 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1100 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1101 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1102 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1103 | case "$ac_configure_args0 " in |
| 1104 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1105 | esac |
| 1106 | ;; |
| 1107 | -* ) ac_must_keep_next=true ;; |
| 1108 | esac |
| 1109 | fi |
| 1110 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1111 | # Get rid of the leading space. |
| 1112 | ac_sep=" " |
| 1113 | ;; |
| 1114 | esac |
| 1115 | done |
| 1116 | done |
| 1117 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1118 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1119 | |
| 1120 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1121 | # config.log. We remove comments because anyway the quotes in there |
| 1122 | # would cause problems or look ugly. |
| 1123 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1124 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1125 | trap 'exit_status=$? |
| 1126 | # Save into config.log some information that might help in debugging. |
| 1127 | { |
| 1128 | echo |
| 1129 | |
| 1130 | cat <<\_ASBOX |
| 1131 | ## ---------------- ## |
| 1132 | ## Cache variables. ## |
| 1133 | ## ---------------- ## |
| 1134 | _ASBOX |
| 1135 | echo |
| 1136 | # The following way of writing the cache mishandles newlines in values, |
| 1137 | { |
| 1138 | (set) 2>&1 | |
| 1139 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1140 | *ac_space=\ *) |
| 1141 | sed -n \ |
| 1142 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1143 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1144 | ;; |
| 1145 | *) |
| 1146 | sed -n \ |
| 1147 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1148 | ;; |
| 1149 | esac; |
| 1150 | } |
| 1151 | echo |
| 1152 | |
| 1153 | cat <<\_ASBOX |
| 1154 | ## ----------------- ## |
| 1155 | ## Output variables. ## |
| 1156 | ## ----------------- ## |
| 1157 | _ASBOX |
| 1158 | echo |
| 1159 | for ac_var in $ac_subst_vars |
| 1160 | do |
| 1161 | eval ac_val=$`echo $ac_var` |
| 1162 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1163 | done | sort |
| 1164 | echo |
| 1165 | |
| 1166 | if test -n "$ac_subst_files"; then |
| 1167 | cat <<\_ASBOX |
| 1168 | ## ------------- ## |
| 1169 | ## Output files. ## |
| 1170 | ## ------------- ## |
| 1171 | _ASBOX |
| 1172 | echo |
| 1173 | for ac_var in $ac_subst_files |
| 1174 | do |
| 1175 | eval ac_val=$`echo $ac_var` |
| 1176 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1177 | done | sort |
| 1178 | echo |
| 1179 | fi |
| 1180 | |
| 1181 | if test -s confdefs.h; then |
| 1182 | cat <<\_ASBOX |
| 1183 | ## ----------- ## |
| 1184 | ## confdefs.h. ## |
| 1185 | ## ----------- ## |
| 1186 | _ASBOX |
| 1187 | echo |
| 1188 | sed "/^$/d" confdefs.h | sort |
| 1189 | echo |
| 1190 | fi |
| 1191 | test "$ac_signal" != 0 && |
| 1192 | echo "$as_me: caught signal $ac_signal" |
| 1193 | echo "$as_me: exit $exit_status" |
| 1194 | } >&5 |
| 1195 | rm -f core *.core && |
| 1196 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1197 | exit $exit_status |
| 1198 | ' 0 |
| 1199 | for ac_signal in 1 2 13 15; do |
| 1200 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1201 | done |
| 1202 | ac_signal=0 |
| 1203 | |
| 1204 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1205 | rm -rf conftest* confdefs.h |
| 1206 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1207 | echo >confdefs.h |
| 1208 | |
| 1209 | # Predefined preprocessor variables. |
| 1210 | |
| 1211 | cat >>confdefs.h <<_ACEOF |
| 1212 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1213 | _ACEOF |
| 1214 | |
| 1215 | |
| 1216 | cat >>confdefs.h <<_ACEOF |
| 1217 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1218 | _ACEOF |
| 1219 | |
| 1220 | |
| 1221 | cat >>confdefs.h <<_ACEOF |
| 1222 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1223 | _ACEOF |
| 1224 | |
| 1225 | |
| 1226 | cat >>confdefs.h <<_ACEOF |
| 1227 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1228 | _ACEOF |
| 1229 | |
| 1230 | |
| 1231 | cat >>confdefs.h <<_ACEOF |
| 1232 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1233 | _ACEOF |
| 1234 | |
| 1235 | |
| 1236 | # 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] | 1237 | # Prefer explicitly selected file to automatically selected ones. |
| 1238 | if test -z "$CONFIG_SITE"; then |
| 1239 | if test "x$prefix" != xNONE; then |
| 1240 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1241 | else |
| 1242 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1243 | fi |
| 1244 | fi |
| 1245 | for ac_site_file in $CONFIG_SITE; do |
| 1246 | if test -r "$ac_site_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1247 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1248 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1249 | sed 's/^/| /' "$ac_site_file" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1250 | . "$ac_site_file" |
| 1251 | fi |
| 1252 | done |
| 1253 | |
| 1254 | if test -r "$cache_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1255 | # Some versions of bash will fail to source /dev/null (special |
| 1256 | # files actually), so we avoid doing that. |
| 1257 | if test -f "$cache_file"; then |
| 1258 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1259 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1260 | case $cache_file in |
| 1261 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1262 | *) . ./$cache_file;; |
| 1263 | esac |
| 1264 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1265 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1266 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1267 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1268 | >$cache_file |
| 1269 | fi |
| 1270 | |
| 1271 | # Check that the precious variables saved in the cache have kept the same |
| 1272 | # value. |
| 1273 | ac_cache_corrupted=false |
| 1274 | for ac_var in `(set) 2>&1 | |
| 1275 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1276 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1277 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1278 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1279 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1280 | case $ac_old_set,$ac_new_set in |
| 1281 | set,) |
| 1282 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1283 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1284 | ac_cache_corrupted=: ;; |
| 1285 | ,set) |
| 1286 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1287 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1288 | ac_cache_corrupted=: ;; |
| 1289 | ,);; |
| 1290 | *) |
| 1291 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1292 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1293 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1294 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1295 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1296 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1297 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1298 | ac_cache_corrupted=: |
| 1299 | fi;; |
| 1300 | esac |
| 1301 | # Pass precious variables to config.status. |
| 1302 | if test "$ac_new_set" = set; then |
| 1303 | case $ac_new_val in |
| 1304 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1305 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1306 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1307 | esac |
| 1308 | case " $ac_configure_args " in |
| 1309 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1310 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1311 | esac |
| 1312 | fi |
| 1313 | done |
| 1314 | if $ac_cache_corrupted; then |
| 1315 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1316 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1317 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1318 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1319 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1320 | fi |
| 1321 | |
| 1322 | ac_ext=c |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1323 | ac_cpp='$CPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1324 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1325 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | |
| 1344 | |
| 1345 | |
| 1346 | ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
| 1347 | |
| 1348 | |
| 1349 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1350 | #define UNIX 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1351 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1352 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1353 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1354 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1355 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 1356 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1358 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1359 | cat >conftest.make <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1360 | all: |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1361 | @echo 'ac_maketemp="$(MAKE)"' |
| 1362 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1363 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1364 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1365 | if test -n "$ac_maketemp"; then |
| 1366 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1367 | else |
| 1368 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1369 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1370 | rm -f conftest.make |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1371 | fi |
| 1372 | 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] | 1373 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1374 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1375 | SET_MAKE= |
| 1376 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1377 | echo "$as_me:$LINENO: result: no" >&5 |
| 1378 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1379 | SET_MAKE="MAKE=${MAKE-make}" |
| 1380 | fi |
| 1381 | |
| 1382 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1383 | ac_ext=c |
| 1384 | ac_cpp='$CPP $CPPFLAGS' |
| 1385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1388 | if test -n "$ac_tool_prefix"; then |
| 1389 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1390 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1391 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1393 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1395 | else |
| 1396 | if test -n "$CC"; then |
| 1397 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1398 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1400 | for as_dir in $PATH |
| 1401 | do |
| 1402 | IFS=$as_save_IFS |
| 1403 | test -z "$as_dir" && as_dir=. |
| 1404 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1405 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1406 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1408 | break 2 |
| 1409 | fi |
| 1410 | done |
| 1411 | done |
| 1412 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1413 | fi |
| 1414 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1415 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1416 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1417 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1418 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1419 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1420 | echo "$as_me:$LINENO: result: no" >&5 |
| 1421 | echo "${ECHO_T}no" >&6 |
| 1422 | fi |
| 1423 | |
| 1424 | fi |
| 1425 | if test -z "$ac_cv_prog_CC"; then |
| 1426 | ac_ct_CC=$CC |
| 1427 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1428 | set dummy gcc; ac_word=$2 |
| 1429 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1430 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1431 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1433 | else |
| 1434 | if test -n "$ac_ct_CC"; then |
| 1435 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1436 | else |
| 1437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1438 | for as_dir in $PATH |
| 1439 | do |
| 1440 | IFS=$as_save_IFS |
| 1441 | test -z "$as_dir" && as_dir=. |
| 1442 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1443 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1444 | ac_cv_prog_ac_ct_CC="gcc" |
| 1445 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1446 | break 2 |
| 1447 | fi |
| 1448 | done |
| 1449 | done |
| 1450 | |
| 1451 | fi |
| 1452 | fi |
| 1453 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1454 | if test -n "$ac_ct_CC"; then |
| 1455 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1456 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1457 | else |
| 1458 | echo "$as_me:$LINENO: result: no" >&5 |
| 1459 | echo "${ECHO_T}no" >&6 |
| 1460 | fi |
| 1461 | |
| 1462 | CC=$ac_ct_CC |
| 1463 | else |
| 1464 | CC="$ac_cv_prog_CC" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1465 | fi |
| 1466 | |
| 1467 | if test -z "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1468 | if test -n "$ac_tool_prefix"; then |
| 1469 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1470 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1471 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1473 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1475 | else |
| 1476 | if test -n "$CC"; then |
| 1477 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1478 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1480 | for as_dir in $PATH |
| 1481 | do |
| 1482 | IFS=$as_save_IFS |
| 1483 | test -z "$as_dir" && as_dir=. |
| 1484 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1485 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1486 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1488 | break 2 |
| 1489 | fi |
| 1490 | done |
| 1491 | done |
| 1492 | |
| 1493 | fi |
| 1494 | fi |
| 1495 | CC=$ac_cv_prog_CC |
| 1496 | if test -n "$CC"; then |
| 1497 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1498 | echo "${ECHO_T}$CC" >&6 |
| 1499 | else |
| 1500 | echo "$as_me:$LINENO: result: no" >&5 |
| 1501 | echo "${ECHO_T}no" >&6 |
| 1502 | fi |
| 1503 | |
| 1504 | fi |
| 1505 | if test -z "$ac_cv_prog_CC"; then |
| 1506 | ac_ct_CC=$CC |
| 1507 | # Extract the first word of "cc", so it can be a program name with args. |
| 1508 | set dummy cc; ac_word=$2 |
| 1509 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1510 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1511 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1513 | else |
| 1514 | if test -n "$ac_ct_CC"; then |
| 1515 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1516 | else |
| 1517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1518 | for as_dir in $PATH |
| 1519 | do |
| 1520 | IFS=$as_save_IFS |
| 1521 | test -z "$as_dir" && as_dir=. |
| 1522 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1523 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1524 | ac_cv_prog_ac_ct_CC="cc" |
| 1525 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1526 | break 2 |
| 1527 | fi |
| 1528 | done |
| 1529 | done |
| 1530 | |
| 1531 | fi |
| 1532 | fi |
| 1533 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1534 | if test -n "$ac_ct_CC"; then |
| 1535 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1536 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1537 | else |
| 1538 | echo "$as_me:$LINENO: result: no" >&5 |
| 1539 | echo "${ECHO_T}no" >&6 |
| 1540 | fi |
| 1541 | |
| 1542 | CC=$ac_ct_CC |
| 1543 | else |
| 1544 | CC="$ac_cv_prog_CC" |
| 1545 | fi |
| 1546 | |
| 1547 | fi |
| 1548 | if test -z "$CC"; then |
| 1549 | # Extract the first word of "cc", so it can be a program name with args. |
| 1550 | set dummy cc; ac_word=$2 |
| 1551 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1552 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1553 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1555 | else |
| 1556 | if test -n "$CC"; then |
| 1557 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1558 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1559 | ac_prog_rejected=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1561 | for as_dir in $PATH |
| 1562 | do |
| 1563 | IFS=$as_save_IFS |
| 1564 | test -z "$as_dir" && as_dir=. |
| 1565 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1566 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1567 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1568 | ac_prog_rejected=yes |
| 1569 | continue |
| 1570 | fi |
| 1571 | ac_cv_prog_CC="cc" |
| 1572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1573 | break 2 |
| 1574 | fi |
| 1575 | done |
| 1576 | done |
| 1577 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1578 | if test $ac_prog_rejected = yes; then |
| 1579 | # We found a bogon in the path, so make sure we never use it. |
| 1580 | set dummy $ac_cv_prog_CC |
| 1581 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1582 | if test $# != 0; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1583 | # We chose a different compiler from the bogus one. |
| 1584 | # However, it has the same basename, so the bogon will be chosen |
| 1585 | # first if we set CC to just the basename; use the full file name. |
| 1586 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1587 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1588 | fi |
| 1589 | fi |
| 1590 | fi |
| 1591 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1592 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1593 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1594 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1595 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1596 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1597 | echo "$as_me:$LINENO: result: no" >&5 |
| 1598 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1599 | fi |
| 1600 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1601 | fi |
| 1602 | if test -z "$CC"; then |
| 1603 | if test -n "$ac_tool_prefix"; then |
| 1604 | for ac_prog in cl |
| 1605 | do |
| 1606 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1607 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1608 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1610 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1612 | else |
| 1613 | if test -n "$CC"; then |
| 1614 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1615 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1617 | for as_dir in $PATH |
| 1618 | do |
| 1619 | IFS=$as_save_IFS |
| 1620 | test -z "$as_dir" && as_dir=. |
| 1621 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1622 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1623 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1625 | break 2 |
| 1626 | fi |
| 1627 | done |
| 1628 | done |
| 1629 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1630 | fi |
| 1631 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1632 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1633 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1634 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1635 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1636 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1637 | echo "$as_me:$LINENO: result: no" >&5 |
| 1638 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1639 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1640 | |
| 1641 | test -n "$CC" && break |
| 1642 | done |
| 1643 | fi |
| 1644 | if test -z "$CC"; then |
| 1645 | ac_ct_CC=$CC |
| 1646 | for ac_prog in cl |
| 1647 | do |
| 1648 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1649 | set dummy $ac_prog; ac_word=$2 |
| 1650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1652 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1654 | else |
| 1655 | if test -n "$ac_ct_CC"; then |
| 1656 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1657 | else |
| 1658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1659 | for as_dir in $PATH |
| 1660 | do |
| 1661 | IFS=$as_save_IFS |
| 1662 | test -z "$as_dir" && as_dir=. |
| 1663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1665 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1667 | break 2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1668 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1669 | done |
| 1670 | done |
| 1671 | |
| 1672 | fi |
| 1673 | fi |
| 1674 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1675 | if test -n "$ac_ct_CC"; then |
| 1676 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1677 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1678 | else |
| 1679 | echo "$as_me:$LINENO: result: no" >&5 |
| 1680 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1681 | fi |
| 1682 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1683 | test -n "$ac_ct_CC" && break |
| 1684 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1685 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1686 | CC=$ac_ct_CC |
| 1687 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1688 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1689 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1690 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1691 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1692 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1693 | See \`config.log' for more details." >&5 |
| 1694 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1695 | See \`config.log' for more details." >&2;} |
| 1696 | { (exit 1); exit 1; }; } |
| 1697 | |
| 1698 | # Provide some information about the compiler. |
| 1699 | echo "$as_me:$LINENO:" \ |
| 1700 | "checking for C compiler version" >&5 |
| 1701 | ac_compiler=`set X $ac_compile; echo $2` |
| 1702 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1703 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1704 | ac_status=$? |
| 1705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1706 | (exit $ac_status); } |
| 1707 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1708 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1709 | ac_status=$? |
| 1710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1711 | (exit $ac_status); } |
| 1712 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1713 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1714 | ac_status=$? |
| 1715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1716 | (exit $ac_status); } |
| 1717 | |
| 1718 | cat >conftest.$ac_ext <<_ACEOF |
| 1719 | /* confdefs.h. */ |
| 1720 | _ACEOF |
| 1721 | cat confdefs.h >>conftest.$ac_ext |
| 1722 | cat >>conftest.$ac_ext <<_ACEOF |
| 1723 | /* end confdefs.h. */ |
| 1724 | |
| 1725 | int |
| 1726 | main () |
| 1727 | { |
| 1728 | |
| 1729 | ; |
| 1730 | return 0; |
| 1731 | } |
| 1732 | _ACEOF |
| 1733 | ac_clean_files_save=$ac_clean_files |
| 1734 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1735 | # Try to create an executable without -o first, disregard a.out. |
| 1736 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1737 | # of exeext. |
| 1738 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1739 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1740 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1741 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1742 | (eval $ac_link_default) 2>&5 |
| 1743 | ac_status=$? |
| 1744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1745 | (exit $ac_status); }; then |
| 1746 | # Find the output, starting from the most likely. This scheme is |
| 1747 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1748 | # resort. |
| 1749 | |
| 1750 | # Be careful to initialize this variable, since it used to be cached. |
| 1751 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1752 | ac_cv_exeext= |
| 1753 | # b.out is created by i960 compilers. |
| 1754 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1755 | do |
| 1756 | test -f "$ac_file" || continue |
| 1757 | case $ac_file in |
| 1758 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1759 | ;; |
| 1760 | conftest.$ac_ext ) |
| 1761 | # This is the source file. |
| 1762 | ;; |
| 1763 | [ab].out ) |
| 1764 | # We found the default executable, but exeext='' is most |
| 1765 | # certainly right. |
| 1766 | break;; |
| 1767 | *.* ) |
| 1768 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1769 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1770 | # but it would be cool to find out if it's true. Does anybody |
| 1771 | # maintain Libtool? --akim. |
| 1772 | export ac_cv_exeext |
| 1773 | break;; |
| 1774 | * ) |
| 1775 | break;; |
| 1776 | esac |
| 1777 | done |
| 1778 | else |
| 1779 | echo "$as_me: failed program was:" >&5 |
| 1780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1781 | |
| 1782 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1783 | See \`config.log' for more details." >&5 |
| 1784 | echo "$as_me: error: C compiler cannot create executables |
| 1785 | See \`config.log' for more details." >&2;} |
| 1786 | { (exit 77); exit 77; }; } |
| 1787 | fi |
| 1788 | |
| 1789 | ac_exeext=$ac_cv_exeext |
| 1790 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1791 | echo "${ECHO_T}$ac_file" >&6 |
| 1792 | |
| 1793 | # Check the compiler produces executables we can run. If not, either |
| 1794 | # the compiler is broken, or we cross compile. |
| 1795 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1796 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1797 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1798 | # If not cross compiling, check that we can run a simple program. |
| 1799 | if test "$cross_compiling" != yes; then |
| 1800 | if { ac_try='./$ac_file' |
| 1801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1802 | (eval $ac_try) 2>&5 |
| 1803 | ac_status=$? |
| 1804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1805 | (exit $ac_status); }; }; then |
| 1806 | cross_compiling=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1807 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1808 | if test "$cross_compiling" = maybe; then |
| 1809 | cross_compiling=yes |
| 1810 | else |
| 1811 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1812 | If you meant to cross compile, use \`--host'. |
| 1813 | See \`config.log' for more details." >&5 |
| 1814 | echo "$as_me: error: cannot run C compiled programs. |
| 1815 | If you meant to cross compile, use \`--host'. |
| 1816 | See \`config.log' for more details." >&2;} |
| 1817 | { (exit 1); exit 1; }; } |
| 1818 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1819 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1820 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1821 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1822 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1823 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1824 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1825 | ac_clean_files=$ac_clean_files_save |
| 1826 | # Check the compiler produces executables we can run. If not, either |
| 1827 | # the compiler is broken, or we cross compile. |
| 1828 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1829 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1830 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1831 | echo "${ECHO_T}$cross_compiling" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1832 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1833 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1834 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1836 | (eval $ac_link) 2>&5 |
| 1837 | ac_status=$? |
| 1838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1839 | (exit $ac_status); }; then |
| 1840 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1841 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1842 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1843 | # `rm'. |
| 1844 | for ac_file in conftest.exe conftest conftest.*; do |
| 1845 | test -f "$ac_file" || continue |
| 1846 | case $ac_file in |
| 1847 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1848 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1849 | export ac_cv_exeext |
| 1850 | break;; |
| 1851 | * ) break;; |
| 1852 | esac |
| 1853 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1854 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1855 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1856 | See \`config.log' for more details." >&5 |
| 1857 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1858 | See \`config.log' for more details." >&2;} |
| 1859 | { (exit 1); exit 1; }; } |
| 1860 | fi |
| 1861 | |
| 1862 | rm -f conftest$ac_cv_exeext |
| 1863 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1864 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1865 | |
| 1866 | rm -f conftest.$ac_ext |
| 1867 | EXEEXT=$ac_cv_exeext |
| 1868 | ac_exeext=$EXEEXT |
| 1869 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1870 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1871 | if test "${ac_cv_objext+set}" = set; then |
| 1872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1873 | else |
| 1874 | cat >conftest.$ac_ext <<_ACEOF |
| 1875 | /* confdefs.h. */ |
| 1876 | _ACEOF |
| 1877 | cat confdefs.h >>conftest.$ac_ext |
| 1878 | cat >>conftest.$ac_ext <<_ACEOF |
| 1879 | /* end confdefs.h. */ |
| 1880 | |
| 1881 | int |
| 1882 | main () |
| 1883 | { |
| 1884 | |
| 1885 | ; |
| 1886 | return 0; |
| 1887 | } |
| 1888 | _ACEOF |
| 1889 | rm -f conftest.o conftest.obj |
| 1890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1891 | (eval $ac_compile) 2>&5 |
| 1892 | ac_status=$? |
| 1893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1894 | (exit $ac_status); }; then |
| 1895 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1896 | case $ac_file in |
| 1897 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1898 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1899 | break;; |
| 1900 | esac |
| 1901 | done |
| 1902 | else |
| 1903 | echo "$as_me: failed program was:" >&5 |
| 1904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1905 | |
| 1906 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1907 | See \`config.log' for more details." >&5 |
| 1908 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1909 | See \`config.log' for more details." >&2;} |
| 1910 | { (exit 1); exit 1; }; } |
| 1911 | fi |
| 1912 | |
| 1913 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1914 | fi |
| 1915 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1916 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1917 | OBJEXT=$ac_cv_objext |
| 1918 | ac_objext=$OBJEXT |
| 1919 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1920 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1921 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1923 | else |
| 1924 | cat >conftest.$ac_ext <<_ACEOF |
| 1925 | /* confdefs.h. */ |
| 1926 | _ACEOF |
| 1927 | cat confdefs.h >>conftest.$ac_ext |
| 1928 | cat >>conftest.$ac_ext <<_ACEOF |
| 1929 | /* end confdefs.h. */ |
| 1930 | |
| 1931 | int |
| 1932 | main () |
| 1933 | { |
| 1934 | #ifndef __GNUC__ |
| 1935 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1936 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1937 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1938 | ; |
| 1939 | return 0; |
| 1940 | } |
| 1941 | _ACEOF |
| 1942 | rm -f conftest.$ac_objext |
| 1943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1944 | (eval $ac_compile) 2>conftest.er1 |
| 1945 | ac_status=$? |
| 1946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1947 | rm -f conftest.er1 |
| 1948 | cat conftest.err >&5 |
| 1949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1950 | (exit $ac_status); } && |
| 1951 | { ac_try='test -z "$ac_c_werror_flag" |
| 1952 | || test ! -s conftest.err' |
| 1953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1954 | (eval $ac_try) 2>&5 |
| 1955 | ac_status=$? |
| 1956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1957 | (exit $ac_status); }; } && |
| 1958 | { ac_try='test -s conftest.$ac_objext' |
| 1959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1960 | (eval $ac_try) 2>&5 |
| 1961 | ac_status=$? |
| 1962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1963 | (exit $ac_status); }; }; then |
| 1964 | ac_compiler_gnu=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1965 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1966 | echo "$as_me: failed program was:" >&5 |
| 1967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1968 | |
| 1969 | ac_compiler_gnu=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1970 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1972 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1973 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1974 | fi |
| 1975 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1976 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1977 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1978 | ac_test_CFLAGS=${CFLAGS+set} |
| 1979 | ac_save_CFLAGS=$CFLAGS |
| 1980 | CFLAGS="-g" |
| 1981 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1982 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1983 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1985 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1986 | cat >conftest.$ac_ext <<_ACEOF |
| 1987 | /* confdefs.h. */ |
| 1988 | _ACEOF |
| 1989 | cat confdefs.h >>conftest.$ac_ext |
| 1990 | cat >>conftest.$ac_ext <<_ACEOF |
| 1991 | /* end confdefs.h. */ |
| 1992 | |
| 1993 | int |
| 1994 | main () |
| 1995 | { |
| 1996 | |
| 1997 | ; |
| 1998 | return 0; |
| 1999 | } |
| 2000 | _ACEOF |
| 2001 | rm -f conftest.$ac_objext |
| 2002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2003 | (eval $ac_compile) 2>conftest.er1 |
| 2004 | ac_status=$? |
| 2005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2006 | rm -f conftest.er1 |
| 2007 | cat conftest.err >&5 |
| 2008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2009 | (exit $ac_status); } && |
| 2010 | { ac_try='test -z "$ac_c_werror_flag" |
| 2011 | || test ! -s conftest.err' |
| 2012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2013 | (eval $ac_try) 2>&5 |
| 2014 | ac_status=$? |
| 2015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2016 | (exit $ac_status); }; } && |
| 2017 | { ac_try='test -s conftest.$ac_objext' |
| 2018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2019 | (eval $ac_try) 2>&5 |
| 2020 | ac_status=$? |
| 2021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2022 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2023 | ac_cv_prog_cc_g=yes |
| 2024 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2025 | echo "$as_me: failed program was:" >&5 |
| 2026 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2027 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2028 | ac_cv_prog_cc_g=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2029 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2031 | fi |
| 2032 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2033 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2034 | if test "$ac_test_CFLAGS" = set; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2035 | CFLAGS=$ac_save_CFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2036 | elif test $ac_cv_prog_cc_g = yes; then |
| 2037 | if test "$GCC" = yes; then |
| 2038 | CFLAGS="-g -O2" |
| 2039 | else |
| 2040 | CFLAGS="-g" |
| 2041 | fi |
| 2042 | else |
| 2043 | if test "$GCC" = yes; then |
| 2044 | CFLAGS="-O2" |
| 2045 | else |
| 2046 | CFLAGS= |
| 2047 | fi |
| 2048 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2049 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2050 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2051 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2053 | else |
| 2054 | ac_cv_prog_cc_stdc=no |
| 2055 | ac_save_CC=$CC |
| 2056 | cat >conftest.$ac_ext <<_ACEOF |
| 2057 | /* confdefs.h. */ |
| 2058 | _ACEOF |
| 2059 | cat confdefs.h >>conftest.$ac_ext |
| 2060 | cat >>conftest.$ac_ext <<_ACEOF |
| 2061 | /* end confdefs.h. */ |
| 2062 | #include <stdarg.h> |
| 2063 | #include <stdio.h> |
| 2064 | #include <sys/types.h> |
| 2065 | #include <sys/stat.h> |
| 2066 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2067 | struct buf { int x; }; |
| 2068 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2069 | static char *e (p, i) |
| 2070 | char **p; |
| 2071 | int i; |
| 2072 | { |
| 2073 | return p[i]; |
| 2074 | } |
| 2075 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2076 | { |
| 2077 | char *s; |
| 2078 | va_list v; |
| 2079 | va_start (v,p); |
| 2080 | s = g (p, va_arg (v,int)); |
| 2081 | va_end (v); |
| 2082 | return s; |
| 2083 | } |
| 2084 | |
| 2085 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2086 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2087 | These don't provoke an error unfortunately, instead are silently treated |
| 2088 | as 'x'. The following induces an error, until -std1 is added to get |
| 2089 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2090 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2091 | that's true only with -std1. */ |
| 2092 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2093 | |
| 2094 | int test (int i, double x); |
| 2095 | struct s1 {int (*f) (int a);}; |
| 2096 | struct s2 {int (*f) (double a);}; |
| 2097 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2098 | int argc; |
| 2099 | char **argv; |
| 2100 | int |
| 2101 | main () |
| 2102 | { |
| 2103 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2104 | ; |
| 2105 | return 0; |
| 2106 | } |
| 2107 | _ACEOF |
| 2108 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2109 | # breaks some systems' header files. |
| 2110 | # AIX -qlanglvl=ansi |
| 2111 | # Ultrix and OSF/1 -std1 |
| 2112 | # HP-UX 10.20 and later -Ae |
| 2113 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2114 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2115 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2116 | do |
| 2117 | CC="$ac_save_CC $ac_arg" |
| 2118 | rm -f conftest.$ac_objext |
| 2119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2120 | (eval $ac_compile) 2>conftest.er1 |
| 2121 | ac_status=$? |
| 2122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2123 | rm -f conftest.er1 |
| 2124 | cat conftest.err >&5 |
| 2125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2126 | (exit $ac_status); } && |
| 2127 | { ac_try='test -z "$ac_c_werror_flag" |
| 2128 | || test ! -s conftest.err' |
| 2129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2130 | (eval $ac_try) 2>&5 |
| 2131 | ac_status=$? |
| 2132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2133 | (exit $ac_status); }; } && |
| 2134 | { ac_try='test -s conftest.$ac_objext' |
| 2135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2136 | (eval $ac_try) 2>&5 |
| 2137 | ac_status=$? |
| 2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2139 | (exit $ac_status); }; }; then |
| 2140 | ac_cv_prog_cc_stdc=$ac_arg |
| 2141 | break |
| 2142 | else |
| 2143 | echo "$as_me: failed program was:" >&5 |
| 2144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2145 | |
| 2146 | fi |
| 2147 | rm -f conftest.err conftest.$ac_objext |
| 2148 | done |
| 2149 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2150 | CC=$ac_save_CC |
| 2151 | |
| 2152 | fi |
| 2153 | |
| 2154 | case "x$ac_cv_prog_cc_stdc" in |
| 2155 | x|xno) |
| 2156 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2157 | echo "${ECHO_T}none needed" >&6 ;; |
| 2158 | *) |
| 2159 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2160 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2161 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2162 | esac |
| 2163 | |
| 2164 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2165 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2166 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2167 | # the declaration of exit, since it's the most demanding environment. |
| 2168 | cat >conftest.$ac_ext <<_ACEOF |
| 2169 | #ifndef __cplusplus |
| 2170 | choke me |
| 2171 | #endif |
| 2172 | _ACEOF |
| 2173 | rm -f conftest.$ac_objext |
| 2174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2175 | (eval $ac_compile) 2>conftest.er1 |
| 2176 | ac_status=$? |
| 2177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2178 | rm -f conftest.er1 |
| 2179 | cat conftest.err >&5 |
| 2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2181 | (exit $ac_status); } && |
| 2182 | { ac_try='test -z "$ac_c_werror_flag" |
| 2183 | || test ! -s conftest.err' |
| 2184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2185 | (eval $ac_try) 2>&5 |
| 2186 | ac_status=$? |
| 2187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2188 | (exit $ac_status); }; } && |
| 2189 | { ac_try='test -s conftest.$ac_objext' |
| 2190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2191 | (eval $ac_try) 2>&5 |
| 2192 | ac_status=$? |
| 2193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2194 | (exit $ac_status); }; }; then |
| 2195 | for ac_declaration in \ |
| 2196 | '' \ |
| 2197 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2198 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2199 | 'extern "C" void exit (int) throw ();' \ |
| 2200 | 'extern "C" void exit (int);' \ |
| 2201 | 'void exit (int);' |
| 2202 | do |
| 2203 | cat >conftest.$ac_ext <<_ACEOF |
| 2204 | /* confdefs.h. */ |
| 2205 | _ACEOF |
| 2206 | cat confdefs.h >>conftest.$ac_ext |
| 2207 | cat >>conftest.$ac_ext <<_ACEOF |
| 2208 | /* end confdefs.h. */ |
| 2209 | $ac_declaration |
| 2210 | #include <stdlib.h> |
| 2211 | int |
| 2212 | main () |
| 2213 | { |
| 2214 | exit (42); |
| 2215 | ; |
| 2216 | return 0; |
| 2217 | } |
| 2218 | _ACEOF |
| 2219 | rm -f conftest.$ac_objext |
| 2220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2221 | (eval $ac_compile) 2>conftest.er1 |
| 2222 | ac_status=$? |
| 2223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2224 | rm -f conftest.er1 |
| 2225 | cat conftest.err >&5 |
| 2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2227 | (exit $ac_status); } && |
| 2228 | { ac_try='test -z "$ac_c_werror_flag" |
| 2229 | || test ! -s conftest.err' |
| 2230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2231 | (eval $ac_try) 2>&5 |
| 2232 | ac_status=$? |
| 2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2234 | (exit $ac_status); }; } && |
| 2235 | { ac_try='test -s conftest.$ac_objext' |
| 2236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2237 | (eval $ac_try) 2>&5 |
| 2238 | ac_status=$? |
| 2239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2240 | (exit $ac_status); }; }; then |
| 2241 | : |
| 2242 | else |
| 2243 | echo "$as_me: failed program was:" >&5 |
| 2244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2245 | |
| 2246 | continue |
| 2247 | fi |
| 2248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2249 | cat >conftest.$ac_ext <<_ACEOF |
| 2250 | /* confdefs.h. */ |
| 2251 | _ACEOF |
| 2252 | cat confdefs.h >>conftest.$ac_ext |
| 2253 | cat >>conftest.$ac_ext <<_ACEOF |
| 2254 | /* end confdefs.h. */ |
| 2255 | $ac_declaration |
| 2256 | int |
| 2257 | main () |
| 2258 | { |
| 2259 | exit (42); |
| 2260 | ; |
| 2261 | return 0; |
| 2262 | } |
| 2263 | _ACEOF |
| 2264 | rm -f conftest.$ac_objext |
| 2265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2266 | (eval $ac_compile) 2>conftest.er1 |
| 2267 | ac_status=$? |
| 2268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2269 | rm -f conftest.er1 |
| 2270 | cat conftest.err >&5 |
| 2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2272 | (exit $ac_status); } && |
| 2273 | { ac_try='test -z "$ac_c_werror_flag" |
| 2274 | || test ! -s conftest.err' |
| 2275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2276 | (eval $ac_try) 2>&5 |
| 2277 | ac_status=$? |
| 2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2279 | (exit $ac_status); }; } && |
| 2280 | { ac_try='test -s conftest.$ac_objext' |
| 2281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2282 | (eval $ac_try) 2>&5 |
| 2283 | ac_status=$? |
| 2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2285 | (exit $ac_status); }; }; then |
| 2286 | break |
| 2287 | else |
| 2288 | echo "$as_me: failed program was:" >&5 |
| 2289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2290 | |
| 2291 | fi |
| 2292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2293 | done |
| 2294 | rm -f conftest* |
| 2295 | if test -n "$ac_declaration"; then |
| 2296 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2297 | echo $ac_declaration >>confdefs.h |
| 2298 | echo '#endif' >>confdefs.h |
| 2299 | fi |
| 2300 | |
| 2301 | else |
| 2302 | echo "$as_me: failed program was:" >&5 |
| 2303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2304 | |
| 2305 | fi |
| 2306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2307 | ac_ext=c |
| 2308 | ac_cpp='$CPP $CPPFLAGS' |
| 2309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2312 | ac_ext=c |
| 2313 | ac_cpp='$CPP $CPPFLAGS' |
| 2314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2317 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2318 | 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] | 2319 | # On Suns, sometimes $CPP names a directory. |
| 2320 | if test -n "$CPP" && test -d "$CPP"; then |
| 2321 | CPP= |
| 2322 | fi |
| 2323 | if test -z "$CPP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2324 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2326 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2327 | # Double quotes because CPP needs to be expanded |
| 2328 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2329 | do |
| 2330 | ac_preproc_ok=false |
| 2331 | for ac_c_preproc_warn_flag in '' yes |
| 2332 | do |
| 2333 | # Use a header file that comes with gcc, so configuring glibc |
| 2334 | # with a fresh cross-compiler works. |
| 2335 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2336 | # <limits.h> exists even on freestanding compilers. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2337 | # 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] | 2338 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2339 | cat >conftest.$ac_ext <<_ACEOF |
| 2340 | /* confdefs.h. */ |
| 2341 | _ACEOF |
| 2342 | cat confdefs.h >>conftest.$ac_ext |
| 2343 | cat >>conftest.$ac_ext <<_ACEOF |
| 2344 | /* end confdefs.h. */ |
| 2345 | #ifdef __STDC__ |
| 2346 | # include <limits.h> |
| 2347 | #else |
| 2348 | # include <assert.h> |
| 2349 | #endif |
| 2350 | Syntax error |
| 2351 | _ACEOF |
| 2352 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2353 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2354 | ac_status=$? |
| 2355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2356 | rm -f conftest.er1 |
| 2357 | cat conftest.err >&5 |
| 2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2359 | (exit $ac_status); } >/dev/null; then |
| 2360 | if test -s conftest.err; then |
| 2361 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2362 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2363 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2364 | ac_cpp_err= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2365 | fi |
| 2366 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2367 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2368 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2369 | if test -z "$ac_cpp_err"; then |
| 2370 | : |
| 2371 | else |
| 2372 | echo "$as_me: failed program was:" >&5 |
| 2373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2374 | |
| 2375 | # Broken: fails on valid input. |
| 2376 | continue |
| 2377 | fi |
| 2378 | rm -f conftest.err conftest.$ac_ext |
| 2379 | |
| 2380 | # OK, works on sane cases. Now check whether non-existent headers |
| 2381 | # can be detected and how. |
| 2382 | cat >conftest.$ac_ext <<_ACEOF |
| 2383 | /* confdefs.h. */ |
| 2384 | _ACEOF |
| 2385 | cat confdefs.h >>conftest.$ac_ext |
| 2386 | cat >>conftest.$ac_ext <<_ACEOF |
| 2387 | /* end confdefs.h. */ |
| 2388 | #include <ac_nonexistent.h> |
| 2389 | _ACEOF |
| 2390 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2391 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2392 | ac_status=$? |
| 2393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2394 | rm -f conftest.er1 |
| 2395 | cat conftest.err >&5 |
| 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); } >/dev/null; then |
| 2398 | if test -s conftest.err; then |
| 2399 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2400 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2401 | else |
| 2402 | ac_cpp_err= |
| 2403 | fi |
| 2404 | else |
| 2405 | ac_cpp_err=yes |
| 2406 | fi |
| 2407 | if test -z "$ac_cpp_err"; then |
| 2408 | # Broken: success on invalid input. |
| 2409 | continue |
| 2410 | else |
| 2411 | echo "$as_me: failed program was:" >&5 |
| 2412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2413 | |
| 2414 | # Passes both tests. |
| 2415 | ac_preproc_ok=: |
| 2416 | break |
| 2417 | fi |
| 2418 | rm -f conftest.err conftest.$ac_ext |
| 2419 | |
| 2420 | done |
| 2421 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2422 | rm -f conftest.err conftest.$ac_ext |
| 2423 | if $ac_preproc_ok; then |
| 2424 | break |
| 2425 | fi |
| 2426 | |
| 2427 | done |
| 2428 | ac_cv_prog_CPP=$CPP |
| 2429 | |
| 2430 | fi |
| 2431 | CPP=$ac_cv_prog_CPP |
| 2432 | else |
| 2433 | ac_cv_prog_CPP=$CPP |
| 2434 | fi |
| 2435 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2436 | echo "${ECHO_T}$CPP" >&6 |
| 2437 | ac_preproc_ok=false |
| 2438 | for ac_c_preproc_warn_flag in '' yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2439 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2440 | # Use a header file that comes with gcc, so configuring glibc |
| 2441 | # with a fresh cross-compiler works. |
| 2442 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2443 | # <limits.h> exists even on freestanding compilers. |
| 2444 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2445 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2446 | cat >conftest.$ac_ext <<_ACEOF |
| 2447 | /* confdefs.h. */ |
| 2448 | _ACEOF |
| 2449 | cat confdefs.h >>conftest.$ac_ext |
| 2450 | cat >>conftest.$ac_ext <<_ACEOF |
| 2451 | /* end confdefs.h. */ |
| 2452 | #ifdef __STDC__ |
| 2453 | # include <limits.h> |
| 2454 | #else |
| 2455 | # include <assert.h> |
| 2456 | #endif |
| 2457 | Syntax error |
| 2458 | _ACEOF |
| 2459 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2460 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2461 | ac_status=$? |
| 2462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2463 | rm -f conftest.er1 |
| 2464 | cat conftest.err >&5 |
| 2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2466 | (exit $ac_status); } >/dev/null; then |
| 2467 | if test -s conftest.err; then |
| 2468 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2469 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2470 | else |
| 2471 | ac_cpp_err= |
| 2472 | fi |
| 2473 | else |
| 2474 | ac_cpp_err=yes |
| 2475 | fi |
| 2476 | if test -z "$ac_cpp_err"; then |
| 2477 | : |
| 2478 | else |
| 2479 | echo "$as_me: failed program was:" >&5 |
| 2480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2481 | |
| 2482 | # Broken: fails on valid input. |
| 2483 | continue |
| 2484 | fi |
| 2485 | rm -f conftest.err conftest.$ac_ext |
| 2486 | |
| 2487 | # OK, works on sane cases. Now check whether non-existent headers |
| 2488 | # can be detected and how. |
| 2489 | cat >conftest.$ac_ext <<_ACEOF |
| 2490 | /* confdefs.h. */ |
| 2491 | _ACEOF |
| 2492 | cat confdefs.h >>conftest.$ac_ext |
| 2493 | cat >>conftest.$ac_ext <<_ACEOF |
| 2494 | /* end confdefs.h. */ |
| 2495 | #include <ac_nonexistent.h> |
| 2496 | _ACEOF |
| 2497 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2498 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2499 | ac_status=$? |
| 2500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2501 | rm -f conftest.er1 |
| 2502 | cat conftest.err >&5 |
| 2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2504 | (exit $ac_status); } >/dev/null; then |
| 2505 | if test -s conftest.err; then |
| 2506 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2507 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2508 | else |
| 2509 | ac_cpp_err= |
| 2510 | fi |
| 2511 | else |
| 2512 | ac_cpp_err=yes |
| 2513 | fi |
| 2514 | if test -z "$ac_cpp_err"; then |
| 2515 | # Broken: success on invalid input. |
| 2516 | continue |
| 2517 | else |
| 2518 | echo "$as_me: failed program was:" >&5 |
| 2519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2520 | |
| 2521 | # Passes both tests. |
| 2522 | ac_preproc_ok=: |
| 2523 | break |
| 2524 | fi |
| 2525 | rm -f conftest.err conftest.$ac_ext |
| 2526 | |
| 2527 | done |
| 2528 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2529 | rm -f conftest.err conftest.$ac_ext |
| 2530 | if $ac_preproc_ok; then |
| 2531 | : |
| 2532 | else |
| 2533 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2534 | See \`config.log' for more details." >&5 |
| 2535 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2536 | See \`config.log' for more details." >&2;} |
| 2537 | { (exit 1); exit 1; }; } |
| 2538 | fi |
| 2539 | |
| 2540 | ac_ext=c |
| 2541 | ac_cpp='$CPP $CPPFLAGS' |
| 2542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2545 | |
| 2546 | |
| 2547 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2548 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2549 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2551 | else |
| 2552 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2553 | then ac_cv_prog_egrep='grep -E' |
| 2554 | else ac_cv_prog_egrep='egrep' |
| 2555 | fi |
| 2556 | fi |
| 2557 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2558 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2559 | EGREP=$ac_cv_prog_egrep |
| 2560 | |
| 2561 | |
| 2562 | cat >conftest.$ac_ext <<_ACEOF |
| 2563 | /* confdefs.h. */ |
| 2564 | _ACEOF |
| 2565 | cat confdefs.h >>conftest.$ac_ext |
| 2566 | cat >>conftest.$ac_ext <<_ACEOF |
| 2567 | /* end confdefs.h. */ |
| 2568 | |
| 2569 | _ACEOF |
| 2570 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2571 | $EGREP "" >/dev/null 2>&1; then |
| 2572 | : |
| 2573 | fi |
| 2574 | rm -f conftest* |
| 2575 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 2576 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
| 2577 | if test "${ac_cv_search_strerror+set}" = set; then |
| 2578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2579 | else |
| 2580 | ac_func_search_save_LIBS=$LIBS |
| 2581 | ac_cv_search_strerror=no |
| 2582 | cat >conftest.$ac_ext <<_ACEOF |
| 2583 | /* confdefs.h. */ |
| 2584 | _ACEOF |
| 2585 | cat confdefs.h >>conftest.$ac_ext |
| 2586 | cat >>conftest.$ac_ext <<_ACEOF |
| 2587 | /* end confdefs.h. */ |
| 2588 | |
| 2589 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2590 | #ifdef __cplusplus |
| 2591 | extern "C" |
| 2592 | #endif |
| 2593 | /* We use char because int might match the return type of a gcc2 |
| 2594 | builtin and then its argument prototype would still apply. */ |
| 2595 | char strerror (); |
| 2596 | int |
| 2597 | main () |
| 2598 | { |
| 2599 | strerror (); |
| 2600 | ; |
| 2601 | return 0; |
| 2602 | } |
| 2603 | _ACEOF |
| 2604 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2606 | (eval $ac_link) 2>conftest.er1 |
| 2607 | ac_status=$? |
| 2608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2609 | rm -f conftest.er1 |
| 2610 | cat conftest.err >&5 |
| 2611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2612 | (exit $ac_status); } && |
| 2613 | { ac_try='test -z "$ac_c_werror_flag" |
| 2614 | || test ! -s conftest.err' |
| 2615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2616 | (eval $ac_try) 2>&5 |
| 2617 | ac_status=$? |
| 2618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2619 | (exit $ac_status); }; } && |
| 2620 | { ac_try='test -s conftest$ac_exeext' |
| 2621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2622 | (eval $ac_try) 2>&5 |
| 2623 | ac_status=$? |
| 2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2625 | (exit $ac_status); }; }; then |
| 2626 | ac_cv_search_strerror="none required" |
| 2627 | else |
| 2628 | echo "$as_me: failed program was:" >&5 |
| 2629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2630 | |
| 2631 | fi |
| 2632 | rm -f conftest.err conftest.$ac_objext \ |
| 2633 | conftest$ac_exeext conftest.$ac_ext |
| 2634 | if test "$ac_cv_search_strerror" = no; then |
| 2635 | for ac_lib in cposix; do |
| 2636 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 2637 | cat >conftest.$ac_ext <<_ACEOF |
| 2638 | /* confdefs.h. */ |
| 2639 | _ACEOF |
| 2640 | cat confdefs.h >>conftest.$ac_ext |
| 2641 | cat >>conftest.$ac_ext <<_ACEOF |
| 2642 | /* end confdefs.h. */ |
| 2643 | |
| 2644 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2645 | #ifdef __cplusplus |
| 2646 | extern "C" |
| 2647 | #endif |
| 2648 | /* We use char because int might match the return type of a gcc2 |
| 2649 | builtin and then its argument prototype would still apply. */ |
| 2650 | char strerror (); |
| 2651 | int |
| 2652 | main () |
| 2653 | { |
| 2654 | strerror (); |
| 2655 | ; |
| 2656 | return 0; |
| 2657 | } |
| 2658 | _ACEOF |
| 2659 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2661 | (eval $ac_link) 2>conftest.er1 |
| 2662 | ac_status=$? |
| 2663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2664 | rm -f conftest.er1 |
| 2665 | cat conftest.err >&5 |
| 2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2667 | (exit $ac_status); } && |
| 2668 | { ac_try='test -z "$ac_c_werror_flag" |
| 2669 | || test ! -s conftest.err' |
| 2670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2671 | (eval $ac_try) 2>&5 |
| 2672 | ac_status=$? |
| 2673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2674 | (exit $ac_status); }; } && |
| 2675 | { ac_try='test -s conftest$ac_exeext' |
| 2676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2677 | (eval $ac_try) 2>&5 |
| 2678 | ac_status=$? |
| 2679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2680 | (exit $ac_status); }; }; then |
| 2681 | ac_cv_search_strerror="-l$ac_lib" |
| 2682 | break |
| 2683 | else |
| 2684 | echo "$as_me: failed program was:" >&5 |
| 2685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2686 | |
| 2687 | fi |
| 2688 | rm -f conftest.err conftest.$ac_objext \ |
| 2689 | conftest$ac_exeext conftest.$ac_ext |
| 2690 | done |
| 2691 | fi |
| 2692 | LIBS=$ac_func_search_save_LIBS |
| 2693 | fi |
| 2694 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 2695 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
| 2696 | if test "$ac_cv_search_strerror" != no; then |
| 2697 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
| 2698 | |
| 2699 | fi |
| 2700 | for ac_prog in gawk mawk nawk awk |
| 2701 | do |
| 2702 | # 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] | 2703 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2706 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2708 | else |
| 2709 | if test -n "$AWK"; then |
| 2710 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2711 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2713 | for as_dir in $PATH |
| 2714 | do |
| 2715 | IFS=$as_save_IFS |
| 2716 | test -z "$as_dir" && as_dir=. |
| 2717 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2718 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2719 | ac_cv_prog_AWK="$ac_prog" |
| 2720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2721 | break 2 |
| 2722 | fi |
| 2723 | done |
| 2724 | done |
| 2725 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2726 | fi |
| 2727 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2728 | AWK=$ac_cv_prog_AWK |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2729 | if test -n "$AWK"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2730 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2731 | echo "${ECHO_T}$AWK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2732 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2733 | echo "$as_me:$LINENO: result: no" >&5 |
| 2734 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2735 | fi |
| 2736 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2737 | test -n "$AWK" && break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2738 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2739 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2740 | # Extract the first word of "strip", so it can be a program name with args. |
| 2741 | set dummy strip; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2744 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2746 | else |
| 2747 | if test -n "$STRIP"; then |
| 2748 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2749 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2751 | for as_dir in $PATH |
| 2752 | do |
| 2753 | IFS=$as_save_IFS |
| 2754 | test -z "$as_dir" && as_dir=. |
| 2755 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2757 | ac_cv_prog_STRIP="strip" |
| 2758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2759 | break 2 |
| 2760 | fi |
| 2761 | done |
| 2762 | done |
| 2763 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2764 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 2765 | fi |
| 2766 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2767 | STRIP=$ac_cv_prog_STRIP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2768 | if test -n "$STRIP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2769 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2770 | echo "${ECHO_T}$STRIP" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2771 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2772 | echo "$as_me:$LINENO: result: no" >&5 |
| 2773 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2774 | fi |
| 2775 | |
| 2776 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2777 | |
| 2778 | |
| 2779 | if test -z "$CFLAGS"; then |
| 2780 | CFLAGS="-O" |
| 2781 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 2782 | fi |
| 2783 | if test "$GCC" = yes; then |
Bram Moolenaar | 32466aa | 2006-02-24 23:53:04 +0000 | [diff] [blame] | 2784 | gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\(darwin.[^0-9]*\)*\([0-9]\.[0-9.]*\).*$/\2/g'` |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 2785 | if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2786 | 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] | 2787 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 2788 | else |
| 2789 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 2790 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 2791 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 2792 | fi |
| 2793 | fi |
| 2794 | fi |
| 2795 | |
| 2796 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2797 | { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS |
| 2798 | (cross compiling doesn't work)" >&5 |
| 2799 | echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS |
| 2800 | (cross compiling doesn't work)" >&2;} |
| 2801 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2802 | fi |
| 2803 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2804 | test "$GCC" = yes && CPP_MM=M; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2805 | |
| 2806 | if test -f ./toolcheck; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2807 | { echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
| 2808 | echo "$as_me: checking for buggy tools..." >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2809 | sh ./toolcheck 1>&6 |
| 2810 | fi |
| 2811 | |
| 2812 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 2813 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2814 | echo "$as_me:$LINENO: checking for BeOS" >&5 |
| 2815 | echo $ECHO_N "checking for BeOS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2816 | case `uname` in |
| 2817 | 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] | 2818 | BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2819 | echo "${ECHO_T}yes" >&6;; |
| 2820 | *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2821 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2822 | esac |
| 2823 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2824 | echo "$as_me:$LINENO: checking for QNX" >&5 |
| 2825 | echo $ECHO_N "checking for QNX... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2826 | case `uname` in |
| 2827 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 2828 | test -z "$with_x" && with_x=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2829 | QNX=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2830 | echo "${ECHO_T}yes" >&6;; |
| 2831 | *) QNX=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2832 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2833 | esac |
| 2834 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2835 | echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
| 2836 | echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2837 | if test "`(uname) 2>/dev/null`" = Darwin; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2838 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2839 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2840 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2841 | echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
| 2842 | echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2843 | # Check whether --enable-darwin or --disable-darwin was given. |
| 2844 | if test "${enable_darwin+set}" = set; then |
| 2845 | enableval="$enable_darwin" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2846 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2847 | else |
| 2848 | enable_darwin="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2849 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2850 | if test "$enable_darwin" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2851 | echo "$as_me:$LINENO: result: no" >&5 |
| 2852 | echo "${ECHO_T}no" >&6 |
| 2853 | echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
| 2854 | echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2855 | if test -f os_macosx.c; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2856 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2857 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2858 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2859 | echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
| 2860 | echo "${ECHO_T}no, Darwin support disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2861 | enable_darwin=no |
| 2862 | fi |
| 2863 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2864 | echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
| 2865 | echo "${ECHO_T}yes, Darwin support excluded" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2866 | fi |
| 2867 | |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2868 | echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5 |
| 2869 | echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6 |
| 2870 | |
| 2871 | # Check whether --with-mac-arch or --without-mac-arch was given. |
| 2872 | if test "${with_mac_arch+set}" = set; then |
| 2873 | withval="$with_mac_arch" |
| 2874 | MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5 |
| 2875 | echo "${ECHO_T}$MACARCH" >&6 |
| 2876 | else |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2877 | MACARCH="both"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5 |
| 2878 | echo "${ECHO_T}defaulting to $MACARCH" >&6 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2879 | fi; |
| 2880 | |
| 2881 | if test "x$MACARCH" = "xboth"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2882 | echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5 |
| 2883 | echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6 |
| 2884 | save_cppflags="$CPPFLAGS" |
| 2885 | save_cflags="$CFLAGS" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2886 | save_ldflags="$LDFLAGS" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2887 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2888 | cat >conftest.$ac_ext <<_ACEOF |
| 2889 | /* confdefs.h. */ |
| 2890 | _ACEOF |
| 2891 | cat confdefs.h >>conftest.$ac_ext |
| 2892 | cat >>conftest.$ac_ext <<_ACEOF |
| 2893 | /* end confdefs.h. */ |
| 2894 | |
| 2895 | int |
| 2896 | main () |
| 2897 | { |
| 2898 | |
| 2899 | ; |
| 2900 | return 0; |
| 2901 | } |
| 2902 | _ACEOF |
| 2903 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2905 | (eval $ac_link) 2>conftest.er1 |
| 2906 | ac_status=$? |
| 2907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2908 | rm -f conftest.er1 |
| 2909 | cat conftest.err >&5 |
| 2910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2911 | (exit $ac_status); } && |
| 2912 | { ac_try='test -z "$ac_c_werror_flag" |
| 2913 | || test ! -s conftest.err' |
| 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); }; } && |
| 2919 | { ac_try='test -s conftest$ac_exeext' |
| 2920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2921 | (eval $ac_try) 2>&5 |
| 2922 | ac_status=$? |
| 2923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2924 | (exit $ac_status); }; }; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2925 | echo "$as_me:$LINENO: result: found" >&5 |
| 2926 | echo "${ECHO_T}found" >&6 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2927 | else |
| 2928 | echo "$as_me: failed program was:" >&5 |
| 2929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2930 | |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2931 | echo "$as_me:$LINENO: result: not found" >&5 |
| 2932 | echo "${ECHO_T}not found" >&6 |
| 2933 | CFLAGS="save_cflags" |
| 2934 | echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2935 | echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6 |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2936 | CPPFLAGS="$CPPFLAGS -arch i386" |
| 2937 | LDFLAGS="$save_ldflags -arch i386" |
| 2938 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2939 | /* confdefs.h. */ |
| 2940 | _ACEOF |
| 2941 | cat confdefs.h >>conftest.$ac_ext |
| 2942 | cat >>conftest.$ac_ext <<_ACEOF |
| 2943 | /* end confdefs.h. */ |
| 2944 | |
| 2945 | int |
| 2946 | main () |
| 2947 | { |
| 2948 | |
| 2949 | ; |
| 2950 | return 0; |
| 2951 | } |
| 2952 | _ACEOF |
| 2953 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2955 | (eval $ac_link) 2>conftest.er1 |
| 2956 | ac_status=$? |
| 2957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2958 | rm -f conftest.er1 |
| 2959 | cat conftest.err >&5 |
| 2960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2961 | (exit $ac_status); } && |
| 2962 | { ac_try='test -z "$ac_c_werror_flag" |
| 2963 | || test ! -s conftest.err' |
| 2964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2965 | (eval $ac_try) 2>&5 |
| 2966 | ac_status=$? |
| 2967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2968 | (exit $ac_status); }; } && |
| 2969 | { ac_try='test -s conftest$ac_exeext' |
| 2970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2971 | (eval $ac_try) 2>&5 |
| 2972 | ac_status=$? |
| 2973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2974 | (exit $ac_status); }; }; then |
| 2975 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2976 | echo "${ECHO_T}yes" >&6; MACARCH="intel" |
| 2977 | else |
| 2978 | echo "$as_me: failed program was:" >&5 |
| 2979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2980 | |
| 2981 | echo "$as_me:$LINENO: result: no" >&5 |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2982 | echo "${ECHO_T}no" >&6 |
| 2983 | MACARCH="ppc" |
| 2984 | CPPFLAGS="$save_cppflags -arch ppc" |
| 2985 | LDFLAGS="$save_ldflags -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2986 | fi |
| 2987 | rm -f conftest.err conftest.$ac_objext \ |
| 2988 | conftest$ac_exeext conftest.$ac_ext |
| 2989 | fi |
| 2990 | rm -f conftest.err conftest.$ac_objext \ |
| 2991 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2992 | elif test "x$MACARCH" = "xintel"; then |
| 2993 | CPPFLAGS="$CPPFLAGS -arch intel" |
| 2994 | LDFLAGS="$LDFLAGS -arch intel" |
| 2995 | else |
| 2996 | CPPFLAGS="$CPPFLAGS -arch ppc" |
| 2997 | LDFLAGS="$LDFLAGS -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2998 | fi |
| 2999 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3000 | if test "$enable_darwin" = "yes"; then |
| 3001 | MACOSX=yes |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 3002 | OS_EXTRA_SCR="os_macosx.c os_mac_conv.c"; |
| 3003 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 3004 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" |
| 3005 | if test "x$MACARCH" = "xboth"; then |
| 3006 | CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" |
| 3007 | else |
| 3008 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon" |
| 3009 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3010 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3011 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3012 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3013 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3015 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3016 | cat >conftest.$ac_ext <<_ACEOF |
| 3017 | /* confdefs.h. */ |
| 3018 | _ACEOF |
| 3019 | cat confdefs.h >>conftest.$ac_ext |
| 3020 | cat >>conftest.$ac_ext <<_ACEOF |
| 3021 | /* end confdefs.h. */ |
| 3022 | #include <stdlib.h> |
| 3023 | #include <stdarg.h> |
| 3024 | #include <string.h> |
| 3025 | #include <float.h> |
| 3026 | |
| 3027 | int |
| 3028 | main () |
| 3029 | { |
| 3030 | |
| 3031 | ; |
| 3032 | return 0; |
| 3033 | } |
| 3034 | _ACEOF |
| 3035 | rm -f conftest.$ac_objext |
| 3036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3037 | (eval $ac_compile) 2>conftest.er1 |
| 3038 | ac_status=$? |
| 3039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3040 | rm -f conftest.er1 |
| 3041 | cat conftest.err >&5 |
| 3042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3043 | (exit $ac_status); } && |
| 3044 | { ac_try='test -z "$ac_c_werror_flag" |
| 3045 | || test ! -s conftest.err' |
| 3046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3047 | (eval $ac_try) 2>&5 |
| 3048 | ac_status=$? |
| 3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3050 | (exit $ac_status); }; } && |
| 3051 | { ac_try='test -s conftest.$ac_objext' |
| 3052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3053 | (eval $ac_try) 2>&5 |
| 3054 | ac_status=$? |
| 3055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3056 | (exit $ac_status); }; }; then |
| 3057 | ac_cv_header_stdc=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3058 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3059 | echo "$as_me: failed program was:" >&5 |
| 3060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3061 | |
| 3062 | ac_cv_header_stdc=no |
| 3063 | fi |
| 3064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3065 | |
| 3066 | if test $ac_cv_header_stdc = yes; then |
| 3067 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3068 | cat >conftest.$ac_ext <<_ACEOF |
| 3069 | /* confdefs.h. */ |
| 3070 | _ACEOF |
| 3071 | cat confdefs.h >>conftest.$ac_ext |
| 3072 | cat >>conftest.$ac_ext <<_ACEOF |
| 3073 | /* end confdefs.h. */ |
| 3074 | #include <string.h> |
| 3075 | |
| 3076 | _ACEOF |
| 3077 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3078 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3079 | : |
| 3080 | else |
| 3081 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3082 | fi |
| 3083 | rm -f conftest* |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3084 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3085 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3086 | |
| 3087 | if test $ac_cv_header_stdc = yes; then |
| 3088 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3089 | cat >conftest.$ac_ext <<_ACEOF |
| 3090 | /* confdefs.h. */ |
| 3091 | _ACEOF |
| 3092 | cat confdefs.h >>conftest.$ac_ext |
| 3093 | cat >>conftest.$ac_ext <<_ACEOF |
| 3094 | /* end confdefs.h. */ |
| 3095 | #include <stdlib.h> |
| 3096 | |
| 3097 | _ACEOF |
| 3098 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3099 | $EGREP "free" >/dev/null 2>&1; then |
| 3100 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3101 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3102 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3103 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3104 | rm -f conftest* |
| 3105 | |
| 3106 | fi |
| 3107 | |
| 3108 | if test $ac_cv_header_stdc = yes; then |
| 3109 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3110 | if test "$cross_compiling" = yes; then |
| 3111 | : |
| 3112 | else |
| 3113 | cat >conftest.$ac_ext <<_ACEOF |
| 3114 | /* confdefs.h. */ |
| 3115 | _ACEOF |
| 3116 | cat confdefs.h >>conftest.$ac_ext |
| 3117 | cat >>conftest.$ac_ext <<_ACEOF |
| 3118 | /* end confdefs.h. */ |
| 3119 | #include <ctype.h> |
| 3120 | #if ((' ' & 0x0FF) == 0x020) |
| 3121 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3122 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3123 | #else |
| 3124 | # define ISLOWER(c) \ |
| 3125 | (('a' <= (c) && (c) <= 'i') \ |
| 3126 | || ('j' <= (c) && (c) <= 'r') \ |
| 3127 | || ('s' <= (c) && (c) <= 'z')) |
| 3128 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3129 | #endif |
| 3130 | |
| 3131 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3132 | int |
| 3133 | main () |
| 3134 | { |
| 3135 | int i; |
| 3136 | for (i = 0; i < 256; i++) |
| 3137 | if (XOR (islower (i), ISLOWER (i)) |
| 3138 | || toupper (i) != TOUPPER (i)) |
| 3139 | exit(2); |
| 3140 | exit (0); |
| 3141 | } |
| 3142 | _ACEOF |
| 3143 | rm -f conftest$ac_exeext |
| 3144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3145 | (eval $ac_link) 2>&5 |
| 3146 | ac_status=$? |
| 3147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3148 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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 | : |
| 3155 | else |
| 3156 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3157 | echo "$as_me: failed program was:" >&5 |
| 3158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3159 | |
| 3160 | ( exit $ac_status ) |
| 3161 | ac_cv_header_stdc=no |
| 3162 | fi |
| 3163 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3164 | fi |
| 3165 | fi |
| 3166 | fi |
| 3167 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3168 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3169 | if test $ac_cv_header_stdc = yes; then |
| 3170 | |
| 3171 | cat >>confdefs.h <<\_ACEOF |
| 3172 | #define STDC_HEADERS 1 |
| 3173 | _ACEOF |
| 3174 | |
| 3175 | fi |
| 3176 | |
| 3177 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3178 | |
| 3179 | |
| 3180 | |
| 3181 | |
| 3182 | |
| 3183 | |
| 3184 | |
| 3185 | |
| 3186 | |
| 3187 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3188 | inttypes.h stdint.h unistd.h |
| 3189 | do |
| 3190 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3191 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3192 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3193 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3195 | else |
| 3196 | cat >conftest.$ac_ext <<_ACEOF |
| 3197 | /* confdefs.h. */ |
| 3198 | _ACEOF |
| 3199 | cat confdefs.h >>conftest.$ac_ext |
| 3200 | cat >>conftest.$ac_ext <<_ACEOF |
| 3201 | /* end confdefs.h. */ |
| 3202 | $ac_includes_default |
| 3203 | |
| 3204 | #include <$ac_header> |
| 3205 | _ACEOF |
| 3206 | rm -f conftest.$ac_objext |
| 3207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3208 | (eval $ac_compile) 2>conftest.er1 |
| 3209 | ac_status=$? |
| 3210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3211 | rm -f conftest.er1 |
| 3212 | cat conftest.err >&5 |
| 3213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3214 | (exit $ac_status); } && |
| 3215 | { ac_try='test -z "$ac_c_werror_flag" |
| 3216 | || test ! -s conftest.err' |
| 3217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3218 | (eval $ac_try) 2>&5 |
| 3219 | ac_status=$? |
| 3220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3221 | (exit $ac_status); }; } && |
| 3222 | { ac_try='test -s conftest.$ac_objext' |
| 3223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3224 | (eval $ac_try) 2>&5 |
| 3225 | ac_status=$? |
| 3226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3227 | (exit $ac_status); }; }; then |
| 3228 | eval "$as_ac_Header=yes" |
| 3229 | else |
| 3230 | echo "$as_me: failed program was:" >&5 |
| 3231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3232 | |
| 3233 | eval "$as_ac_Header=no" |
| 3234 | fi |
| 3235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3236 | fi |
| 3237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3238 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3239 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3240 | cat >>confdefs.h <<_ACEOF |
| 3241 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3242 | _ACEOF |
| 3243 | |
| 3244 | fi |
| 3245 | |
| 3246 | done |
| 3247 | |
| 3248 | |
| 3249 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3250 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3251 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3252 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3254 | fi |
| 3255 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3256 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3257 | else |
| 3258 | # Is the header compilable? |
| 3259 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 3260 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 |
| 3261 | cat >conftest.$ac_ext <<_ACEOF |
| 3262 | /* confdefs.h. */ |
| 3263 | _ACEOF |
| 3264 | cat confdefs.h >>conftest.$ac_ext |
| 3265 | cat >>conftest.$ac_ext <<_ACEOF |
| 3266 | /* end confdefs.h. */ |
| 3267 | $ac_includes_default |
| 3268 | #include <Carbon/Carbon.h> |
| 3269 | _ACEOF |
| 3270 | rm -f conftest.$ac_objext |
| 3271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3272 | (eval $ac_compile) 2>conftest.er1 |
| 3273 | ac_status=$? |
| 3274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3275 | rm -f conftest.er1 |
| 3276 | cat conftest.err >&5 |
| 3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3278 | (exit $ac_status); } && |
| 3279 | { ac_try='test -z "$ac_c_werror_flag" |
| 3280 | || test ! -s conftest.err' |
| 3281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3282 | (eval $ac_try) 2>&5 |
| 3283 | ac_status=$? |
| 3284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3285 | (exit $ac_status); }; } && |
| 3286 | { ac_try='test -s conftest.$ac_objext' |
| 3287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3288 | (eval $ac_try) 2>&5 |
| 3289 | ac_status=$? |
| 3290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3291 | (exit $ac_status); }; }; then |
| 3292 | ac_header_compiler=yes |
| 3293 | else |
| 3294 | echo "$as_me: failed program was:" >&5 |
| 3295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3296 | |
| 3297 | ac_header_compiler=no |
| 3298 | fi |
| 3299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3300 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3301 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3302 | |
| 3303 | # Is the header present? |
| 3304 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 3305 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 |
| 3306 | cat >conftest.$ac_ext <<_ACEOF |
| 3307 | /* confdefs.h. */ |
| 3308 | _ACEOF |
| 3309 | cat confdefs.h >>conftest.$ac_ext |
| 3310 | cat >>conftest.$ac_ext <<_ACEOF |
| 3311 | /* end confdefs.h. */ |
| 3312 | #include <Carbon/Carbon.h> |
| 3313 | _ACEOF |
| 3314 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3315 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3316 | ac_status=$? |
| 3317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3318 | rm -f conftest.er1 |
| 3319 | cat conftest.err >&5 |
| 3320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3321 | (exit $ac_status); } >/dev/null; then |
| 3322 | if test -s conftest.err; then |
| 3323 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3324 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3325 | else |
| 3326 | ac_cpp_err= |
| 3327 | fi |
| 3328 | else |
| 3329 | ac_cpp_err=yes |
| 3330 | fi |
| 3331 | if test -z "$ac_cpp_err"; then |
| 3332 | ac_header_preproc=yes |
| 3333 | else |
| 3334 | echo "$as_me: failed program was:" >&5 |
| 3335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3336 | |
| 3337 | ac_header_preproc=no |
| 3338 | fi |
| 3339 | rm -f conftest.err conftest.$ac_ext |
| 3340 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3341 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3342 | |
| 3343 | # So? What about this header? |
| 3344 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3345 | yes:no: ) |
| 3346 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3347 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3348 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 3349 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} |
| 3350 | ac_header_preproc=yes |
| 3351 | ;; |
| 3352 | no:yes:* ) |
| 3353 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 3354 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 3355 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 3356 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 3357 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 3358 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 3359 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3360 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3361 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 3362 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 3363 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 3364 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 3365 | ( |
| 3366 | cat <<\_ASBOX |
| 3367 | ## ------------------------------------------ ## |
| 3368 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3369 | ## ------------------------------------------ ## |
| 3370 | _ASBOX |
| 3371 | ) | |
| 3372 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3373 | ;; |
| 3374 | esac |
| 3375 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3376 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3377 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3379 | else |
| 3380 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 3381 | fi |
| 3382 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3383 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3384 | |
| 3385 | fi |
| 3386 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
| 3387 | CARBON=yes |
| 3388 | fi |
| 3389 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3390 | |
| 3391 | if test "x$CARBON" = "xyes"; then |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 3392 | 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] | 3393 | with_x=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3394 | fi |
| 3395 | fi |
| 3396 | fi |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 3397 | |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 3398 | if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then |
| 3399 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` |
| 3400 | fi |
| 3401 | |
| 3402 | CPPFLAGS="$CPPFLAGS $MAC_OSX_ARCH" |
| 3403 | LDFLAGS="$LDFLAGS $MAC_OSX_ARCH" |
| 3404 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3405 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3406 | echo "$as_me:$LINENO: result: no" >&5 |
| 3407 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3408 | fi |
| 3409 | |
| 3410 | |
| 3411 | |
| 3412 | |
| 3413 | have_local_include='' |
| 3414 | have_local_lib='' |
| 3415 | if test "$GCC" = yes; then |
| 3416 | echo 'void f(){}' > conftest.c |
| 3417 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'` |
| 3418 | have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'` |
| 3419 | rm -f conftest.c conftest.o |
| 3420 | fi |
| 3421 | if test -z "$have_local_lib" -a -d /usr/local/lib; then |
| 3422 | tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'` |
| 3423 | if test "$tt" = "$LDFLAGS"; then |
| 3424 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
| 3425 | fi |
| 3426 | fi |
| 3427 | if test -z "$have_local_include" -a -d /usr/local/include; then |
| 3428 | tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'` |
| 3429 | if test "$tt" = "$CPPFLAGS"; then |
| 3430 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 3431 | fi |
| 3432 | fi |
| 3433 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3434 | echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 |
| 3435 | echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6 |
| 3436 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3437 | # Check whether --with-vim-name or --without-vim-name was given. |
| 3438 | if test "${with_vim_name+set}" = set; then |
| 3439 | withval="$with_vim_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3440 | VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5 |
| 3441 | echo "${ECHO_T}$VIMNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3442 | else |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 3443 | VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3444 | echo "${ECHO_T}Defaulting to $VIMNAME" >&6 |
| 3445 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3446 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3447 | echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 |
| 3448 | echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3449 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3450 | # Check whether --with-ex-name or --without-ex-name was given. |
| 3451 | if test "${with_ex_name+set}" = set; then |
| 3452 | withval="$with_ex_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3453 | EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5 |
| 3454 | echo "${ECHO_T}$EXNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3455 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3456 | EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5 |
| 3457 | echo "${ECHO_T}Defaulting to ex" >&6 |
| 3458 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3459 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3460 | echo "$as_me:$LINENO: checking --with-view-name argument" >&5 |
| 3461 | echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3462 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3463 | # Check whether --with-view-name or --without-view-name was given. |
| 3464 | if test "${with_view_name+set}" = set; then |
| 3465 | withval="$with_view_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3466 | VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5 |
| 3467 | echo "${ECHO_T}$VIEWNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3468 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3469 | VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5 |
| 3470 | echo "${ECHO_T}Defaulting to view" >&6 |
| 3471 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3472 | |
| 3473 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3474 | echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 |
| 3475 | echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3476 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3477 | # Check whether --with-global-runtime or --without-global-runtime was given. |
| 3478 | if test "${with_global_runtime+set}" = set; then |
| 3479 | withval="$with_global_runtime" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3480 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 3481 | echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3482 | #define RUNTIME_GLOBAL "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3483 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3484 | |
| 3485 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3486 | echo "$as_me:$LINENO: result: no" >&5 |
| 3487 | echo "${ECHO_T}no" >&6 |
| 3488 | fi; |
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 | echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 |
| 3491 | echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3492 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3493 | # Check whether --with-modified-by or --without-modified-by was given. |
| 3494 | if test "${with_modified_by+set}" = set; then |
| 3495 | withval="$with_modified_by" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3496 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 3497 | echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3498 | #define MODIFIED_BY "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3499 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3500 | |
| 3501 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3502 | echo "$as_me:$LINENO: result: no" >&5 |
| 3503 | echo "${ECHO_T}no" >&6 |
| 3504 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3505 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3506 | echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 |
| 3507 | echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6 |
| 3508 | cat >conftest.$ac_ext <<_ACEOF |
| 3509 | /* confdefs.h. */ |
| 3510 | _ACEOF |
| 3511 | cat confdefs.h >>conftest.$ac_ext |
| 3512 | cat >>conftest.$ac_ext <<_ACEOF |
| 3513 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3514 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3515 | int |
| 3516 | main () |
| 3517 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3518 | /* TryCompile function for CharSet. |
| 3519 | Treat any failure as ASCII for compatibility with existing art. |
| 3520 | Use compile-time rather than run-time tests for cross-compiler |
| 3521 | tolerance. */ |
| 3522 | #if '0'!=240 |
| 3523 | make an error "Character set is not EBCDIC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3524 | #endif |
| 3525 | ; |
| 3526 | return 0; |
| 3527 | } |
| 3528 | _ACEOF |
| 3529 | rm -f conftest.$ac_objext |
| 3530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3531 | (eval $ac_compile) 2>conftest.er1 |
| 3532 | ac_status=$? |
| 3533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3534 | rm -f conftest.er1 |
| 3535 | cat conftest.err >&5 |
| 3536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3537 | (exit $ac_status); } && |
| 3538 | { ac_try='test -z "$ac_c_werror_flag" |
| 3539 | || test ! -s conftest.err' |
| 3540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3541 | (eval $ac_try) 2>&5 |
| 3542 | ac_status=$? |
| 3543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3544 | (exit $ac_status); }; } && |
| 3545 | { ac_try='test -s conftest.$ac_objext' |
| 3546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3547 | (eval $ac_try) 2>&5 |
| 3548 | ac_status=$? |
| 3549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3550 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3551 | # TryCompile action if true |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3552 | cf_cv_ebcdic=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3553 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3554 | echo "$as_me: failed program was:" >&5 |
| 3555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3556 | |
| 3557 | # TryCompile action if false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3558 | cf_cv_ebcdic=no |
| 3559 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3561 | # end of TryCompile ]) |
| 3562 | # end of CacheVal CvEbcdic |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3563 | echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 |
| 3564 | echo "${ECHO_T}$cf_cv_ebcdic" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3565 | case "$cf_cv_ebcdic" in #(vi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3566 | yes) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3567 | #define EBCDIC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3568 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3569 | |
| 3570 | line_break='"\\n"' |
| 3571 | ;; |
| 3572 | *) line_break='"\\012"';; |
| 3573 | esac |
| 3574 | |
| 3575 | |
| 3576 | if test "$cf_cv_ebcdic" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3577 | echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 |
| 3578 | echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3579 | case `uname` in |
| 3580 | OS/390) OS390Unix="yes"; |
| 3581 | if test "$CC" = "cc"; then |
| 3582 | ccm="$_CC_CCMODE" |
| 3583 | ccn="CC" |
| 3584 | else |
| 3585 | if test "$CC" = "c89"; then |
| 3586 | ccm="$_CC_C89MODE" |
| 3587 | ccn="C89" |
| 3588 | else |
| 3589 | ccm=1 |
| 3590 | fi |
| 3591 | fi |
| 3592 | if test "$ccm" != "1"; then |
| 3593 | echo "" |
| 3594 | echo "------------------------------------------" |
| 3595 | echo " On OS/390 Unix, the environment variable" |
| 3596 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 3597 | echo " Do:" |
| 3598 | echo " export _CC_${ccn}MODE=1" |
| 3599 | echo " and then call configure again." |
| 3600 | echo "------------------------------------------" |
| 3601 | exit 1 |
| 3602 | fi |
| 3603 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3604 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3605 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3606 | ;; |
| 3607 | *) OS390Unix="no"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3608 | echo "$as_me:$LINENO: result: no" >&5 |
| 3609 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3610 | ;; |
| 3611 | esac |
| 3612 | fi |
| 3613 | |
| 3614 | |
| 3615 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3616 | echo "$as_me:$LINENO: checking --with-features argument" >&5 |
| 3617 | echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6 |
| 3618 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3619 | # Check whether --with-features or --without-features was given. |
| 3620 | if test "${with_features+set}" = set; then |
| 3621 | withval="$with_features" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3622 | features="$withval"; echo "$as_me:$LINENO: result: $features" >&5 |
| 3623 | echo "${ECHO_T}$features" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3624 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3625 | features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5 |
| 3626 | echo "${ECHO_T}Defaulting to normal" >&6 |
| 3627 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3628 | |
| 3629 | dovimdiff="" |
| 3630 | dogvimdiff="" |
| 3631 | case "$features" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3632 | tiny) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3633 | #define FEAT_TINY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3634 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3635 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3636 | small) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3637 | #define FEAT_SMALL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3638 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3639 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3640 | normal) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3641 | #define FEAT_NORMAL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3642 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3643 | dovimdiff="installvimdiff"; |
| 3644 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3645 | big) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3646 | #define FEAT_BIG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3647 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3648 | dovimdiff="installvimdiff"; |
| 3649 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3650 | huge) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3651 | #define FEAT_HUGE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3652 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3653 | dovimdiff="installvimdiff"; |
| 3654 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3655 | *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 |
| 3656 | echo "${ECHO_T}Sorry, $features is not supported" >&6 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3657 | esac |
| 3658 | |
| 3659 | |
| 3660 | |
| 3661 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3662 | echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 |
| 3663 | echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6 |
| 3664 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3665 | # Check whether --with-compiledby or --without-compiledby was given. |
| 3666 | if test "${with_compiledby+set}" = set; then |
| 3667 | withval="$with_compiledby" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3668 | compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5 |
| 3669 | echo "${ECHO_T}$withval" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3670 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3671 | compiledby=""; echo "$as_me:$LINENO: result: no" >&5 |
| 3672 | echo "${ECHO_T}no" >&6 |
| 3673 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3674 | |
| 3675 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3676 | echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 |
| 3677 | echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3678 | # Check whether --enable-xsmp or --disable-xsmp was given. |
| 3679 | if test "${enable_xsmp+set}" = set; then |
| 3680 | enableval="$enable_xsmp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3681 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3682 | else |
| 3683 | enable_xsmp="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3684 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3685 | |
| 3686 | if test "$enable_xsmp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3687 | echo "$as_me:$LINENO: result: no" >&5 |
| 3688 | echo "${ECHO_T}no" >&6 |
| 3689 | echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 |
| 3690 | echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3691 | # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given. |
| 3692 | if test "${enable_xsmp_interact+set}" = set; then |
| 3693 | enableval="$enable_xsmp_interact" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3694 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3695 | else |
| 3696 | enable_xsmp_interact="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3697 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3698 | if test "$enable_xsmp_interact" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3699 | echo "$as_me:$LINENO: result: no" >&5 |
| 3700 | echo "${ECHO_T}no" >&6 |
| 3701 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3702 | #define USE_XSMP_INTERACT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3703 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3704 | |
| 3705 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3706 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3707 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3708 | fi |
| 3709 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3710 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3711 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3712 | fi |
| 3713 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3714 | echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 |
| 3715 | echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3716 | # Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given. |
| 3717 | if test "${enable_mzschemeinterp+set}" = set; then |
| 3718 | enableval="$enable_mzschemeinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3719 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3720 | else |
| 3721 | enable_mzschemeinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3722 | fi; |
| 3723 | echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 |
| 3724 | echo "${ECHO_T}$enable_mzschemeinterp" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3725 | |
| 3726 | if test "$enable_mzschemeinterp" = "yes"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3727 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3728 | |
| 3729 | echo "$as_me:$LINENO: checking --with-plthome argument" >&5 |
| 3730 | echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6 |
| 3731 | |
| 3732 | # Check whether --with-plthome or --without-plthome was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3733 | if test "${with_plthome+set}" = set; then |
| 3734 | withval="$with_plthome" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3735 | with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5 |
| 3736 | echo "${ECHO_T}$with_plthome" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3737 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3738 | with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3739 | echo "${ECHO_T}\"no\"" >&6 |
| 3740 | fi; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3741 | |
| 3742 | if test "X$with_plthome" != "X"; then |
| 3743 | vi_cv_path_mzscheme_pfx="$with_plthome" |
| 3744 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3745 | echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 |
| 3746 | echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3747 | if test "X$PLTHOME" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3748 | echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 |
| 3749 | echo "${ECHO_T}\"$PLTHOME\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3750 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
| 3751 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3752 | echo "$as_me:$LINENO: result: \"not set\"" >&5 |
| 3753 | echo "${ECHO_T}\"not set\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3754 | # Extract the first word of "mzscheme", so it can be a program name with args. |
| 3755 | set dummy mzscheme; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3758 | if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then |
| 3759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3760 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3761 | case $vi_cv_path_mzscheme in |
| 3762 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3763 | ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 3764 | ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3765 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3767 | for as_dir in $PATH |
| 3768 | do |
| 3769 | IFS=$as_save_IFS |
| 3770 | test -z "$as_dir" && as_dir=. |
| 3771 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3772 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3773 | ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" |
| 3774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3775 | break 2 |
| 3776 | fi |
| 3777 | done |
| 3778 | done |
| 3779 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3780 | ;; |
| 3781 | esac |
| 3782 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3783 | vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
| 3784 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3785 | if test -n "$vi_cv_path_mzscheme"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3786 | echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 |
| 3787 | echo "${ECHO_T}$vi_cv_path_mzscheme" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3788 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3789 | echo "$as_me:$LINENO: result: no" >&5 |
| 3790 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3791 | fi |
| 3792 | |
| 3793 | |
| 3794 | if test "X$vi_cv_path_mzscheme" != "X"; then |
| 3795 | lsout=`ls -l $vi_cv_path_mzscheme` |
| 3796 | if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 3797 | vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 3798 | fi |
| 3799 | fi |
| 3800 | |
| 3801 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3802 | echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
| 3803 | echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6 |
| 3804 | if test "${vi_cv_path_mzscheme_pfx+set}" = set; then |
| 3805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3806 | else |
| 3807 | vi_cv_path_mzscheme_pfx=` |
| 3808 | ${vi_cv_path_mzscheme} -evm \ |
| 3809 | "(display (simplify-path \ |
| 3810 | (build-path (call-with-values \ |
| 3811 | (lambda () (split-path (find-system-path (quote exec-file)))) \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3812 | (lambda (base name must-be-dir?) base)) (quote up))))"` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3813 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3814 | echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 3815 | echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3816 | vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'` |
| 3817 | fi |
| 3818 | fi |
| 3819 | fi |
| 3820 | |
| 3821 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3822 | echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 3823 | 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] | 3824 | if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3825 | echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 3826 | echo "${ECHO_T}\"yes\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3827 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3828 | echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3829 | echo "${ECHO_T}\"no\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3830 | vi_cv_path_mzscheme_pfx= |
| 3831 | fi |
| 3832 | fi |
| 3833 | |
| 3834 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
| 3835 | if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then |
| 3836 | MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a" |
| 3837 | else |
| 3838 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 3839 | if test "$GCC" = yes; then |
| 3840 | 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] | 3841 | elif test "`(uname) 2>/dev/null`" = SunOS && |
| 3842 | uname -r | grep '^5' >/dev/null; then |
| 3843 | MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 3844 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3845 | fi |
| 3846 | MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \ |
| 3847 | -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'" |
| 3848 | MZSCHEME_SRC="if_mzsch.c" |
| 3849 | MZSCHEME_OBJ="objects/if_mzsch.o" |
| 3850 | MZSCHEME_PRO="if_mzsch.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3851 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3852 | #define FEAT_MZSCHEME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3853 | _ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3854 | |
| 3855 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3856 | |
| 3857 | |
| 3858 | |
| 3859 | |
| 3860 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3861 | fi |
| 3862 | |
| 3863 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3864 | echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 |
| 3865 | echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3866 | # Check whether --enable-perlinterp or --disable-perlinterp was given. |
| 3867 | if test "${enable_perlinterp+set}" = set; then |
| 3868 | enableval="$enable_perlinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3869 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3870 | else |
| 3871 | enable_perlinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3872 | fi; |
| 3873 | echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 |
| 3874 | echo "${ECHO_T}$enable_perlinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3875 | if test "$enable_perlinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3876 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3877 | # Extract the first word of "perl", so it can be a program name with args. |
| 3878 | set dummy perl; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3879 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3881 | if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then |
| 3882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3883 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3884 | case $vi_cv_path_perl in |
| 3885 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3886 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 3887 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3888 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3890 | for as_dir in $PATH |
| 3891 | do |
| 3892 | IFS=$as_save_IFS |
| 3893 | test -z "$as_dir" && as_dir=. |
| 3894 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3895 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3896 | ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" |
| 3897 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3898 | break 2 |
| 3899 | fi |
| 3900 | done |
| 3901 | done |
| 3902 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3903 | ;; |
| 3904 | esac |
| 3905 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3906 | vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
| 3907 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3908 | if test -n "$vi_cv_path_perl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3909 | echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 |
| 3910 | echo "${ECHO_T}$vi_cv_path_perl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3911 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3912 | echo "$as_me:$LINENO: result: no" >&5 |
| 3913 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3914 | fi |
| 3915 | |
| 3916 | if test "X$vi_cv_path_perl" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3917 | echo "$as_me:$LINENO: checking Perl version" >&5 |
| 3918 | echo $ECHO_N "checking Perl version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3919 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 3920 | eval `$vi_cv_path_perl -V:usethreads` |
| 3921 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 3922 | badthreads=no |
| 3923 | else |
| 3924 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 3925 | eval `$vi_cv_path_perl -V:use5005threads` |
| 3926 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 3927 | badthreads=no |
| 3928 | else |
| 3929 | badthreads=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3930 | echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 3931 | 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] | 3932 | fi |
| 3933 | else |
| 3934 | badthreads=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3935 | echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 3936 | echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3937 | fi |
| 3938 | fi |
| 3939 | if test $badthreads = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3940 | echo "$as_me:$LINENO: result: OK" >&5 |
| 3941 | echo "${ECHO_T}OK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3942 | eval `$vi_cv_path_perl -V:shrpenv` |
| 3943 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 3944 | shrpenv="" |
| 3945 | fi |
| 3946 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3947 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3948 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 3949 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 3950 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 3951 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 3952 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 3953 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 3954 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 3955 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3956 | echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 |
| 3957 | 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] | 3958 | cflags_save=$CFLAGS |
| 3959 | libs_save=$LIBS |
| 3960 | ldflags_save=$LDFLAGS |
| 3961 | CFLAGS="$CFLAGS $perlcppflags" |
| 3962 | LIBS="$LIBS $perllibs" |
| 3963 | LDFLAGS="$perlldflags $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3964 | cat >conftest.$ac_ext <<_ACEOF |
| 3965 | /* confdefs.h. */ |
| 3966 | _ACEOF |
| 3967 | cat confdefs.h >>conftest.$ac_ext |
| 3968 | cat >>conftest.$ac_ext <<_ACEOF |
| 3969 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3970 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3971 | int |
| 3972 | main () |
| 3973 | { |
| 3974 | |
| 3975 | ; |
| 3976 | return 0; |
| 3977 | } |
| 3978 | _ACEOF |
| 3979 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3981 | (eval $ac_link) 2>conftest.er1 |
| 3982 | ac_status=$? |
| 3983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3984 | rm -f conftest.er1 |
| 3985 | cat conftest.err >&5 |
| 3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3987 | (exit $ac_status); } && |
| 3988 | { ac_try='test -z "$ac_c_werror_flag" |
| 3989 | || test ! -s conftest.err' |
| 3990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3991 | (eval $ac_try) 2>&5 |
| 3992 | ac_status=$? |
| 3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3994 | (exit $ac_status); }; } && |
| 3995 | { ac_try='test -s conftest$ac_exeext' |
| 3996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3997 | (eval $ac_try) 2>&5 |
| 3998 | ac_status=$? |
| 3999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4000 | (exit $ac_status); }; }; then |
| 4001 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4002 | echo "${ECHO_T}yes" >&6; perl_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4003 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4004 | echo "$as_me: failed program was:" >&5 |
| 4005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4006 | |
| 4007 | echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 |
| 4008 | echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4009 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4010 | rm -f conftest.err conftest.$ac_objext \ |
| 4011 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4012 | CFLAGS=$cflags_save |
| 4013 | LIBS=$libs_save |
| 4014 | LDFLAGS=$ldflags_save |
| 4015 | if test $perl_ok = yes; then |
| 4016 | if test "X$perlcppflags" != "X"; then |
| 4017 | PERL_CFLAGS="$perlcppflags" |
| 4018 | fi |
| 4019 | if test "X$perlldflags" != "X"; then |
| 4020 | LDFLAGS="$perlldflags $LDFLAGS" |
| 4021 | fi |
| 4022 | PERL_LIBS=$perllibs |
| 4023 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 4024 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 4025 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4026 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4027 | #define FEAT_PERL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4028 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4029 | |
| 4030 | fi |
| 4031 | fi |
| 4032 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4033 | echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 4034 | 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] | 4035 | fi |
| 4036 | fi |
| 4037 | |
| 4038 | if test "x$MACOSX" = "xyes"; then |
| 4039 | dir=/System/Library/Perl |
| 4040 | darwindir=$dir/darwin |
| 4041 | if test -d $darwindir; then |
| 4042 | PERL=/usr/bin/perl |
| 4043 | else |
| 4044 | dir=/System/Library/Perl/5.8.1 |
| 4045 | darwindir=$dir/darwin-thread-multi-2level |
| 4046 | if test -d $darwindir; then |
| 4047 | PERL=/usr/bin/perl |
| 4048 | fi |
| 4049 | fi |
| 4050 | if test -n "$PERL"; then |
| 4051 | PERL_DIR="$dir" |
| 4052 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 4053 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 4054 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 4055 | fi |
| 4056 | fi |
| 4057 | fi |
| 4058 | |
| 4059 | |
| 4060 | |
| 4061 | |
| 4062 | |
| 4063 | |
| 4064 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4065 | echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 |
| 4066 | echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4067 | # Check whether --enable-pythoninterp or --disable-pythoninterp was given. |
| 4068 | if test "${enable_pythoninterp+set}" = set; then |
| 4069 | enableval="$enable_pythoninterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4070 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4071 | else |
| 4072 | enable_pythoninterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4073 | fi; |
| 4074 | echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 |
| 4075 | echo "${ECHO_T}$enable_pythoninterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4076 | if test "$enable_pythoninterp" = "yes"; then |
| 4077 | # Extract the first word of "python", so it can be a program name with args. |
| 4078 | set dummy python; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4081 | if test "${ac_cv_path_vi_cv_path_python+set}" = set; then |
| 4082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4083 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4084 | case $vi_cv_path_python in |
| 4085 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4086 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 4087 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4088 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4090 | for as_dir in $PATH |
| 4091 | do |
| 4092 | IFS=$as_save_IFS |
| 4093 | test -z "$as_dir" && as_dir=. |
| 4094 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4095 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4096 | ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" |
| 4097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4098 | break 2 |
| 4099 | fi |
| 4100 | done |
| 4101 | done |
| 4102 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4103 | ;; |
| 4104 | esac |
| 4105 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4106 | vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
| 4107 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4108 | if test -n "$vi_cv_path_python"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4109 | echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 |
| 4110 | echo "${ECHO_T}$vi_cv_path_python" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4111 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4112 | echo "$as_me:$LINENO: result: no" >&5 |
| 4113 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4114 | fi |
| 4115 | |
| 4116 | if test "X$vi_cv_path_python" != "X"; then |
| 4117 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4118 | echo "$as_me:$LINENO: checking Python version" >&5 |
| 4119 | echo $ECHO_N "checking Python version... $ECHO_C" >&6 |
| 4120 | if test "${vi_cv_var_python_version+set}" = set; then |
| 4121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4122 | else |
| 4123 | vi_cv_var_python_version=` |
| 4124 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4125 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4126 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4127 | echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 |
| 4128 | echo "${ECHO_T}$vi_cv_var_python_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4129 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4130 | echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 |
| 4131 | 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] | 4132 | if ${vi_cv_path_python} -c \ |
| 4133 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 4134 | then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4135 | echo "$as_me:$LINENO: result: yep" >&5 |
| 4136 | echo "${ECHO_T}yep" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4137 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4138 | echo "$as_me:$LINENO: checking Python's install prefix" >&5 |
| 4139 | echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6 |
| 4140 | if test "${vi_cv_path_python_pfx+set}" = set; then |
| 4141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4142 | else |
| 4143 | vi_cv_path_python_pfx=` |
| 4144 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4145 | "import sys; print sys.prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4146 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4147 | echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 |
| 4148 | echo "${ECHO_T}$vi_cv_path_python_pfx" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4149 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4150 | echo "$as_me:$LINENO: checking Python's execution prefix" >&5 |
| 4151 | echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6 |
| 4152 | if test "${vi_cv_path_python_epfx+set}" = set; then |
| 4153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4154 | else |
| 4155 | vi_cv_path_python_epfx=` |
| 4156 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4157 | "import sys; print sys.exec_prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4158 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4159 | echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 |
| 4160 | echo "${ECHO_T}$vi_cv_path_python_epfx" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4161 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4162 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4163 | if test "${vi_cv_path_pythonpath+set}" = set; then |
| 4164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4165 | else |
| 4166 | vi_cv_path_pythonpath=` |
| 4167 | unset PYTHONPATH; |
| 4168 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4169 | "import sys, string; print string.join(sys.path,':')"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4170 | fi |
| 4171 | |
| 4172 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4173 | |
| 4174 | |
| 4175 | # 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] | 4176 | if test "${with_python_config_dir+set}" = set; then |
| 4177 | withval="$with_python_config_dir" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4178 | vi_cv_path_python_conf="${withval}" |
| 4179 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4180 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4181 | echo "$as_me:$LINENO: checking Python's configuration directory" >&5 |
| 4182 | echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6 |
| 4183 | if test "${vi_cv_path_python_conf+set}" = set; then |
| 4184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4185 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4186 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4187 | vi_cv_path_python_conf= |
| 4188 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 4189 | for subdir in lib share; do |
| 4190 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 4191 | if test -d "$d" && test -f "$d/config.c"; then |
| 4192 | vi_cv_path_python_conf="$d" |
| 4193 | fi |
| 4194 | done |
| 4195 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4196 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4197 | fi |
| 4198 | echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 |
| 4199 | echo "${ECHO_T}$vi_cv_path_python_conf" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4200 | |
| 4201 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 4202 | |
| 4203 | if test "X$PYTHON_CONFDIR" = "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4204 | echo "$as_me:$LINENO: result: can't find it!" >&5 |
| 4205 | echo "${ECHO_T}can't find it!" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4206 | else |
| 4207 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4208 | if test "${vi_cv_path_python_plibs+set}" = set; then |
| 4209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4210 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4211 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4212 | tmp_mkf="/tmp/Makefile-conf$$" |
| 4213 | cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} |
| 4214 | __: |
| 4215 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 4216 | @echo "python_LIBS='$(LIBS)'" |
| 4217 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 4218 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 4219 | eof |
| 4220 | eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" |
| 4221 | rm -f ${tmp_mkf} |
| 4222 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 4223 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 4224 | vi_cv_path_python_plibs="-framework Python" |
| 4225 | else |
| 4226 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 4227 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 4228 | else |
| 4229 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 4230 | fi |
| 4231 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 4232 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 4233 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4234 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4235 | fi |
| 4236 | |
| 4237 | |
| 4238 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 4239 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 4240 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 4241 | else |
| 4242 | 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}" |
| 4243 | fi |
| 4244 | PYTHON_SRC="if_python.c" |
| 4245 | if test "x$MACOSX" = "xyes"; then |
| 4246 | PYTHON_OBJ="objects/if_python.o" |
| 4247 | else |
| 4248 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 4249 | fi |
| 4250 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 4251 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 4252 | fi |
| 4253 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 4254 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4255 | echo "$as_me:$LINENO: checking if -pthread should be used" >&5 |
| 4256 | echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4257 | threadsafe_flag= |
| 4258 | thread_lib= |
| 4259 | if test "x$MACOSX" != "xyes"; then |
| 4260 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 4261 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 4262 | threadsafe_flag="-D_THREAD_SAFE" |
| 4263 | thread_lib="-pthread" |
| 4264 | fi |
| 4265 | fi |
| 4266 | libs_save_old=$LIBS |
| 4267 | if test -n "$threadsafe_flag"; then |
| 4268 | cflags_save=$CFLAGS |
| 4269 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 4270 | LIBS="$LIBS $thread_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4271 | cat >conftest.$ac_ext <<_ACEOF |
| 4272 | /* confdefs.h. */ |
| 4273 | _ACEOF |
| 4274 | cat confdefs.h >>conftest.$ac_ext |
| 4275 | cat >>conftest.$ac_ext <<_ACEOF |
| 4276 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4277 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4278 | int |
| 4279 | main () |
| 4280 | { |
| 4281 | |
| 4282 | ; |
| 4283 | return 0; |
| 4284 | } |
| 4285 | _ACEOF |
| 4286 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4288 | (eval $ac_link) 2>conftest.er1 |
| 4289 | ac_status=$? |
| 4290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4291 | rm -f conftest.er1 |
| 4292 | cat conftest.err >&5 |
| 4293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4294 | (exit $ac_status); } && |
| 4295 | { ac_try='test -z "$ac_c_werror_flag" |
| 4296 | || test ! -s conftest.err' |
| 4297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4298 | (eval $ac_try) 2>&5 |
| 4299 | ac_status=$? |
| 4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4301 | (exit $ac_status); }; } && |
| 4302 | { ac_try='test -s conftest$ac_exeext' |
| 4303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4304 | (eval $ac_try) 2>&5 |
| 4305 | ac_status=$? |
| 4306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4307 | (exit $ac_status); }; }; then |
| 4308 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4309 | echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4310 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4311 | echo "$as_me: failed program was:" >&5 |
| 4312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4313 | |
| 4314 | echo "$as_me:$LINENO: result: no" >&5 |
| 4315 | echo "${ECHO_T}no" >&6; LIBS=$libs_save_old |
| 4316 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4317 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4318 | rm -f conftest.err conftest.$ac_objext \ |
| 4319 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4320 | CFLAGS=$cflags_save |
| 4321 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4322 | echo "$as_me:$LINENO: result: no" >&5 |
| 4323 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4324 | fi |
| 4325 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4326 | echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 |
| 4327 | 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] | 4328 | cflags_save=$CFLAGS |
| 4329 | libs_save=$LIBS |
| 4330 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 4331 | LIBS="$LIBS $PYTHON_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4332 | cat >conftest.$ac_ext <<_ACEOF |
| 4333 | /* confdefs.h. */ |
| 4334 | _ACEOF |
| 4335 | cat confdefs.h >>conftest.$ac_ext |
| 4336 | cat >>conftest.$ac_ext <<_ACEOF |
| 4337 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4338 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4339 | int |
| 4340 | main () |
| 4341 | { |
| 4342 | |
| 4343 | ; |
| 4344 | return 0; |
| 4345 | } |
| 4346 | _ACEOF |
| 4347 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4349 | (eval $ac_link) 2>conftest.er1 |
| 4350 | ac_status=$? |
| 4351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4352 | rm -f conftest.er1 |
| 4353 | cat conftest.err >&5 |
| 4354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4355 | (exit $ac_status); } && |
| 4356 | { ac_try='test -z "$ac_c_werror_flag" |
| 4357 | || test ! -s conftest.err' |
| 4358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4359 | (eval $ac_try) 2>&5 |
| 4360 | ac_status=$? |
| 4361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4362 | (exit $ac_status); }; } && |
| 4363 | { ac_try='test -s conftest$ac_exeext' |
| 4364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4365 | (eval $ac_try) 2>&5 |
| 4366 | ac_status=$? |
| 4367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4368 | (exit $ac_status); }; }; then |
| 4369 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4370 | echo "${ECHO_T}yes" >&6; python_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4371 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4372 | echo "$as_me: failed program was:" >&5 |
| 4373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4374 | |
| 4375 | echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 |
| 4376 | echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4377 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4378 | rm -f conftest.err conftest.$ac_objext \ |
| 4379 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4380 | CFLAGS=$cflags_save |
| 4381 | LIBS=$libs_save |
| 4382 | if test $python_ok = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4383 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4384 | #define FEAT_PYTHON 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4385 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4386 | |
| 4387 | else |
| 4388 | LIBS=$libs_save_old |
| 4389 | PYTHON_SRC= |
| 4390 | PYTHON_OBJ= |
| 4391 | PYTHON_LIBS= |
| 4392 | PYTHON_CFLAGS= |
| 4393 | fi |
| 4394 | |
| 4395 | fi |
| 4396 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4397 | echo "$as_me:$LINENO: result: too old" >&5 |
| 4398 | echo "${ECHO_T}too old" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4399 | fi |
| 4400 | fi |
| 4401 | fi |
| 4402 | |
| 4403 | |
| 4404 | |
| 4405 | |
| 4406 | |
| 4407 | |
| 4408 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4409 | echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 |
| 4410 | echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4411 | # Check whether --enable-tclinterp or --disable-tclinterp was given. |
| 4412 | if test "${enable_tclinterp+set}" = set; then |
| 4413 | enableval="$enable_tclinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4414 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4415 | else |
| 4416 | enable_tclinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4417 | fi; |
| 4418 | echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 |
| 4419 | echo "${ECHO_T}$enable_tclinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4420 | |
| 4421 | if test "$enable_tclinterp" = "yes"; then |
| 4422 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4423 | echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 |
| 4424 | echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6 |
| 4425 | |
| 4426 | # Check whether --with-tclsh or --without-tclsh was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4427 | if test "${with_tclsh+set}" = set; then |
| 4428 | withval="$with_tclsh" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4429 | tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5 |
| 4430 | echo "${ECHO_T}$tclsh_name" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4431 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4432 | tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5 |
| 4433 | echo "${ECHO_T}no" >&6 |
| 4434 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4435 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4436 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4439 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4441 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4442 | case $vi_cv_path_tcl in |
| 4443 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4444 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4445 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4446 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4448 | for as_dir in $PATH |
| 4449 | do |
| 4450 | IFS=$as_save_IFS |
| 4451 | test -z "$as_dir" && as_dir=. |
| 4452 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4453 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4454 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4456 | break 2 |
| 4457 | fi |
| 4458 | done |
| 4459 | done |
| 4460 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4461 | ;; |
| 4462 | esac |
| 4463 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4464 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4465 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4466 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4467 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4468 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4469 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4470 | echo "$as_me:$LINENO: result: no" >&5 |
| 4471 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4472 | fi |
| 4473 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4474 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4475 | |
| 4476 | 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] | 4477 | tclsh_name="tclsh8.2" |
| 4478 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4479 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4480 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4481 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4482 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4484 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4485 | case $vi_cv_path_tcl in |
| 4486 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4487 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4488 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4489 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4491 | for as_dir in $PATH |
| 4492 | do |
| 4493 | IFS=$as_save_IFS |
| 4494 | test -z "$as_dir" && as_dir=. |
| 4495 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4496 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4497 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4498 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4499 | break 2 |
| 4500 | fi |
| 4501 | done |
| 4502 | done |
| 4503 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4504 | ;; |
| 4505 | esac |
| 4506 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4507 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4508 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4509 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4510 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4511 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4512 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4513 | echo "$as_me:$LINENO: result: no" >&5 |
| 4514 | echo "${ECHO_T}no" >&6 |
| 4515 | fi |
| 4516 | |
| 4517 | fi |
| 4518 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 4519 | tclsh_name="tclsh8.0" |
| 4520 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4521 | set dummy $tclsh_name; ac_word=$2 |
| 4522 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4524 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4526 | else |
| 4527 | case $vi_cv_path_tcl in |
| 4528 | [\\/]* | ?:[\\/]*) |
| 4529 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4530 | ;; |
| 4531 | *) |
| 4532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4533 | for as_dir in $PATH |
| 4534 | do |
| 4535 | IFS=$as_save_IFS |
| 4536 | test -z "$as_dir" && as_dir=. |
| 4537 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4539 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4541 | break 2 |
| 4542 | fi |
| 4543 | done |
| 4544 | done |
| 4545 | |
| 4546 | ;; |
| 4547 | esac |
| 4548 | fi |
| 4549 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4550 | |
| 4551 | if test -n "$vi_cv_path_tcl"; then |
| 4552 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4553 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
| 4554 | else |
| 4555 | echo "$as_me:$LINENO: result: no" >&5 |
| 4556 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4557 | fi |
| 4558 | |
| 4559 | fi |
| 4560 | if test "X$vi_cv_path_tcl" = "X"; then |
| 4561 | tclsh_name="tclsh" |
| 4562 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4563 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4564 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4565 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4566 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4568 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4569 | case $vi_cv_path_tcl in |
| 4570 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4571 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4572 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4573 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4575 | for as_dir in $PATH |
| 4576 | do |
| 4577 | IFS=$as_save_IFS |
| 4578 | test -z "$as_dir" && as_dir=. |
| 4579 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4581 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4583 | break 2 |
| 4584 | fi |
| 4585 | done |
| 4586 | done |
| 4587 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4588 | ;; |
| 4589 | esac |
| 4590 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4591 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4592 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4593 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4594 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4595 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4596 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4597 | echo "$as_me:$LINENO: result: no" >&5 |
| 4598 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4599 | fi |
| 4600 | |
| 4601 | fi |
| 4602 | if test "X$vi_cv_path_tcl" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4603 | echo "$as_me:$LINENO: checking Tcl version" >&5 |
| 4604 | echo $ECHO_N "checking Tcl version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4605 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 4606 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4607 | echo "$as_me:$LINENO: result: $tclver - OK" >&5 |
| 4608 | echo "${ECHO_T}$tclver - OK" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4609 | 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 -` |
| 4610 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4611 | echo "$as_me:$LINENO: checking for location of Tcl include" >&5 |
| 4612 | echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4613 | if test "x$MACOSX" != "xyes"; then |
Bram Moolenaar | 47136d7 | 2004-10-12 20:02:24 +0000 | [diff] [blame] | 4614 | 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] | 4615 | else |
| 4616 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 4617 | fi |
| 4618 | for try in $tclinc; do |
| 4619 | if test -f "$try/tcl.h"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4620 | echo "$as_me:$LINENO: result: $try/tcl.h" >&5 |
| 4621 | echo "${ECHO_T}$try/tcl.h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4622 | TCL_INC=$try |
| 4623 | break |
| 4624 | fi |
| 4625 | done |
| 4626 | if test -z "$TCL_INC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4627 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4628 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4629 | SKIP_TCL=YES |
| 4630 | fi |
| 4631 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4632 | echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 |
| 4633 | 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] | 4634 | if test "x$MACOSX" != "xyes"; then |
| 4635 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
| 4636 | else |
| 4637 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 4638 | fi |
| 4639 | for try in $tclcnf; do |
| 4640 | if test -f $try/tclConfig.sh; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4641 | echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 |
| 4642 | echo "${ECHO_T}$try/tclConfig.sh" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4643 | . $try/tclConfig.sh |
| 4644 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 4645 | 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] | 4646 | break |
| 4647 | fi |
| 4648 | done |
| 4649 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4650 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4651 | echo "${ECHO_T}<not found>" >&6 |
| 4652 | echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 |
| 4653 | echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4654 | tcllib=`echo $tclinc | sed s/include/lib/g` |
| 4655 | for ext in .so .a ; do |
| 4656 | for ver in "" $tclver ; do |
| 4657 | for try in $tcllib ; do |
| 4658 | trylib=tcl$ver$ext |
| 4659 | if test -f $try/lib$trylib ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4660 | echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 |
| 4661 | echo "${ECHO_T}$try/lib$trylib" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4662 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 4663 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 4664 | uname -r | grep '^5' >/dev/null; then |
| 4665 | TCL_LIBS="$TCL_LIBS -R $try" |
| 4666 | fi |
| 4667 | break 3 |
| 4668 | fi |
| 4669 | done |
| 4670 | done |
| 4671 | done |
| 4672 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4673 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4674 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4675 | SKIP_TCL=YES |
| 4676 | fi |
| 4677 | fi |
| 4678 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4679 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4680 | #define FEAT_TCL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4681 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4682 | |
| 4683 | TCL_SRC=if_tcl.c |
| 4684 | TCL_OBJ=objects/if_tcl.o |
| 4685 | TCL_PRO=if_tcl.pro |
| 4686 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 4687 | fi |
| 4688 | fi |
| 4689 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4690 | echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 |
| 4691 | 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] | 4692 | fi |
| 4693 | fi |
| 4694 | fi |
| 4695 | |
| 4696 | |
| 4697 | |
| 4698 | |
| 4699 | |
| 4700 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4701 | echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 |
| 4702 | echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4703 | # Check whether --enable-rubyinterp or --disable-rubyinterp was given. |
| 4704 | if test "${enable_rubyinterp+set}" = set; then |
| 4705 | enableval="$enable_rubyinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4706 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4707 | else |
| 4708 | enable_rubyinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4709 | fi; |
| 4710 | echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 |
| 4711 | echo "${ECHO_T}$enable_rubyinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4712 | if test "$enable_rubyinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4713 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4714 | # Extract the first word of "ruby", so it can be a program name with args. |
| 4715 | set dummy ruby; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4716 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4718 | if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then |
| 4719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4720 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4721 | case $vi_cv_path_ruby in |
| 4722 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4723 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 4724 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4725 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4727 | for as_dir in $PATH |
| 4728 | do |
| 4729 | IFS=$as_save_IFS |
| 4730 | test -z "$as_dir" && as_dir=. |
| 4731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4732 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4733 | ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" |
| 4734 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4735 | break 2 |
| 4736 | fi |
| 4737 | done |
| 4738 | done |
| 4739 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4740 | ;; |
| 4741 | esac |
| 4742 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4743 | vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
| 4744 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4745 | if test -n "$vi_cv_path_ruby"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4746 | echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 |
| 4747 | echo "${ECHO_T}$vi_cv_path_ruby" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4748 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4749 | echo "$as_me:$LINENO: result: no" >&5 |
| 4750 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4751 | fi |
| 4752 | |
| 4753 | if test "X$vi_cv_path_ruby" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4754 | echo "$as_me:$LINENO: checking Ruby version" >&5 |
| 4755 | echo $ECHO_N "checking Ruby version... $ECHO_C" >&6 |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 4756 | 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] | 4757 | echo "$as_me:$LINENO: result: OK" >&5 |
| 4758 | echo "${ECHO_T}OK" >&6 |
| 4759 | echo "$as_me:$LINENO: checking Ruby header files" >&5 |
| 4760 | echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4761 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
| 4762 | if test "X$rubyhdrdir" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4763 | echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 |
| 4764 | echo "${ECHO_T}$rubyhdrdir" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4765 | RUBY_CFLAGS="-I$rubyhdrdir" |
| 4766 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 4767 | if test "X$rubylibs" != "X"; then |
| 4768 | RUBY_LIBS="$rubylibs" |
| 4769 | fi |
| 4770 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 4771 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 4772 | librubyarg="$rubyhdrdir/$librubyarg" |
| 4773 | else |
| 4774 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 4775 | if test -f "$rubylibdir/$librubyarg"; then |
| 4776 | librubyarg="$rubylibdir/$librubyarg" |
| 4777 | elif test "$librubyarg" = "libruby.a"; then |
| 4778 | librubyarg="-lruby" |
| 4779 | else |
| 4780 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 4781 | fi |
| 4782 | fi |
| 4783 | |
| 4784 | if test "X$librubyarg" != "X"; then |
| 4785 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 4786 | fi |
| 4787 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 4788 | if test "X$rubyldflags" != "X"; then |
| 4789 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 4790 | fi |
| 4791 | RUBY_SRC="if_ruby.c" |
| 4792 | RUBY_OBJ="objects/if_ruby.o" |
| 4793 | RUBY_PRO="if_ruby.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4794 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4795 | #define FEAT_RUBY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4796 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4797 | |
| 4798 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4799 | echo "$as_me:$LINENO: result: not found" >&5 |
| 4800 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4801 | fi |
| 4802 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4803 | echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 |
| 4804 | 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] | 4805 | fi |
| 4806 | fi |
| 4807 | fi |
| 4808 | |
| 4809 | |
| 4810 | |
| 4811 | |
| 4812 | |
| 4813 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4814 | echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 |
| 4815 | echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4816 | # Check whether --enable-cscope or --disable-cscope was given. |
| 4817 | if test "${enable_cscope+set}" = set; then |
| 4818 | enableval="$enable_cscope" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4819 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4820 | else |
| 4821 | enable_cscope="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4822 | fi; |
| 4823 | echo "$as_me:$LINENO: result: $enable_cscope" >&5 |
| 4824 | echo "${ECHO_T}$enable_cscope" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4825 | if test "$enable_cscope" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4826 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4827 | #define FEAT_CSCOPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4828 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4829 | |
| 4830 | fi |
| 4831 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4832 | echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 |
| 4833 | echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4834 | # Check whether --enable-workshop or --disable-workshop was given. |
| 4835 | if test "${enable_workshop+set}" = set; then |
| 4836 | enableval="$enable_workshop" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4837 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4838 | else |
| 4839 | enable_workshop="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4840 | fi; |
| 4841 | echo "$as_me:$LINENO: result: $enable_workshop" >&5 |
| 4842 | echo "${ECHO_T}$enable_workshop" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4843 | if test "$enable_workshop" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4844 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4845 | #define FEAT_SUN_WORKSHOP 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4846 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4847 | |
| 4848 | WORKSHOP_SRC="workshop.c integration.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4849 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4850 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4851 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4852 | if test "${enable_gui-xxx}" = xxx; then |
| 4853 | enable_gui=motif |
| 4854 | fi |
| 4855 | fi |
| 4856 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4857 | echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 |
| 4858 | echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4859 | # Check whether --enable-netbeans or --disable-netbeans was given. |
| 4860 | if test "${enable_netbeans+set}" = set; then |
| 4861 | enableval="$enable_netbeans" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4862 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4863 | else |
| 4864 | enable_netbeans="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4865 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4866 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4867 | echo "$as_me:$LINENO: result: no" >&5 |
| 4868 | echo "${ECHO_T}no" >&6 |
| 4869 | |
| 4870 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 4871 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 4872 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 4873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4874 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4875 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4876 | LIBS="-lsocket $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4877 | cat >conftest.$ac_ext <<_ACEOF |
| 4878 | /* confdefs.h. */ |
| 4879 | _ACEOF |
| 4880 | cat confdefs.h >>conftest.$ac_ext |
| 4881 | cat >>conftest.$ac_ext <<_ACEOF |
| 4882 | /* end confdefs.h. */ |
| 4883 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4884 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4885 | #ifdef __cplusplus |
| 4886 | extern "C" |
| 4887 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4888 | /* 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] | 4889 | builtin and then its argument prototype would still apply. */ |
| 4890 | char socket (); |
| 4891 | int |
| 4892 | main () |
| 4893 | { |
| 4894 | socket (); |
| 4895 | ; |
| 4896 | return 0; |
| 4897 | } |
| 4898 | _ACEOF |
| 4899 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4901 | (eval $ac_link) 2>conftest.er1 |
| 4902 | ac_status=$? |
| 4903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4904 | rm -f conftest.er1 |
| 4905 | cat conftest.err >&5 |
| 4906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4907 | (exit $ac_status); } && |
| 4908 | { ac_try='test -z "$ac_c_werror_flag" |
| 4909 | || test ! -s conftest.err' |
| 4910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4911 | (eval $ac_try) 2>&5 |
| 4912 | ac_status=$? |
| 4913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4914 | (exit $ac_status); }; } && |
| 4915 | { ac_try='test -s conftest$ac_exeext' |
| 4916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4917 | (eval $ac_try) 2>&5 |
| 4918 | ac_status=$? |
| 4919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4920 | (exit $ac_status); }; }; then |
| 4921 | ac_cv_lib_socket_socket=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4922 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4923 | echo "$as_me: failed program was:" >&5 |
| 4924 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4925 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4926 | ac_cv_lib_socket_socket=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4927 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4928 | rm -f conftest.err conftest.$ac_objext \ |
| 4929 | conftest$ac_exeext conftest.$ac_ext |
| 4930 | LIBS=$ac_check_lib_save_LIBS |
| 4931 | fi |
| 4932 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 4933 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 4934 | if test $ac_cv_lib_socket_socket = yes; then |
| 4935 | cat >>confdefs.h <<_ACEOF |
| 4936 | #define HAVE_LIBSOCKET 1 |
| 4937 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4938 | |
| 4939 | LIBS="-lsocket $LIBS" |
| 4940 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4941 | fi |
| 4942 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4943 | |
| 4944 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 4945 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 4946 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4948 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4949 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4950 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4951 | cat >conftest.$ac_ext <<_ACEOF |
| 4952 | /* confdefs.h. */ |
| 4953 | _ACEOF |
| 4954 | cat confdefs.h >>conftest.$ac_ext |
| 4955 | cat >>conftest.$ac_ext <<_ACEOF |
| 4956 | /* end confdefs.h. */ |
| 4957 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4958 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4959 | #ifdef __cplusplus |
| 4960 | extern "C" |
| 4961 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4962 | /* 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] | 4963 | builtin and then its argument prototype would still apply. */ |
| 4964 | char gethostbyname (); |
| 4965 | int |
| 4966 | main () |
| 4967 | { |
| 4968 | gethostbyname (); |
| 4969 | ; |
| 4970 | return 0; |
| 4971 | } |
| 4972 | _ACEOF |
| 4973 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4975 | (eval $ac_link) 2>conftest.er1 |
| 4976 | ac_status=$? |
| 4977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4978 | rm -f conftest.er1 |
| 4979 | cat conftest.err >&5 |
| 4980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4981 | (exit $ac_status); } && |
| 4982 | { ac_try='test -z "$ac_c_werror_flag" |
| 4983 | || test ! -s conftest.err' |
| 4984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4985 | (eval $ac_try) 2>&5 |
| 4986 | ac_status=$? |
| 4987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4988 | (exit $ac_status); }; } && |
| 4989 | { ac_try='test -s conftest$ac_exeext' |
| 4990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4991 | (eval $ac_try) 2>&5 |
| 4992 | ac_status=$? |
| 4993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4994 | (exit $ac_status); }; }; then |
| 4995 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4996 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4997 | echo "$as_me: failed program was:" >&5 |
| 4998 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4999 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5000 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5001 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5002 | rm -f conftest.err conftest.$ac_objext \ |
| 5003 | conftest$ac_exeext conftest.$ac_ext |
| 5004 | LIBS=$ac_check_lib_save_LIBS |
| 5005 | fi |
| 5006 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 5007 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 5008 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 5009 | cat >>confdefs.h <<_ACEOF |
| 5010 | #define HAVE_LIBNSL 1 |
| 5011 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5012 | |
| 5013 | LIBS="-lnsl $LIBS" |
| 5014 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5015 | fi |
| 5016 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5017 | echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 |
| 5018 | echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6 |
| 5019 | cat >conftest.$ac_ext <<_ACEOF |
| 5020 | /* confdefs.h. */ |
| 5021 | _ACEOF |
| 5022 | cat confdefs.h >>conftest.$ac_ext |
| 5023 | cat >>conftest.$ac_ext <<_ACEOF |
| 5024 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5025 | |
| 5026 | #include <stdio.h> |
| 5027 | #include <stdlib.h> |
| 5028 | #include <stdarg.h> |
| 5029 | #include <fcntl.h> |
| 5030 | #include <netdb.h> |
| 5031 | #include <netinet/in.h> |
| 5032 | #include <errno.h> |
| 5033 | #include <sys/types.h> |
| 5034 | #include <sys/socket.h> |
| 5035 | /* Check bitfields */ |
| 5036 | struct nbbuf { |
| 5037 | unsigned int initDone:1; |
| 5038 | ushort signmaplen; |
| 5039 | }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5040 | |
| 5041 | int |
| 5042 | main () |
| 5043 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5044 | |
| 5045 | /* Check creating a socket. */ |
| 5046 | struct sockaddr_in server; |
| 5047 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 5048 | (void)htons(100); |
| 5049 | (void)gethostbyname("microsoft.com"); |
| 5050 | if (errno == ECONNREFUSED) |
| 5051 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5052 | |
| 5053 | ; |
| 5054 | return 0; |
| 5055 | } |
| 5056 | _ACEOF |
| 5057 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5059 | (eval $ac_link) 2>conftest.er1 |
| 5060 | ac_status=$? |
| 5061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5062 | rm -f conftest.er1 |
| 5063 | cat conftest.err >&5 |
| 5064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5065 | (exit $ac_status); } && |
| 5066 | { ac_try='test -z "$ac_c_werror_flag" |
| 5067 | || test ! -s conftest.err' |
| 5068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5069 | (eval $ac_try) 2>&5 |
| 5070 | ac_status=$? |
| 5071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5072 | (exit $ac_status); }; } && |
| 5073 | { ac_try='test -s conftest$ac_exeext' |
| 5074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5075 | (eval $ac_try) 2>&5 |
| 5076 | ac_status=$? |
| 5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5078 | (exit $ac_status); }; }; then |
| 5079 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5080 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5081 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5082 | echo "$as_me: failed program was:" >&5 |
| 5083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5084 | |
| 5085 | echo "$as_me:$LINENO: result: no" >&5 |
| 5086 | echo "${ECHO_T}no" >&6; enable_netbeans="no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5087 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5088 | rm -f conftest.err conftest.$ac_objext \ |
| 5089 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5090 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5091 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5092 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5093 | fi |
| 5094 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5095 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5096 | #define FEAT_NETBEANS_INTG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5097 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5098 | |
| 5099 | NETBEANS_SRC="netbeans.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5100 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5101 | NETBEANS_OBJ="objects/netbeans.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5102 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5103 | fi |
| 5104 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5105 | echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 |
| 5106 | echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5107 | # Check whether --enable-sniff or --disable-sniff was given. |
| 5108 | if test "${enable_sniff+set}" = set; then |
| 5109 | enableval="$enable_sniff" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5110 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5111 | else |
| 5112 | enable_sniff="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5113 | fi; |
| 5114 | echo "$as_me:$LINENO: result: $enable_sniff" >&5 |
| 5115 | echo "${ECHO_T}$enable_sniff" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5116 | if test "$enable_sniff" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5117 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5118 | #define FEAT_SNIFF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5119 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5120 | |
| 5121 | SNIFF_SRC="if_sniff.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5122 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5123 | SNIFF_OBJ="objects/if_sniff.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5124 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5125 | fi |
| 5126 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5127 | echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 |
| 5128 | echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5129 | # Check whether --enable-multibyte or --disable-multibyte was given. |
| 5130 | if test "${enable_multibyte+set}" = set; then |
| 5131 | enableval="$enable_multibyte" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5132 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5133 | else |
| 5134 | enable_multibyte="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5135 | fi; |
| 5136 | echo "$as_me:$LINENO: result: $enable_multibyte" >&5 |
| 5137 | echo "${ECHO_T}$enable_multibyte" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5138 | if test "$enable_multibyte" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5139 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5140 | #define FEAT_MBYTE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5141 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5142 | |
| 5143 | fi |
| 5144 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5145 | echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 |
| 5146 | echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5147 | # Check whether --enable-hangulinput or --disable-hangulinput was given. |
| 5148 | if test "${enable_hangulinput+set}" = set; then |
| 5149 | enableval="$enable_hangulinput" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5150 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5151 | else |
| 5152 | enable_hangulinput="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5153 | fi; |
| 5154 | echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 |
| 5155 | echo "${ECHO_T}$enable_hangulinput" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5156 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5157 | echo "$as_me:$LINENO: checking --enable-xim argument" >&5 |
| 5158 | echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5159 | # Check whether --enable-xim or --disable-xim was given. |
| 5160 | if test "${enable_xim+set}" = set; then |
| 5161 | enableval="$enable_xim" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5162 | echo "$as_me:$LINENO: result: $enable_xim" >&5 |
| 5163 | echo "${ECHO_T}$enable_xim" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5164 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5165 | enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5 |
| 5166 | echo "${ECHO_T}defaulting to auto" >&6 |
| 5167 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5168 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5169 | echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 |
| 5170 | echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5171 | # Check whether --enable-fontset or --disable-fontset was given. |
| 5172 | if test "${enable_fontset+set}" = set; then |
| 5173 | enableval="$enable_fontset" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5174 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5175 | else |
| 5176 | enable_fontset="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5177 | fi; |
| 5178 | echo "$as_me:$LINENO: result: $enable_fontset" >&5 |
| 5179 | echo "${ECHO_T}$enable_fontset" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5180 | |
| 5181 | test -z "$with_x" && with_x=yes |
| 5182 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 5183 | if test "$with_x" = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5184 | echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 |
| 5185 | echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5186 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5187 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5188 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 5189 | set dummy xmkmf; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5190 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5191 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5192 | if test "${ac_cv_path_xmkmfpath+set}" = set; then |
| 5193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5194 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5195 | case $xmkmfpath in |
| 5196 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5197 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 5198 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5199 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5201 | for as_dir in $PATH |
| 5202 | do |
| 5203 | IFS=$as_save_IFS |
| 5204 | test -z "$as_dir" && as_dir=. |
| 5205 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5206 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5207 | ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" |
| 5208 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5209 | break 2 |
| 5210 | fi |
| 5211 | done |
| 5212 | done |
| 5213 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5214 | ;; |
| 5215 | esac |
| 5216 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5217 | xmkmfpath=$ac_cv_path_xmkmfpath |
| 5218 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5219 | if test -n "$xmkmfpath"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5220 | echo "$as_me:$LINENO: result: $xmkmfpath" >&5 |
| 5221 | echo "${ECHO_T}$xmkmfpath" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5222 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5223 | echo "$as_me:$LINENO: result: no" >&5 |
| 5224 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5225 | fi |
| 5226 | |
| 5227 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5228 | echo "$as_me:$LINENO: checking for X" >&5 |
| 5229 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 5230 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5231 | |
| 5232 | # Check whether --with-x or --without-x was given. |
| 5233 | if test "${with_x+set}" = set; then |
| 5234 | withval="$with_x" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5235 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5236 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5237 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 5238 | if test "x$with_x" = xno; then |
| 5239 | # The user explicitly disabled X. |
| 5240 | have_x=disabled |
| 5241 | else |
| 5242 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 5243 | # Both variables are already set. |
| 5244 | have_x=yes |
| 5245 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5246 | if test "${ac_cv_have_x+set}" = set; then |
| 5247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5248 | else |
| 5249 | # 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] | 5250 | ac_x_includes=no ac_x_libraries=no |
| 5251 | rm -fr conftest.dir |
| 5252 | if mkdir conftest.dir; then |
| 5253 | cd conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5254 | # 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] | 5255 | cat >Imakefile <<'_ACEOF' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5256 | acfindx: |
| 5257 | @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] | 5258 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5259 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 5260 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 5261 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 5262 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 5263 | for ac_extension in a so sl; do |
| 5264 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5265 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 5266 | ac_im_usrlibdir=$ac_im_libdir; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5267 | fi |
| 5268 | done |
| 5269 | # Screen out bogus values from the imake configuration. They are |
| 5270 | # bogus both because they are the default anyway, and because |
| 5271 | # using them would break gcc on systems where it needs fixed includes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5272 | case $ac_im_incroot in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5273 | /usr/include) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5274 | *) 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] | 5275 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5276 | case $ac_im_usrlibdir in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5277 | /usr/lib | /lib) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5278 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5279 | esac |
| 5280 | fi |
| 5281 | cd .. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5282 | rm -fr conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5283 | fi |
| 5284 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5285 | # Standard set of common directories for X headers. |
| 5286 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 5287 | ac_x_header_dirs=' |
| 5288 | /usr/X11/include |
| 5289 | /usr/X11R6/include |
| 5290 | /usr/X11R5/include |
| 5291 | /usr/X11R4/include |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5292 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5293 | /usr/include/X11 |
| 5294 | /usr/include/X11R6 |
| 5295 | /usr/include/X11R5 |
| 5296 | /usr/include/X11R4 |
| 5297 | |
| 5298 | /usr/local/X11/include |
| 5299 | /usr/local/X11R6/include |
| 5300 | /usr/local/X11R5/include |
| 5301 | /usr/local/X11R4/include |
| 5302 | |
| 5303 | /usr/local/include/X11 |
| 5304 | /usr/local/include/X11R6 |
| 5305 | /usr/local/include/X11R5 |
| 5306 | /usr/local/include/X11R4 |
| 5307 | |
| 5308 | /usr/X386/include |
| 5309 | /usr/x386/include |
| 5310 | /usr/XFree86/include/X11 |
| 5311 | |
| 5312 | /usr/include |
| 5313 | /usr/local/include |
| 5314 | /usr/unsupported/include |
| 5315 | /usr/athena/include |
| 5316 | /usr/local/x11r5/include |
| 5317 | /usr/lpp/Xamples/include |
| 5318 | |
| 5319 | /usr/openwin/include |
| 5320 | /usr/openwin/share/include' |
| 5321 | |
| 5322 | if test "$ac_x_includes" = no; then |
| 5323 | # Guess where to find include files, by looking for Intrinsic.h. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5324 | # First, try using that file with no special directory specified. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5325 | cat >conftest.$ac_ext <<_ACEOF |
| 5326 | /* confdefs.h. */ |
| 5327 | _ACEOF |
| 5328 | cat confdefs.h >>conftest.$ac_ext |
| 5329 | cat >>conftest.$ac_ext <<_ACEOF |
| 5330 | /* end confdefs.h. */ |
| 5331 | #include <X11/Intrinsic.h> |
| 5332 | _ACEOF |
| 5333 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5334 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5335 | ac_status=$? |
| 5336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5337 | rm -f conftest.er1 |
| 5338 | cat conftest.err >&5 |
| 5339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5340 | (exit $ac_status); } >/dev/null; then |
| 5341 | if test -s conftest.err; then |
| 5342 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5343 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5344 | else |
| 5345 | ac_cpp_err= |
| 5346 | fi |
| 5347 | else |
| 5348 | ac_cpp_err=yes |
| 5349 | fi |
| 5350 | if test -z "$ac_cpp_err"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5351 | # We can compile using X headers with no special include directory. |
| 5352 | ac_x_includes= |
| 5353 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5354 | echo "$as_me: failed program was:" >&5 |
| 5355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5356 | |
| 5357 | for ac_dir in $ac_x_header_dirs; do |
| 5358 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 5359 | ac_x_includes=$ac_dir |
| 5360 | break |
| 5361 | fi |
| 5362 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5363 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5364 | rm -f conftest.err conftest.$ac_ext |
| 5365 | fi # $ac_x_includes = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5366 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5367 | if test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5368 | # Check for the libraries. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5369 | # See if we find them without any special options. |
| 5370 | # Don't add to $LIBS permanently. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5371 | ac_save_LIBS=$LIBS |
| 5372 | LIBS="-lXt $LIBS" |
| 5373 | cat >conftest.$ac_ext <<_ACEOF |
| 5374 | /* confdefs.h. */ |
| 5375 | _ACEOF |
| 5376 | cat confdefs.h >>conftest.$ac_ext |
| 5377 | cat >>conftest.$ac_ext <<_ACEOF |
| 5378 | /* end confdefs.h. */ |
| 5379 | #include <X11/Intrinsic.h> |
| 5380 | int |
| 5381 | main () |
| 5382 | { |
| 5383 | XtMalloc (0) |
| 5384 | ; |
| 5385 | return 0; |
| 5386 | } |
| 5387 | _ACEOF |
| 5388 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5390 | (eval $ac_link) 2>conftest.er1 |
| 5391 | ac_status=$? |
| 5392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5393 | rm -f conftest.er1 |
| 5394 | cat conftest.err >&5 |
| 5395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5396 | (exit $ac_status); } && |
| 5397 | { ac_try='test -z "$ac_c_werror_flag" |
| 5398 | || test ! -s conftest.err' |
| 5399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5400 | (eval $ac_try) 2>&5 |
| 5401 | ac_status=$? |
| 5402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5403 | (exit $ac_status); }; } && |
| 5404 | { ac_try='test -s conftest$ac_exeext' |
| 5405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5406 | (eval $ac_try) 2>&5 |
| 5407 | ac_status=$? |
| 5408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5409 | (exit $ac_status); }; }; then |
| 5410 | LIBS=$ac_save_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5411 | # We can link X programs with no special library path. |
| 5412 | ac_x_libraries= |
| 5413 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5414 | echo "$as_me: failed program was:" >&5 |
| 5415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5416 | |
| 5417 | LIBS=$ac_save_LIBS |
| 5418 | 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] | 5419 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5420 | # 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] | 5421 | for ac_extension in a so sl; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5422 | if test -r $ac_dir/libXt.$ac_extension; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5423 | ac_x_libraries=$ac_dir |
| 5424 | break 2 |
| 5425 | fi |
| 5426 | done |
| 5427 | done |
| 5428 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5429 | rm -f conftest.err conftest.$ac_objext \ |
| 5430 | conftest$ac_exeext conftest.$ac_ext |
| 5431 | fi # $ac_x_libraries = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5432 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5433 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5434 | # Didn't find X anywhere. Cache the known absence of X. |
| 5435 | ac_cv_have_x="have_x=no" |
| 5436 | else |
| 5437 | # Record where we found X for the cache. |
| 5438 | ac_cv_have_x="have_x=yes \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5439 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5440 | fi |
| 5441 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5442 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5443 | fi |
| 5444 | eval "$ac_cv_have_x" |
| 5445 | fi # $with_x != no |
| 5446 | |
| 5447 | if test "$have_x" != yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5448 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 5449 | echo "${ECHO_T}$have_x" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5450 | no_x=yes |
| 5451 | else |
| 5452 | # If each of the values was on the command line, it overrides each guess. |
| 5453 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 5454 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 5455 | # Update the cache value to reflect the command line values. |
| 5456 | ac_cv_have_x="have_x=yes \ |
| 5457 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5458 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 5459 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5460 | fi |
| 5461 | |
| 5462 | if test "$no_x" = yes; then |
| 5463 | # 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] | 5464 | |
| 5465 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5466 | #define X_DISPLAY_MISSING 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5467 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5468 | |
| 5469 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 5470 | else |
| 5471 | if test -n "$x_includes"; then |
| 5472 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 5473 | fi |
| 5474 | |
| 5475 | # It would also be nice to do this for all -L options, not just this one. |
| 5476 | if test -n "$x_libraries"; then |
| 5477 | X_LIBS="$X_LIBS -L$x_libraries" |
| 5478 | # For Solaris; some versions of Sun CC require a space after -R and |
| 5479 | # others require no space. Words are not sufficient . . . . |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5480 | case `(uname -sr) 2>/dev/null` in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5481 | "SunOS 5"*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5482 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 5483 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 5484 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 5485 | cat >conftest.$ac_ext <<_ACEOF |
| 5486 | /* confdefs.h. */ |
| 5487 | _ACEOF |
| 5488 | cat confdefs.h >>conftest.$ac_ext |
| 5489 | cat >>conftest.$ac_ext <<_ACEOF |
| 5490 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5491 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5492 | int |
| 5493 | main () |
| 5494 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5495 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5496 | ; |
| 5497 | return 0; |
| 5498 | } |
| 5499 | _ACEOF |
| 5500 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5502 | (eval $ac_link) 2>conftest.er1 |
| 5503 | ac_status=$? |
| 5504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5505 | rm -f conftest.er1 |
| 5506 | cat conftest.err >&5 |
| 5507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5508 | (exit $ac_status); } && |
| 5509 | { ac_try='test -z "$ac_c_werror_flag" |
| 5510 | || test ! -s conftest.err' |
| 5511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5512 | (eval $ac_try) 2>&5 |
| 5513 | ac_status=$? |
| 5514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5515 | (exit $ac_status); }; } && |
| 5516 | { ac_try='test -s conftest$ac_exeext' |
| 5517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5518 | (eval $ac_try) 2>&5 |
| 5519 | ac_status=$? |
| 5520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5521 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5522 | ac_R_nospace=yes |
| 5523 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5524 | echo "$as_me: failed program was:" >&5 |
| 5525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5526 | |
| 5527 | ac_R_nospace=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5528 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5529 | rm -f conftest.err conftest.$ac_objext \ |
| 5530 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5531 | if test $ac_R_nospace = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5532 | echo "$as_me:$LINENO: result: no" >&5 |
| 5533 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5534 | X_LIBS="$X_LIBS -R$x_libraries" |
| 5535 | else |
| 5536 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5537 | cat >conftest.$ac_ext <<_ACEOF |
| 5538 | /* confdefs.h. */ |
| 5539 | _ACEOF |
| 5540 | cat confdefs.h >>conftest.$ac_ext |
| 5541 | cat >>conftest.$ac_ext <<_ACEOF |
| 5542 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5543 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5544 | int |
| 5545 | main () |
| 5546 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5547 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5548 | ; |
| 5549 | return 0; |
| 5550 | } |
| 5551 | _ACEOF |
| 5552 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5554 | (eval $ac_link) 2>conftest.er1 |
| 5555 | ac_status=$? |
| 5556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5557 | rm -f conftest.er1 |
| 5558 | cat conftest.err >&5 |
| 5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5560 | (exit $ac_status); } && |
| 5561 | { ac_try='test -z "$ac_c_werror_flag" |
| 5562 | || test ! -s conftest.err' |
| 5563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5564 | (eval $ac_try) 2>&5 |
| 5565 | ac_status=$? |
| 5566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5567 | (exit $ac_status); }; } && |
| 5568 | { ac_try='test -s conftest$ac_exeext' |
| 5569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5570 | (eval $ac_try) 2>&5 |
| 5571 | ac_status=$? |
| 5572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5573 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5574 | ac_R_space=yes |
| 5575 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5576 | echo "$as_me: failed program was:" >&5 |
| 5577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5578 | |
| 5579 | ac_R_space=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5580 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5581 | rm -f conftest.err conftest.$ac_objext \ |
| 5582 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5583 | if test $ac_R_space = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5584 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5585 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5586 | X_LIBS="$X_LIBS -R $x_libraries" |
| 5587 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5588 | echo "$as_me:$LINENO: result: neither works" >&5 |
| 5589 | echo "${ECHO_T}neither works" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5590 | fi |
| 5591 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5592 | LIBS=$ac_xsave_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5593 | esac |
| 5594 | fi |
| 5595 | |
| 5596 | # Check for system-dependent libraries X programs must link with. |
| 5597 | # Do this before checking for the system-independent R6 libraries |
| 5598 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 5599 | |
| 5600 | if test "$ISC" = yes; then |
| 5601 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 5602 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5603 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 5604 | # libraries were built with DECnet support. And Karl Berry says |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5605 | # the Alpha needs dnet_stub (dnet does not exist). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5606 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 5607 | cat >conftest.$ac_ext <<_ACEOF |
| 5608 | /* confdefs.h. */ |
| 5609 | _ACEOF |
| 5610 | cat confdefs.h >>conftest.$ac_ext |
| 5611 | cat >>conftest.$ac_ext <<_ACEOF |
| 5612 | /* end confdefs.h. */ |
| 5613 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5614 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5615 | #ifdef __cplusplus |
| 5616 | extern "C" |
| 5617 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5618 | /* 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] | 5619 | builtin and then its argument prototype would still apply. */ |
| 5620 | char XOpenDisplay (); |
| 5621 | int |
| 5622 | main () |
| 5623 | { |
| 5624 | XOpenDisplay (); |
| 5625 | ; |
| 5626 | return 0; |
| 5627 | } |
| 5628 | _ACEOF |
| 5629 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5631 | (eval $ac_link) 2>conftest.er1 |
| 5632 | ac_status=$? |
| 5633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5634 | rm -f conftest.er1 |
| 5635 | cat conftest.err >&5 |
| 5636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5637 | (exit $ac_status); } && |
| 5638 | { ac_try='test -z "$ac_c_werror_flag" |
| 5639 | || test ! -s conftest.err' |
| 5640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5641 | (eval $ac_try) 2>&5 |
| 5642 | ac_status=$? |
| 5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5644 | (exit $ac_status); }; } && |
| 5645 | { ac_try='test -s conftest$ac_exeext' |
| 5646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5647 | (eval $ac_try) 2>&5 |
| 5648 | ac_status=$? |
| 5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5650 | (exit $ac_status); }; }; then |
| 5651 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5652 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5653 | echo "$as_me: failed program was:" >&5 |
| 5654 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5655 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5656 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 5657 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 5658 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 5659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5660 | else |
| 5661 | ac_check_lib_save_LIBS=$LIBS |
| 5662 | LIBS="-ldnet $LIBS" |
| 5663 | cat >conftest.$ac_ext <<_ACEOF |
| 5664 | /* confdefs.h. */ |
| 5665 | _ACEOF |
| 5666 | cat confdefs.h >>conftest.$ac_ext |
| 5667 | cat >>conftest.$ac_ext <<_ACEOF |
| 5668 | /* end confdefs.h. */ |
| 5669 | |
| 5670 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5671 | #ifdef __cplusplus |
| 5672 | extern "C" |
| 5673 | #endif |
| 5674 | /* We use char because int might match the return type of a gcc2 |
| 5675 | builtin and then its argument prototype would still apply. */ |
| 5676 | char dnet_ntoa (); |
| 5677 | int |
| 5678 | main () |
| 5679 | { |
| 5680 | dnet_ntoa (); |
| 5681 | ; |
| 5682 | return 0; |
| 5683 | } |
| 5684 | _ACEOF |
| 5685 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5687 | (eval $ac_link) 2>conftest.er1 |
| 5688 | ac_status=$? |
| 5689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5690 | rm -f conftest.er1 |
| 5691 | cat conftest.err >&5 |
| 5692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5693 | (exit $ac_status); } && |
| 5694 | { ac_try='test -z "$ac_c_werror_flag" |
| 5695 | || test ! -s conftest.err' |
| 5696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5697 | (eval $ac_try) 2>&5 |
| 5698 | ac_status=$? |
| 5699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5700 | (exit $ac_status); }; } && |
| 5701 | { ac_try='test -s conftest$ac_exeext' |
| 5702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5703 | (eval $ac_try) 2>&5 |
| 5704 | ac_status=$? |
| 5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5706 | (exit $ac_status); }; }; then |
| 5707 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 5708 | else |
| 5709 | echo "$as_me: failed program was:" >&5 |
| 5710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5711 | |
| 5712 | ac_cv_lib_dnet_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5713 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5714 | rm -f conftest.err conftest.$ac_objext \ |
| 5715 | conftest$ac_exeext conftest.$ac_ext |
| 5716 | LIBS=$ac_check_lib_save_LIBS |
| 5717 | fi |
| 5718 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 5719 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 5720 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5721 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5722 | fi |
| 5723 | |
| 5724 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5725 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 5726 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 5727 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 5728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5729 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5730 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5731 | LIBS="-ldnet_stub $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5732 | cat >conftest.$ac_ext <<_ACEOF |
| 5733 | /* confdefs.h. */ |
| 5734 | _ACEOF |
| 5735 | cat confdefs.h >>conftest.$ac_ext |
| 5736 | cat >>conftest.$ac_ext <<_ACEOF |
| 5737 | /* end confdefs.h. */ |
| 5738 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5739 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5740 | #ifdef __cplusplus |
| 5741 | extern "C" |
| 5742 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5743 | /* 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] | 5744 | builtin and then its argument prototype would still apply. */ |
| 5745 | char dnet_ntoa (); |
| 5746 | int |
| 5747 | main () |
| 5748 | { |
| 5749 | dnet_ntoa (); |
| 5750 | ; |
| 5751 | return 0; |
| 5752 | } |
| 5753 | _ACEOF |
| 5754 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5756 | (eval $ac_link) 2>conftest.er1 |
| 5757 | ac_status=$? |
| 5758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5759 | rm -f conftest.er1 |
| 5760 | cat conftest.err >&5 |
| 5761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5762 | (exit $ac_status); } && |
| 5763 | { ac_try='test -z "$ac_c_werror_flag" |
| 5764 | || test ! -s conftest.err' |
| 5765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5766 | (eval $ac_try) 2>&5 |
| 5767 | ac_status=$? |
| 5768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5769 | (exit $ac_status); }; } && |
| 5770 | { ac_try='test -s conftest$ac_exeext' |
| 5771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5772 | (eval $ac_try) 2>&5 |
| 5773 | ac_status=$? |
| 5774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5775 | (exit $ac_status); }; }; then |
| 5776 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5777 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5778 | echo "$as_me: failed program was:" >&5 |
| 5779 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5780 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5781 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5782 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5783 | rm -f conftest.err conftest.$ac_objext \ |
| 5784 | conftest$ac_exeext conftest.$ac_ext |
| 5785 | LIBS=$ac_check_lib_save_LIBS |
| 5786 | fi |
| 5787 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 5788 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 5789 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5790 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5791 | fi |
| 5792 | |
| 5793 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5794 | fi |
| 5795 | rm -f conftest.err conftest.$ac_objext \ |
| 5796 | conftest$ac_exeext conftest.$ac_ext |
| 5797 | LIBS="$ac_xsave_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5798 | |
| 5799 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 5800 | # to get the SysV transport functions. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5801 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5802 | # needs -lnsl. |
| 5803 | # The nsl library prevents programs from opening the X display |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5804 | # on Irix 5.2, according to T.E. Dickey. |
| 5805 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 5806 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 5807 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 5808 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 5809 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 5810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5811 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5812 | cat >conftest.$ac_ext <<_ACEOF |
| 5813 | /* confdefs.h. */ |
| 5814 | _ACEOF |
| 5815 | cat confdefs.h >>conftest.$ac_ext |
| 5816 | cat >>conftest.$ac_ext <<_ACEOF |
| 5817 | /* end confdefs.h. */ |
| 5818 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 5819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5820 | #define gethostbyname innocuous_gethostbyname |
| 5821 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5822 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5823 | which can conflict with char gethostbyname (); below. |
| 5824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5825 | <limits.h> exists even on freestanding compilers. */ |
| 5826 | |
| 5827 | #ifdef __STDC__ |
| 5828 | # include <limits.h> |
| 5829 | #else |
| 5830 | # include <assert.h> |
| 5831 | #endif |
| 5832 | |
| 5833 | #undef gethostbyname |
| 5834 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5835 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5836 | #ifdef __cplusplus |
| 5837 | extern "C" |
| 5838 | { |
| 5839 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5840 | /* 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] | 5841 | builtin and then its argument prototype would still apply. */ |
| 5842 | char gethostbyname (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5843 | /* The GNU C library defines this for functions which it implements |
| 5844 | to always fail with ENOSYS. Some functions are actually named |
| 5845 | something starting with __ and the normal name is an alias. */ |
| 5846 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 5847 | choke me |
| 5848 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5849 | char (*f) () = gethostbyname; |
| 5850 | #endif |
| 5851 | #ifdef __cplusplus |
| 5852 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5853 | #endif |
| 5854 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5855 | int |
| 5856 | main () |
| 5857 | { |
| 5858 | return f != gethostbyname; |
| 5859 | ; |
| 5860 | return 0; |
| 5861 | } |
| 5862 | _ACEOF |
| 5863 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5865 | (eval $ac_link) 2>conftest.er1 |
| 5866 | ac_status=$? |
| 5867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5868 | rm -f conftest.er1 |
| 5869 | cat conftest.err >&5 |
| 5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5871 | (exit $ac_status); } && |
| 5872 | { ac_try='test -z "$ac_c_werror_flag" |
| 5873 | || test ! -s conftest.err' |
| 5874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5875 | (eval $ac_try) 2>&5 |
| 5876 | ac_status=$? |
| 5877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5878 | (exit $ac_status); }; } && |
| 5879 | { ac_try='test -s conftest$ac_exeext' |
| 5880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5881 | (eval $ac_try) 2>&5 |
| 5882 | ac_status=$? |
| 5883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5884 | (exit $ac_status); }; }; then |
| 5885 | ac_cv_func_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5886 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5887 | echo "$as_me: failed program was:" >&5 |
| 5888 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5889 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5890 | ac_cv_func_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5891 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5892 | rm -f conftest.err conftest.$ac_objext \ |
| 5893 | conftest$ac_exeext conftest.$ac_ext |
| 5894 | fi |
| 5895 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 5896 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5897 | |
| 5898 | if test $ac_cv_func_gethostbyname = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5899 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 5900 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 5901 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 5902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5903 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5904 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5905 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5906 | cat >conftest.$ac_ext <<_ACEOF |
| 5907 | /* confdefs.h. */ |
| 5908 | _ACEOF |
| 5909 | cat confdefs.h >>conftest.$ac_ext |
| 5910 | cat >>conftest.$ac_ext <<_ACEOF |
| 5911 | /* end confdefs.h. */ |
| 5912 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5913 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5914 | #ifdef __cplusplus |
| 5915 | extern "C" |
| 5916 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5917 | /* 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] | 5918 | builtin and then its argument prototype would still apply. */ |
| 5919 | char gethostbyname (); |
| 5920 | int |
| 5921 | main () |
| 5922 | { |
| 5923 | gethostbyname (); |
| 5924 | ; |
| 5925 | return 0; |
| 5926 | } |
| 5927 | _ACEOF |
| 5928 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5930 | (eval $ac_link) 2>conftest.er1 |
| 5931 | ac_status=$? |
| 5932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5933 | rm -f conftest.er1 |
| 5934 | cat conftest.err >&5 |
| 5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5936 | (exit $ac_status); } && |
| 5937 | { ac_try='test -z "$ac_c_werror_flag" |
| 5938 | || test ! -s conftest.err' |
| 5939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5940 | (eval $ac_try) 2>&5 |
| 5941 | ac_status=$? |
| 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5943 | (exit $ac_status); }; } && |
| 5944 | { ac_try='test -s conftest$ac_exeext' |
| 5945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5946 | (eval $ac_try) 2>&5 |
| 5947 | ac_status=$? |
| 5948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5949 | (exit $ac_status); }; }; then |
| 5950 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5951 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5952 | echo "$as_me: failed program was:" >&5 |
| 5953 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5954 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5955 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5956 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5957 | rm -f conftest.err conftest.$ac_objext \ |
| 5958 | conftest$ac_exeext conftest.$ac_ext |
| 5959 | LIBS=$ac_check_lib_save_LIBS |
| 5960 | fi |
| 5961 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 5962 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 5963 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5964 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5965 | fi |
| 5966 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5967 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 5968 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 5969 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 5970 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 5971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5972 | else |
| 5973 | ac_check_lib_save_LIBS=$LIBS |
| 5974 | LIBS="-lbsd $LIBS" |
| 5975 | cat >conftest.$ac_ext <<_ACEOF |
| 5976 | /* confdefs.h. */ |
| 5977 | _ACEOF |
| 5978 | cat confdefs.h >>conftest.$ac_ext |
| 5979 | cat >>conftest.$ac_ext <<_ACEOF |
| 5980 | /* end confdefs.h. */ |
| 5981 | |
| 5982 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5983 | #ifdef __cplusplus |
| 5984 | extern "C" |
| 5985 | #endif |
| 5986 | /* We use char because int might match the return type of a gcc2 |
| 5987 | builtin and then its argument prototype would still apply. */ |
| 5988 | char gethostbyname (); |
| 5989 | int |
| 5990 | main () |
| 5991 | { |
| 5992 | gethostbyname (); |
| 5993 | ; |
| 5994 | return 0; |
| 5995 | } |
| 5996 | _ACEOF |
| 5997 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5999 | (eval $ac_link) 2>conftest.er1 |
| 6000 | ac_status=$? |
| 6001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6002 | rm -f conftest.er1 |
| 6003 | cat conftest.err >&5 |
| 6004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6005 | (exit $ac_status); } && |
| 6006 | { ac_try='test -z "$ac_c_werror_flag" |
| 6007 | || test ! -s conftest.err' |
| 6008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6009 | (eval $ac_try) 2>&5 |
| 6010 | ac_status=$? |
| 6011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6012 | (exit $ac_status); }; } && |
| 6013 | { ac_try='test -s conftest$ac_exeext' |
| 6014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6015 | (eval $ac_try) 2>&5 |
| 6016 | ac_status=$? |
| 6017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6018 | (exit $ac_status); }; }; then |
| 6019 | ac_cv_lib_bsd_gethostbyname=yes |
| 6020 | else |
| 6021 | echo "$as_me: failed program was:" >&5 |
| 6022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6023 | |
| 6024 | ac_cv_lib_bsd_gethostbyname=no |
| 6025 | fi |
| 6026 | rm -f conftest.err conftest.$ac_objext \ |
| 6027 | conftest$ac_exeext conftest.$ac_ext |
| 6028 | LIBS=$ac_check_lib_save_LIBS |
| 6029 | fi |
| 6030 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 6031 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 6032 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 6033 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 6034 | fi |
| 6035 | |
| 6036 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6037 | fi |
| 6038 | |
| 6039 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 6040 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 6041 | # 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] | 6042 | # on later versions), says Simon Leinen: it contains gethostby* |
| 6043 | # variants that don't use the name server (or something). -lsocket |
| 6044 | # must be given before -lnsl if both are needed. We assume that |
| 6045 | # if connect needs -lnsl, so does gethostbyname. |
| 6046 | echo "$as_me:$LINENO: checking for connect" >&5 |
| 6047 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 6048 | if test "${ac_cv_func_connect+set}" = set; then |
| 6049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6050 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6051 | cat >conftest.$ac_ext <<_ACEOF |
| 6052 | /* confdefs.h. */ |
| 6053 | _ACEOF |
| 6054 | cat confdefs.h >>conftest.$ac_ext |
| 6055 | cat >>conftest.$ac_ext <<_ACEOF |
| 6056 | /* end confdefs.h. */ |
| 6057 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 6058 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6059 | #define connect innocuous_connect |
| 6060 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6061 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6062 | which can conflict with char connect (); below. |
| 6063 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6064 | <limits.h> exists even on freestanding compilers. */ |
| 6065 | |
| 6066 | #ifdef __STDC__ |
| 6067 | # include <limits.h> |
| 6068 | #else |
| 6069 | # include <assert.h> |
| 6070 | #endif |
| 6071 | |
| 6072 | #undef connect |
| 6073 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6074 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6075 | #ifdef __cplusplus |
| 6076 | extern "C" |
| 6077 | { |
| 6078 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6079 | /* 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] | 6080 | builtin and then its argument prototype would still apply. */ |
| 6081 | char connect (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6082 | /* The GNU C library defines this for functions which it implements |
| 6083 | to always fail with ENOSYS. Some functions are actually named |
| 6084 | something starting with __ and the normal name is an alias. */ |
| 6085 | #if defined (__stub_connect) || defined (__stub___connect) |
| 6086 | choke me |
| 6087 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6088 | char (*f) () = connect; |
| 6089 | #endif |
| 6090 | #ifdef __cplusplus |
| 6091 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6092 | #endif |
| 6093 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6094 | int |
| 6095 | main () |
| 6096 | { |
| 6097 | return f != connect; |
| 6098 | ; |
| 6099 | return 0; |
| 6100 | } |
| 6101 | _ACEOF |
| 6102 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6104 | (eval $ac_link) 2>conftest.er1 |
| 6105 | ac_status=$? |
| 6106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6107 | rm -f conftest.er1 |
| 6108 | cat conftest.err >&5 |
| 6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6110 | (exit $ac_status); } && |
| 6111 | { ac_try='test -z "$ac_c_werror_flag" |
| 6112 | || test ! -s conftest.err' |
| 6113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6114 | (eval $ac_try) 2>&5 |
| 6115 | ac_status=$? |
| 6116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6117 | (exit $ac_status); }; } && |
| 6118 | { ac_try='test -s conftest$ac_exeext' |
| 6119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6120 | (eval $ac_try) 2>&5 |
| 6121 | ac_status=$? |
| 6122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6123 | (exit $ac_status); }; }; then |
| 6124 | ac_cv_func_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6125 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6126 | echo "$as_me: failed program was:" >&5 |
| 6127 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6128 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6129 | ac_cv_func_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6130 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6131 | rm -f conftest.err conftest.$ac_objext \ |
| 6132 | conftest$ac_exeext conftest.$ac_ext |
| 6133 | fi |
| 6134 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 6135 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6136 | |
| 6137 | if test $ac_cv_func_connect = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6138 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 6139 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 6140 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 6141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
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 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6144 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6145 | cat >conftest.$ac_ext <<_ACEOF |
| 6146 | /* confdefs.h. */ |
| 6147 | _ACEOF |
| 6148 | cat confdefs.h >>conftest.$ac_ext |
| 6149 | cat >>conftest.$ac_ext <<_ACEOF |
| 6150 | /* end confdefs.h. */ |
| 6151 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6152 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6153 | #ifdef __cplusplus |
| 6154 | extern "C" |
| 6155 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6156 | /* 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] | 6157 | builtin and then its argument prototype would still apply. */ |
| 6158 | char connect (); |
| 6159 | int |
| 6160 | main () |
| 6161 | { |
| 6162 | connect (); |
| 6163 | ; |
| 6164 | return 0; |
| 6165 | } |
| 6166 | _ACEOF |
| 6167 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6169 | (eval $ac_link) 2>conftest.er1 |
| 6170 | ac_status=$? |
| 6171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6172 | rm -f conftest.er1 |
| 6173 | cat conftest.err >&5 |
| 6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6175 | (exit $ac_status); } && |
| 6176 | { ac_try='test -z "$ac_c_werror_flag" |
| 6177 | || test ! -s conftest.err' |
| 6178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6179 | (eval $ac_try) 2>&5 |
| 6180 | ac_status=$? |
| 6181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6182 | (exit $ac_status); }; } && |
| 6183 | { ac_try='test -s conftest$ac_exeext' |
| 6184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6185 | (eval $ac_try) 2>&5 |
| 6186 | ac_status=$? |
| 6187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6188 | (exit $ac_status); }; }; then |
| 6189 | ac_cv_lib_socket_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6190 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6191 | echo "$as_me: failed program was:" >&5 |
| 6192 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6193 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6194 | ac_cv_lib_socket_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6195 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6196 | rm -f conftest.err conftest.$ac_objext \ |
| 6197 | conftest$ac_exeext conftest.$ac_ext |
| 6198 | LIBS=$ac_check_lib_save_LIBS |
| 6199 | fi |
| 6200 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 6201 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 6202 | if test $ac_cv_lib_socket_connect = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6203 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6204 | fi |
| 6205 | |
| 6206 | fi |
| 6207 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6208 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 6209 | echo "$as_me:$LINENO: checking for remove" >&5 |
| 6210 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 6211 | if test "${ac_cv_func_remove+set}" = set; then |
| 6212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6213 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6214 | cat >conftest.$ac_ext <<_ACEOF |
| 6215 | /* confdefs.h. */ |
| 6216 | _ACEOF |
| 6217 | cat confdefs.h >>conftest.$ac_ext |
| 6218 | cat >>conftest.$ac_ext <<_ACEOF |
| 6219 | /* end confdefs.h. */ |
| 6220 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 6221 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6222 | #define remove innocuous_remove |
| 6223 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6224 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6225 | which can conflict with char remove (); below. |
| 6226 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6227 | <limits.h> exists even on freestanding compilers. */ |
| 6228 | |
| 6229 | #ifdef __STDC__ |
| 6230 | # include <limits.h> |
| 6231 | #else |
| 6232 | # include <assert.h> |
| 6233 | #endif |
| 6234 | |
| 6235 | #undef remove |
| 6236 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6237 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6238 | #ifdef __cplusplus |
| 6239 | extern "C" |
| 6240 | { |
| 6241 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6242 | /* 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] | 6243 | builtin and then its argument prototype would still apply. */ |
| 6244 | char remove (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6245 | /* The GNU C library defines this for functions which it implements |
| 6246 | to always fail with ENOSYS. Some functions are actually named |
| 6247 | something starting with __ and the normal name is an alias. */ |
| 6248 | #if defined (__stub_remove) || defined (__stub___remove) |
| 6249 | choke me |
| 6250 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6251 | char (*f) () = remove; |
| 6252 | #endif |
| 6253 | #ifdef __cplusplus |
| 6254 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6255 | #endif |
| 6256 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6257 | int |
| 6258 | main () |
| 6259 | { |
| 6260 | return f != remove; |
| 6261 | ; |
| 6262 | return 0; |
| 6263 | } |
| 6264 | _ACEOF |
| 6265 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6267 | (eval $ac_link) 2>conftest.er1 |
| 6268 | ac_status=$? |
| 6269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6270 | rm -f conftest.er1 |
| 6271 | cat conftest.err >&5 |
| 6272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6273 | (exit $ac_status); } && |
| 6274 | { ac_try='test -z "$ac_c_werror_flag" |
| 6275 | || test ! -s conftest.err' |
| 6276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6277 | (eval $ac_try) 2>&5 |
| 6278 | ac_status=$? |
| 6279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6280 | (exit $ac_status); }; } && |
| 6281 | { ac_try='test -s conftest$ac_exeext' |
| 6282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6283 | (eval $ac_try) 2>&5 |
| 6284 | ac_status=$? |
| 6285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6286 | (exit $ac_status); }; }; then |
| 6287 | ac_cv_func_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6288 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6289 | echo "$as_me: failed program was:" >&5 |
| 6290 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6291 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6292 | ac_cv_func_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6293 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6294 | rm -f conftest.err conftest.$ac_objext \ |
| 6295 | conftest$ac_exeext conftest.$ac_ext |
| 6296 | fi |
| 6297 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 6298 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6299 | |
| 6300 | if test $ac_cv_func_remove = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6301 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 6302 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 6303 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 6304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
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 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6307 | LIBS="-lposix $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6308 | cat >conftest.$ac_ext <<_ACEOF |
| 6309 | /* confdefs.h. */ |
| 6310 | _ACEOF |
| 6311 | cat confdefs.h >>conftest.$ac_ext |
| 6312 | cat >>conftest.$ac_ext <<_ACEOF |
| 6313 | /* end confdefs.h. */ |
| 6314 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6315 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6316 | #ifdef __cplusplus |
| 6317 | extern "C" |
| 6318 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6319 | /* 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] | 6320 | builtin and then its argument prototype would still apply. */ |
| 6321 | char remove (); |
| 6322 | int |
| 6323 | main () |
| 6324 | { |
| 6325 | remove (); |
| 6326 | ; |
| 6327 | return 0; |
| 6328 | } |
| 6329 | _ACEOF |
| 6330 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6332 | (eval $ac_link) 2>conftest.er1 |
| 6333 | ac_status=$? |
| 6334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6335 | rm -f conftest.er1 |
| 6336 | cat conftest.err >&5 |
| 6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6338 | (exit $ac_status); } && |
| 6339 | { ac_try='test -z "$ac_c_werror_flag" |
| 6340 | || test ! -s conftest.err' |
| 6341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6342 | (eval $ac_try) 2>&5 |
| 6343 | ac_status=$? |
| 6344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6345 | (exit $ac_status); }; } && |
| 6346 | { ac_try='test -s conftest$ac_exeext' |
| 6347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6348 | (eval $ac_try) 2>&5 |
| 6349 | ac_status=$? |
| 6350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6351 | (exit $ac_status); }; }; then |
| 6352 | ac_cv_lib_posix_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6353 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6354 | echo "$as_me: failed program was:" >&5 |
| 6355 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6356 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6357 | ac_cv_lib_posix_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6358 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6359 | rm -f conftest.err conftest.$ac_objext \ |
| 6360 | conftest$ac_exeext conftest.$ac_ext |
| 6361 | LIBS=$ac_check_lib_save_LIBS |
| 6362 | fi |
| 6363 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 6364 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 6365 | if test $ac_cv_lib_posix_remove = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6366 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6367 | fi |
| 6368 | |
| 6369 | fi |
| 6370 | |
| 6371 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6372 | echo "$as_me:$LINENO: checking for shmat" >&5 |
| 6373 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 6374 | if test "${ac_cv_func_shmat+set}" = set; then |
| 6375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6376 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6377 | cat >conftest.$ac_ext <<_ACEOF |
| 6378 | /* confdefs.h. */ |
| 6379 | _ACEOF |
| 6380 | cat confdefs.h >>conftest.$ac_ext |
| 6381 | cat >>conftest.$ac_ext <<_ACEOF |
| 6382 | /* end confdefs.h. */ |
| 6383 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 6384 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6385 | #define shmat innocuous_shmat |
| 6386 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6387 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6388 | which can conflict with char shmat (); below. |
| 6389 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6390 | <limits.h> exists even on freestanding compilers. */ |
| 6391 | |
| 6392 | #ifdef __STDC__ |
| 6393 | # include <limits.h> |
| 6394 | #else |
| 6395 | # include <assert.h> |
| 6396 | #endif |
| 6397 | |
| 6398 | #undef shmat |
| 6399 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6400 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6401 | #ifdef __cplusplus |
| 6402 | extern "C" |
| 6403 | { |
| 6404 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6405 | /* 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] | 6406 | builtin and then its argument prototype would still apply. */ |
| 6407 | char shmat (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6408 | /* The GNU C library defines this for functions which it implements |
| 6409 | to always fail with ENOSYS. Some functions are actually named |
| 6410 | something starting with __ and the normal name is an alias. */ |
| 6411 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 6412 | choke me |
| 6413 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6414 | char (*f) () = shmat; |
| 6415 | #endif |
| 6416 | #ifdef __cplusplus |
| 6417 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6418 | #endif |
| 6419 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6420 | int |
| 6421 | main () |
| 6422 | { |
| 6423 | return f != shmat; |
| 6424 | ; |
| 6425 | return 0; |
| 6426 | } |
| 6427 | _ACEOF |
| 6428 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6430 | (eval $ac_link) 2>conftest.er1 |
| 6431 | ac_status=$? |
| 6432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6433 | rm -f conftest.er1 |
| 6434 | cat conftest.err >&5 |
| 6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6436 | (exit $ac_status); } && |
| 6437 | { ac_try='test -z "$ac_c_werror_flag" |
| 6438 | || test ! -s conftest.err' |
| 6439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6440 | (eval $ac_try) 2>&5 |
| 6441 | ac_status=$? |
| 6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6443 | (exit $ac_status); }; } && |
| 6444 | { ac_try='test -s conftest$ac_exeext' |
| 6445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6446 | (eval $ac_try) 2>&5 |
| 6447 | ac_status=$? |
| 6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6449 | (exit $ac_status); }; }; then |
| 6450 | ac_cv_func_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6451 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6452 | echo "$as_me: failed program was:" >&5 |
| 6453 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6454 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6455 | ac_cv_func_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6456 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6457 | rm -f conftest.err conftest.$ac_objext \ |
| 6458 | conftest$ac_exeext conftest.$ac_ext |
| 6459 | fi |
| 6460 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 6461 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6462 | |
| 6463 | if test $ac_cv_func_shmat = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6464 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 6465 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 6466 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 6467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6468 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6469 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6470 | LIBS="-lipc $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6471 | cat >conftest.$ac_ext <<_ACEOF |
| 6472 | /* confdefs.h. */ |
| 6473 | _ACEOF |
| 6474 | cat confdefs.h >>conftest.$ac_ext |
| 6475 | cat >>conftest.$ac_ext <<_ACEOF |
| 6476 | /* end confdefs.h. */ |
| 6477 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6478 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6479 | #ifdef __cplusplus |
| 6480 | extern "C" |
| 6481 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6482 | /* 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] | 6483 | builtin and then its argument prototype would still apply. */ |
| 6484 | char shmat (); |
| 6485 | int |
| 6486 | main () |
| 6487 | { |
| 6488 | shmat (); |
| 6489 | ; |
| 6490 | return 0; |
| 6491 | } |
| 6492 | _ACEOF |
| 6493 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6495 | (eval $ac_link) 2>conftest.er1 |
| 6496 | ac_status=$? |
| 6497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6498 | rm -f conftest.er1 |
| 6499 | cat conftest.err >&5 |
| 6500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6501 | (exit $ac_status); } && |
| 6502 | { ac_try='test -z "$ac_c_werror_flag" |
| 6503 | || test ! -s conftest.err' |
| 6504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6505 | (eval $ac_try) 2>&5 |
| 6506 | ac_status=$? |
| 6507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6508 | (exit $ac_status); }; } && |
| 6509 | { ac_try='test -s conftest$ac_exeext' |
| 6510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6511 | (eval $ac_try) 2>&5 |
| 6512 | ac_status=$? |
| 6513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6514 | (exit $ac_status); }; }; then |
| 6515 | ac_cv_lib_ipc_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6516 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6517 | echo "$as_me: failed program was:" >&5 |
| 6518 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6519 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6520 | ac_cv_lib_ipc_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6521 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6522 | rm -f conftest.err conftest.$ac_objext \ |
| 6523 | conftest$ac_exeext conftest.$ac_ext |
| 6524 | LIBS=$ac_check_lib_save_LIBS |
| 6525 | fi |
| 6526 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 6527 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 6528 | if test $ac_cv_lib_ipc_shmat = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6529 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6530 | fi |
| 6531 | |
| 6532 | fi |
| 6533 | fi |
| 6534 | |
| 6535 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6536 | ac_save_LDFLAGS=$LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6537 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 6538 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 6539 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 6540 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 6541 | # These have to be linked with before -lX11, unlike the other |
| 6542 | # libraries we check for below, so use a different variable. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6543 | # John Interrante, Karl Berry |
| 6544 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 6545 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 6546 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 6547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6548 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6549 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6550 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6551 | cat >conftest.$ac_ext <<_ACEOF |
| 6552 | /* confdefs.h. */ |
| 6553 | _ACEOF |
| 6554 | cat confdefs.h >>conftest.$ac_ext |
| 6555 | cat >>conftest.$ac_ext <<_ACEOF |
| 6556 | /* end confdefs.h. */ |
| 6557 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6558 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6559 | #ifdef __cplusplus |
| 6560 | extern "C" |
| 6561 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6562 | /* 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] | 6563 | builtin and then its argument prototype would still apply. */ |
| 6564 | char IceConnectionNumber (); |
| 6565 | int |
| 6566 | main () |
| 6567 | { |
| 6568 | IceConnectionNumber (); |
| 6569 | ; |
| 6570 | return 0; |
| 6571 | } |
| 6572 | _ACEOF |
| 6573 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6575 | (eval $ac_link) 2>conftest.er1 |
| 6576 | ac_status=$? |
| 6577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6578 | rm -f conftest.er1 |
| 6579 | cat conftest.err >&5 |
| 6580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6581 | (exit $ac_status); } && |
| 6582 | { ac_try='test -z "$ac_c_werror_flag" |
| 6583 | || test ! -s conftest.err' |
| 6584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6585 | (eval $ac_try) 2>&5 |
| 6586 | ac_status=$? |
| 6587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6588 | (exit $ac_status); }; } && |
| 6589 | { ac_try='test -s conftest$ac_exeext' |
| 6590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6591 | (eval $ac_try) 2>&5 |
| 6592 | ac_status=$? |
| 6593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6594 | (exit $ac_status); }; }; then |
| 6595 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6596 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6597 | echo "$as_me: failed program was:" >&5 |
| 6598 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6599 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6600 | ac_cv_lib_ICE_IceConnectionNumber=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6601 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6602 | rm -f conftest.err conftest.$ac_objext \ |
| 6603 | conftest$ac_exeext conftest.$ac_ext |
| 6604 | LIBS=$ac_check_lib_save_LIBS |
| 6605 | fi |
| 6606 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 6607 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 6608 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6609 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6610 | fi |
| 6611 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6612 | LDFLAGS=$ac_save_LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6613 | |
| 6614 | fi |
| 6615 | |
| 6616 | |
| 6617 | if test "$OS390Unix" = "yes"; then |
| 6618 | CFLAGS="$CFLAGS -W c,dll" |
| 6619 | LDFLAGS="$LDFLAGS -W l,dll" |
| 6620 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 6621 | fi |
| 6622 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6623 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6624 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 6625 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6626 | echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 |
| 6627 | echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6628 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6629 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 6630 | uname -r | grep '^5' >/dev/null; then |
| 6631 | X_LIBS="$X_LIBS -R $x_libraries" |
| 6632 | fi |
| 6633 | fi |
| 6634 | |
| 6635 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 6636 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6637 | echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 |
| 6638 | echo "${ECHO_T}Corrected X includes to $x_includes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6639 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6640 | fi |
| 6641 | |
| 6642 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 6643 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 6644 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 6645 | |
| 6646 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6647 | echo "$as_me:$LINENO: checking if X11 header files can be found" >&5 |
| 6648 | 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] | 6649 | cflags_save=$CFLAGS |
| 6650 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6651 | cat >conftest.$ac_ext <<_ACEOF |
| 6652 | /* confdefs.h. */ |
| 6653 | _ACEOF |
| 6654 | cat confdefs.h >>conftest.$ac_ext |
| 6655 | cat >>conftest.$ac_ext <<_ACEOF |
| 6656 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6657 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6658 | int |
| 6659 | main () |
| 6660 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6661 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6662 | ; |
| 6663 | return 0; |
| 6664 | } |
| 6665 | _ACEOF |
| 6666 | rm -f conftest.$ac_objext |
| 6667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6668 | (eval $ac_compile) 2>conftest.er1 |
| 6669 | ac_status=$? |
| 6670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6671 | rm -f conftest.er1 |
| 6672 | cat conftest.err >&5 |
| 6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6674 | (exit $ac_status); } && |
| 6675 | { ac_try='test -z "$ac_c_werror_flag" |
| 6676 | || test ! -s conftest.err' |
| 6677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6678 | (eval $ac_try) 2>&5 |
| 6679 | ac_status=$? |
| 6680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6681 | (exit $ac_status); }; } && |
| 6682 | { ac_try='test -s conftest.$ac_objext' |
| 6683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6684 | (eval $ac_try) 2>&5 |
| 6685 | ac_status=$? |
| 6686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6687 | (exit $ac_status); }; }; then |
| 6688 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6689 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6690 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6691 | echo "$as_me: failed program was:" >&5 |
| 6692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6693 | |
| 6694 | echo "$as_me:$LINENO: result: no" >&5 |
| 6695 | echo "${ECHO_T}no" >&6; no_x=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6696 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6698 | CFLAGS=$cflags_save |
| 6699 | |
| 6700 | if test "${no_x-no}" = yes; then |
| 6701 | with_x=no |
| 6702 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6703 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6704 | #define HAVE_X11 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6705 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6706 | |
| 6707 | X_LIB="-lXt -lX11"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6708 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6709 | |
| 6710 | ac_save_LDFLAGS="$LDFLAGS" |
| 6711 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 6712 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6713 | echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 6714 | echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6 |
| 6715 | if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then |
| 6716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6717 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6718 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6719 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6720 | cat >conftest.$ac_ext <<_ACEOF |
| 6721 | /* confdefs.h. */ |
| 6722 | _ACEOF |
| 6723 | cat confdefs.h >>conftest.$ac_ext |
| 6724 | cat >>conftest.$ac_ext <<_ACEOF |
| 6725 | /* end confdefs.h. */ |
| 6726 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6727 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6728 | #ifdef __cplusplus |
| 6729 | extern "C" |
| 6730 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6731 | /* 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] | 6732 | builtin and then its argument prototype would still apply. */ |
| 6733 | char _XdmcpAuthDoIt (); |
| 6734 | int |
| 6735 | main () |
| 6736 | { |
| 6737 | _XdmcpAuthDoIt (); |
| 6738 | ; |
| 6739 | return 0; |
| 6740 | } |
| 6741 | _ACEOF |
| 6742 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6744 | (eval $ac_link) 2>conftest.er1 |
| 6745 | ac_status=$? |
| 6746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6747 | rm -f conftest.er1 |
| 6748 | cat conftest.err >&5 |
| 6749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6750 | (exit $ac_status); } && |
| 6751 | { ac_try='test -z "$ac_c_werror_flag" |
| 6752 | || test ! -s conftest.err' |
| 6753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6754 | (eval $ac_try) 2>&5 |
| 6755 | ac_status=$? |
| 6756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6757 | (exit $ac_status); }; } && |
| 6758 | { ac_try='test -s conftest$ac_exeext' |
| 6759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6760 | (eval $ac_try) 2>&5 |
| 6761 | ac_status=$? |
| 6762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6763 | (exit $ac_status); }; }; then |
| 6764 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6765 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6766 | echo "$as_me: failed program was:" >&5 |
| 6767 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6768 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6769 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6770 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6771 | rm -f conftest.err conftest.$ac_objext \ |
| 6772 | conftest$ac_exeext conftest.$ac_ext |
| 6773 | LIBS=$ac_check_lib_save_LIBS |
| 6774 | fi |
| 6775 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 |
| 6776 | echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6 |
| 6777 | if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6778 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6779 | fi |
| 6780 | |
| 6781 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6782 | echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 |
| 6783 | echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6 |
| 6784 | if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then |
| 6785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6786 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6787 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6788 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6789 | cat >conftest.$ac_ext <<_ACEOF |
| 6790 | /* confdefs.h. */ |
| 6791 | _ACEOF |
| 6792 | cat confdefs.h >>conftest.$ac_ext |
| 6793 | cat >>conftest.$ac_ext <<_ACEOF |
| 6794 | /* end confdefs.h. */ |
| 6795 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6796 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6797 | #ifdef __cplusplus |
| 6798 | extern "C" |
| 6799 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6800 | /* 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] | 6801 | builtin and then its argument prototype would still apply. */ |
| 6802 | char IceOpenConnection (); |
| 6803 | int |
| 6804 | main () |
| 6805 | { |
| 6806 | IceOpenConnection (); |
| 6807 | ; |
| 6808 | return 0; |
| 6809 | } |
| 6810 | _ACEOF |
| 6811 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6813 | (eval $ac_link) 2>conftest.er1 |
| 6814 | ac_status=$? |
| 6815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6816 | rm -f conftest.er1 |
| 6817 | cat conftest.err >&5 |
| 6818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6819 | (exit $ac_status); } && |
| 6820 | { ac_try='test -z "$ac_c_werror_flag" |
| 6821 | || test ! -s conftest.err' |
| 6822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6823 | (eval $ac_try) 2>&5 |
| 6824 | ac_status=$? |
| 6825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6826 | (exit $ac_status); }; } && |
| 6827 | { ac_try='test -s conftest$ac_exeext' |
| 6828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6829 | (eval $ac_try) 2>&5 |
| 6830 | ac_status=$? |
| 6831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6832 | (exit $ac_status); }; }; then |
| 6833 | ac_cv_lib_ICE_IceOpenConnection=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6834 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6835 | echo "$as_me: failed program was:" >&5 |
| 6836 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6837 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6838 | ac_cv_lib_ICE_IceOpenConnection=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6839 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6840 | rm -f conftest.err conftest.$ac_objext \ |
| 6841 | conftest$ac_exeext conftest.$ac_ext |
| 6842 | LIBS=$ac_check_lib_save_LIBS |
| 6843 | fi |
| 6844 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 6845 | echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6 |
| 6846 | if test $ac_cv_lib_ICE_IceOpenConnection = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6847 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6848 | fi |
| 6849 | |
| 6850 | |
| 6851 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6852 | echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 6853 | echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 |
| 6854 | if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then |
| 6855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6856 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6857 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6858 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6859 | cat >conftest.$ac_ext <<_ACEOF |
| 6860 | /* confdefs.h. */ |
| 6861 | _ACEOF |
| 6862 | cat confdefs.h >>conftest.$ac_ext |
| 6863 | cat >>conftest.$ac_ext <<_ACEOF |
| 6864 | /* end confdefs.h. */ |
| 6865 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6866 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6867 | #ifdef __cplusplus |
| 6868 | extern "C" |
| 6869 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6870 | /* 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] | 6871 | builtin and then its argument prototype would still apply. */ |
| 6872 | char XpmCreatePixmapFromData (); |
| 6873 | int |
| 6874 | main () |
| 6875 | { |
| 6876 | XpmCreatePixmapFromData (); |
| 6877 | ; |
| 6878 | return 0; |
| 6879 | } |
| 6880 | _ACEOF |
| 6881 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6883 | (eval $ac_link) 2>conftest.er1 |
| 6884 | ac_status=$? |
| 6885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6886 | rm -f conftest.er1 |
| 6887 | cat conftest.err >&5 |
| 6888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6889 | (exit $ac_status); } && |
| 6890 | { ac_try='test -z "$ac_c_werror_flag" |
| 6891 | || test ! -s conftest.err' |
| 6892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6893 | (eval $ac_try) 2>&5 |
| 6894 | ac_status=$? |
| 6895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6896 | (exit $ac_status); }; } && |
| 6897 | { ac_try='test -s conftest$ac_exeext' |
| 6898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6899 | (eval $ac_try) 2>&5 |
| 6900 | ac_status=$? |
| 6901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6902 | (exit $ac_status); }; }; then |
| 6903 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6904 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6905 | echo "$as_me: failed program was:" >&5 |
| 6906 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6907 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6908 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6909 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6910 | rm -f conftest.err conftest.$ac_objext \ |
| 6911 | conftest$ac_exeext conftest.$ac_ext |
| 6912 | LIBS=$ac_check_lib_save_LIBS |
| 6913 | fi |
| 6914 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 6915 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 |
| 6916 | if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6917 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6918 | fi |
| 6919 | |
| 6920 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6921 | echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 |
| 6922 | 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] | 6923 | cflags_save=$CFLAGS |
| 6924 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6925 | cat >conftest.$ac_ext <<_ACEOF |
| 6926 | /* confdefs.h. */ |
| 6927 | _ACEOF |
| 6928 | cat confdefs.h >>conftest.$ac_ext |
| 6929 | cat >>conftest.$ac_ext <<_ACEOF |
| 6930 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6931 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6932 | int |
| 6933 | main () |
| 6934 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6935 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6936 | ; |
| 6937 | return 0; |
| 6938 | } |
| 6939 | _ACEOF |
| 6940 | rm -f conftest.$ac_objext |
| 6941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6942 | (eval $ac_compile) 2>conftest.er1 |
| 6943 | ac_status=$? |
| 6944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6945 | rm -f conftest.er1 |
| 6946 | cat conftest.err >&5 |
| 6947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6948 | (exit $ac_status); } && |
| 6949 | { ac_try='test -z "$ac_c_werror_flag" |
| 6950 | || test ! -s conftest.err' |
| 6951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6952 | (eval $ac_try) 2>&5 |
| 6953 | ac_status=$? |
| 6954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6955 | (exit $ac_status); }; } && |
| 6956 | { ac_try='test -s conftest.$ac_objext' |
| 6957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6958 | (eval $ac_try) 2>&5 |
| 6959 | ac_status=$? |
| 6960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6961 | (exit $ac_status); }; }; then |
| 6962 | echo "$as_me:$LINENO: result: no" >&5 |
| 6963 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6964 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6965 | echo "$as_me: failed program was:" >&5 |
| 6966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6967 | |
| 6968 | CFLAGS="$CFLAGS -Wno-implicit-int" |
| 6969 | cat >conftest.$ac_ext <<_ACEOF |
| 6970 | /* confdefs.h. */ |
| 6971 | _ACEOF |
| 6972 | cat confdefs.h >>conftest.$ac_ext |
| 6973 | cat >>conftest.$ac_ext <<_ACEOF |
| 6974 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6975 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6976 | int |
| 6977 | main () |
| 6978 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6979 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6980 | ; |
| 6981 | return 0; |
| 6982 | } |
| 6983 | _ACEOF |
| 6984 | rm -f conftest.$ac_objext |
| 6985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6986 | (eval $ac_compile) 2>conftest.er1 |
| 6987 | ac_status=$? |
| 6988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6989 | rm -f conftest.er1 |
| 6990 | cat conftest.err >&5 |
| 6991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6992 | (exit $ac_status); } && |
| 6993 | { ac_try='test -z "$ac_c_werror_flag" |
| 6994 | || test ! -s conftest.err' |
| 6995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6996 | (eval $ac_try) 2>&5 |
| 6997 | ac_status=$? |
| 6998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6999 | (exit $ac_status); }; } && |
| 7000 | { ac_try='test -s conftest.$ac_objext' |
| 7001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7002 | (eval $ac_try) 2>&5 |
| 7003 | ac_status=$? |
| 7004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7005 | (exit $ac_status); }; }; then |
| 7006 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7007 | echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7008 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7009 | echo "$as_me: failed program was:" >&5 |
| 7010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7011 | |
| 7012 | echo "$as_me:$LINENO: result: test failed" >&5 |
| 7013 | echo "${ECHO_T}test failed" >&6 |
| 7014 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7015 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7017 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7018 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7020 | CFLAGS=$cflags_save |
| 7021 | |
| 7022 | LDFLAGS="$ac_save_LDFLAGS" |
| 7023 | |
| 7024 | fi |
| 7025 | fi |
| 7026 | |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 7027 | 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] | 7028 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7029 | echo "$as_me:$LINENO: checking --enable-gui argument" >&5 |
| 7030 | echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7031 | # Check whether --enable-gui or --disable-gui was given. |
| 7032 | if test "${enable_gui+set}" = set; then |
| 7033 | enableval="$enable_gui" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7034 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7035 | else |
| 7036 | enable_gui="auto" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7037 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7038 | |
| 7039 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 7040 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 7041 | |
| 7042 | SKIP_GTK=YES |
| 7043 | SKIP_GTK2=YES |
| 7044 | SKIP_GNOME=YES |
| 7045 | SKIP_MOTIF=YES |
| 7046 | SKIP_ATHENA=YES |
| 7047 | SKIP_NEXTAW=YES |
| 7048 | SKIP_PHOTON=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7049 | SKIP_CARBON=YES |
| 7050 | GUITYPE=NONE |
| 7051 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7052 | if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7053 | SKIP_PHOTON= |
| 7054 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7055 | no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7056 | echo "${ECHO_T}no GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7057 | SKIP_PHOTON=YES ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7058 | yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 7059 | echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
| 7060 | auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 7061 | echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
| 7062 | photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5 |
| 7063 | echo "${ECHO_T}Photon GUI support" >&6 ;; |
| 7064 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7065 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7066 | SKIP_PHOTON=YES ;; |
| 7067 | esac |
| 7068 | |
| 7069 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 7070 | SKIP_CARBON= |
| 7071 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7072 | no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7073 | echo "${ECHO_T}no GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7074 | SKIP_CARBON=YES ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7075 | yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 7076 | echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
| 7077 | auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 7078 | echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
| 7079 | carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5 |
| 7080 | echo "${ECHO_T}Carbon GUI support" >&6 ;; |
| 7081 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7082 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7083 | SKIP_CARBON=YES ;; |
| 7084 | esac |
| 7085 | |
| 7086 | else |
| 7087 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7088 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7089 | no|none) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7090 | echo "${ECHO_T}no GUI support" >&6 ;; |
| 7091 | yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 |
| 7092 | echo "${ECHO_T}yes/auto - automatic GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7093 | SKIP_GTK= |
| 7094 | SKIP_GTK2= |
| 7095 | SKIP_GNOME= |
| 7096 | SKIP_MOTIF= |
| 7097 | SKIP_ATHENA= |
| 7098 | SKIP_NEXTAW= |
| 7099 | SKIP_CARBON=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7100 | gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 |
| 7101 | echo "${ECHO_T}GTK+ 1.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7102 | SKIP_GTK=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7103 | gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 |
| 7104 | echo "${ECHO_T}GTK+ 2.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7105 | SKIP_GTK= |
| 7106 | SKIP_GTK2=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7107 | gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 |
| 7108 | echo "${ECHO_T}GNOME 1.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7109 | SKIP_GNOME= |
| 7110 | SKIP_GTK=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7111 | gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 |
| 7112 | echo "${ECHO_T}GNOME 2.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7113 | SKIP_GNOME= |
| 7114 | SKIP_GTK= |
| 7115 | SKIP_GTK2=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7116 | motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5 |
| 7117 | echo "${ECHO_T}Motif GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7118 | SKIP_MOTIF=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7119 | athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5 |
| 7120 | echo "${ECHO_T}Athena GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7121 | SKIP_ATHENA=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7122 | nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 |
| 7123 | echo "${ECHO_T}neXtaw GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7124 | SKIP_NEXTAW=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7125 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7126 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7127 | esac |
| 7128 | |
| 7129 | fi |
| 7130 | |
| 7131 | 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] | 7132 | echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 |
| 7133 | 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] | 7134 | # Check whether --enable-gtk-check or --disable-gtk-check was given. |
| 7135 | if test "${enable_gtk_check+set}" = set; then |
| 7136 | enableval="$enable_gtk_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7137 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7138 | else |
| 7139 | enable_gtk_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7140 | fi; |
| 7141 | echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 |
| 7142 | echo "${ECHO_T}$enable_gtk_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7143 | if test "x$enable_gtk_check" = "xno"; then |
| 7144 | SKIP_GTK=YES |
| 7145 | SKIP_GNOME=YES |
| 7146 | fi |
| 7147 | fi |
| 7148 | |
| 7149 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 7150 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7151 | echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 |
| 7152 | 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] | 7153 | # Check whether --enable-gtk2-check or --disable-gtk2-check was given. |
| 7154 | if test "${enable_gtk2_check+set}" = set; then |
| 7155 | enableval="$enable_gtk2_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7156 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7157 | else |
| 7158 | enable_gtk2_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7159 | fi; |
| 7160 | echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 |
| 7161 | echo "${ECHO_T}$enable_gtk2_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7162 | if test "x$enable_gtk2_check" = "xno"; then |
| 7163 | SKIP_GTK2=YES |
| 7164 | fi |
| 7165 | fi |
| 7166 | |
| 7167 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 7168 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7169 | echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 |
| 7170 | 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] | 7171 | # Check whether --enable-gnome-check or --disable-gnome-check was given. |
| 7172 | if test "${enable_gnome_check+set}" = set; then |
| 7173 | enableval="$enable_gnome_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7174 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7175 | else |
| 7176 | enable_gnome_check="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7177 | fi; |
| 7178 | echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 |
| 7179 | echo "${ECHO_T}$enable_gnome_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7180 | if test "x$enable_gnome_check" = "xno"; then |
| 7181 | SKIP_GNOME=YES |
| 7182 | fi |
| 7183 | fi |
| 7184 | |
| 7185 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7186 | echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 |
| 7187 | 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] | 7188 | # Check whether --enable-motif-check or --disable-motif-check was given. |
| 7189 | if test "${enable_motif_check+set}" = set; then |
| 7190 | enableval="$enable_motif_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7191 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7192 | else |
| 7193 | enable_motif_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7194 | fi; |
| 7195 | echo "$as_me:$LINENO: result: $enable_motif_check" >&5 |
| 7196 | echo "${ECHO_T}$enable_motif_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7197 | if test "x$enable_motif_check" = "xno"; then |
| 7198 | SKIP_MOTIF=YES |
| 7199 | fi |
| 7200 | fi |
| 7201 | |
| 7202 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7203 | echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 |
| 7204 | 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] | 7205 | # Check whether --enable-athena-check or --disable-athena-check was given. |
| 7206 | if test "${enable_athena_check+set}" = set; then |
| 7207 | enableval="$enable_athena_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7208 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7209 | else |
| 7210 | enable_athena_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7211 | fi; |
| 7212 | echo "$as_me:$LINENO: result: $enable_athena_check" >&5 |
| 7213 | echo "${ECHO_T}$enable_athena_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7214 | if test "x$enable_athena_check" = "xno"; then |
| 7215 | SKIP_ATHENA=YES |
| 7216 | fi |
| 7217 | fi |
| 7218 | |
| 7219 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7220 | echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 |
| 7221 | 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] | 7222 | # Check whether --enable-nextaw-check or --disable-nextaw-check was given. |
| 7223 | if test "${enable_nextaw_check+set}" = set; then |
| 7224 | enableval="$enable_nextaw_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7225 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7226 | else |
| 7227 | enable_nextaw_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7228 | fi; |
| 7229 | echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 |
| 7230 | echo "${ECHO_T}$enable_nextaw_check" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7231 | if test "x$enable_nextaw_check" = "xno"; then |
| 7232 | SKIP_NEXTAW=YES |
| 7233 | fi |
| 7234 | fi |
| 7235 | |
| 7236 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7237 | echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 |
| 7238 | 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] | 7239 | # Check whether --enable-carbon-check or --disable-carbon-check was given. |
| 7240 | if test "${enable_carbon_check+set}" = set; then |
| 7241 | enableval="$enable_carbon_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7242 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7243 | else |
| 7244 | enable_carbon_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7245 | fi; |
| 7246 | echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 |
| 7247 | echo "${ECHO_T}$enable_carbon_check" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7248 | if test "x$enable_carbon_check" = "xno"; then |
| 7249 | SKIP_CARBON=YES |
| 7250 | fi |
| 7251 | fi |
| 7252 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7253 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7254 | 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] | 7255 | echo "$as_me:$LINENO: checking for Carbon GUI" >&5 |
| 7256 | echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6 |
| 7257 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7258 | echo "${ECHO_T}yes" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7259 | GUITYPE=CARBONGUI |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 7260 | if test "$VIMNAME" = "vim"; then |
| 7261 | VIMNAME=Vim |
| 7262 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7263 | SKIP_GTK=YES; |
| 7264 | SKIP_GTK2=YES; |
| 7265 | SKIP_GNOME=YES; |
| 7266 | SKIP_MOTIF=YES; |
| 7267 | SKIP_ATHENA=YES; |
| 7268 | SKIP_NEXTAW=YES; |
| 7269 | SKIP_PHOTON=YES; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7270 | SKIP_CARBON=YES |
| 7271 | fi |
| 7272 | |
| 7273 | |
| 7274 | |
| 7275 | |
| 7276 | |
| 7277 | |
| 7278 | |
| 7279 | |
| 7280 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7281 | if test -z "$SKIP_GTK"; then |
| 7282 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7283 | echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
| 7284 | echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6 |
| 7285 | |
| 7286 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7287 | if test "${with_gtk_prefix+set}" = set; then |
| 7288 | withval="$with_gtk_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7289 | gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 7290 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7291 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7292 | gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 7293 | echo "${ECHO_T}no" >&6 |
| 7294 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7295 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7296 | echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
| 7297 | echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7298 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7299 | # 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] | 7300 | if test "${with_gtk_exec_prefix+set}" = set; then |
| 7301 | withval="$with_gtk_exec_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7302 | gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 7303 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7304 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7305 | gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 7306 | echo "${ECHO_T}no" >&6 |
| 7307 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7308 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7309 | echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
| 7310 | echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7311 | # Check whether --enable-gtktest or --disable-gtktest was given. |
| 7312 | if test "${enable_gtktest+set}" = set; then |
| 7313 | enableval="$enable_gtktest" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7314 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7315 | else |
| 7316 | enable_gtktest=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7317 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7318 | if test "x$enable_gtktest" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7319 | echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
| 7320 | echo "${ECHO_T}gtk test enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7321 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7322 | echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
| 7323 | echo "${ECHO_T}gtk test disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7324 | fi |
| 7325 | |
| 7326 | if test "x$gtk_config_prefix" != "x" ; then |
| 7327 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 7328 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 7329 | fi |
| 7330 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 7331 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 7332 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 7333 | fi |
| 7334 | if test "X$GTK_CONFIG" = "X"; then |
| 7335 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 7336 | set dummy gtk-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7337 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7338 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7339 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
| 7340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7341 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7342 | case $GTK_CONFIG in |
| 7343 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7344 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 7345 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7346 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7348 | for as_dir in $PATH |
| 7349 | do |
| 7350 | IFS=$as_save_IFS |
| 7351 | test -z "$as_dir" && as_dir=. |
| 7352 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7353 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7354 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7356 | break 2 |
| 7357 | fi |
| 7358 | done |
| 7359 | done |
| 7360 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7361 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 7362 | ;; |
| 7363 | esac |
| 7364 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7365 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
| 7366 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7367 | if test -n "$GTK_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7368 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
| 7369 | echo "${ECHO_T}$GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7370 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7371 | echo "$as_me:$LINENO: result: no" >&5 |
| 7372 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7373 | fi |
| 7374 | |
| 7375 | if test "X$GTK_CONFIG" = "Xno"; then |
| 7376 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 7377 | set dummy gtk12-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7378 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7380 | if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
| 7381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7382 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7383 | case $GTK12_CONFIG in |
| 7384 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7385 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 7386 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7387 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7389 | for as_dir in $PATH |
| 7390 | do |
| 7391 | IFS=$as_save_IFS |
| 7392 | test -z "$as_dir" && as_dir=. |
| 7393 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7394 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7395 | ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7397 | break 2 |
| 7398 | fi |
| 7399 | done |
| 7400 | done |
| 7401 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7402 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 7403 | ;; |
| 7404 | esac |
| 7405 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7406 | GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
| 7407 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7408 | if test -n "$GTK12_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7409 | echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
| 7410 | echo "${ECHO_T}$GTK12_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7411 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7412 | echo "$as_me:$LINENO: result: no" >&5 |
| 7413 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7414 | fi |
| 7415 | |
| 7416 | GTK_CONFIG="$GTK12_CONFIG" |
| 7417 | fi |
| 7418 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7419 | echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
| 7420 | echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7421 | fi |
| 7422 | if test "X$PKG_CONFIG" = "X"; then |
| 7423 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 7424 | set dummy pkg-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7425 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7427 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 7428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7429 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7430 | case $PKG_CONFIG in |
| 7431 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7432 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 7433 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7434 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7436 | for as_dir in $PATH |
| 7437 | do |
| 7438 | IFS=$as_save_IFS |
| 7439 | test -z "$as_dir" && as_dir=. |
| 7440 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7441 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7442 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7444 | break 2 |
| 7445 | fi |
| 7446 | done |
| 7447 | done |
| 7448 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7449 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 7450 | ;; |
| 7451 | esac |
| 7452 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7453 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 7454 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7455 | if test -n "$PKG_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7456 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 7457 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7458 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7459 | echo "$as_me:$LINENO: result: no" >&5 |
| 7460 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7461 | fi |
| 7462 | |
| 7463 | fi |
| 7464 | |
| 7465 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 7466 | if test "X$SKIP_GTK2" != "XYES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7467 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7468 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 7469 | { |
| 7470 | min_gtk_version=2.2.0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7471 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 7472 | 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] | 7473 | no_gtk="" |
| 7474 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 7475 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 7476 | { |
| 7477 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7478 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7479 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 7480 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7481 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7482 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7483 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7484 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7485 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7486 | } |
| 7487 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 7488 | { |
| 7489 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7490 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7491 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 7492 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7493 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7494 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7495 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7496 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7497 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7498 | } |
| 7499 | else |
| 7500 | no_gtk=yes |
| 7501 | fi |
| 7502 | |
| 7503 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 7504 | { |
| 7505 | ac_save_CFLAGS="$CFLAGS" |
| 7506 | ac_save_LIBS="$LIBS" |
| 7507 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 7508 | LIBS="$LIBS $GTK_LIBS" |
| 7509 | |
| 7510 | rm -f conf.gtktest |
| 7511 | if test "$cross_compiling" = yes; then |
| 7512 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 7513 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7514 | cat >conftest.$ac_ext <<_ACEOF |
| 7515 | /* confdefs.h. */ |
| 7516 | _ACEOF |
| 7517 | cat confdefs.h >>conftest.$ac_ext |
| 7518 | cat >>conftest.$ac_ext <<_ACEOF |
| 7519 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7520 | |
| 7521 | #include <gtk/gtk.h> |
| 7522 | #include <stdio.h> |
| 7523 | |
| 7524 | int |
| 7525 | main () |
| 7526 | { |
| 7527 | int major, minor, micro; |
| 7528 | char *tmp_version; |
| 7529 | |
| 7530 | system ("touch conf.gtktest"); |
| 7531 | |
| 7532 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 7533 | tmp_version = g_strdup("$min_gtk_version"); |
| 7534 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 7535 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 7536 | exit(1); |
| 7537 | } |
| 7538 | |
| 7539 | if ((gtk_major_version > major) || |
| 7540 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 7541 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 7542 | (gtk_micro_version >= micro))) |
| 7543 | { |
| 7544 | return 0; |
| 7545 | } |
| 7546 | return 1; |
| 7547 | } |
| 7548 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7549 | _ACEOF |
| 7550 | rm -f conftest$ac_exeext |
| 7551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7552 | (eval $ac_link) 2>&5 |
| 7553 | ac_status=$? |
| 7554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7555 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7557 | (eval $ac_try) 2>&5 |
| 7558 | ac_status=$? |
| 7559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7560 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7561 | : |
| 7562 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7563 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7564 | echo "$as_me: failed program was:" >&5 |
| 7565 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7566 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7567 | ( exit $ac_status ) |
| 7568 | no_gtk=yes |
| 7569 | fi |
| 7570 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7571 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7572 | CFLAGS="$ac_save_CFLAGS" |
| 7573 | LIBS="$ac_save_LIBS" |
| 7574 | } |
| 7575 | fi |
| 7576 | if test "x$no_gtk" = x ; then |
| 7577 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7578 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7579 | 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] | 7580 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7581 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7582 | 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] | 7583 | fi |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7584 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 7585 | GTK_LIBNAME="$GTK_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7586 | GUI_INC_LOC="$GTK_CFLAGS" |
| 7587 | else |
| 7588 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7589 | echo "$as_me:$LINENO: result: no" >&5 |
| 7590 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7591 | GTK_CFLAGS="" |
| 7592 | GTK_LIBS="" |
| 7593 | : |
| 7594 | } |
| 7595 | fi |
| 7596 | } |
| 7597 | else |
| 7598 | GTK_CFLAGS="" |
| 7599 | GTK_LIBS="" |
| 7600 | : |
| 7601 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7602 | |
| 7603 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7604 | rm -f conf.gtktest |
| 7605 | |
| 7606 | if test "x$GTK_CFLAGS" != "x"; then |
| 7607 | SKIP_ATHENA=YES |
| 7608 | SKIP_NEXTAW=YES |
| 7609 | SKIP_MOTIF=YES |
| 7610 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7611 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7612 | fi |
| 7613 | fi |
| 7614 | |
| 7615 | if test "x$GUITYPE" != "xGTK"; then |
| 7616 | SKIP_GTK2=YES |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7617 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7618 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 7619 | { |
| 7620 | min_gtk_version=1.1.16 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7621 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 7622 | 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] | 7623 | no_gtk="" |
| 7624 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 7625 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 7626 | { |
| 7627 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7628 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7629 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 7630 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7631 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7632 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7633 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7634 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7635 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7636 | } |
| 7637 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 7638 | { |
| 7639 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7640 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7641 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 7642 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7643 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7644 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7645 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7646 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7647 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7648 | } |
| 7649 | else |
| 7650 | no_gtk=yes |
| 7651 | fi |
| 7652 | |
| 7653 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 7654 | { |
| 7655 | ac_save_CFLAGS="$CFLAGS" |
| 7656 | ac_save_LIBS="$LIBS" |
| 7657 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 7658 | LIBS="$LIBS $GTK_LIBS" |
| 7659 | |
| 7660 | rm -f conf.gtktest |
| 7661 | if test "$cross_compiling" = yes; then |
| 7662 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 7663 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7664 | cat >conftest.$ac_ext <<_ACEOF |
| 7665 | /* confdefs.h. */ |
| 7666 | _ACEOF |
| 7667 | cat confdefs.h >>conftest.$ac_ext |
| 7668 | cat >>conftest.$ac_ext <<_ACEOF |
| 7669 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7670 | |
| 7671 | #include <gtk/gtk.h> |
| 7672 | #include <stdio.h> |
| 7673 | |
| 7674 | int |
| 7675 | main () |
| 7676 | { |
| 7677 | int major, minor, micro; |
| 7678 | char *tmp_version; |
| 7679 | |
| 7680 | system ("touch conf.gtktest"); |
| 7681 | |
| 7682 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 7683 | tmp_version = g_strdup("$min_gtk_version"); |
| 7684 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 7685 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 7686 | exit(1); |
| 7687 | } |
| 7688 | |
| 7689 | if ((gtk_major_version > major) || |
| 7690 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 7691 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 7692 | (gtk_micro_version >= micro))) |
| 7693 | { |
| 7694 | return 0; |
| 7695 | } |
| 7696 | return 1; |
| 7697 | } |
| 7698 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7699 | _ACEOF |
| 7700 | rm -f conftest$ac_exeext |
| 7701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7702 | (eval $ac_link) 2>&5 |
| 7703 | ac_status=$? |
| 7704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7705 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7707 | (eval $ac_try) 2>&5 |
| 7708 | ac_status=$? |
| 7709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7710 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7711 | : |
| 7712 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7713 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7714 | echo "$as_me: failed program was:" >&5 |
| 7715 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7716 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7717 | ( exit $ac_status ) |
| 7718 | no_gtk=yes |
| 7719 | fi |
| 7720 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7721 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7722 | CFLAGS="$ac_save_CFLAGS" |
| 7723 | LIBS="$ac_save_LIBS" |
| 7724 | } |
| 7725 | fi |
| 7726 | if test "x$no_gtk" = x ; then |
| 7727 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7728 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7729 | 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] | 7730 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7731 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7732 | 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] | 7733 | fi |
| 7734 | GTK_LIBNAME="$GTK_LIBS" |
| 7735 | GUI_INC_LOC="$GTK_CFLAGS" |
| 7736 | else |
| 7737 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7738 | echo "$as_me:$LINENO: result: no" >&5 |
| 7739 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7740 | GTK_CFLAGS="" |
| 7741 | GTK_LIBS="" |
| 7742 | : |
| 7743 | } |
| 7744 | fi |
| 7745 | } |
| 7746 | else |
| 7747 | GTK_CFLAGS="" |
| 7748 | GTK_LIBS="" |
| 7749 | : |
| 7750 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7751 | |
| 7752 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7753 | rm -f conf.gtktest |
| 7754 | |
| 7755 | if test "x$GTK_CFLAGS" != "x"; then |
| 7756 | SKIP_ATHENA=YES |
| 7757 | SKIP_NEXTAW=YES |
| 7758 | SKIP_MOTIF=YES |
| 7759 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7760 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7761 | fi |
| 7762 | fi |
| 7763 | fi |
| 7764 | if test "x$GUITYPE" = "xGTK"; then |
| 7765 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 7766 | -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] | 7767 | echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
| 7768 | 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] | 7769 | else |
| 7770 | { |
| 7771 | if test "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7772 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7773 | #define HAVE_GTK2 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7774 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7775 | |
| 7776 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 7777 | || test "0$gtk_minor_version" -ge 2 \ |
| 7778 | || test "0$gtk_major_version" -gt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7779 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7780 | #define HAVE_GTK_MULTIHEAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7781 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7782 | |
| 7783 | fi |
| 7784 | fi |
| 7785 | if test -z "$SKIP_GNOME"; then |
| 7786 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7787 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7788 | |
| 7789 | |
| 7790 | |
| 7791 | |
| 7792 | |
| 7793 | # Check whether --with-gnome-includes or --without-gnome-includes was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7794 | if test "${with_gnome_includes+set}" = set; then |
| 7795 | withval="$with_gnome_includes" |
| 7796 | CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7797 | |
| 7798 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7799 | |
| 7800 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7801 | # Check whether --with-gnome-libs or --without-gnome-libs was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7802 | if test "${with_gnome_libs+set}" = set; then |
| 7803 | withval="$with_gnome_libs" |
| 7804 | LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7805 | |
| 7806 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7807 | |
| 7808 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7809 | # Check whether --with-gnome or --without-gnome was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7810 | if test "${with_gnome+set}" = set; then |
| 7811 | withval="$with_gnome" |
| 7812 | if test x$withval = xyes; then |
| 7813 | want_gnome=yes |
| 7814 | have_gnome=yes |
| 7815 | else |
| 7816 | if test "x$withval" = xno; then |
| 7817 | want_gnome=no |
| 7818 | else |
| 7819 | want_gnome=yes |
| 7820 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 7821 | CFLAGS="$CFLAGS -I$withval/include" |
| 7822 | gnome_prefix=$withval/lib |
| 7823 | fi |
| 7824 | fi |
| 7825 | else |
| 7826 | want_gnome=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7827 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7828 | |
| 7829 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 7830 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7831 | echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
| 7832 | echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7833 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7834 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7835 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7836 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 7837 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 7838 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
| 7839 | have_gnome=yes |
| 7840 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7841 | echo "$as_me:$LINENO: result: not found" >&5 |
| 7842 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7843 | if test "x" = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7844 | { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
| 7845 | echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;} |
| 7846 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7847 | fi |
| 7848 | fi |
| 7849 | } |
| 7850 | elif test "x$want_gnome" = xyes; then |
| 7851 | { |
| 7852 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 7853 | set dummy gnome-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7854 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7856 | if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
| 7857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7858 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7859 | case $GNOME_CONFIG in |
| 7860 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7861 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 7862 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7863 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7865 | for as_dir in $PATH |
| 7866 | do |
| 7867 | IFS=$as_save_IFS |
| 7868 | test -z "$as_dir" && as_dir=. |
| 7869 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7870 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7871 | ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7872 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7873 | break 2 |
| 7874 | fi |
| 7875 | done |
| 7876 | done |
| 7877 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7878 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 7879 | ;; |
| 7880 | esac |
| 7881 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7882 | GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
| 7883 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7884 | if test -n "$GNOME_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7885 | echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
| 7886 | echo "${ECHO_T}$GNOME_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7887 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7888 | echo "$as_me:$LINENO: result: no" >&5 |
| 7889 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7890 | fi |
| 7891 | |
| 7892 | if test "$GNOME_CONFIG" = "no"; then |
| 7893 | no_gnome_config="yes" |
| 7894 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7895 | echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
| 7896 | echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7897 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7898 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7899 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7900 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 7901 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 7902 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 7903 | have_gnome=yes |
| 7904 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7905 | echo "$as_me:$LINENO: result: no" >&5 |
| 7906 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7907 | no_gnome_config="yes" |
| 7908 | fi |
| 7909 | fi |
| 7910 | |
| 7911 | if test x$exec_prefix = xNONE; then |
| 7912 | if test x$prefix = xNONE; then |
| 7913 | gnome_prefix=$ac_default_prefix/lib |
| 7914 | else |
| 7915 | gnome_prefix=$prefix/lib |
| 7916 | fi |
| 7917 | else |
| 7918 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 7919 | fi |
| 7920 | |
| 7921 | if test "$no_gnome_config" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7922 | echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 7923 | 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] | 7924 | if test -f $gnome_prefix/gnomeConf.sh; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7925 | echo "$as_me:$LINENO: result: found" >&5 |
| 7926 | echo "${ECHO_T}found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7927 | echo "loading gnome configuration from" \ |
| 7928 | "$gnome_prefix/gnomeConf.sh" |
| 7929 | . $gnome_prefix/gnomeConf.sh |
| 7930 | have_gnome=yes |
| 7931 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7932 | echo "$as_me:$LINENO: result: not found" >&5 |
| 7933 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7934 | if test x = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7935 | { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
| 7936 | echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;} |
| 7937 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7938 | fi |
| 7939 | fi |
| 7940 | fi |
| 7941 | } |
| 7942 | fi |
| 7943 | |
| 7944 | if test x$have_gnome = xyes ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7945 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7946 | #define FEAT_GUI_GNOME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7947 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7948 | |
| 7949 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 7950 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 7951 | fi |
| 7952 | } |
| 7953 | fi |
| 7954 | } |
| 7955 | fi |
| 7956 | fi |
| 7957 | fi |
| 7958 | |
| 7959 | |
| 7960 | if test -z "$SKIP_MOTIF"; then |
| 7961 | 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" |
| 7962 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 7963 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7964 | echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
| 7965 | 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] | 7966 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 7967 | GUI_INC_LOC= |
| 7968 | for try in $gui_includes; do |
| 7969 | if test -f "$try/Xm/Xm.h"; then |
| 7970 | GUI_INC_LOC=$try |
| 7971 | fi |
| 7972 | done |
| 7973 | if test -n "$GUI_INC_LOC"; then |
| 7974 | if test "$GUI_INC_LOC" = /usr/include; then |
| 7975 | GUI_INC_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7976 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 7977 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7978 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7979 | echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
| 7980 | echo "${ECHO_T}$GUI_INC_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7981 | fi |
| 7982 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7983 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 7984 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7985 | SKIP_MOTIF=YES |
| 7986 | fi |
| 7987 | fi |
| 7988 | |
| 7989 | |
| 7990 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7991 | echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
| 7992 | echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6 |
| 7993 | |
| 7994 | # Check whether --with-motif-lib or --without-motif-lib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7995 | if test "${with_motif_lib+set}" = set; then |
| 7996 | withval="$with_motif_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7997 | MOTIF_LIBNAME="${withval}" |
| 7998 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7999 | |
| 8000 | if test -n "$MOTIF_LIBNAME"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8001 | echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
| 8002 | echo "${ECHO_T}$MOTIF_LIBNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8003 | GUI_LIB_LOC= |
| 8004 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8005 | echo "$as_me:$LINENO: result: no" >&5 |
| 8006 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8007 | |
| 8008 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 8009 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8010 | echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
| 8011 | 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] | 8012 | 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" |
| 8013 | GUI_LIB_LOC= |
| 8014 | for try in $gui_libs; do |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 8015 | 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] | 8016 | if test -f "$libtry"; then |
| 8017 | GUI_LIB_LOC=$try |
| 8018 | fi |
| 8019 | done |
| 8020 | done |
| 8021 | if test -n "$GUI_LIB_LOC"; then |
| 8022 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 8023 | GUI_LIB_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8024 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 8025 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8026 | else |
| 8027 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8028 | echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
| 8029 | echo "${ECHO_T}$GUI_LIB_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8030 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 8031 | uname -r | grep '^5' >/dev/null; then |
| 8032 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 8033 | fi |
| 8034 | fi |
| 8035 | fi |
| 8036 | MOTIF_LIBNAME=-lXm |
| 8037 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8038 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 8039 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8040 | SKIP_MOTIF=YES |
| 8041 | fi |
| 8042 | fi |
| 8043 | fi |
| 8044 | |
| 8045 | if test -z "$SKIP_MOTIF"; then |
| 8046 | SKIP_ATHENA=YES |
| 8047 | SKIP_NEXTAW=YES |
| 8048 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8049 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8050 | fi |
| 8051 | |
| 8052 | |
| 8053 | GUI_X_LIBS= |
| 8054 | |
| 8055 | if test -z "$SKIP_ATHENA"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8056 | echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
| 8057 | 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] | 8058 | cflags_save=$CFLAGS |
| 8059 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8060 | cat >conftest.$ac_ext <<_ACEOF |
| 8061 | /* confdefs.h. */ |
| 8062 | _ACEOF |
| 8063 | cat confdefs.h >>conftest.$ac_ext |
| 8064 | cat >>conftest.$ac_ext <<_ACEOF |
| 8065 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8066 | |
| 8067 | #include <X11/Intrinsic.h> |
| 8068 | #include <X11/Xaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8069 | int |
| 8070 | main () |
| 8071 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8072 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8073 | ; |
| 8074 | return 0; |
| 8075 | } |
| 8076 | _ACEOF |
| 8077 | rm -f conftest.$ac_objext |
| 8078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8079 | (eval $ac_compile) 2>conftest.er1 |
| 8080 | ac_status=$? |
| 8081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8082 | rm -f conftest.er1 |
| 8083 | cat conftest.err >&5 |
| 8084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8085 | (exit $ac_status); } && |
| 8086 | { ac_try='test -z "$ac_c_werror_flag" |
| 8087 | || test ! -s conftest.err' |
| 8088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8089 | (eval $ac_try) 2>&5 |
| 8090 | ac_status=$? |
| 8091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8092 | (exit $ac_status); }; } && |
| 8093 | { ac_try='test -s conftest.$ac_objext' |
| 8094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8095 | (eval $ac_try) 2>&5 |
| 8096 | ac_status=$? |
| 8097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8098 | (exit $ac_status); }; }; then |
| 8099 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8100 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8101 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8102 | echo "$as_me: failed program was:" >&5 |
| 8103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8104 | |
| 8105 | echo "$as_me:$LINENO: result: no" >&5 |
| 8106 | echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8107 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8109 | CFLAGS=$cflags_save |
| 8110 | fi |
| 8111 | |
| 8112 | if test -z "$SKIP_ATHENA"; then |
| 8113 | GUITYPE=ATHENA |
| 8114 | fi |
| 8115 | |
| 8116 | if test -z "$SKIP_NEXTAW"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8117 | echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
| 8118 | 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] | 8119 | cflags_save=$CFLAGS |
| 8120 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8121 | cat >conftest.$ac_ext <<_ACEOF |
| 8122 | /* confdefs.h. */ |
| 8123 | _ACEOF |
| 8124 | cat confdefs.h >>conftest.$ac_ext |
| 8125 | cat >>conftest.$ac_ext <<_ACEOF |
| 8126 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8127 | |
| 8128 | #include <X11/Intrinsic.h> |
| 8129 | #include <X11/neXtaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8130 | int |
| 8131 | main () |
| 8132 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8133 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8134 | ; |
| 8135 | return 0; |
| 8136 | } |
| 8137 | _ACEOF |
| 8138 | rm -f conftest.$ac_objext |
| 8139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8140 | (eval $ac_compile) 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_objext' |
| 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 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8161 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8162 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8163 | echo "$as_me: failed program was:" >&5 |
| 8164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8165 | |
| 8166 | echo "$as_me:$LINENO: result: no" >&5 |
| 8167 | echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8168 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8170 | CFLAGS=$cflags_save |
| 8171 | fi |
| 8172 | |
| 8173 | if test -z "$SKIP_NEXTAW"; then |
| 8174 | GUITYPE=NEXTAW |
| 8175 | fi |
| 8176 | |
| 8177 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 8178 | if test -n "$GUI_INC_LOC"; then |
| 8179 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 8180 | fi |
| 8181 | if test -n "$GUI_LIB_LOC"; then |
| 8182 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 8183 | fi |
| 8184 | |
| 8185 | ldflags_save=$LDFLAGS |
| 8186 | LDFLAGS="$X_LIBS $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8187 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 8188 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 8189 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 8190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8191 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8192 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8193 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8194 | cat >conftest.$ac_ext <<_ACEOF |
| 8195 | /* confdefs.h. */ |
| 8196 | _ACEOF |
| 8197 | cat confdefs.h >>conftest.$ac_ext |
| 8198 | cat >>conftest.$ac_ext <<_ACEOF |
| 8199 | /* end confdefs.h. */ |
| 8200 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8201 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8202 | #ifdef __cplusplus |
| 8203 | extern "C" |
| 8204 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8205 | /* 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] | 8206 | builtin and then its argument prototype would still apply. */ |
| 8207 | char XShapeQueryExtension (); |
| 8208 | int |
| 8209 | main () |
| 8210 | { |
| 8211 | XShapeQueryExtension (); |
| 8212 | ; |
| 8213 | return 0; |
| 8214 | } |
| 8215 | _ACEOF |
| 8216 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8218 | (eval $ac_link) 2>conftest.er1 |
| 8219 | ac_status=$? |
| 8220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8221 | rm -f conftest.er1 |
| 8222 | cat conftest.err >&5 |
| 8223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8224 | (exit $ac_status); } && |
| 8225 | { ac_try='test -z "$ac_c_werror_flag" |
| 8226 | || test ! -s conftest.err' |
| 8227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8228 | (eval $ac_try) 2>&5 |
| 8229 | ac_status=$? |
| 8230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8231 | (exit $ac_status); }; } && |
| 8232 | { ac_try='test -s conftest$ac_exeext' |
| 8233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8234 | (eval $ac_try) 2>&5 |
| 8235 | ac_status=$? |
| 8236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8237 | (exit $ac_status); }; }; then |
| 8238 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8239 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8240 | echo "$as_me: failed program was:" >&5 |
| 8241 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8242 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8243 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8244 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8245 | rm -f conftest.err conftest.$ac_objext \ |
| 8246 | conftest$ac_exeext conftest.$ac_ext |
| 8247 | LIBS=$ac_check_lib_save_LIBS |
| 8248 | fi |
| 8249 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 8250 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 8251 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8252 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8253 | fi |
| 8254 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8255 | echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
| 8256 | echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6 |
| 8257 | if test "${ac_cv_lib_w_wslen+set}" = set; then |
| 8258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8259 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8260 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8261 | 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] | 8262 | cat >conftest.$ac_ext <<_ACEOF |
| 8263 | /* confdefs.h. */ |
| 8264 | _ACEOF |
| 8265 | cat confdefs.h >>conftest.$ac_ext |
| 8266 | cat >>conftest.$ac_ext <<_ACEOF |
| 8267 | /* end confdefs.h. */ |
| 8268 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8269 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8270 | #ifdef __cplusplus |
| 8271 | extern "C" |
| 8272 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8273 | /* 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] | 8274 | builtin and then its argument prototype would still apply. */ |
| 8275 | char wslen (); |
| 8276 | int |
| 8277 | main () |
| 8278 | { |
| 8279 | wslen (); |
| 8280 | ; |
| 8281 | return 0; |
| 8282 | } |
| 8283 | _ACEOF |
| 8284 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8286 | (eval $ac_link) 2>conftest.er1 |
| 8287 | ac_status=$? |
| 8288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8289 | rm -f conftest.er1 |
| 8290 | cat conftest.err >&5 |
| 8291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8292 | (exit $ac_status); } && |
| 8293 | { ac_try='test -z "$ac_c_werror_flag" |
| 8294 | || test ! -s conftest.err' |
| 8295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8296 | (eval $ac_try) 2>&5 |
| 8297 | ac_status=$? |
| 8298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8299 | (exit $ac_status); }; } && |
| 8300 | { ac_try='test -s conftest$ac_exeext' |
| 8301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8302 | (eval $ac_try) 2>&5 |
| 8303 | ac_status=$? |
| 8304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8305 | (exit $ac_status); }; }; then |
| 8306 | ac_cv_lib_w_wslen=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8307 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8308 | echo "$as_me: failed program was:" >&5 |
| 8309 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8310 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8311 | ac_cv_lib_w_wslen=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8312 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8313 | rm -f conftest.err conftest.$ac_objext \ |
| 8314 | conftest$ac_exeext conftest.$ac_ext |
| 8315 | LIBS=$ac_check_lib_save_LIBS |
| 8316 | fi |
| 8317 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 |
| 8318 | echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6 |
| 8319 | if test $ac_cv_lib_w_wslen = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8320 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8321 | fi |
| 8322 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8323 | echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
| 8324 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 |
| 8325 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
| 8326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8327 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8328 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8329 | 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] | 8330 | cat >conftest.$ac_ext <<_ACEOF |
| 8331 | /* confdefs.h. */ |
| 8332 | _ACEOF |
| 8333 | cat confdefs.h >>conftest.$ac_ext |
| 8334 | cat >>conftest.$ac_ext <<_ACEOF |
| 8335 | /* end confdefs.h. */ |
| 8336 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8337 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8338 | #ifdef __cplusplus |
| 8339 | extern "C" |
| 8340 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8341 | /* 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] | 8342 | builtin and then its argument prototype would still apply. */ |
| 8343 | char dlsym (); |
| 8344 | int |
| 8345 | main () |
| 8346 | { |
| 8347 | dlsym (); |
| 8348 | ; |
| 8349 | return 0; |
| 8350 | } |
| 8351 | _ACEOF |
| 8352 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8354 | (eval $ac_link) 2>conftest.er1 |
| 8355 | ac_status=$? |
| 8356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8357 | rm -f conftest.er1 |
| 8358 | cat conftest.err >&5 |
| 8359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8360 | (exit $ac_status); } && |
| 8361 | { ac_try='test -z "$ac_c_werror_flag" |
| 8362 | || test ! -s conftest.err' |
| 8363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8364 | (eval $ac_try) 2>&5 |
| 8365 | ac_status=$? |
| 8366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8367 | (exit $ac_status); }; } && |
| 8368 | { ac_try='test -s conftest$ac_exeext' |
| 8369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8370 | (eval $ac_try) 2>&5 |
| 8371 | ac_status=$? |
| 8372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8373 | (exit $ac_status); }; }; then |
| 8374 | ac_cv_lib_dl_dlsym=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8375 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8376 | echo "$as_me: failed program was:" >&5 |
| 8377 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8378 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8379 | ac_cv_lib_dl_dlsym=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8380 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8381 | rm -f conftest.err conftest.$ac_objext \ |
| 8382 | conftest$ac_exeext conftest.$ac_ext |
| 8383 | LIBS=$ac_check_lib_save_LIBS |
| 8384 | fi |
| 8385 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
| 8386 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 |
| 8387 | if test $ac_cv_lib_dl_dlsym = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8388 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8389 | fi |
| 8390 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8391 | echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 8392 | echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6 |
| 8393 | if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then |
| 8394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8395 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8396 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8397 | 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] | 8398 | cat >conftest.$ac_ext <<_ACEOF |
| 8399 | /* confdefs.h. */ |
| 8400 | _ACEOF |
| 8401 | cat confdefs.h >>conftest.$ac_ext |
| 8402 | cat >>conftest.$ac_ext <<_ACEOF |
| 8403 | /* end confdefs.h. */ |
| 8404 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8405 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8406 | #ifdef __cplusplus |
| 8407 | extern "C" |
| 8408 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8409 | /* 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] | 8410 | builtin and then its argument prototype would still apply. */ |
| 8411 | char XmuCreateStippledPixmap (); |
| 8412 | int |
| 8413 | main () |
| 8414 | { |
| 8415 | XmuCreateStippledPixmap (); |
| 8416 | ; |
| 8417 | return 0; |
| 8418 | } |
| 8419 | _ACEOF |
| 8420 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8422 | (eval $ac_link) 2>conftest.er1 |
| 8423 | ac_status=$? |
| 8424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8425 | rm -f conftest.er1 |
| 8426 | cat conftest.err >&5 |
| 8427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8428 | (exit $ac_status); } && |
| 8429 | { ac_try='test -z "$ac_c_werror_flag" |
| 8430 | || test ! -s conftest.err' |
| 8431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8432 | (eval $ac_try) 2>&5 |
| 8433 | ac_status=$? |
| 8434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8435 | (exit $ac_status); }; } && |
| 8436 | { ac_try='test -s conftest$ac_exeext' |
| 8437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8438 | (eval $ac_try) 2>&5 |
| 8439 | ac_status=$? |
| 8440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8441 | (exit $ac_status); }; }; then |
| 8442 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8443 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8444 | echo "$as_me: failed program was:" >&5 |
| 8445 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8446 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8447 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8448 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8449 | rm -f conftest.err conftest.$ac_objext \ |
| 8450 | conftest$ac_exeext conftest.$ac_ext |
| 8451 | LIBS=$ac_check_lib_save_LIBS |
| 8452 | fi |
| 8453 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 8454 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6 |
| 8455 | if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8456 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8457 | fi |
| 8458 | |
| 8459 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8460 | echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
| 8461 | echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6 |
| 8462 | if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
| 8463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8464 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8465 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8466 | 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] | 8467 | cat >conftest.$ac_ext <<_ACEOF |
| 8468 | /* confdefs.h. */ |
| 8469 | _ACEOF |
| 8470 | cat confdefs.h >>conftest.$ac_ext |
| 8471 | cat >>conftest.$ac_ext <<_ACEOF |
| 8472 | /* end confdefs.h. */ |
| 8473 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8474 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8475 | #ifdef __cplusplus |
| 8476 | extern "C" |
| 8477 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8478 | /* 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] | 8479 | builtin and then its argument prototype would still apply. */ |
| 8480 | char XpEndJob (); |
| 8481 | int |
| 8482 | main () |
| 8483 | { |
| 8484 | XpEndJob (); |
| 8485 | ; |
| 8486 | return 0; |
| 8487 | } |
| 8488 | _ACEOF |
| 8489 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8491 | (eval $ac_link) 2>conftest.er1 |
| 8492 | ac_status=$? |
| 8493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8494 | rm -f conftest.er1 |
| 8495 | cat conftest.err >&5 |
| 8496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8497 | (exit $ac_status); } && |
| 8498 | { ac_try='test -z "$ac_c_werror_flag" |
| 8499 | || test ! -s conftest.err' |
| 8500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8501 | (eval $ac_try) 2>&5 |
| 8502 | ac_status=$? |
| 8503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8504 | (exit $ac_status); }; } && |
| 8505 | { ac_try='test -s conftest$ac_exeext' |
| 8506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8507 | (eval $ac_try) 2>&5 |
| 8508 | ac_status=$? |
| 8509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8510 | (exit $ac_status); }; }; then |
| 8511 | ac_cv_lib_Xp_XpEndJob=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8512 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8513 | echo "$as_me: failed program was:" >&5 |
| 8514 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8515 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8516 | ac_cv_lib_Xp_XpEndJob=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8517 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8518 | rm -f conftest.err conftest.$ac_objext \ |
| 8519 | conftest$ac_exeext conftest.$ac_ext |
| 8520 | LIBS=$ac_check_lib_save_LIBS |
| 8521 | fi |
| 8522 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 8523 | echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6 |
| 8524 | if test $ac_cv_lib_Xp_XpEndJob = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8525 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8526 | fi |
| 8527 | |
| 8528 | fi |
| 8529 | LDFLAGS=$ldflags_save |
| 8530 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8531 | echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
| 8532 | echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8533 | NARROW_PROTO= |
| 8534 | rm -fr conftestdir |
| 8535 | if mkdir conftestdir; then |
| 8536 | cd conftestdir |
| 8537 | cat > Imakefile <<'EOF' |
| 8538 | acfindx: |
| 8539 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 8540 | EOF |
| 8541 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 8542 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 8543 | fi |
| 8544 | cd .. |
| 8545 | rm -fr conftestdir |
| 8546 | fi |
| 8547 | if test -z "$NARROW_PROTO"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8548 | echo "$as_me:$LINENO: result: no" >&5 |
| 8549 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8550 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8551 | echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
| 8552 | echo "${ECHO_T}$NARROW_PROTO" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8553 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8554 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8555 | fi |
| 8556 | |
| 8557 | if test "$enable_xsmp" = "yes"; then |
| 8558 | cppflags_save=$CPPFLAGS |
| 8559 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8560 | |
| 8561 | for ac_header in X11/SM/SMlib.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8562 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8563 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8565 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8567 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8569 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8571 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8572 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8573 | # Is the header compilable? |
| 8574 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8575 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8576 | cat >conftest.$ac_ext <<_ACEOF |
| 8577 | /* confdefs.h. */ |
| 8578 | _ACEOF |
| 8579 | cat confdefs.h >>conftest.$ac_ext |
| 8580 | cat >>conftest.$ac_ext <<_ACEOF |
| 8581 | /* end confdefs.h. */ |
| 8582 | $ac_includes_default |
| 8583 | #include <$ac_header> |
| 8584 | _ACEOF |
| 8585 | rm -f conftest.$ac_objext |
| 8586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8587 | (eval $ac_compile) 2>conftest.er1 |
| 8588 | ac_status=$? |
| 8589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8590 | rm -f conftest.er1 |
| 8591 | cat conftest.err >&5 |
| 8592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8593 | (exit $ac_status); } && |
| 8594 | { ac_try='test -z "$ac_c_werror_flag" |
| 8595 | || test ! -s conftest.err' |
| 8596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8597 | (eval $ac_try) 2>&5 |
| 8598 | ac_status=$? |
| 8599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8600 | (exit $ac_status); }; } && |
| 8601 | { ac_try='test -s conftest.$ac_objext' |
| 8602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8603 | (eval $ac_try) 2>&5 |
| 8604 | ac_status=$? |
| 8605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8606 | (exit $ac_status); }; }; then |
| 8607 | ac_header_compiler=yes |
| 8608 | else |
| 8609 | echo "$as_me: failed program was:" >&5 |
| 8610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8611 | |
| 8612 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8613 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8615 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8616 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8617 | |
| 8618 | # Is the header present? |
| 8619 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8620 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8621 | cat >conftest.$ac_ext <<_ACEOF |
| 8622 | /* confdefs.h. */ |
| 8623 | _ACEOF |
| 8624 | cat confdefs.h >>conftest.$ac_ext |
| 8625 | cat >>conftest.$ac_ext <<_ACEOF |
| 8626 | /* end confdefs.h. */ |
| 8627 | #include <$ac_header> |
| 8628 | _ACEOF |
| 8629 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8630 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8631 | ac_status=$? |
| 8632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8633 | rm -f conftest.er1 |
| 8634 | cat conftest.err >&5 |
| 8635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8636 | (exit $ac_status); } >/dev/null; then |
| 8637 | if test -s conftest.err; then |
| 8638 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8639 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8640 | else |
| 8641 | ac_cpp_err= |
| 8642 | fi |
| 8643 | else |
| 8644 | ac_cpp_err=yes |
| 8645 | fi |
| 8646 | if test -z "$ac_cpp_err"; then |
| 8647 | ac_header_preproc=yes |
| 8648 | else |
| 8649 | echo "$as_me: failed program was:" >&5 |
| 8650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8651 | |
| 8652 | ac_header_preproc=no |
| 8653 | fi |
| 8654 | rm -f conftest.err conftest.$ac_ext |
| 8655 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8656 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8657 | |
| 8658 | # So? What about this header? |
| 8659 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8660 | yes:no: ) |
| 8661 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8662 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8663 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8664 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8665 | ac_header_preproc=yes |
| 8666 | ;; |
| 8667 | no:yes:* ) |
| 8668 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8669 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8670 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8671 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8672 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8673 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8674 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8675 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8676 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8677 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8678 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8679 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8680 | ( |
| 8681 | cat <<\_ASBOX |
| 8682 | ## ------------------------------------------ ## |
| 8683 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8684 | ## ------------------------------------------ ## |
| 8685 | _ASBOX |
| 8686 | ) | |
| 8687 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8688 | ;; |
| 8689 | esac |
| 8690 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8691 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8692 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8694 | else |
| 8695 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8696 | fi |
| 8697 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8698 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8699 | |
| 8700 | fi |
| 8701 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8702 | cat >>confdefs.h <<_ACEOF |
| 8703 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8704 | _ACEOF |
| 8705 | |
| 8706 | fi |
| 8707 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8708 | done |
| 8709 | |
| 8710 | CPPFLAGS=$cppflags_save |
| 8711 | fi |
| 8712 | |
| 8713 | |
| 8714 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 8715 | cppflags_save=$CPPFLAGS |
| 8716 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8717 | |
| 8718 | |
| 8719 | for ac_header in X11/xpm.h X11/Sunkeysym.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8720 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8721 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8723 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8724 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8725 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8727 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8728 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8729 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8730 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8731 | # Is the header compilable? |
| 8732 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8733 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8734 | cat >conftest.$ac_ext <<_ACEOF |
| 8735 | /* confdefs.h. */ |
| 8736 | _ACEOF |
| 8737 | cat confdefs.h >>conftest.$ac_ext |
| 8738 | cat >>conftest.$ac_ext <<_ACEOF |
| 8739 | /* end confdefs.h. */ |
| 8740 | $ac_includes_default |
| 8741 | #include <$ac_header> |
| 8742 | _ACEOF |
| 8743 | rm -f conftest.$ac_objext |
| 8744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8745 | (eval $ac_compile) 2>conftest.er1 |
| 8746 | ac_status=$? |
| 8747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8748 | rm -f conftest.er1 |
| 8749 | cat conftest.err >&5 |
| 8750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8751 | (exit $ac_status); } && |
| 8752 | { ac_try='test -z "$ac_c_werror_flag" |
| 8753 | || test ! -s conftest.err' |
| 8754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8755 | (eval $ac_try) 2>&5 |
| 8756 | ac_status=$? |
| 8757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8758 | (exit $ac_status); }; } && |
| 8759 | { ac_try='test -s conftest.$ac_objext' |
| 8760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8761 | (eval $ac_try) 2>&5 |
| 8762 | ac_status=$? |
| 8763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8764 | (exit $ac_status); }; }; then |
| 8765 | ac_header_compiler=yes |
| 8766 | else |
| 8767 | echo "$as_me: failed program was:" >&5 |
| 8768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8769 | |
| 8770 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8771 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8773 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8774 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8775 | |
| 8776 | # Is the header present? |
| 8777 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8778 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8779 | cat >conftest.$ac_ext <<_ACEOF |
| 8780 | /* confdefs.h. */ |
| 8781 | _ACEOF |
| 8782 | cat confdefs.h >>conftest.$ac_ext |
| 8783 | cat >>conftest.$ac_ext <<_ACEOF |
| 8784 | /* end confdefs.h. */ |
| 8785 | #include <$ac_header> |
| 8786 | _ACEOF |
| 8787 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8788 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8789 | ac_status=$? |
| 8790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8791 | rm -f conftest.er1 |
| 8792 | cat conftest.err >&5 |
| 8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8794 | (exit $ac_status); } >/dev/null; then |
| 8795 | if test -s conftest.err; then |
| 8796 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8797 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8798 | else |
| 8799 | ac_cpp_err= |
| 8800 | fi |
| 8801 | else |
| 8802 | ac_cpp_err=yes |
| 8803 | fi |
| 8804 | if test -z "$ac_cpp_err"; then |
| 8805 | ac_header_preproc=yes |
| 8806 | else |
| 8807 | echo "$as_me: failed program was:" >&5 |
| 8808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8809 | |
| 8810 | ac_header_preproc=no |
| 8811 | fi |
| 8812 | rm -f conftest.err conftest.$ac_ext |
| 8813 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8814 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8815 | |
| 8816 | # So? What about this header? |
| 8817 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8818 | yes:no: ) |
| 8819 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8820 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8821 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8822 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8823 | ac_header_preproc=yes |
| 8824 | ;; |
| 8825 | no:yes:* ) |
| 8826 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8827 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8828 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8829 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8830 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8831 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8832 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8833 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8834 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8835 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8836 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8837 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8838 | ( |
| 8839 | cat <<\_ASBOX |
| 8840 | ## ------------------------------------------ ## |
| 8841 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8842 | ## ------------------------------------------ ## |
| 8843 | _ASBOX |
| 8844 | ) | |
| 8845 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8846 | ;; |
| 8847 | esac |
| 8848 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8849 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8850 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8852 | else |
| 8853 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8854 | fi |
| 8855 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8856 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8857 | |
| 8858 | fi |
| 8859 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8860 | cat >>confdefs.h <<_ACEOF |
| 8861 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8862 | _ACEOF |
| 8863 | |
| 8864 | fi |
| 8865 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8866 | done |
| 8867 | |
| 8868 | |
| 8869 | if test ! "$enable_xim" = "no"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8870 | echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
| 8871 | echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6 |
| 8872 | cat >conftest.$ac_ext <<_ACEOF |
| 8873 | /* confdefs.h. */ |
| 8874 | _ACEOF |
| 8875 | cat confdefs.h >>conftest.$ac_ext |
| 8876 | cat >>conftest.$ac_ext <<_ACEOF |
| 8877 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8878 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8879 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8880 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8881 | $EGREP "XIMText" >/dev/null 2>&1; then |
| 8882 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8883 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8884 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8885 | echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
| 8886 | echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8887 | fi |
| 8888 | rm -f conftest* |
| 8889 | |
| 8890 | fi |
| 8891 | CPPFLAGS=$cppflags_save |
| 8892 | |
| 8893 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 8894 | -a "x$GUITYPE" != "xNONE" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8895 | echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
| 8896 | echo "${ECHO_T}X GUI selected; xim has been enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8897 | enable_xim="yes" |
| 8898 | fi |
| 8899 | fi |
| 8900 | |
| 8901 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 8902 | cppflags_save=$CPPFLAGS |
| 8903 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8904 | echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 |
| 8905 | echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6 |
| 8906 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8907 | /* confdefs.h. */ |
| 8908 | _ACEOF |
| 8909 | cat confdefs.h >>conftest.$ac_ext |
| 8910 | cat >>conftest.$ac_ext <<_ACEOF |
| 8911 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8912 | |
| 8913 | #include <X11/Intrinsic.h> |
| 8914 | #include <X11/Xmu/Editres.h> |
| 8915 | int |
| 8916 | main () |
| 8917 | { |
| 8918 | int i; i = 0; |
| 8919 | ; |
| 8920 | return 0; |
| 8921 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8922 | _ACEOF |
| 8923 | rm -f conftest.$ac_objext |
| 8924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8925 | (eval $ac_compile) 2>conftest.er1 |
| 8926 | ac_status=$? |
| 8927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8928 | rm -f conftest.er1 |
| 8929 | cat conftest.err >&5 |
| 8930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8931 | (exit $ac_status); } && |
| 8932 | { ac_try='test -z "$ac_c_werror_flag" |
| 8933 | || test ! -s conftest.err' |
| 8934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8935 | (eval $ac_try) 2>&5 |
| 8936 | ac_status=$? |
| 8937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8938 | (exit $ac_status); }; } && |
| 8939 | { ac_try='test -s conftest.$ac_objext' |
| 8940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8941 | (eval $ac_try) 2>&5 |
| 8942 | ac_status=$? |
| 8943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8944 | (exit $ac_status); }; }; then |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8945 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8946 | echo "${ECHO_T}yes" >&6 |
| 8947 | cat >>confdefs.h <<\_ACEOF |
| 8948 | #define HAVE_X11_XMU_EDITRES_H 1 |
| 8949 | _ACEOF |
| 8950 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8951 | else |
| 8952 | echo "$as_me: failed program was:" >&5 |
| 8953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8954 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8955 | echo "$as_me:$LINENO: result: no" >&5 |
| 8956 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8957 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8959 | CPPFLAGS=$cppflags_save |
| 8960 | fi |
| 8961 | |
| 8962 | if test -z "$SKIP_MOTIF"; then |
| 8963 | cppflags_save=$CPPFLAGS |
| 8964 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8965 | |
| 8966 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8967 | |
| 8968 | |
| 8969 | |
| 8970 | |
| 8971 | for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \ |
| 8972 | Xm/UnhighlightT.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8973 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8974 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8975 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8976 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8977 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8978 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8980 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8981 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8982 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8983 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8984 | # Is the header compilable? |
| 8985 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8986 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8987 | cat >conftest.$ac_ext <<_ACEOF |
| 8988 | /* confdefs.h. */ |
| 8989 | _ACEOF |
| 8990 | cat confdefs.h >>conftest.$ac_ext |
| 8991 | cat >>conftest.$ac_ext <<_ACEOF |
| 8992 | /* end confdefs.h. */ |
| 8993 | $ac_includes_default |
| 8994 | #include <$ac_header> |
| 8995 | _ACEOF |
| 8996 | rm -f conftest.$ac_objext |
| 8997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8998 | (eval $ac_compile) 2>conftest.er1 |
| 8999 | ac_status=$? |
| 9000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9001 | rm -f conftest.er1 |
| 9002 | cat conftest.err >&5 |
| 9003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9004 | (exit $ac_status); } && |
| 9005 | { ac_try='test -z "$ac_c_werror_flag" |
| 9006 | || test ! -s conftest.err' |
| 9007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9008 | (eval $ac_try) 2>&5 |
| 9009 | ac_status=$? |
| 9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9011 | (exit $ac_status); }; } && |
| 9012 | { ac_try='test -s conftest.$ac_objext' |
| 9013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9014 | (eval $ac_try) 2>&5 |
| 9015 | ac_status=$? |
| 9016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9017 | (exit $ac_status); }; }; then |
| 9018 | ac_header_compiler=yes |
| 9019 | else |
| 9020 | echo "$as_me: failed program was:" >&5 |
| 9021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9022 | |
| 9023 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9024 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9026 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9027 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9028 | |
| 9029 | # Is the header present? |
| 9030 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9031 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9032 | cat >conftest.$ac_ext <<_ACEOF |
| 9033 | /* confdefs.h. */ |
| 9034 | _ACEOF |
| 9035 | cat confdefs.h >>conftest.$ac_ext |
| 9036 | cat >>conftest.$ac_ext <<_ACEOF |
| 9037 | /* end confdefs.h. */ |
| 9038 | #include <$ac_header> |
| 9039 | _ACEOF |
| 9040 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9041 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9042 | ac_status=$? |
| 9043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9044 | rm -f conftest.er1 |
| 9045 | cat conftest.err >&5 |
| 9046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9047 | (exit $ac_status); } >/dev/null; then |
| 9048 | if test -s conftest.err; then |
| 9049 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9050 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9051 | else |
| 9052 | ac_cpp_err= |
| 9053 | fi |
| 9054 | else |
| 9055 | ac_cpp_err=yes |
| 9056 | fi |
| 9057 | if test -z "$ac_cpp_err"; then |
| 9058 | ac_header_preproc=yes |
| 9059 | else |
| 9060 | echo "$as_me: failed program was:" >&5 |
| 9061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9062 | |
| 9063 | ac_header_preproc=no |
| 9064 | fi |
| 9065 | rm -f conftest.err conftest.$ac_ext |
| 9066 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9067 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9068 | |
| 9069 | # So? What about this header? |
| 9070 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9071 | yes:no: ) |
| 9072 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9073 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9074 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9075 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9076 | ac_header_preproc=yes |
| 9077 | ;; |
| 9078 | no:yes:* ) |
| 9079 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9080 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9081 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9082 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9083 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9084 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9085 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9086 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9087 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9088 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9089 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9090 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9091 | ( |
| 9092 | cat <<\_ASBOX |
| 9093 | ## ------------------------------------------ ## |
| 9094 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9095 | ## ------------------------------------------ ## |
| 9096 | _ASBOX |
| 9097 | ) | |
| 9098 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9099 | ;; |
| 9100 | esac |
| 9101 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9102 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9103 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9105 | else |
| 9106 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9107 | fi |
| 9108 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9109 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9110 | |
| 9111 | fi |
| 9112 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9113 | cat >>confdefs.h <<_ACEOF |
| 9114 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9115 | _ACEOF |
| 9116 | |
| 9117 | fi |
| 9118 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9119 | done |
| 9120 | |
| 9121 | CPPFLAGS=$cppflags_save |
| 9122 | fi |
| 9123 | |
| 9124 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9125 | echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
| 9126 | echo "${ECHO_T}no GUI selected; xim has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9127 | enable_xim="no" |
| 9128 | fi |
| 9129 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9130 | echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
| 9131 | echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9132 | enable_fontset="no" |
| 9133 | fi |
| 9134 | 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] | 9135 | echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 9136 | echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9137 | enable_fontset="no" |
| 9138 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9139 | |
| 9140 | if test -z "$SKIP_PHOTON"; then |
| 9141 | GUITYPE=PHOTONGUI |
| 9142 | fi |
| 9143 | |
| 9144 | |
| 9145 | |
| 9146 | |
| 9147 | |
| 9148 | |
| 9149 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9150 | { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
| 9151 | echo "$as_me: error: cannot use workshop without Motif" >&2;} |
| 9152 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9153 | fi |
| 9154 | |
| 9155 | if test "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9156 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9157 | #define FEAT_XIM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9158 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9159 | |
| 9160 | fi |
| 9161 | if test "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9162 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9163 | #define FEAT_XFONTSET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9164 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9165 | |
| 9166 | fi |
| 9167 | |
| 9168 | |
| 9169 | |
| 9170 | |
| 9171 | if test "$enable_hangulinput" = "yes"; then |
| 9172 | if test "x$GUITYPE" = "xNONE"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9173 | echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
| 9174 | echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9175 | enable_hangulinput=no |
| 9176 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9177 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9178 | #define FEAT_HANGULIN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9179 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9180 | |
| 9181 | HANGULIN_SRC=hangulin.c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9182 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9183 | HANGULIN_OBJ=objects/hangulin.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9184 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9185 | fi |
| 9186 | fi |
| 9187 | |
| 9188 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9189 | echo "$as_me:$LINENO: checking quality of toupper" >&5 |
| 9190 | echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9191 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9192 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 9193 | echo "$as_me: error: failed to compile test program" >&2;} |
| 9194 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9195 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9196 | cat >conftest.$ac_ext <<_ACEOF |
| 9197 | /* confdefs.h. */ |
| 9198 | _ACEOF |
| 9199 | cat confdefs.h >>conftest.$ac_ext |
| 9200 | cat >>conftest.$ac_ext <<_ACEOF |
| 9201 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9202 | #include <ctype.h> |
| 9203 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9204 | _ACEOF |
| 9205 | rm -f conftest$ac_exeext |
| 9206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9207 | (eval $ac_link) 2>&5 |
| 9208 | ac_status=$? |
| 9209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9210 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9212 | (eval $ac_try) 2>&5 |
| 9213 | ac_status=$? |
| 9214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9215 | (exit $ac_status); }; }; then |
| 9216 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9217 | #define BROKEN_TOUPPER 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9218 | _ACEOF |
| 9219 | echo "$as_me:$LINENO: result: bad" >&5 |
| 9220 | echo "${ECHO_T}bad" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9221 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9222 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9223 | echo "$as_me: failed program was:" >&5 |
| 9224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9225 | |
| 9226 | ( exit $ac_status ) |
| 9227 | echo "$as_me:$LINENO: result: good" >&5 |
| 9228 | echo "${ECHO_T}good" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9229 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9230 | 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] | 9231 | fi |
| 9232 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9233 | echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
| 9234 | echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6 |
| 9235 | cat >conftest.$ac_ext <<_ACEOF |
| 9236 | /* confdefs.h. */ |
| 9237 | _ACEOF |
| 9238 | cat confdefs.h >>conftest.$ac_ext |
| 9239 | cat >>conftest.$ac_ext <<_ACEOF |
| 9240 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9241 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9242 | int |
| 9243 | main () |
| 9244 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9245 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9246 | ; |
| 9247 | return 0; |
| 9248 | } |
| 9249 | _ACEOF |
| 9250 | rm -f conftest.$ac_objext |
| 9251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9252 | (eval $ac_compile) 2>conftest.er1 |
| 9253 | ac_status=$? |
| 9254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9255 | rm -f conftest.er1 |
| 9256 | cat conftest.err >&5 |
| 9257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9258 | (exit $ac_status); } && |
| 9259 | { ac_try='test -z "$ac_c_werror_flag" |
| 9260 | || test ! -s conftest.err' |
| 9261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9262 | (eval $ac_try) 2>&5 |
| 9263 | ac_status=$? |
| 9264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9265 | (exit $ac_status); }; } && |
| 9266 | { ac_try='test -s conftest.$ac_objext' |
| 9267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9268 | (eval $ac_try) 2>&5 |
| 9269 | ac_status=$? |
| 9270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9271 | (exit $ac_status); }; }; then |
| 9272 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9273 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9274 | #define HAVE_DATE_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9275 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9276 | |
| 9277 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9278 | echo "$as_me: failed program was:" >&5 |
| 9279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9280 | |
| 9281 | echo "$as_me:$LINENO: result: no" >&5 |
| 9282 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9283 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9285 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9286 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9287 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 9288 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 9289 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9291 | fi |
| 9292 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 9293 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9294 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9295 | # Is the header compilable? |
| 9296 | echo "$as_me:$LINENO: checking elf.h usability" >&5 |
| 9297 | echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6 |
| 9298 | cat >conftest.$ac_ext <<_ACEOF |
| 9299 | /* confdefs.h. */ |
| 9300 | _ACEOF |
| 9301 | cat confdefs.h >>conftest.$ac_ext |
| 9302 | cat >>conftest.$ac_ext <<_ACEOF |
| 9303 | /* end confdefs.h. */ |
| 9304 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9305 | #include <elf.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9306 | _ACEOF |
| 9307 | rm -f conftest.$ac_objext |
| 9308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9309 | (eval $ac_compile) 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_objext' |
| 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_header_compiler=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 |
| 9333 | |
| 9334 | ac_header_compiler=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 conftest.$ac_ext |
| 9337 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9338 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9339 | |
| 9340 | # Is the header present? |
| 9341 | echo "$as_me:$LINENO: checking elf.h presence" >&5 |
| 9342 | echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6 |
| 9343 | cat >conftest.$ac_ext <<_ACEOF |
| 9344 | /* confdefs.h. */ |
| 9345 | _ACEOF |
| 9346 | cat confdefs.h >>conftest.$ac_ext |
| 9347 | cat >>conftest.$ac_ext <<_ACEOF |
| 9348 | /* end confdefs.h. */ |
| 9349 | #include <elf.h> |
| 9350 | _ACEOF |
| 9351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9353 | ac_status=$? |
| 9354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9355 | rm -f conftest.er1 |
| 9356 | cat conftest.err >&5 |
| 9357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9358 | (exit $ac_status); } >/dev/null; then |
| 9359 | if test -s conftest.err; then |
| 9360 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9361 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9362 | else |
| 9363 | ac_cpp_err= |
| 9364 | fi |
| 9365 | else |
| 9366 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9367 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9368 | if test -z "$ac_cpp_err"; then |
| 9369 | ac_header_preproc=yes |
| 9370 | else |
| 9371 | echo "$as_me: failed program was:" >&5 |
| 9372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9373 | |
| 9374 | ac_header_preproc=no |
| 9375 | fi |
| 9376 | rm -f conftest.err conftest.$ac_ext |
| 9377 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9378 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9379 | |
| 9380 | # So? What about this header? |
| 9381 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9382 | yes:no: ) |
| 9383 | { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9384 | echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9385 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 |
| 9386 | echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;} |
| 9387 | ac_header_preproc=yes |
| 9388 | ;; |
| 9389 | no:yes:* ) |
| 9390 | { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 |
| 9391 | echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} |
| 9392 | { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 |
| 9393 | echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} |
| 9394 | { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 |
| 9395 | echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} |
| 9396 | { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9397 | echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9398 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 |
| 9399 | echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} |
| 9400 | { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 |
| 9401 | echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} |
| 9402 | ( |
| 9403 | cat <<\_ASBOX |
| 9404 | ## ------------------------------------------ ## |
| 9405 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9406 | ## ------------------------------------------ ## |
| 9407 | _ASBOX |
| 9408 | ) | |
| 9409 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9410 | ;; |
| 9411 | esac |
| 9412 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 9413 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 9414 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9416 | else |
| 9417 | ac_cv_header_elf_h=$ac_header_preproc |
| 9418 | fi |
| 9419 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 9420 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
| 9421 | |
| 9422 | fi |
| 9423 | if test $ac_cv_header_elf_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9424 | HAS_ELF=1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9425 | fi |
| 9426 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9427 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9428 | if test "$HAS_ELF" = 1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9429 | |
| 9430 | echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
| 9431 | echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6 |
| 9432 | if test "${ac_cv_lib_elf_main+set}" = set; then |
| 9433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9434 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9435 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9436 | LIBS="-lelf $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9437 | cat >conftest.$ac_ext <<_ACEOF |
| 9438 | /* confdefs.h. */ |
| 9439 | _ACEOF |
| 9440 | cat confdefs.h >>conftest.$ac_ext |
| 9441 | cat >>conftest.$ac_ext <<_ACEOF |
| 9442 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9443 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9444 | |
| 9445 | int |
| 9446 | main () |
| 9447 | { |
| 9448 | main (); |
| 9449 | ; |
| 9450 | return 0; |
| 9451 | } |
| 9452 | _ACEOF |
| 9453 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9455 | (eval $ac_link) 2>conftest.er1 |
| 9456 | ac_status=$? |
| 9457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9458 | rm -f conftest.er1 |
| 9459 | cat conftest.err >&5 |
| 9460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9461 | (exit $ac_status); } && |
| 9462 | { ac_try='test -z "$ac_c_werror_flag" |
| 9463 | || test ! -s conftest.err' |
| 9464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9465 | (eval $ac_try) 2>&5 |
| 9466 | ac_status=$? |
| 9467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9468 | (exit $ac_status); }; } && |
| 9469 | { ac_try='test -s conftest$ac_exeext' |
| 9470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9471 | (eval $ac_try) 2>&5 |
| 9472 | ac_status=$? |
| 9473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9474 | (exit $ac_status); }; }; then |
| 9475 | ac_cv_lib_elf_main=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9476 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9477 | echo "$as_me: failed program was:" >&5 |
| 9478 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9479 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9480 | ac_cv_lib_elf_main=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9481 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9482 | rm -f conftest.err conftest.$ac_objext \ |
| 9483 | conftest$ac_exeext conftest.$ac_ext |
| 9484 | LIBS=$ac_check_lib_save_LIBS |
| 9485 | fi |
| 9486 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 |
| 9487 | echo "${ECHO_T}$ac_cv_lib_elf_main" >&6 |
| 9488 | if test $ac_cv_lib_elf_main = yes; then |
| 9489 | cat >>confdefs.h <<_ACEOF |
| 9490 | #define HAVE_LIBELF 1 |
| 9491 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9492 | |
| 9493 | LIBS="-lelf $LIBS" |
| 9494 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9495 | fi |
| 9496 | |
| 9497 | fi |
| 9498 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9499 | |
| 9500 | |
| 9501 | |
| 9502 | |
| 9503 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9504 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9505 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 9506 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9507 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9508 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 9509 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9511 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9512 | cat >conftest.$ac_ext <<_ACEOF |
| 9513 | /* confdefs.h. */ |
| 9514 | _ACEOF |
| 9515 | cat confdefs.h >>conftest.$ac_ext |
| 9516 | cat >>conftest.$ac_ext <<_ACEOF |
| 9517 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9518 | #include <sys/types.h> |
| 9519 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9520 | |
| 9521 | int |
| 9522 | main () |
| 9523 | { |
| 9524 | if ((DIR *) 0) |
| 9525 | return 0; |
| 9526 | ; |
| 9527 | return 0; |
| 9528 | } |
| 9529 | _ACEOF |
| 9530 | rm -f conftest.$ac_objext |
| 9531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9532 | (eval $ac_compile) 2>conftest.er1 |
| 9533 | ac_status=$? |
| 9534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9535 | rm -f conftest.er1 |
| 9536 | cat conftest.err >&5 |
| 9537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9538 | (exit $ac_status); } && |
| 9539 | { ac_try='test -z "$ac_c_werror_flag" |
| 9540 | || test ! -s conftest.err' |
| 9541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9542 | (eval $ac_try) 2>&5 |
| 9543 | ac_status=$? |
| 9544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9545 | (exit $ac_status); }; } && |
| 9546 | { ac_try='test -s conftest.$ac_objext' |
| 9547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9548 | (eval $ac_try) 2>&5 |
| 9549 | ac_status=$? |
| 9550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9551 | (exit $ac_status); }; }; then |
| 9552 | eval "$as_ac_Header=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9553 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9554 | echo "$as_me: failed program was:" >&5 |
| 9555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9556 | |
| 9557 | eval "$as_ac_Header=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9558 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9560 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9561 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9562 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9563 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9564 | cat >>confdefs.h <<_ACEOF |
| 9565 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 9566 | _ACEOF |
| 9567 | |
| 9568 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9569 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9570 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9571 | done |
| 9572 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9573 | if test $ac_header_dirent = dirent.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9574 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9575 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 9576 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9578 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9579 | ac_func_search_save_LIBS=$LIBS |
| 9580 | ac_cv_search_opendir=no |
| 9581 | cat >conftest.$ac_ext <<_ACEOF |
| 9582 | /* confdefs.h. */ |
| 9583 | _ACEOF |
| 9584 | cat confdefs.h >>conftest.$ac_ext |
| 9585 | cat >>conftest.$ac_ext <<_ACEOF |
| 9586 | /* end confdefs.h. */ |
| 9587 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9588 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9589 | #ifdef __cplusplus |
| 9590 | extern "C" |
| 9591 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9592 | /* 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] | 9593 | builtin and then its argument prototype would still apply. */ |
| 9594 | char opendir (); |
| 9595 | int |
| 9596 | main () |
| 9597 | { |
| 9598 | opendir (); |
| 9599 | ; |
| 9600 | return 0; |
| 9601 | } |
| 9602 | _ACEOF |
| 9603 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9605 | (eval $ac_link) 2>conftest.er1 |
| 9606 | ac_status=$? |
| 9607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9608 | rm -f conftest.er1 |
| 9609 | cat conftest.err >&5 |
| 9610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9611 | (exit $ac_status); } && |
| 9612 | { ac_try='test -z "$ac_c_werror_flag" |
| 9613 | || test ! -s conftest.err' |
| 9614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9615 | (eval $ac_try) 2>&5 |
| 9616 | ac_status=$? |
| 9617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9618 | (exit $ac_status); }; } && |
| 9619 | { ac_try='test -s conftest$ac_exeext' |
| 9620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9621 | (eval $ac_try) 2>&5 |
| 9622 | ac_status=$? |
| 9623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9624 | (exit $ac_status); }; }; then |
| 9625 | ac_cv_search_opendir="none required" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9626 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9627 | echo "$as_me: failed program was:" >&5 |
| 9628 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9629 | |
| 9630 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9631 | rm -f conftest.err conftest.$ac_objext \ |
| 9632 | conftest$ac_exeext conftest.$ac_ext |
| 9633 | if test "$ac_cv_search_opendir" = no; then |
| 9634 | for ac_lib in dir; do |
| 9635 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9636 | cat >conftest.$ac_ext <<_ACEOF |
| 9637 | /* confdefs.h. */ |
| 9638 | _ACEOF |
| 9639 | cat confdefs.h >>conftest.$ac_ext |
| 9640 | cat >>conftest.$ac_ext <<_ACEOF |
| 9641 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9642 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9643 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9644 | #ifdef __cplusplus |
| 9645 | extern "C" |
| 9646 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9647 | /* 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] | 9648 | builtin and then its argument prototype would still apply. */ |
| 9649 | char opendir (); |
| 9650 | int |
| 9651 | main () |
| 9652 | { |
| 9653 | opendir (); |
| 9654 | ; |
| 9655 | return 0; |
| 9656 | } |
| 9657 | _ACEOF |
| 9658 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9660 | (eval $ac_link) 2>conftest.er1 |
| 9661 | ac_status=$? |
| 9662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9663 | rm -f conftest.er1 |
| 9664 | cat conftest.err >&5 |
| 9665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9666 | (exit $ac_status); } && |
| 9667 | { ac_try='test -z "$ac_c_werror_flag" |
| 9668 | || test ! -s conftest.err' |
| 9669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9670 | (eval $ac_try) 2>&5 |
| 9671 | ac_status=$? |
| 9672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9673 | (exit $ac_status); }; } && |
| 9674 | { ac_try='test -s conftest$ac_exeext' |
| 9675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9676 | (eval $ac_try) 2>&5 |
| 9677 | ac_status=$? |
| 9678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9679 | (exit $ac_status); }; }; then |
| 9680 | ac_cv_search_opendir="-l$ac_lib" |
| 9681 | break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9682 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9683 | echo "$as_me: failed program was:" >&5 |
| 9684 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9685 | |
| 9686 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9687 | rm -f conftest.err conftest.$ac_objext \ |
| 9688 | conftest$ac_exeext conftest.$ac_ext |
| 9689 | done |
| 9690 | fi |
| 9691 | LIBS=$ac_func_search_save_LIBS |
| 9692 | fi |
| 9693 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9694 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 9695 | if test "$ac_cv_search_opendir" != no; then |
| 9696 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 9697 | |
| 9698 | fi |
| 9699 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9700 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9701 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9702 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 9703 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9705 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9706 | ac_func_search_save_LIBS=$LIBS |
| 9707 | ac_cv_search_opendir=no |
| 9708 | cat >conftest.$ac_ext <<_ACEOF |
| 9709 | /* confdefs.h. */ |
| 9710 | _ACEOF |
| 9711 | cat confdefs.h >>conftest.$ac_ext |
| 9712 | cat >>conftest.$ac_ext <<_ACEOF |
| 9713 | /* end confdefs.h. */ |
| 9714 | |
| 9715 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9716 | #ifdef __cplusplus |
| 9717 | extern "C" |
| 9718 | #endif |
| 9719 | /* We use char because int might match the return type of a gcc2 |
| 9720 | builtin and then its argument prototype would still apply. */ |
| 9721 | char opendir (); |
| 9722 | int |
| 9723 | main () |
| 9724 | { |
| 9725 | opendir (); |
| 9726 | ; |
| 9727 | return 0; |
| 9728 | } |
| 9729 | _ACEOF |
| 9730 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9732 | (eval $ac_link) 2>conftest.er1 |
| 9733 | ac_status=$? |
| 9734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9735 | rm -f conftest.er1 |
| 9736 | cat conftest.err >&5 |
| 9737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9738 | (exit $ac_status); } && |
| 9739 | { ac_try='test -z "$ac_c_werror_flag" |
| 9740 | || test ! -s conftest.err' |
| 9741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9742 | (eval $ac_try) 2>&5 |
| 9743 | ac_status=$? |
| 9744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9745 | (exit $ac_status); }; } && |
| 9746 | { ac_try='test -s conftest$ac_exeext' |
| 9747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9748 | (eval $ac_try) 2>&5 |
| 9749 | ac_status=$? |
| 9750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9751 | (exit $ac_status); }; }; then |
| 9752 | ac_cv_search_opendir="none required" |
| 9753 | else |
| 9754 | echo "$as_me: failed program was:" >&5 |
| 9755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9756 | |
| 9757 | fi |
| 9758 | rm -f conftest.err conftest.$ac_objext \ |
| 9759 | conftest$ac_exeext conftest.$ac_ext |
| 9760 | if test "$ac_cv_search_opendir" = no; then |
| 9761 | for ac_lib in x; do |
| 9762 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9763 | cat >conftest.$ac_ext <<_ACEOF |
| 9764 | /* confdefs.h. */ |
| 9765 | _ACEOF |
| 9766 | cat confdefs.h >>conftest.$ac_ext |
| 9767 | cat >>conftest.$ac_ext <<_ACEOF |
| 9768 | /* end confdefs.h. */ |
| 9769 | |
| 9770 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9771 | #ifdef __cplusplus |
| 9772 | extern "C" |
| 9773 | #endif |
| 9774 | /* We use char because int might match the return type of a gcc2 |
| 9775 | builtin and then its argument prototype would still apply. */ |
| 9776 | char opendir (); |
| 9777 | int |
| 9778 | main () |
| 9779 | { |
| 9780 | opendir (); |
| 9781 | ; |
| 9782 | return 0; |
| 9783 | } |
| 9784 | _ACEOF |
| 9785 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9787 | (eval $ac_link) 2>conftest.er1 |
| 9788 | ac_status=$? |
| 9789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9790 | rm -f conftest.er1 |
| 9791 | cat conftest.err >&5 |
| 9792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9793 | (exit $ac_status); } && |
| 9794 | { ac_try='test -z "$ac_c_werror_flag" |
| 9795 | || test ! -s conftest.err' |
| 9796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9797 | (eval $ac_try) 2>&5 |
| 9798 | ac_status=$? |
| 9799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9800 | (exit $ac_status); }; } && |
| 9801 | { ac_try='test -s conftest$ac_exeext' |
| 9802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9803 | (eval $ac_try) 2>&5 |
| 9804 | ac_status=$? |
| 9805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9806 | (exit $ac_status); }; }; then |
| 9807 | ac_cv_search_opendir="-l$ac_lib" |
| 9808 | break |
| 9809 | else |
| 9810 | echo "$as_me: failed program was:" >&5 |
| 9811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9812 | |
| 9813 | fi |
| 9814 | rm -f conftest.err conftest.$ac_objext \ |
| 9815 | conftest$ac_exeext conftest.$ac_ext |
| 9816 | done |
| 9817 | fi |
| 9818 | LIBS=$ac_func_search_save_LIBS |
| 9819 | fi |
| 9820 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9821 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 9822 | if test "$ac_cv_search_opendir" != no; then |
| 9823 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 9824 | |
| 9825 | fi |
| 9826 | |
| 9827 | fi |
| 9828 | |
| 9829 | |
| 9830 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 9831 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 9832 | if test "${ac_cv_header_stdc+set}" = set; then |
| 9833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9834 | else |
| 9835 | cat >conftest.$ac_ext <<_ACEOF |
| 9836 | /* confdefs.h. */ |
| 9837 | _ACEOF |
| 9838 | cat confdefs.h >>conftest.$ac_ext |
| 9839 | cat >>conftest.$ac_ext <<_ACEOF |
| 9840 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9841 | #include <stdlib.h> |
| 9842 | #include <stdarg.h> |
| 9843 | #include <string.h> |
| 9844 | #include <float.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9845 | |
| 9846 | int |
| 9847 | main () |
| 9848 | { |
| 9849 | |
| 9850 | ; |
| 9851 | return 0; |
| 9852 | } |
| 9853 | _ACEOF |
| 9854 | rm -f conftest.$ac_objext |
| 9855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9856 | (eval $ac_compile) 2>conftest.er1 |
| 9857 | ac_status=$? |
| 9858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9859 | rm -f conftest.er1 |
| 9860 | cat conftest.err >&5 |
| 9861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9862 | (exit $ac_status); } && |
| 9863 | { ac_try='test -z "$ac_c_werror_flag" |
| 9864 | || test ! -s conftest.err' |
| 9865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9866 | (eval $ac_try) 2>&5 |
| 9867 | ac_status=$? |
| 9868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9869 | (exit $ac_status); }; } && |
| 9870 | { ac_try='test -s conftest.$ac_objext' |
| 9871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9872 | (eval $ac_try) 2>&5 |
| 9873 | ac_status=$? |
| 9874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9875 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9876 | ac_cv_header_stdc=yes |
| 9877 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9878 | echo "$as_me: failed program was:" >&5 |
| 9879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9880 | |
| 9881 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9882 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9884 | |
| 9885 | if test $ac_cv_header_stdc = yes; then |
| 9886 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9887 | cat >conftest.$ac_ext <<_ACEOF |
| 9888 | /* confdefs.h. */ |
| 9889 | _ACEOF |
| 9890 | cat confdefs.h >>conftest.$ac_ext |
| 9891 | cat >>conftest.$ac_ext <<_ACEOF |
| 9892 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9893 | #include <string.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9894 | |
| 9895 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9896 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9897 | $EGREP "memchr" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9898 | : |
| 9899 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9900 | ac_cv_header_stdc=no |
| 9901 | fi |
| 9902 | rm -f conftest* |
| 9903 | |
| 9904 | fi |
| 9905 | |
| 9906 | if test $ac_cv_header_stdc = yes; then |
| 9907 | # 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] | 9908 | cat >conftest.$ac_ext <<_ACEOF |
| 9909 | /* confdefs.h. */ |
| 9910 | _ACEOF |
| 9911 | cat confdefs.h >>conftest.$ac_ext |
| 9912 | cat >>conftest.$ac_ext <<_ACEOF |
| 9913 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9914 | #include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9915 | |
| 9916 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9917 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9918 | $EGREP "free" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9919 | : |
| 9920 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9921 | ac_cv_header_stdc=no |
| 9922 | fi |
| 9923 | rm -f conftest* |
| 9924 | |
| 9925 | fi |
| 9926 | |
| 9927 | if test $ac_cv_header_stdc = yes; then |
| 9928 | # /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] | 9929 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9930 | : |
| 9931 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9932 | cat >conftest.$ac_ext <<_ACEOF |
| 9933 | /* confdefs.h. */ |
| 9934 | _ACEOF |
| 9935 | cat confdefs.h >>conftest.$ac_ext |
| 9936 | cat >>conftest.$ac_ext <<_ACEOF |
| 9937 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9938 | #include <ctype.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9939 | #if ((' ' & 0x0FF) == 0x020) |
| 9940 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 9941 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 9942 | #else |
| 9943 | # define ISLOWER(c) \ |
| 9944 | (('a' <= (c) && (c) <= 'i') \ |
| 9945 | || ('j' <= (c) && (c) <= 'r') \ |
| 9946 | || ('s' <= (c) && (c) <= 'z')) |
| 9947 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 9948 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9949 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9950 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 9951 | int |
| 9952 | main () |
| 9953 | { |
| 9954 | int i; |
| 9955 | for (i = 0; i < 256; i++) |
| 9956 | if (XOR (islower (i), ISLOWER (i)) |
| 9957 | || toupper (i) != TOUPPER (i)) |
| 9958 | exit(2); |
| 9959 | exit (0); |
| 9960 | } |
| 9961 | _ACEOF |
| 9962 | rm -f conftest$ac_exeext |
| 9963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9964 | (eval $ac_link) 2>&5 |
| 9965 | ac_status=$? |
| 9966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9967 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9969 | (eval $ac_try) 2>&5 |
| 9970 | ac_status=$? |
| 9971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9972 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9973 | : |
| 9974 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9975 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9976 | echo "$as_me: failed program was:" >&5 |
| 9977 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9978 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9979 | ( exit $ac_status ) |
| 9980 | ac_cv_header_stdc=no |
| 9981 | fi |
| 9982 | 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] | 9983 | fi |
| 9984 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9985 | fi |
| 9986 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 9987 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9988 | if test $ac_cv_header_stdc = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9989 | |
| 9990 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9991 | #define STDC_HEADERS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9992 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9993 | |
| 9994 | fi |
| 9995 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9996 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 9997 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 9998 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 9999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10000 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10001 | cat >conftest.$ac_ext <<_ACEOF |
| 10002 | /* confdefs.h. */ |
| 10003 | _ACEOF |
| 10004 | cat confdefs.h >>conftest.$ac_ext |
| 10005 | cat >>conftest.$ac_ext <<_ACEOF |
| 10006 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10007 | #include <sys/types.h> |
| 10008 | #include <sys/wait.h> |
| 10009 | #ifndef WEXITSTATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10010 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10011 | #endif |
| 10012 | #ifndef WIFEXITED |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10013 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10014 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10015 | |
| 10016 | int |
| 10017 | main () |
| 10018 | { |
| 10019 | int s; |
| 10020 | wait (&s); |
| 10021 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 10022 | ; |
| 10023 | return 0; |
| 10024 | } |
| 10025 | _ACEOF |
| 10026 | rm -f conftest.$ac_objext |
| 10027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10028 | (eval $ac_compile) 2>conftest.er1 |
| 10029 | ac_status=$? |
| 10030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10031 | rm -f conftest.er1 |
| 10032 | cat conftest.err >&5 |
| 10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10034 | (exit $ac_status); } && |
| 10035 | { ac_try='test -z "$ac_c_werror_flag" |
| 10036 | || test ! -s conftest.err' |
| 10037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10038 | (eval $ac_try) 2>&5 |
| 10039 | ac_status=$? |
| 10040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10041 | (exit $ac_status); }; } && |
| 10042 | { ac_try='test -s conftest.$ac_objext' |
| 10043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10044 | (eval $ac_try) 2>&5 |
| 10045 | ac_status=$? |
| 10046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10047 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10048 | ac_cv_header_sys_wait_h=yes |
| 10049 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10050 | echo "$as_me: failed program was:" >&5 |
| 10051 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10052 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10053 | ac_cv_header_sys_wait_h=no |
| 10054 | fi |
| 10055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10056 | fi |
| 10057 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 10058 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10059 | if test $ac_cv_header_sys_wait_h = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10060 | |
| 10061 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10062 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10063 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10064 | |
| 10065 | fi |
| 10066 | |
| 10067 | |
| 10068 | if test $ac_cv_header_sys_wait_h = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10069 | echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
| 10070 | echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6 |
| 10071 | cat >conftest.$ac_ext <<_ACEOF |
| 10072 | /* confdefs.h. */ |
| 10073 | _ACEOF |
| 10074 | cat confdefs.h >>conftest.$ac_ext |
| 10075 | cat >>conftest.$ac_ext <<_ACEOF |
| 10076 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10077 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10078 | int |
| 10079 | main () |
| 10080 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10081 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10082 | ; |
| 10083 | return 0; |
| 10084 | } |
| 10085 | _ACEOF |
| 10086 | rm -f conftest.$ac_objext |
| 10087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10088 | (eval $ac_compile) 2>conftest.er1 |
| 10089 | ac_status=$? |
| 10090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10091 | rm -f conftest.er1 |
| 10092 | cat conftest.err >&5 |
| 10093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10094 | (exit $ac_status); } && |
| 10095 | { ac_try='test -z "$ac_c_werror_flag" |
| 10096 | || test ! -s conftest.err' |
| 10097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10098 | (eval $ac_try) 2>&5 |
| 10099 | ac_status=$? |
| 10100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10101 | (exit $ac_status); }; } && |
| 10102 | { ac_try='test -s conftest.$ac_objext' |
| 10103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10104 | (eval $ac_try) 2>&5 |
| 10105 | ac_status=$? |
| 10106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10107 | (exit $ac_status); }; }; then |
| 10108 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10109 | echo "${ECHO_T}yes" >&6 |
| 10110 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10111 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10112 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10113 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10114 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10115 | #define HAVE_UNION_WAIT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10116 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10117 | |
| 10118 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10119 | echo "$as_me: failed program was:" >&5 |
| 10120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10121 | |
| 10122 | echo "$as_me:$LINENO: result: no" >&5 |
| 10123 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10124 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10126 | fi |
| 10127 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10128 | |
| 10129 | |
| 10130 | |
| 10131 | |
| 10132 | |
| 10133 | |
| 10134 | |
| 10135 | |
| 10136 | |
| 10137 | |
| 10138 | |
| 10139 | |
| 10140 | |
| 10141 | |
| 10142 | |
| 10143 | |
| 10144 | |
| 10145 | |
| 10146 | |
| 10147 | |
| 10148 | |
| 10149 | |
| 10150 | |
| 10151 | |
| 10152 | |
| 10153 | |
| 10154 | |
| 10155 | |
| 10156 | |
| 10157 | |
| 10158 | |
| 10159 | |
| 10160 | |
| 10161 | |
| 10162 | |
| 10163 | |
| 10164 | |
| 10165 | |
| 10166 | |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10167 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10168 | 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] | 10169 | termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \ |
| 10170 | iconv.h langinfo.h unistd.h stropts.h errno.h \ |
| 10171 | sys/resource.h sys/systeminfo.h locale.h \ |
| 10172 | sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ |
| 10173 | 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] | 10174 | libgen.h util/debug.h util/msg18n.h frame.h \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10175 | 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] | 10176 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10177 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10178 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10179 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10180 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10181 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10183 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10184 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10185 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10186 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10187 | # Is the header compilable? |
| 10188 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10189 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10190 | cat >conftest.$ac_ext <<_ACEOF |
| 10191 | /* confdefs.h. */ |
| 10192 | _ACEOF |
| 10193 | cat confdefs.h >>conftest.$ac_ext |
| 10194 | cat >>conftest.$ac_ext <<_ACEOF |
| 10195 | /* end confdefs.h. */ |
| 10196 | $ac_includes_default |
| 10197 | #include <$ac_header> |
| 10198 | _ACEOF |
| 10199 | rm -f conftest.$ac_objext |
| 10200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10201 | (eval $ac_compile) 2>conftest.er1 |
| 10202 | ac_status=$? |
| 10203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10204 | rm -f conftest.er1 |
| 10205 | cat conftest.err >&5 |
| 10206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10207 | (exit $ac_status); } && |
| 10208 | { ac_try='test -z "$ac_c_werror_flag" |
| 10209 | || test ! -s conftest.err' |
| 10210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10211 | (eval $ac_try) 2>&5 |
| 10212 | ac_status=$? |
| 10213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10214 | (exit $ac_status); }; } && |
| 10215 | { ac_try='test -s conftest.$ac_objext' |
| 10216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10217 | (eval $ac_try) 2>&5 |
| 10218 | ac_status=$? |
| 10219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10220 | (exit $ac_status); }; }; then |
| 10221 | ac_header_compiler=yes |
| 10222 | else |
| 10223 | echo "$as_me: failed program was:" >&5 |
| 10224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10225 | |
| 10226 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10227 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10229 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10230 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10231 | |
| 10232 | # Is the header present? |
| 10233 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10234 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10235 | cat >conftest.$ac_ext <<_ACEOF |
| 10236 | /* confdefs.h. */ |
| 10237 | _ACEOF |
| 10238 | cat confdefs.h >>conftest.$ac_ext |
| 10239 | cat >>conftest.$ac_ext <<_ACEOF |
| 10240 | /* end confdefs.h. */ |
| 10241 | #include <$ac_header> |
| 10242 | _ACEOF |
| 10243 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10244 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10245 | ac_status=$? |
| 10246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10247 | rm -f conftest.er1 |
| 10248 | cat conftest.err >&5 |
| 10249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10250 | (exit $ac_status); } >/dev/null; then |
| 10251 | if test -s conftest.err; then |
| 10252 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10253 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10254 | else |
| 10255 | ac_cpp_err= |
| 10256 | fi |
| 10257 | else |
| 10258 | ac_cpp_err=yes |
| 10259 | fi |
| 10260 | if test -z "$ac_cpp_err"; then |
| 10261 | ac_header_preproc=yes |
| 10262 | else |
| 10263 | echo "$as_me: failed program was:" >&5 |
| 10264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10265 | |
| 10266 | ac_header_preproc=no |
| 10267 | fi |
| 10268 | rm -f conftest.err conftest.$ac_ext |
| 10269 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10270 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10271 | |
| 10272 | # So? What about this header? |
| 10273 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10274 | yes:no: ) |
| 10275 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10276 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10277 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10278 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10279 | ac_header_preproc=yes |
| 10280 | ;; |
| 10281 | no:yes:* ) |
| 10282 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10283 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10284 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10285 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10286 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10287 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10288 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10289 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10291 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10292 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10293 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10294 | ( |
| 10295 | cat <<\_ASBOX |
| 10296 | ## ------------------------------------------ ## |
| 10297 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10298 | ## ------------------------------------------ ## |
| 10299 | _ASBOX |
| 10300 | ) | |
| 10301 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10302 | ;; |
| 10303 | esac |
| 10304 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10306 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10308 | else |
| 10309 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10310 | fi |
| 10311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10312 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10313 | |
| 10314 | fi |
| 10315 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10316 | cat >>confdefs.h <<_ACEOF |
| 10317 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10318 | _ACEOF |
| 10319 | |
| 10320 | fi |
| 10321 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10322 | done |
| 10323 | |
| 10324 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10325 | echo "$as_me:$LINENO: checking for pthread_np.h" >&5 |
| 10326 | echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6 |
| 10327 | cat >conftest.$ac_ext <<_ACEOF |
| 10328 | /* confdefs.h. */ |
| 10329 | _ACEOF |
| 10330 | cat confdefs.h >>conftest.$ac_ext |
| 10331 | cat >>conftest.$ac_ext <<_ACEOF |
| 10332 | /* end confdefs.h. */ |
| 10333 | |
| 10334 | #include <pthread.h> |
| 10335 | #include <pthread_np.h> |
| 10336 | int |
| 10337 | main () |
| 10338 | { |
| 10339 | int i; i = 0; |
| 10340 | ; |
| 10341 | return 0; |
| 10342 | } |
| 10343 | _ACEOF |
| 10344 | rm -f conftest.$ac_objext |
| 10345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10346 | (eval $ac_compile) 2>conftest.er1 |
| 10347 | ac_status=$? |
| 10348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10349 | rm -f conftest.er1 |
| 10350 | cat conftest.err >&5 |
| 10351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10352 | (exit $ac_status); } && |
| 10353 | { ac_try='test -z "$ac_c_werror_flag" |
| 10354 | || test ! -s conftest.err' |
| 10355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10356 | (eval $ac_try) 2>&5 |
| 10357 | ac_status=$? |
| 10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10359 | (exit $ac_status); }; } && |
| 10360 | { ac_try='test -s conftest.$ac_objext' |
| 10361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10362 | (eval $ac_try) 2>&5 |
| 10363 | ac_status=$? |
| 10364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10365 | (exit $ac_status); }; }; then |
| 10366 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10367 | echo "${ECHO_T}yes" >&6 |
| 10368 | cat >>confdefs.h <<\_ACEOF |
| 10369 | #define HAVE_PTHREAD_NP_H 1 |
| 10370 | _ACEOF |
| 10371 | |
| 10372 | else |
| 10373 | echo "$as_me: failed program was:" >&5 |
| 10374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10375 | |
| 10376 | echo "$as_me:$LINENO: result: no" >&5 |
| 10377 | echo "${ECHO_T}no" >&6 |
| 10378 | fi |
| 10379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10380 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10381 | |
| 10382 | for ac_header in strings.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10383 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10384 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10385 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10386 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10387 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10388 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10390 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10392 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10393 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10394 | # Is the header compilable? |
| 10395 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10396 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10397 | cat >conftest.$ac_ext <<_ACEOF |
| 10398 | /* confdefs.h. */ |
| 10399 | _ACEOF |
| 10400 | cat confdefs.h >>conftest.$ac_ext |
| 10401 | cat >>conftest.$ac_ext <<_ACEOF |
| 10402 | /* end confdefs.h. */ |
| 10403 | $ac_includes_default |
| 10404 | #include <$ac_header> |
| 10405 | _ACEOF |
| 10406 | rm -f conftest.$ac_objext |
| 10407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10408 | (eval $ac_compile) 2>conftest.er1 |
| 10409 | ac_status=$? |
| 10410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10411 | rm -f conftest.er1 |
| 10412 | cat conftest.err >&5 |
| 10413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10414 | (exit $ac_status); } && |
| 10415 | { ac_try='test -z "$ac_c_werror_flag" |
| 10416 | || test ! -s conftest.err' |
| 10417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10418 | (eval $ac_try) 2>&5 |
| 10419 | ac_status=$? |
| 10420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10421 | (exit $ac_status); }; } && |
| 10422 | { ac_try='test -s conftest.$ac_objext' |
| 10423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10424 | (eval $ac_try) 2>&5 |
| 10425 | ac_status=$? |
| 10426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10427 | (exit $ac_status); }; }; then |
| 10428 | ac_header_compiler=yes |
| 10429 | else |
| 10430 | echo "$as_me: failed program was:" >&5 |
| 10431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10432 | |
| 10433 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10434 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10436 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10437 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10438 | |
| 10439 | # Is the header present? |
| 10440 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10441 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10442 | cat >conftest.$ac_ext <<_ACEOF |
| 10443 | /* confdefs.h. */ |
| 10444 | _ACEOF |
| 10445 | cat confdefs.h >>conftest.$ac_ext |
| 10446 | cat >>conftest.$ac_ext <<_ACEOF |
| 10447 | /* end confdefs.h. */ |
| 10448 | #include <$ac_header> |
| 10449 | _ACEOF |
| 10450 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10451 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10452 | ac_status=$? |
| 10453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10454 | rm -f conftest.er1 |
| 10455 | cat conftest.err >&5 |
| 10456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10457 | (exit $ac_status); } >/dev/null; then |
| 10458 | if test -s conftest.err; then |
| 10459 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10460 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10461 | else |
| 10462 | ac_cpp_err= |
| 10463 | fi |
| 10464 | else |
| 10465 | ac_cpp_err=yes |
| 10466 | fi |
| 10467 | if test -z "$ac_cpp_err"; then |
| 10468 | ac_header_preproc=yes |
| 10469 | else |
| 10470 | echo "$as_me: failed program was:" >&5 |
| 10471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10472 | |
| 10473 | ac_header_preproc=no |
| 10474 | fi |
| 10475 | rm -f conftest.err conftest.$ac_ext |
| 10476 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10477 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10478 | |
| 10479 | # So? What about this header? |
| 10480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10481 | yes:no: ) |
| 10482 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10483 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10485 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10486 | ac_header_preproc=yes |
| 10487 | ;; |
| 10488 | no:yes:* ) |
| 10489 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10490 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10491 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10492 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10493 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10494 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10495 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10496 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10498 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10499 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10500 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10501 | ( |
| 10502 | cat <<\_ASBOX |
| 10503 | ## ------------------------------------------ ## |
| 10504 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10505 | ## ------------------------------------------ ## |
| 10506 | _ASBOX |
| 10507 | ) | |
| 10508 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10509 | ;; |
| 10510 | esac |
| 10511 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10515 | else |
| 10516 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10517 | fi |
| 10518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10519 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10520 | |
| 10521 | fi |
| 10522 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10523 | cat >>confdefs.h <<_ACEOF |
| 10524 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10525 | _ACEOF |
| 10526 | |
| 10527 | fi |
| 10528 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10529 | done |
| 10530 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 10531 | if test "x$MACOSX" = "xyes"; then |
| 10532 | cat >>confdefs.h <<\_ACEOF |
| 10533 | #define NO_STRINGS_WITH_STRING_H 1 |
| 10534 | _ACEOF |
| 10535 | |
| 10536 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10537 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10538 | echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
| 10539 | 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] | 10540 | cppflags_save=$CPPFLAGS |
| 10541 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10542 | cat >conftest.$ac_ext <<_ACEOF |
| 10543 | /* confdefs.h. */ |
| 10544 | _ACEOF |
| 10545 | cat confdefs.h >>conftest.$ac_ext |
| 10546 | cat >>conftest.$ac_ext <<_ACEOF |
| 10547 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10548 | |
| 10549 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 10550 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 10551 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 10552 | #endif |
| 10553 | #ifdef HAVE_XM_XM_H |
| 10554 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 10555 | #endif |
| 10556 | #ifdef HAVE_STRING_H |
| 10557 | # include <string.h> |
| 10558 | #endif |
| 10559 | #if defined(HAVE_STRINGS_H) |
| 10560 | # include <strings.h> |
| 10561 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10562 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10563 | int |
| 10564 | main () |
| 10565 | { |
| 10566 | int i; i = 0; |
| 10567 | ; |
| 10568 | return 0; |
| 10569 | } |
| 10570 | _ACEOF |
| 10571 | rm -f conftest.$ac_objext |
| 10572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10573 | (eval $ac_compile) 2>conftest.er1 |
| 10574 | ac_status=$? |
| 10575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10576 | rm -f conftest.er1 |
| 10577 | cat conftest.err >&5 |
| 10578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10579 | (exit $ac_status); } && |
| 10580 | { ac_try='test -z "$ac_c_werror_flag" |
| 10581 | || test ! -s conftest.err' |
| 10582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10583 | (eval $ac_try) 2>&5 |
| 10584 | ac_status=$? |
| 10585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10586 | (exit $ac_status); }; } && |
| 10587 | { ac_try='test -s conftest.$ac_objext' |
| 10588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10589 | (eval $ac_try) 2>&5 |
| 10590 | ac_status=$? |
| 10591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10592 | (exit $ac_status); }; }; then |
| 10593 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10594 | echo "${ECHO_T}yes" >&6 |
| 10595 | else |
| 10596 | echo "$as_me: failed program was:" >&5 |
| 10597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10598 | |
| 10599 | cat >>confdefs.h <<\_ACEOF |
| 10600 | #define NO_STRINGS_WITH_STRING_H 1 |
| 10601 | _ACEOF |
| 10602 | |
| 10603 | echo "$as_me:$LINENO: result: no" >&5 |
| 10604 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10605 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10607 | CPPFLAGS=$cppflags_save |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 10608 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10609 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10610 | if test $ac_cv_c_compiler_gnu = yes; then |
| 10611 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 10612 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
| 10613 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 10614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10615 | else |
| 10616 | ac_pattern="Autoconf.*'x'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10617 | cat >conftest.$ac_ext <<_ACEOF |
| 10618 | /* confdefs.h. */ |
| 10619 | _ACEOF |
| 10620 | cat confdefs.h >>conftest.$ac_ext |
| 10621 | cat >>conftest.$ac_ext <<_ACEOF |
| 10622 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10623 | #include <sgtty.h> |
| 10624 | Autoconf TIOCGETP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10625 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10626 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10627 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10628 | ac_cv_prog_gcc_traditional=yes |
| 10629 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10630 | ac_cv_prog_gcc_traditional=no |
| 10631 | fi |
| 10632 | rm -f conftest* |
| 10633 | |
| 10634 | |
| 10635 | if test $ac_cv_prog_gcc_traditional = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10636 | cat >conftest.$ac_ext <<_ACEOF |
| 10637 | /* confdefs.h. */ |
| 10638 | _ACEOF |
| 10639 | cat confdefs.h >>conftest.$ac_ext |
| 10640 | cat >>conftest.$ac_ext <<_ACEOF |
| 10641 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10642 | #include <termio.h> |
| 10643 | Autoconf TCGETA |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10644 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10645 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10646 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10647 | ac_cv_prog_gcc_traditional=yes |
| 10648 | fi |
| 10649 | rm -f conftest* |
| 10650 | |
| 10651 | fi |
| 10652 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10653 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 10654 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10655 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 10656 | CC="$CC -traditional" |
| 10657 | fi |
| 10658 | fi |
| 10659 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10660 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 10661 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 10662 | if test "${ac_cv_c_const+set}" = set; then |
| 10663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10664 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10665 | cat >conftest.$ac_ext <<_ACEOF |
| 10666 | /* confdefs.h. */ |
| 10667 | _ACEOF |
| 10668 | cat confdefs.h >>conftest.$ac_ext |
| 10669 | cat >>conftest.$ac_ext <<_ACEOF |
| 10670 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10671 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10672 | int |
| 10673 | main () |
| 10674 | { |
| 10675 | /* FIXME: Include the comments suggested by Paul. */ |
| 10676 | #ifndef __cplusplus |
| 10677 | /* Ultrix mips cc rejects this. */ |
| 10678 | typedef int charset[2]; |
| 10679 | const charset x; |
| 10680 | /* SunOS 4.1.1 cc rejects this. */ |
| 10681 | char const *const *ccp; |
| 10682 | char **p; |
| 10683 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 10684 | struct point {int x, y;}; |
| 10685 | static struct point const zero = {0,0}; |
| 10686 | /* AIX XL C 1.02.0.0 rejects this. |
| 10687 | It does not let you subtract one const X* pointer from another in |
| 10688 | an arm of an if-expression whose if-part is not a constant |
| 10689 | expression */ |
| 10690 | const char *g = "string"; |
| 10691 | ccp = &g + (g ? g-g : 0); |
| 10692 | /* HPUX 7.0 cc rejects these. */ |
| 10693 | ++ccp; |
| 10694 | p = (char**) ccp; |
| 10695 | ccp = (char const *const *) p; |
| 10696 | { /* SCO 3.2v4 cc rejects this. */ |
| 10697 | char *t; |
| 10698 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10699 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10700 | *t++ = 0; |
| 10701 | } |
| 10702 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 10703 | int x[] = {25, 17}; |
| 10704 | const int *foo = &x[0]; |
| 10705 | ++foo; |
| 10706 | } |
| 10707 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 10708 | typedef const int *iptr; |
| 10709 | iptr p = 0; |
| 10710 | ++p; |
| 10711 | } |
| 10712 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 10713 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 10714 | struct s { int j; const int *ap[3]; }; |
| 10715 | struct s *b; b->j = 5; |
| 10716 | } |
| 10717 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 10718 | const int foo = 10; |
| 10719 | } |
| 10720 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10721 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10722 | ; |
| 10723 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10724 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10725 | _ACEOF |
| 10726 | rm -f conftest.$ac_objext |
| 10727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10728 | (eval $ac_compile) 2>conftest.er1 |
| 10729 | ac_status=$? |
| 10730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10731 | rm -f conftest.er1 |
| 10732 | cat conftest.err >&5 |
| 10733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10734 | (exit $ac_status); } && |
| 10735 | { ac_try='test -z "$ac_c_werror_flag" |
| 10736 | || test ! -s conftest.err' |
| 10737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10738 | (eval $ac_try) 2>&5 |
| 10739 | ac_status=$? |
| 10740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10741 | (exit $ac_status); }; } && |
| 10742 | { ac_try='test -s conftest.$ac_objext' |
| 10743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10744 | (eval $ac_try) 2>&5 |
| 10745 | ac_status=$? |
| 10746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10747 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10748 | ac_cv_c_const=yes |
| 10749 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10750 | echo "$as_me: failed program was:" >&5 |
| 10751 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10752 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10753 | ac_cv_c_const=no |
| 10754 | fi |
| 10755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10756 | fi |
| 10757 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 10758 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10759 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10760 | |
| 10761 | cat >>confdefs.h <<\_ACEOF |
| 10762 | #define const |
| 10763 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10764 | |
| 10765 | fi |
| 10766 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10767 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 10768 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 10769 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 10770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10771 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10772 | cat >conftest.$ac_ext <<_ACEOF |
| 10773 | /* confdefs.h. */ |
| 10774 | _ACEOF |
| 10775 | cat confdefs.h >>conftest.$ac_ext |
| 10776 | cat >>conftest.$ac_ext <<_ACEOF |
| 10777 | /* end confdefs.h. */ |
| 10778 | $ac_includes_default |
| 10779 | int |
| 10780 | main () |
| 10781 | { |
| 10782 | if ((mode_t *) 0) |
| 10783 | return 0; |
| 10784 | if (sizeof (mode_t)) |
| 10785 | return 0; |
| 10786 | ; |
| 10787 | return 0; |
| 10788 | } |
| 10789 | _ACEOF |
| 10790 | rm -f conftest.$ac_objext |
| 10791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10792 | (eval $ac_compile) 2>conftest.er1 |
| 10793 | ac_status=$? |
| 10794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10795 | rm -f conftest.er1 |
| 10796 | cat conftest.err >&5 |
| 10797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10798 | (exit $ac_status); } && |
| 10799 | { ac_try='test -z "$ac_c_werror_flag" |
| 10800 | || test ! -s conftest.err' |
| 10801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10802 | (eval $ac_try) 2>&5 |
| 10803 | ac_status=$? |
| 10804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10805 | (exit $ac_status); }; } && |
| 10806 | { ac_try='test -s conftest.$ac_objext' |
| 10807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10808 | (eval $ac_try) 2>&5 |
| 10809 | ac_status=$? |
| 10810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10811 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10812 | ac_cv_type_mode_t=yes |
| 10813 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10814 | echo "$as_me: failed program was:" >&5 |
| 10815 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10816 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10817 | ac_cv_type_mode_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10818 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10820 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10821 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 10822 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 10823 | if test $ac_cv_type_mode_t = yes; then |
| 10824 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10825 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10826 | |
| 10827 | cat >>confdefs.h <<_ACEOF |
| 10828 | #define mode_t int |
| 10829 | _ACEOF |
| 10830 | |
| 10831 | fi |
| 10832 | |
| 10833 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 10834 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 10835 | if test "${ac_cv_type_off_t+set}" = set; then |
| 10836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10837 | else |
| 10838 | cat >conftest.$ac_ext <<_ACEOF |
| 10839 | /* confdefs.h. */ |
| 10840 | _ACEOF |
| 10841 | cat confdefs.h >>conftest.$ac_ext |
| 10842 | cat >>conftest.$ac_ext <<_ACEOF |
| 10843 | /* end confdefs.h. */ |
| 10844 | $ac_includes_default |
| 10845 | int |
| 10846 | main () |
| 10847 | { |
| 10848 | if ((off_t *) 0) |
| 10849 | return 0; |
| 10850 | if (sizeof (off_t)) |
| 10851 | return 0; |
| 10852 | ; |
| 10853 | return 0; |
| 10854 | } |
| 10855 | _ACEOF |
| 10856 | rm -f conftest.$ac_objext |
| 10857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10858 | (eval $ac_compile) 2>conftest.er1 |
| 10859 | ac_status=$? |
| 10860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10861 | rm -f conftest.er1 |
| 10862 | cat conftest.err >&5 |
| 10863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10864 | (exit $ac_status); } && |
| 10865 | { ac_try='test -z "$ac_c_werror_flag" |
| 10866 | || test ! -s conftest.err' |
| 10867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10868 | (eval $ac_try) 2>&5 |
| 10869 | ac_status=$? |
| 10870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10871 | (exit $ac_status); }; } && |
| 10872 | { ac_try='test -s conftest.$ac_objext' |
| 10873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10874 | (eval $ac_try) 2>&5 |
| 10875 | ac_status=$? |
| 10876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10877 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10878 | ac_cv_type_off_t=yes |
| 10879 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10880 | echo "$as_me: failed program was:" >&5 |
| 10881 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10882 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10883 | ac_cv_type_off_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10884 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10886 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10887 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 10888 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 10889 | if test $ac_cv_type_off_t = yes; then |
| 10890 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10891 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10892 | |
| 10893 | cat >>confdefs.h <<_ACEOF |
| 10894 | #define off_t long |
| 10895 | _ACEOF |
| 10896 | |
| 10897 | fi |
| 10898 | |
| 10899 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10900 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 10901 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10903 | else |
| 10904 | cat >conftest.$ac_ext <<_ACEOF |
| 10905 | /* confdefs.h. */ |
| 10906 | _ACEOF |
| 10907 | cat confdefs.h >>conftest.$ac_ext |
| 10908 | cat >>conftest.$ac_ext <<_ACEOF |
| 10909 | /* end confdefs.h. */ |
| 10910 | $ac_includes_default |
| 10911 | int |
| 10912 | main () |
| 10913 | { |
| 10914 | if ((pid_t *) 0) |
| 10915 | return 0; |
| 10916 | if (sizeof (pid_t)) |
| 10917 | return 0; |
| 10918 | ; |
| 10919 | return 0; |
| 10920 | } |
| 10921 | _ACEOF |
| 10922 | rm -f conftest.$ac_objext |
| 10923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10924 | (eval $ac_compile) 2>conftest.er1 |
| 10925 | ac_status=$? |
| 10926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10927 | rm -f conftest.er1 |
| 10928 | cat conftest.err >&5 |
| 10929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10930 | (exit $ac_status); } && |
| 10931 | { ac_try='test -z "$ac_c_werror_flag" |
| 10932 | || test ! -s conftest.err' |
| 10933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10934 | (eval $ac_try) 2>&5 |
| 10935 | ac_status=$? |
| 10936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10937 | (exit $ac_status); }; } && |
| 10938 | { ac_try='test -s conftest.$ac_objext' |
| 10939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10940 | (eval $ac_try) 2>&5 |
| 10941 | ac_status=$? |
| 10942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10943 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10944 | ac_cv_type_pid_t=yes |
| 10945 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10946 | echo "$as_me: failed program was:" >&5 |
| 10947 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10948 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10949 | ac_cv_type_pid_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10950 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10952 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10953 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10954 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 10955 | if test $ac_cv_type_pid_t = yes; then |
| 10956 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10957 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10958 | |
| 10959 | cat >>confdefs.h <<_ACEOF |
| 10960 | #define pid_t int |
| 10961 | _ACEOF |
| 10962 | |
| 10963 | fi |
| 10964 | |
| 10965 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10966 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 10967 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10969 | else |
| 10970 | cat >conftest.$ac_ext <<_ACEOF |
| 10971 | /* confdefs.h. */ |
| 10972 | _ACEOF |
| 10973 | cat confdefs.h >>conftest.$ac_ext |
| 10974 | cat >>conftest.$ac_ext <<_ACEOF |
| 10975 | /* end confdefs.h. */ |
| 10976 | $ac_includes_default |
| 10977 | int |
| 10978 | main () |
| 10979 | { |
| 10980 | if ((size_t *) 0) |
| 10981 | return 0; |
| 10982 | if (sizeof (size_t)) |
| 10983 | return 0; |
| 10984 | ; |
| 10985 | return 0; |
| 10986 | } |
| 10987 | _ACEOF |
| 10988 | rm -f conftest.$ac_objext |
| 10989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10990 | (eval $ac_compile) 2>conftest.er1 |
| 10991 | ac_status=$? |
| 10992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10993 | rm -f conftest.er1 |
| 10994 | cat conftest.err >&5 |
| 10995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10996 | (exit $ac_status); } && |
| 10997 | { ac_try='test -z "$ac_c_werror_flag" |
| 10998 | || test ! -s conftest.err' |
| 10999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11000 | (eval $ac_try) 2>&5 |
| 11001 | ac_status=$? |
| 11002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11003 | (exit $ac_status); }; } && |
| 11004 | { ac_try='test -s conftest.$ac_objext' |
| 11005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11006 | (eval $ac_try) 2>&5 |
| 11007 | ac_status=$? |
| 11008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11009 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11010 | ac_cv_type_size_t=yes |
| 11011 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11012 | echo "$as_me: failed program was:" >&5 |
| 11013 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11014 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11015 | ac_cv_type_size_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11016 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11018 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11019 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 11020 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 11021 | if test $ac_cv_type_size_t = yes; then |
| 11022 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11023 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11024 | |
| 11025 | cat >>confdefs.h <<_ACEOF |
| 11026 | #define size_t unsigned |
| 11027 | _ACEOF |
| 11028 | |
| 11029 | fi |
| 11030 | |
| 11031 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 11032 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 11033 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 11034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11035 | else |
| 11036 | cat >conftest.$ac_ext <<_ACEOF |
| 11037 | /* confdefs.h. */ |
| 11038 | _ACEOF |
| 11039 | cat confdefs.h >>conftest.$ac_ext |
| 11040 | cat >>conftest.$ac_ext <<_ACEOF |
| 11041 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11042 | #include <sys/types.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11043 | |
| 11044 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11045 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11046 | $EGREP "uid_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11047 | ac_cv_type_uid_t=yes |
| 11048 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11049 | ac_cv_type_uid_t=no |
| 11050 | fi |
| 11051 | rm -f conftest* |
| 11052 | |
| 11053 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11054 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 11055 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11056 | if test $ac_cv_type_uid_t = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11057 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11058 | cat >>confdefs.h <<\_ACEOF |
| 11059 | #define uid_t int |
| 11060 | _ACEOF |
| 11061 | |
| 11062 | |
| 11063 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11064 | #define gid_t int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11065 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11066 | |
| 11067 | fi |
| 11068 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11069 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 11070 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 11071 | if test "${ac_cv_header_time+set}" = set; then |
| 11072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11073 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11074 | cat >conftest.$ac_ext <<_ACEOF |
| 11075 | /* confdefs.h. */ |
| 11076 | _ACEOF |
| 11077 | cat confdefs.h >>conftest.$ac_ext |
| 11078 | cat >>conftest.$ac_ext <<_ACEOF |
| 11079 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11080 | #include <sys/types.h> |
| 11081 | #include <sys/time.h> |
| 11082 | #include <time.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11083 | |
| 11084 | int |
| 11085 | main () |
| 11086 | { |
| 11087 | if ((struct tm *) 0) |
| 11088 | return 0; |
| 11089 | ; |
| 11090 | return 0; |
| 11091 | } |
| 11092 | _ACEOF |
| 11093 | rm -f conftest.$ac_objext |
| 11094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11095 | (eval $ac_compile) 2>conftest.er1 |
| 11096 | ac_status=$? |
| 11097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11098 | rm -f conftest.er1 |
| 11099 | cat conftest.err >&5 |
| 11100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11101 | (exit $ac_status); } && |
| 11102 | { ac_try='test -z "$ac_c_werror_flag" |
| 11103 | || test ! -s conftest.err' |
| 11104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11105 | (eval $ac_try) 2>&5 |
| 11106 | ac_status=$? |
| 11107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11108 | (exit $ac_status); }; } && |
| 11109 | { ac_try='test -s conftest.$ac_objext' |
| 11110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11111 | (eval $ac_try) 2>&5 |
| 11112 | ac_status=$? |
| 11113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11114 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11115 | ac_cv_header_time=yes |
| 11116 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11117 | echo "$as_me: failed program was:" >&5 |
| 11118 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11119 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11120 | ac_cv_header_time=no |
| 11121 | fi |
| 11122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11123 | fi |
| 11124 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 11125 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11126 | if test $ac_cv_header_time = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11127 | |
| 11128 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11129 | #define TIME_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11130 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11131 | |
| 11132 | fi |
| 11133 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11134 | echo "$as_me:$LINENO: checking for ino_t" >&5 |
| 11135 | echo $ECHO_N "checking for ino_t... $ECHO_C" >&6 |
| 11136 | if test "${ac_cv_type_ino_t+set}" = set; then |
| 11137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11138 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11139 | cat >conftest.$ac_ext <<_ACEOF |
| 11140 | /* confdefs.h. */ |
| 11141 | _ACEOF |
| 11142 | cat confdefs.h >>conftest.$ac_ext |
| 11143 | cat >>conftest.$ac_ext <<_ACEOF |
| 11144 | /* end confdefs.h. */ |
| 11145 | $ac_includes_default |
| 11146 | int |
| 11147 | main () |
| 11148 | { |
| 11149 | if ((ino_t *) 0) |
| 11150 | return 0; |
| 11151 | if (sizeof (ino_t)) |
| 11152 | return 0; |
| 11153 | ; |
| 11154 | return 0; |
| 11155 | } |
| 11156 | _ACEOF |
| 11157 | rm -f conftest.$ac_objext |
| 11158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11159 | (eval $ac_compile) 2>conftest.er1 |
| 11160 | ac_status=$? |
| 11161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11162 | rm -f conftest.er1 |
| 11163 | cat conftest.err >&5 |
| 11164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11165 | (exit $ac_status); } && |
| 11166 | { ac_try='test -z "$ac_c_werror_flag" |
| 11167 | || test ! -s conftest.err' |
| 11168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11169 | (eval $ac_try) 2>&5 |
| 11170 | ac_status=$? |
| 11171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11172 | (exit $ac_status); }; } && |
| 11173 | { ac_try='test -s conftest.$ac_objext' |
| 11174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11175 | (eval $ac_try) 2>&5 |
| 11176 | ac_status=$? |
| 11177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11178 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11179 | ac_cv_type_ino_t=yes |
| 11180 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11181 | echo "$as_me: failed program was:" >&5 |
| 11182 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11183 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11184 | ac_cv_type_ino_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11185 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11187 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11188 | echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
| 11189 | echo "${ECHO_T}$ac_cv_type_ino_t" >&6 |
| 11190 | if test $ac_cv_type_ino_t = yes; then |
| 11191 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11192 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11193 | |
| 11194 | cat >>confdefs.h <<_ACEOF |
| 11195 | #define ino_t long |
| 11196 | _ACEOF |
| 11197 | |
| 11198 | fi |
| 11199 | |
| 11200 | echo "$as_me:$LINENO: checking for dev_t" >&5 |
| 11201 | echo $ECHO_N "checking for dev_t... $ECHO_C" >&6 |
| 11202 | if test "${ac_cv_type_dev_t+set}" = set; then |
| 11203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11204 | else |
| 11205 | cat >conftest.$ac_ext <<_ACEOF |
| 11206 | /* confdefs.h. */ |
| 11207 | _ACEOF |
| 11208 | cat confdefs.h >>conftest.$ac_ext |
| 11209 | cat >>conftest.$ac_ext <<_ACEOF |
| 11210 | /* end confdefs.h. */ |
| 11211 | $ac_includes_default |
| 11212 | int |
| 11213 | main () |
| 11214 | { |
| 11215 | if ((dev_t *) 0) |
| 11216 | return 0; |
| 11217 | if (sizeof (dev_t)) |
| 11218 | return 0; |
| 11219 | ; |
| 11220 | return 0; |
| 11221 | } |
| 11222 | _ACEOF |
| 11223 | rm -f conftest.$ac_objext |
| 11224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11225 | (eval $ac_compile) 2>conftest.er1 |
| 11226 | ac_status=$? |
| 11227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11228 | rm -f conftest.er1 |
| 11229 | cat conftest.err >&5 |
| 11230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11231 | (exit $ac_status); } && |
| 11232 | { ac_try='test -z "$ac_c_werror_flag" |
| 11233 | || test ! -s conftest.err' |
| 11234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11235 | (eval $ac_try) 2>&5 |
| 11236 | ac_status=$? |
| 11237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11238 | (exit $ac_status); }; } && |
| 11239 | { ac_try='test -s conftest.$ac_objext' |
| 11240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11241 | (eval $ac_try) 2>&5 |
| 11242 | ac_status=$? |
| 11243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11244 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11245 | ac_cv_type_dev_t=yes |
| 11246 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11247 | echo "$as_me: failed program was:" >&5 |
| 11248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11249 | |
| 11250 | ac_cv_type_dev_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11251 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11253 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11254 | echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
| 11255 | echo "${ECHO_T}$ac_cv_type_dev_t" >&6 |
| 11256 | if test $ac_cv_type_dev_t = yes; then |
| 11257 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11258 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11259 | |
| 11260 | cat >>confdefs.h <<_ACEOF |
| 11261 | #define dev_t unsigned |
| 11262 | _ACEOF |
| 11263 | |
| 11264 | fi |
| 11265 | |
| 11266 | |
| 11267 | echo "$as_me:$LINENO: checking for rlim_t" >&5 |
| 11268 | echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6 |
| 11269 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
| 11270 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 11271 | echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6 |
| 11272 | else |
| 11273 | cat >conftest.$ac_ext <<_ACEOF |
| 11274 | /* confdefs.h. */ |
| 11275 | _ACEOF |
| 11276 | cat confdefs.h >>conftest.$ac_ext |
| 11277 | cat >>conftest.$ac_ext <<_ACEOF |
| 11278 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11279 | |
| 11280 | #include <sys/types.h> |
| 11281 | #if STDC_HEADERS |
| 11282 | #include <stdlib.h> |
| 11283 | #include <stddef.h> |
| 11284 | #endif |
| 11285 | #ifdef HAVE_SYS_RESOURCE_H |
| 11286 | #include <sys/resource.h> |
| 11287 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11288 | |
| 11289 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11290 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11291 | $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] | 11292 | ac_cv_type_rlim_t=yes |
| 11293 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11294 | ac_cv_type_rlim_t=no |
| 11295 | fi |
| 11296 | rm -f conftest* |
| 11297 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11298 | echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
| 11299 | echo "${ECHO_T}$ac_cv_type_rlim_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11300 | fi |
| 11301 | if test $ac_cv_type_rlim_t = no; then |
| 11302 | cat >> confdefs.h <<\EOF |
| 11303 | #define rlim_t unsigned long |
| 11304 | EOF |
| 11305 | fi |
| 11306 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11307 | echo "$as_me:$LINENO: checking for stack_t" >&5 |
| 11308 | echo $ECHO_N "checking for stack_t... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11309 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11310 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
| 11311 | echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11312 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11313 | cat >conftest.$ac_ext <<_ACEOF |
| 11314 | /* confdefs.h. */ |
| 11315 | _ACEOF |
| 11316 | cat confdefs.h >>conftest.$ac_ext |
| 11317 | cat >>conftest.$ac_ext <<_ACEOF |
| 11318 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11319 | |
| 11320 | #include <sys/types.h> |
| 11321 | #if STDC_HEADERS |
| 11322 | #include <stdlib.h> |
| 11323 | #include <stddef.h> |
| 11324 | #endif |
| 11325 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11326 | |
| 11327 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11328 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11329 | $EGREP "stack_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11330 | ac_cv_type_stack_t=yes |
| 11331 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11332 | ac_cv_type_stack_t=no |
| 11333 | fi |
| 11334 | rm -f conftest* |
| 11335 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11336 | echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
| 11337 | echo "${ECHO_T}$ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11338 | fi |
| 11339 | if test $ac_cv_type_stack_t = no; then |
| 11340 | cat >> confdefs.h <<\EOF |
| 11341 | #define stack_t struct sigaltstack |
| 11342 | EOF |
| 11343 | fi |
| 11344 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11345 | echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
| 11346 | echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6 |
| 11347 | cat >conftest.$ac_ext <<_ACEOF |
| 11348 | /* confdefs.h. */ |
| 11349 | _ACEOF |
| 11350 | cat confdefs.h >>conftest.$ac_ext |
| 11351 | cat >>conftest.$ac_ext <<_ACEOF |
| 11352 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11353 | |
| 11354 | #include <sys/types.h> |
| 11355 | #if STDC_HEADERS |
| 11356 | #include <stdlib.h> |
| 11357 | #include <stddef.h> |
| 11358 | #endif |
| 11359 | #include <signal.h> |
| 11360 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11361 | |
| 11362 | int |
| 11363 | main () |
| 11364 | { |
| 11365 | stack_t sigstk; sigstk.ss_base = 0; |
| 11366 | ; |
| 11367 | return 0; |
| 11368 | } |
| 11369 | _ACEOF |
| 11370 | rm -f conftest.$ac_objext |
| 11371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11372 | (eval $ac_compile) 2>conftest.er1 |
| 11373 | ac_status=$? |
| 11374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11375 | rm -f conftest.er1 |
| 11376 | cat conftest.err >&5 |
| 11377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11378 | (exit $ac_status); } && |
| 11379 | { ac_try='test -z "$ac_c_werror_flag" |
| 11380 | || test ! -s conftest.err' |
| 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); }; } && |
| 11386 | { ac_try='test -s conftest.$ac_objext' |
| 11387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11388 | (eval $ac_try) 2>&5 |
| 11389 | ac_status=$? |
| 11390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11391 | (exit $ac_status); }; }; then |
| 11392 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11393 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11394 | #define HAVE_SS_BASE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11395 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11396 | |
| 11397 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11398 | echo "$as_me: failed program was:" >&5 |
| 11399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11400 | |
| 11401 | echo "$as_me:$LINENO: result: no" >&5 |
| 11402 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11403 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11405 | |
| 11406 | olibs="$LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11407 | echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
| 11408 | echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6 |
| 11409 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11410 | # Check whether --with-tlib or --without-tlib was given. |
| 11411 | if test "${with_tlib+set}" = set; then |
| 11412 | withval="$with_tlib" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11413 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11414 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11415 | if test -n "$with_tlib"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11416 | echo "$as_me:$LINENO: result: $with_tlib" >&5 |
| 11417 | echo "${ECHO_T}$with_tlib" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11418 | LIBS="$LIBS -l$with_tlib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11419 | echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
| 11420 | echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6 |
| 11421 | cat >conftest.$ac_ext <<_ACEOF |
| 11422 | /* confdefs.h. */ |
| 11423 | _ACEOF |
| 11424 | cat confdefs.h >>conftest.$ac_ext |
| 11425 | cat >>conftest.$ac_ext <<_ACEOF |
| 11426 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11427 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11428 | int |
| 11429 | main () |
| 11430 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11431 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11432 | ; |
| 11433 | return 0; |
| 11434 | } |
| 11435 | _ACEOF |
| 11436 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11438 | (eval $ac_link) 2>conftest.er1 |
| 11439 | ac_status=$? |
| 11440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11441 | rm -f conftest.er1 |
| 11442 | cat conftest.err >&5 |
| 11443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11444 | (exit $ac_status); } && |
| 11445 | { ac_try='test -z "$ac_c_werror_flag" |
| 11446 | || test ! -s conftest.err' |
| 11447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11448 | (eval $ac_try) 2>&5 |
| 11449 | ac_status=$? |
| 11450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11451 | (exit $ac_status); }; } && |
| 11452 | { ac_try='test -s conftest$ac_exeext' |
| 11453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11454 | (eval $ac_try) 2>&5 |
| 11455 | ac_status=$? |
| 11456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11457 | (exit $ac_status); }; }; then |
| 11458 | echo "$as_me:$LINENO: result: OK" >&5 |
| 11459 | echo "${ECHO_T}OK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11460 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11461 | echo "$as_me: failed program was:" >&5 |
| 11462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11463 | |
| 11464 | { { echo "$as_me:$LINENO: error: FAILED" >&5 |
| 11465 | echo "$as_me: error: FAILED" >&2;} |
| 11466 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11467 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11468 | rm -f conftest.err conftest.$ac_objext \ |
| 11469 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11470 | olibs="$LIBS" |
| 11471 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11472 | echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
| 11473 | echo "${ECHO_T}empty: automatic terminal library selection" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11474 | case "`uname -s 2>/dev/null`" in |
| 11475 | OSF1) tlibs="ncurses curses termlib termcap";; |
| 11476 | *) tlibs="ncurses termlib termcap curses";; |
| 11477 | esac |
| 11478 | for libname in $tlibs; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11479 | |
| 11480 | as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
| 11481 | echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
| 11482 | echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6 |
| 11483 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
| 11484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11485 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11486 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11487 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11488 | cat >conftest.$ac_ext <<_ACEOF |
| 11489 | /* confdefs.h. */ |
| 11490 | _ACEOF |
| 11491 | cat confdefs.h >>conftest.$ac_ext |
| 11492 | cat >>conftest.$ac_ext <<_ACEOF |
| 11493 | /* end confdefs.h. */ |
| 11494 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11495 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11496 | #ifdef __cplusplus |
| 11497 | extern "C" |
| 11498 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11499 | /* 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] | 11500 | builtin and then its argument prototype would still apply. */ |
| 11501 | char tgetent (); |
| 11502 | int |
| 11503 | main () |
| 11504 | { |
| 11505 | tgetent (); |
| 11506 | ; |
| 11507 | return 0; |
| 11508 | } |
| 11509 | _ACEOF |
| 11510 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11512 | (eval $ac_link) 2>conftest.er1 |
| 11513 | ac_status=$? |
| 11514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11515 | rm -f conftest.er1 |
| 11516 | cat conftest.err >&5 |
| 11517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11518 | (exit $ac_status); } && |
| 11519 | { ac_try='test -z "$ac_c_werror_flag" |
| 11520 | || test ! -s conftest.err' |
| 11521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11522 | (eval $ac_try) 2>&5 |
| 11523 | ac_status=$? |
| 11524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11525 | (exit $ac_status); }; } && |
| 11526 | { ac_try='test -s conftest$ac_exeext' |
| 11527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11528 | (eval $ac_try) 2>&5 |
| 11529 | ac_status=$? |
| 11530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11531 | (exit $ac_status); }; }; then |
| 11532 | eval "$as_ac_Lib=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11533 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11534 | echo "$as_me: failed program was:" >&5 |
| 11535 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11536 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11537 | eval "$as_ac_Lib=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11538 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11539 | rm -f conftest.err conftest.$ac_objext \ |
| 11540 | conftest$ac_exeext conftest.$ac_ext |
| 11541 | LIBS=$ac_check_lib_save_LIBS |
| 11542 | fi |
| 11543 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
| 11544 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
| 11545 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
| 11546 | cat >>confdefs.h <<_ACEOF |
| 11547 | #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 |
| 11548 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11549 | |
| 11550 | LIBS="-l${libname} $LIBS" |
| 11551 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11552 | fi |
| 11553 | |
| 11554 | if test "x$olibs" != "x$LIBS"; then |
| 11555 | if test "$cross_compiling" = yes; then |
| 11556 | res="FAIL" |
| 11557 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11558 | cat >conftest.$ac_ext <<_ACEOF |
| 11559 | /* confdefs.h. */ |
| 11560 | _ACEOF |
| 11561 | cat confdefs.h >>conftest.$ac_ext |
| 11562 | cat >>conftest.$ac_ext <<_ACEOF |
| 11563 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11564 | |
| 11565 | #ifdef HAVE_TERMCAP_H |
| 11566 | # include <termcap.h> |
| 11567 | #endif |
| 11568 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11569 | _ACEOF |
| 11570 | rm -f conftest$ac_exeext |
| 11571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11572 | (eval $ac_link) 2>&5 |
| 11573 | ac_status=$? |
| 11574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11575 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11577 | (eval $ac_try) 2>&5 |
| 11578 | ac_status=$? |
| 11579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11580 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11581 | res="OK" |
| 11582 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11583 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11584 | echo "$as_me: failed program was:" >&5 |
| 11585 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11586 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11587 | ( exit $ac_status ) |
| 11588 | res="FAIL" |
| 11589 | fi |
| 11590 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11591 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11592 | if test "$res" = "OK"; then |
| 11593 | break |
| 11594 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11595 | echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
| 11596 | echo "${ECHO_T}$libname library is not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11597 | LIBS="$olibs" |
| 11598 | fi |
| 11599 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11600 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11601 | echo "$as_me:$LINENO: result: no terminal library found" >&5 |
| 11602 | echo "${ECHO_T}no terminal library found" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11603 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11604 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11605 | |
| 11606 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11607 | echo "$as_me:$LINENO: checking for tgetent()" >&5 |
| 11608 | echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6 |
| 11609 | cat >conftest.$ac_ext <<_ACEOF |
| 11610 | /* confdefs.h. */ |
| 11611 | _ACEOF |
| 11612 | cat confdefs.h >>conftest.$ac_ext |
| 11613 | cat >>conftest.$ac_ext <<_ACEOF |
| 11614 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11615 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11616 | int |
| 11617 | main () |
| 11618 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11619 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11620 | ; |
| 11621 | return 0; |
| 11622 | } |
| 11623 | _ACEOF |
| 11624 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11626 | (eval $ac_link) 2>conftest.er1 |
| 11627 | ac_status=$? |
| 11628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11629 | rm -f conftest.er1 |
| 11630 | cat conftest.err >&5 |
| 11631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11632 | (exit $ac_status); } && |
| 11633 | { ac_try='test -z "$ac_c_werror_flag" |
| 11634 | || test ! -s conftest.err' |
| 11635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11636 | (eval $ac_try) 2>&5 |
| 11637 | ac_status=$? |
| 11638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11639 | (exit $ac_status); }; } && |
| 11640 | { ac_try='test -s conftest$ac_exeext' |
| 11641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11642 | (eval $ac_try) 2>&5 |
| 11643 | ac_status=$? |
| 11644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11645 | (exit $ac_status); }; }; then |
| 11646 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11647 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11648 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11649 | echo "$as_me: failed program was:" >&5 |
| 11650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11651 | |
| 11652 | { { echo "$as_me:$LINENO: error: NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11653 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11654 | Or specify the name of the library with --with-tlib." >&5 |
| 11655 | echo "$as_me: error: NOT FOUND! |
| 11656 | You need to install a terminal library; for example ncurses. |
| 11657 | Or specify the name of the library with --with-tlib." >&2;} |
| 11658 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11659 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11660 | rm -f conftest.err conftest.$ac_objext \ |
| 11661 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11662 | fi |
| 11663 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11664 | echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 |
| 11665 | echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11666 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11667 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 11668 | echo "$as_me: error: failed to compile test program." >&2;} |
| 11669 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11670 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11671 | cat >conftest.$ac_ext <<_ACEOF |
| 11672 | /* confdefs.h. */ |
| 11673 | _ACEOF |
| 11674 | cat confdefs.h >>conftest.$ac_ext |
| 11675 | cat >>conftest.$ac_ext <<_ACEOF |
| 11676 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11677 | |
| 11678 | #ifdef HAVE_TERMCAP_H |
| 11679 | # include <termcap.h> |
| 11680 | #endif |
| 11681 | main() |
| 11682 | {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] | 11683 | _ACEOF |
| 11684 | rm -f conftest$ac_exeext |
| 11685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11686 | (eval $ac_link) 2>&5 |
| 11687 | ac_status=$? |
| 11688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11689 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11691 | (eval $ac_try) 2>&5 |
| 11692 | ac_status=$? |
| 11693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11694 | (exit $ac_status); }; }; then |
| 11695 | echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5 |
| 11696 | echo "${ECHO_T}no -- we are in termcap land" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11697 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11698 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11699 | echo "$as_me: failed program was:" >&5 |
| 11700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11701 | |
| 11702 | ( exit $ac_status ) |
| 11703 | echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5 |
| 11704 | echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11705 | #define TERMINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11706 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11707 | |
| 11708 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11709 | 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] | 11710 | fi |
| 11711 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11712 | if test "x$olibs" != "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11713 | echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
| 11714 | 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] | 11715 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11716 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 11717 | echo "$as_me: error: failed to compile test program." >&2;} |
| 11718 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11719 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11720 | cat >conftest.$ac_ext <<_ACEOF |
| 11721 | /* confdefs.h. */ |
| 11722 | _ACEOF |
| 11723 | cat confdefs.h >>conftest.$ac_ext |
| 11724 | cat >>conftest.$ac_ext <<_ACEOF |
| 11725 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11726 | |
| 11727 | #ifdef HAVE_TERMCAP_H |
| 11728 | # include <termcap.h> |
| 11729 | #endif |
| 11730 | main() |
| 11731 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11732 | _ACEOF |
| 11733 | rm -f conftest$ac_exeext |
| 11734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11735 | (eval $ac_link) 2>&5 |
| 11736 | ac_status=$? |
| 11737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11738 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11740 | (eval $ac_try) 2>&5 |
| 11741 | ac_status=$? |
| 11742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11743 | (exit $ac_status); }; }; then |
| 11744 | echo "$as_me:$LINENO: result: zero" >&5 |
| 11745 | echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11746 | #define TGETENT_ZERO_ERR 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11747 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11748 | |
| 11749 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11750 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11751 | echo "$as_me: failed program was:" >&5 |
| 11752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11753 | |
| 11754 | ( exit $ac_status ) |
| 11755 | echo "$as_me:$LINENO: result: non-zero" >&5 |
| 11756 | echo "${ECHO_T}non-zero" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11757 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11758 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11759 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11760 | fi |
| 11761 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11762 | echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
| 11763 | echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6 |
| 11764 | cat >conftest.$ac_ext <<_ACEOF |
| 11765 | /* confdefs.h. */ |
| 11766 | _ACEOF |
| 11767 | cat confdefs.h >>conftest.$ac_ext |
| 11768 | cat >>conftest.$ac_ext <<_ACEOF |
| 11769 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11770 | |
| 11771 | #ifdef HAVE_TERMCAP_H |
| 11772 | # include <termcap.h> |
| 11773 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11774 | |
| 11775 | int |
| 11776 | main () |
| 11777 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11778 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11779 | ; |
| 11780 | return 0; |
| 11781 | } |
| 11782 | _ACEOF |
| 11783 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11785 | (eval $ac_link) 2>conftest.er1 |
| 11786 | ac_status=$? |
| 11787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11788 | rm -f conftest.er1 |
| 11789 | cat conftest.err >&5 |
| 11790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11791 | (exit $ac_status); } && |
| 11792 | { ac_try='test -z "$ac_c_werror_flag" |
| 11793 | || test ! -s conftest.err' |
| 11794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11795 | (eval $ac_try) 2>&5 |
| 11796 | ac_status=$? |
| 11797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11798 | (exit $ac_status); }; } && |
| 11799 | { ac_try='test -s conftest$ac_exeext' |
| 11800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11801 | (eval $ac_try) 2>&5 |
| 11802 | ac_status=$? |
| 11803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11804 | (exit $ac_status); }; }; then |
| 11805 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11806 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11807 | #define HAVE_OSPEED 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11808 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11809 | |
| 11810 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11811 | echo "$as_me: failed program was:" >&5 |
| 11812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11813 | |
| 11814 | echo "$as_me:$LINENO: result: no" >&5 |
| 11815 | echo "${ECHO_T}no" >&6 |
| 11816 | echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
| 11817 | echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6 |
| 11818 | cat >conftest.$ac_ext <<_ACEOF |
| 11819 | /* confdefs.h. */ |
| 11820 | _ACEOF |
| 11821 | cat confdefs.h >>conftest.$ac_ext |
| 11822 | cat >>conftest.$ac_ext <<_ACEOF |
| 11823 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11824 | |
| 11825 | #ifdef HAVE_TERMCAP_H |
| 11826 | # include <termcap.h> |
| 11827 | #endif |
| 11828 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11829 | |
| 11830 | int |
| 11831 | main () |
| 11832 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11833 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11834 | ; |
| 11835 | return 0; |
| 11836 | } |
| 11837 | _ACEOF |
| 11838 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11840 | (eval $ac_link) 2>conftest.er1 |
| 11841 | ac_status=$? |
| 11842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11843 | rm -f conftest.er1 |
| 11844 | cat conftest.err >&5 |
| 11845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11846 | (exit $ac_status); } && |
| 11847 | { ac_try='test -z "$ac_c_werror_flag" |
| 11848 | || test ! -s conftest.err' |
| 11849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11850 | (eval $ac_try) 2>&5 |
| 11851 | ac_status=$? |
| 11852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11853 | (exit $ac_status); }; } && |
| 11854 | { ac_try='test -s conftest$ac_exeext' |
| 11855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11856 | (eval $ac_try) 2>&5 |
| 11857 | ac_status=$? |
| 11858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11859 | (exit $ac_status); }; }; then |
| 11860 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11861 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11862 | #define OSPEED_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11863 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11864 | |
| 11865 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11866 | echo "$as_me: failed program was:" >&5 |
| 11867 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11868 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11869 | echo "$as_me:$LINENO: result: no" >&5 |
| 11870 | echo "${ECHO_T}no" >&6 |
| 11871 | fi |
| 11872 | rm -f conftest.err conftest.$ac_objext \ |
| 11873 | conftest$ac_exeext conftest.$ac_ext |
| 11874 | |
| 11875 | fi |
| 11876 | rm -f conftest.err conftest.$ac_objext \ |
| 11877 | conftest$ac_exeext conftest.$ac_ext |
| 11878 | |
| 11879 | echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
| 11880 | echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6 |
| 11881 | cat >conftest.$ac_ext <<_ACEOF |
| 11882 | /* confdefs.h. */ |
| 11883 | _ACEOF |
| 11884 | cat confdefs.h >>conftest.$ac_ext |
| 11885 | cat >>conftest.$ac_ext <<_ACEOF |
| 11886 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11887 | |
| 11888 | #ifdef HAVE_TERMCAP_H |
| 11889 | # include <termcap.h> |
| 11890 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11891 | |
| 11892 | int |
| 11893 | main () |
| 11894 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11895 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11896 | ; |
| 11897 | return 0; |
| 11898 | } |
| 11899 | _ACEOF |
| 11900 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11902 | (eval $ac_link) 2>conftest.er1 |
| 11903 | ac_status=$? |
| 11904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11905 | rm -f conftest.er1 |
| 11906 | cat conftest.err >&5 |
| 11907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11908 | (exit $ac_status); } && |
| 11909 | { ac_try='test -z "$ac_c_werror_flag" |
| 11910 | || test ! -s conftest.err' |
| 11911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11912 | (eval $ac_try) 2>&5 |
| 11913 | ac_status=$? |
| 11914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11915 | (exit $ac_status); }; } && |
| 11916 | { ac_try='test -s conftest$ac_exeext' |
| 11917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11918 | (eval $ac_try) 2>&5 |
| 11919 | ac_status=$? |
| 11920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11921 | (exit $ac_status); }; }; then |
| 11922 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11923 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11924 | #define HAVE_UP_BC_PC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11925 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11926 | |
| 11927 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11928 | echo "$as_me: failed program was:" >&5 |
| 11929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11930 | |
| 11931 | echo "$as_me:$LINENO: result: no" >&5 |
| 11932 | echo "${ECHO_T}no" >&6 |
| 11933 | echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
| 11934 | echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6 |
| 11935 | cat >conftest.$ac_ext <<_ACEOF |
| 11936 | /* confdefs.h. */ |
| 11937 | _ACEOF |
| 11938 | cat confdefs.h >>conftest.$ac_ext |
| 11939 | cat >>conftest.$ac_ext <<_ACEOF |
| 11940 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11941 | |
| 11942 | #ifdef HAVE_TERMCAP_H |
| 11943 | # include <termcap.h> |
| 11944 | #endif |
| 11945 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11946 | |
| 11947 | int |
| 11948 | main () |
| 11949 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11950 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11951 | ; |
| 11952 | return 0; |
| 11953 | } |
| 11954 | _ACEOF |
| 11955 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11957 | (eval $ac_link) 2>conftest.er1 |
| 11958 | ac_status=$? |
| 11959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11960 | rm -f conftest.er1 |
| 11961 | cat conftest.err >&5 |
| 11962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11963 | (exit $ac_status); } && |
| 11964 | { ac_try='test -z "$ac_c_werror_flag" |
| 11965 | || test ! -s conftest.err' |
| 11966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11967 | (eval $ac_try) 2>&5 |
| 11968 | ac_status=$? |
| 11969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11970 | (exit $ac_status); }; } && |
| 11971 | { ac_try='test -s conftest$ac_exeext' |
| 11972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11973 | (eval $ac_try) 2>&5 |
| 11974 | ac_status=$? |
| 11975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11976 | (exit $ac_status); }; }; then |
| 11977 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11978 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11979 | #define UP_BC_PC_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11980 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11981 | |
| 11982 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11983 | echo "$as_me: failed program was:" >&5 |
| 11984 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11985 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11986 | echo "$as_me:$LINENO: result: no" >&5 |
| 11987 | echo "${ECHO_T}no" >&6 |
| 11988 | fi |
| 11989 | rm -f conftest.err conftest.$ac_objext \ |
| 11990 | conftest$ac_exeext conftest.$ac_ext |
| 11991 | |
| 11992 | fi |
| 11993 | rm -f conftest.err conftest.$ac_objext \ |
| 11994 | conftest$ac_exeext conftest.$ac_ext |
| 11995 | |
| 11996 | echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
| 11997 | echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6 |
| 11998 | cat >conftest.$ac_ext <<_ACEOF |
| 11999 | /* confdefs.h. */ |
| 12000 | _ACEOF |
| 12001 | cat confdefs.h >>conftest.$ac_ext |
| 12002 | cat >>conftest.$ac_ext <<_ACEOF |
| 12003 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12004 | |
| 12005 | #ifdef HAVE_TERMCAP_H |
| 12006 | # include <termcap.h> |
| 12007 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12008 | |
| 12009 | int |
| 12010 | main () |
| 12011 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12012 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12013 | ; |
| 12014 | return 0; |
| 12015 | } |
| 12016 | _ACEOF |
| 12017 | rm -f conftest.$ac_objext |
| 12018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12019 | (eval $ac_compile) 2>conftest.er1 |
| 12020 | ac_status=$? |
| 12021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12022 | rm -f conftest.er1 |
| 12023 | cat conftest.err >&5 |
| 12024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12025 | (exit $ac_status); } && |
| 12026 | { ac_try='test -z "$ac_c_werror_flag" |
| 12027 | || test ! -s conftest.err' |
| 12028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12029 | (eval $ac_try) 2>&5 |
| 12030 | ac_status=$? |
| 12031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12032 | (exit $ac_status); }; } && |
| 12033 | { ac_try='test -s conftest.$ac_objext' |
| 12034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12035 | (eval $ac_try) 2>&5 |
| 12036 | ac_status=$? |
| 12037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12038 | (exit $ac_status); }; }; then |
| 12039 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12040 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12041 | #define HAVE_OUTFUNTYPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12042 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12043 | |
| 12044 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12045 | echo "$as_me: failed program was:" >&5 |
| 12046 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12047 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12048 | echo "$as_me:$LINENO: result: no" >&5 |
| 12049 | echo "${ECHO_T}no" >&6 |
| 12050 | fi |
| 12051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12052 | |
| 12053 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 12054 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12055 | cat >conftest.$ac_ext <<_ACEOF |
| 12056 | /* confdefs.h. */ |
| 12057 | _ACEOF |
| 12058 | cat confdefs.h >>conftest.$ac_ext |
| 12059 | cat >>conftest.$ac_ext <<_ACEOF |
| 12060 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12061 | |
| 12062 | #include <sys/types.h> |
| 12063 | #include <sys/time.h> |
| 12064 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12065 | int |
| 12066 | main () |
| 12067 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12068 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12069 | ; |
| 12070 | return 0; |
| 12071 | } |
| 12072 | _ACEOF |
| 12073 | rm -f conftest.$ac_objext |
| 12074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12075 | (eval $ac_compile) 2>conftest.er1 |
| 12076 | ac_status=$? |
| 12077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12078 | rm -f conftest.er1 |
| 12079 | cat conftest.err >&5 |
| 12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12081 | (exit $ac_status); } && |
| 12082 | { ac_try='test -z "$ac_c_werror_flag" |
| 12083 | || test ! -s conftest.err' |
| 12084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12085 | (eval $ac_try) 2>&5 |
| 12086 | ac_status=$? |
| 12087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12088 | (exit $ac_status); }; } && |
| 12089 | { ac_try='test -s conftest.$ac_objext' |
| 12090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12091 | (eval $ac_try) 2>&5 |
| 12092 | ac_status=$? |
| 12093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12094 | (exit $ac_status); }; }; then |
| 12095 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12096 | echo "${ECHO_T}yes" >&6 |
| 12097 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12098 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12099 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12100 | |
| 12101 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12102 | echo "$as_me: failed program was:" >&5 |
| 12103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12104 | |
| 12105 | echo "$as_me:$LINENO: result: no" >&5 |
| 12106 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12107 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12109 | |
| 12110 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12111 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 12112 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12113 | if test -r /dev/ptc; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12114 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12115 | #define HAVE_DEV_PTC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12116 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12117 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12118 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12119 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12120 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12121 | echo "$as_me:$LINENO: result: no" >&5 |
| 12122 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12123 | fi |
| 12124 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12125 | echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 |
| 12126 | echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12127 | if test -c /dev/ptmx ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12128 | cat >conftest.$ac_ext <<_ACEOF |
| 12129 | /* confdefs.h. */ |
| 12130 | _ACEOF |
| 12131 | cat confdefs.h >>conftest.$ac_ext |
| 12132 | cat >>conftest.$ac_ext <<_ACEOF |
| 12133 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12134 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12135 | int |
| 12136 | main () |
| 12137 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12138 | ptsname(0);grantpt(0);unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12139 | ; |
| 12140 | return 0; |
| 12141 | } |
| 12142 | _ACEOF |
| 12143 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12145 | (eval $ac_link) 2>conftest.er1 |
| 12146 | ac_status=$? |
| 12147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12148 | rm -f conftest.er1 |
| 12149 | cat conftest.err >&5 |
| 12150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12151 | (exit $ac_status); } && |
| 12152 | { ac_try='test -z "$ac_c_werror_flag" |
| 12153 | || test ! -s conftest.err' |
| 12154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12155 | (eval $ac_try) 2>&5 |
| 12156 | ac_status=$? |
| 12157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12158 | (exit $ac_status); }; } && |
| 12159 | { ac_try='test -s conftest$ac_exeext' |
| 12160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12161 | (eval $ac_try) 2>&5 |
| 12162 | ac_status=$? |
| 12163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12164 | (exit $ac_status); }; }; then |
| 12165 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12166 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12167 | #define HAVE_SVR4_PTYS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12168 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12169 | |
| 12170 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12171 | echo "$as_me: failed program was:" >&5 |
| 12172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12173 | |
| 12174 | echo "$as_me:$LINENO: result: no" >&5 |
| 12175 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12176 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12177 | rm -f conftest.err conftest.$ac_objext \ |
| 12178 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12179 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12180 | echo "$as_me:$LINENO: result: no" >&5 |
| 12181 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12182 | fi |
| 12183 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12184 | echo "$as_me:$LINENO: checking for ptyranges" >&5 |
| 12185 | echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12186 | if test -d /dev/ptym ; then |
| 12187 | pdir='/dev/ptym' |
| 12188 | else |
| 12189 | pdir='/dev' |
| 12190 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12191 | cat >conftest.$ac_ext <<_ACEOF |
| 12192 | /* confdefs.h. */ |
| 12193 | _ACEOF |
| 12194 | cat confdefs.h >>conftest.$ac_ext |
| 12195 | cat >>conftest.$ac_ext <<_ACEOF |
| 12196 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12197 | #ifdef M_UNIX |
| 12198 | yes; |
| 12199 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12200 | |
| 12201 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12202 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12203 | $EGREP "yes" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12204 | ptys=`echo /dev/ptyp??` |
| 12205 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12206 | ptys=`echo $pdir/pty??` |
| 12207 | fi |
| 12208 | rm -f conftest* |
| 12209 | |
| 12210 | if test "$ptys" != "$pdir/pty??" ; then |
| 12211 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 12212 | 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] | 12213 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12214 | #define PTYRANGE0 "$p0" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12215 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12216 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12217 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12218 | #define PTYRANGE1 "$p1" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12219 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12220 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12221 | echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
| 12222 | echo "${ECHO_T}$p0 / $p1" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12223 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12224 | echo "$as_me:$LINENO: result: don't know" >&5 |
| 12225 | echo "${ECHO_T}don't know" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12226 | fi |
| 12227 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12228 | echo "$as_me:$LINENO: checking default tty permissions/group" >&5 |
| 12229 | echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12230 | rm -f conftest_grp |
| 12231 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12232 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12233 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12234 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12235 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12236 | cat >conftest.$ac_ext <<_ACEOF |
| 12237 | /* confdefs.h. */ |
| 12238 | _ACEOF |
| 12239 | cat confdefs.h >>conftest.$ac_ext |
| 12240 | cat >>conftest.$ac_ext <<_ACEOF |
| 12241 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12242 | |
| 12243 | #include <sys/types.h> |
| 12244 | #include <sys/stat.h> |
| 12245 | #include <stdio.h> |
| 12246 | main() |
| 12247 | { |
| 12248 | struct stat sb; |
| 12249 | char *x,*ttyname(); |
| 12250 | int om, m; |
| 12251 | FILE *fp; |
| 12252 | |
| 12253 | if (!(x = ttyname(0))) exit(1); |
| 12254 | if (stat(x, &sb)) exit(1); |
| 12255 | om = sb.st_mode; |
| 12256 | if (om & 002) exit(0); |
| 12257 | m = system("mesg y"); |
| 12258 | if (m == -1 || m == 127) exit(1); |
| 12259 | if (stat(x, &sb)) exit(1); |
| 12260 | m = sb.st_mode; |
| 12261 | if (chmod(x, om)) exit(1); |
| 12262 | if (m & 002) exit(0); |
| 12263 | if (sb.st_gid == getgid()) exit(1); |
| 12264 | if (!(fp=fopen("conftest_grp", "w"))) |
| 12265 | exit(1); |
| 12266 | fprintf(fp, "%d\n", sb.st_gid); |
| 12267 | fclose(fp); |
| 12268 | exit(0); |
| 12269 | } |
| 12270 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12271 | _ACEOF |
| 12272 | rm -f conftest$ac_exeext |
| 12273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12274 | (eval $ac_link) 2>&5 |
| 12275 | ac_status=$? |
| 12276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12277 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12279 | (eval $ac_try) 2>&5 |
| 12280 | ac_status=$? |
| 12281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12282 | (exit $ac_status); }; }; then |
| 12283 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12284 | if test -f conftest_grp; then |
| 12285 | ptygrp=`cat conftest_grp` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12286 | echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5 |
| 12287 | echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6 |
| 12288 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12289 | #define PTYMODE 0620 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12290 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12291 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12292 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12293 | #define PTYGROUP $ptygrp |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12294 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12295 | |
| 12296 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12297 | echo "$as_me:$LINENO: result: ptys are world accessable" >&5 |
| 12298 | echo "${ECHO_T}ptys are world accessable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12299 | fi |
| 12300 | |
| 12301 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12302 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12303 | echo "$as_me: failed program was:" >&5 |
| 12304 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12305 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12306 | ( exit $ac_status ) |
| 12307 | echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5 |
| 12308 | echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6 |
| 12309 | fi |
| 12310 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12311 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12312 | rm -f conftest_grp |
| 12313 | |
| 12314 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12315 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 12316 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 12317 | if test "${ac_cv_type_signal+set}" = set; then |
| 12318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12319 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12320 | cat >conftest.$ac_ext <<_ACEOF |
| 12321 | /* confdefs.h. */ |
| 12322 | _ACEOF |
| 12323 | cat confdefs.h >>conftest.$ac_ext |
| 12324 | cat >>conftest.$ac_ext <<_ACEOF |
| 12325 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12326 | #include <sys/types.h> |
| 12327 | #include <signal.h> |
| 12328 | #ifdef signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12329 | # undef signal |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12330 | #endif |
| 12331 | #ifdef __cplusplus |
| 12332 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 12333 | #else |
| 12334 | void (*signal ()) (); |
| 12335 | #endif |
| 12336 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12337 | int |
| 12338 | main () |
| 12339 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12340 | int i; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12341 | ; |
| 12342 | return 0; |
| 12343 | } |
| 12344 | _ACEOF |
| 12345 | rm -f conftest.$ac_objext |
| 12346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12347 | (eval $ac_compile) 2>conftest.er1 |
| 12348 | ac_status=$? |
| 12349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12350 | rm -f conftest.er1 |
| 12351 | cat conftest.err >&5 |
| 12352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12353 | (exit $ac_status); } && |
| 12354 | { ac_try='test -z "$ac_c_werror_flag" |
| 12355 | || test ! -s conftest.err' |
| 12356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12357 | (eval $ac_try) 2>&5 |
| 12358 | ac_status=$? |
| 12359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12360 | (exit $ac_status); }; } && |
| 12361 | { ac_try='test -s conftest.$ac_objext' |
| 12362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12363 | (eval $ac_try) 2>&5 |
| 12364 | ac_status=$? |
| 12365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12366 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12367 | ac_cv_type_signal=void |
| 12368 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12369 | echo "$as_me: failed program was:" >&5 |
| 12370 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12371 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12372 | ac_cv_type_signal=int |
| 12373 | fi |
| 12374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12375 | fi |
| 12376 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 12377 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 12378 | |
| 12379 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12380 | #define RETSIGTYPE $ac_cv_type_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12381 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12382 | |
| 12383 | |
| 12384 | |
| 12385 | if test $ac_cv_type_signal = void; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12386 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12387 | #define SIGRETURN return |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12388 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12389 | |
| 12390 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12391 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12392 | #define SIGRETURN return 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12393 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12394 | |
| 12395 | fi |
| 12396 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12397 | echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
| 12398 | echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6 |
| 12399 | cat >conftest.$ac_ext <<_ACEOF |
| 12400 | /* confdefs.h. */ |
| 12401 | _ACEOF |
| 12402 | cat confdefs.h >>conftest.$ac_ext |
| 12403 | cat >>conftest.$ac_ext <<_ACEOF |
| 12404 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12405 | |
| 12406 | #include <signal.h> |
| 12407 | test_sig() |
| 12408 | { |
| 12409 | struct sigcontext *scont; |
| 12410 | scont = (struct sigcontext *)0; |
| 12411 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12412 | } |
| 12413 | int |
| 12414 | main () |
| 12415 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12416 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12417 | ; |
| 12418 | return 0; |
| 12419 | } |
| 12420 | _ACEOF |
| 12421 | rm -f conftest.$ac_objext |
| 12422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12423 | (eval $ac_compile) 2>conftest.er1 |
| 12424 | ac_status=$? |
| 12425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12426 | rm -f conftest.er1 |
| 12427 | cat conftest.err >&5 |
| 12428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12429 | (exit $ac_status); } && |
| 12430 | { ac_try='test -z "$ac_c_werror_flag" |
| 12431 | || test ! -s conftest.err' |
| 12432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12433 | (eval $ac_try) 2>&5 |
| 12434 | ac_status=$? |
| 12435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12436 | (exit $ac_status); }; } && |
| 12437 | { ac_try='test -s conftest.$ac_objext' |
| 12438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12439 | (eval $ac_try) 2>&5 |
| 12440 | ac_status=$? |
| 12441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12442 | (exit $ac_status); }; }; then |
| 12443 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12444 | echo "${ECHO_T}yes" >&6 |
| 12445 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12446 | #define HAVE_SIGCONTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12447 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12448 | |
| 12449 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12450 | echo "$as_me: failed program was:" >&5 |
| 12451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12452 | |
| 12453 | echo "$as_me:$LINENO: result: no" >&5 |
| 12454 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12455 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12457 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12458 | echo "$as_me:$LINENO: checking getcwd implementation" >&5 |
| 12459 | echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12460 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12461 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12462 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12463 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12464 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12465 | cat >conftest.$ac_ext <<_ACEOF |
| 12466 | /* confdefs.h. */ |
| 12467 | _ACEOF |
| 12468 | cat confdefs.h >>conftest.$ac_ext |
| 12469 | cat >>conftest.$ac_ext <<_ACEOF |
| 12470 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12471 | |
| 12472 | char *dagger[] = { "IFS=pwd", 0 }; |
| 12473 | main() |
| 12474 | { |
| 12475 | char buffer[500]; |
| 12476 | extern char **environ; |
| 12477 | environ = dagger; |
| 12478 | return getcwd(buffer, 500) ? 0 : 1; |
| 12479 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12480 | _ACEOF |
| 12481 | rm -f conftest$ac_exeext |
| 12482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12483 | (eval $ac_link) 2>&5 |
| 12484 | ac_status=$? |
| 12485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12486 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12488 | (eval $ac_try) 2>&5 |
| 12489 | ac_status=$? |
| 12490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12491 | (exit $ac_status); }; }; then |
| 12492 | echo "$as_me:$LINENO: result: it is usable" >&5 |
| 12493 | echo "${ECHO_T}it is usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12494 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12495 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12496 | echo "$as_me: failed program was:" >&5 |
| 12497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12498 | |
| 12499 | ( exit $ac_status ) |
| 12500 | echo "$as_me:$LINENO: result: it stinks" >&5 |
| 12501 | echo "${ECHO_T}it stinks" >&6 |
| 12502 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12503 | #define BAD_GETCWD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12504 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12505 | |
| 12506 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12507 | 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] | 12508 | fi |
| 12509 | |
| 12510 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12511 | |
| 12512 | |
| 12513 | |
| 12514 | |
| 12515 | |
| 12516 | |
| 12517 | |
| 12518 | |
| 12519 | |
| 12520 | |
| 12521 | |
| 12522 | |
| 12523 | |
| 12524 | |
| 12525 | |
| 12526 | |
| 12527 | |
| 12528 | |
| 12529 | |
| 12530 | |
| 12531 | |
| 12532 | |
| 12533 | |
| 12534 | |
| 12535 | |
| 12536 | |
| 12537 | |
| 12538 | |
| 12539 | |
| 12540 | |
| 12541 | |
| 12542 | |
| 12543 | |
| 12544 | |
| 12545 | |
| 12546 | |
| 12547 | |
| 12548 | |
| 12549 | |
| 12550 | |
| 12551 | |
| 12552 | |
| 12553 | |
| 12554 | |
| 12555 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12556 | for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
| 12557 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
| 12558 | memset nanosleep opendir putenv qsort readlink select setenv \ |
| 12559 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 12560 | sigvec strcasecmp strerror strftime stricmp strncasecmp \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 12561 | strnicmp strpbrk strtol tgetent towlower towupper iswupper \ |
| 12562 | usleep utime utimes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12563 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12564 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12565 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12566 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12567 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12569 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12570 | cat >conftest.$ac_ext <<_ACEOF |
| 12571 | /* confdefs.h. */ |
| 12572 | _ACEOF |
| 12573 | cat confdefs.h >>conftest.$ac_ext |
| 12574 | cat >>conftest.$ac_ext <<_ACEOF |
| 12575 | /* end confdefs.h. */ |
| 12576 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12577 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12578 | #define $ac_func innocuous_$ac_func |
| 12579 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12580 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12581 | which can conflict with char $ac_func (); below. |
| 12582 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12583 | <limits.h> exists even on freestanding compilers. */ |
| 12584 | |
| 12585 | #ifdef __STDC__ |
| 12586 | # include <limits.h> |
| 12587 | #else |
| 12588 | # include <assert.h> |
| 12589 | #endif |
| 12590 | |
| 12591 | #undef $ac_func |
| 12592 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12593 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12594 | #ifdef __cplusplus |
| 12595 | extern "C" |
| 12596 | { |
| 12597 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12598 | /* 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] | 12599 | builtin and then its argument prototype would still apply. */ |
| 12600 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12601 | /* The GNU C library defines this for functions which it implements |
| 12602 | to always fail with ENOSYS. Some functions are actually named |
| 12603 | something starting with __ and the normal name is an alias. */ |
| 12604 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12605 | choke me |
| 12606 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12607 | char (*f) () = $ac_func; |
| 12608 | #endif |
| 12609 | #ifdef __cplusplus |
| 12610 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12611 | #endif |
| 12612 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12613 | int |
| 12614 | main () |
| 12615 | { |
| 12616 | return f != $ac_func; |
| 12617 | ; |
| 12618 | return 0; |
| 12619 | } |
| 12620 | _ACEOF |
| 12621 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12623 | (eval $ac_link) 2>conftest.er1 |
| 12624 | ac_status=$? |
| 12625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12626 | rm -f conftest.er1 |
| 12627 | cat conftest.err >&5 |
| 12628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12629 | (exit $ac_status); } && |
| 12630 | { ac_try='test -z "$ac_c_werror_flag" |
| 12631 | || test ! -s conftest.err' |
| 12632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12633 | (eval $ac_try) 2>&5 |
| 12634 | ac_status=$? |
| 12635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12636 | (exit $ac_status); }; } && |
| 12637 | { ac_try='test -s conftest$ac_exeext' |
| 12638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12639 | (eval $ac_try) 2>&5 |
| 12640 | ac_status=$? |
| 12641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12642 | (exit $ac_status); }; }; then |
| 12643 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12644 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12645 | echo "$as_me: failed program was:" >&5 |
| 12646 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12647 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12648 | eval "$as_ac_var=no" |
| 12649 | fi |
| 12650 | rm -f conftest.err conftest.$ac_objext \ |
| 12651 | conftest$ac_exeext conftest.$ac_ext |
| 12652 | fi |
| 12653 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12654 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12655 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12656 | cat >>confdefs.h <<_ACEOF |
| 12657 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12658 | _ACEOF |
| 12659 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12660 | fi |
| 12661 | done |
| 12662 | |
| 12663 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12664 | echo "$as_me:$LINENO: checking for st_blksize" >&5 |
| 12665 | echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6 |
| 12666 | cat >conftest.$ac_ext <<_ACEOF |
| 12667 | /* confdefs.h. */ |
| 12668 | _ACEOF |
| 12669 | cat confdefs.h >>conftest.$ac_ext |
| 12670 | cat >>conftest.$ac_ext <<_ACEOF |
| 12671 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12672 | #include <sys/types.h> |
| 12673 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12674 | int |
| 12675 | main () |
| 12676 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12677 | struct stat st; |
| 12678 | int n; |
| 12679 | |
| 12680 | stat("/", &st); |
| 12681 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12682 | ; |
| 12683 | return 0; |
| 12684 | } |
| 12685 | _ACEOF |
| 12686 | rm -f conftest.$ac_objext |
| 12687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12688 | (eval $ac_compile) 2>conftest.er1 |
| 12689 | ac_status=$? |
| 12690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12691 | rm -f conftest.er1 |
| 12692 | cat conftest.err >&5 |
| 12693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12694 | (exit $ac_status); } && |
| 12695 | { ac_try='test -z "$ac_c_werror_flag" |
| 12696 | || test ! -s conftest.err' |
| 12697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12698 | (eval $ac_try) 2>&5 |
| 12699 | ac_status=$? |
| 12700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12701 | (exit $ac_status); }; } && |
| 12702 | { ac_try='test -s conftest.$ac_objext' |
| 12703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12704 | (eval $ac_try) 2>&5 |
| 12705 | ac_status=$? |
| 12706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12707 | (exit $ac_status); }; }; then |
| 12708 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12709 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12710 | #define HAVE_ST_BLKSIZE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12711 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12712 | |
| 12713 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12714 | echo "$as_me: failed program was:" >&5 |
| 12715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12716 | |
| 12717 | echo "$as_me:$LINENO: result: no" >&5 |
| 12718 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12719 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12721 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12722 | echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
| 12723 | 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] | 12724 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12725 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12726 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12727 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12728 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12729 | cat >conftest.$ac_ext <<_ACEOF |
| 12730 | /* confdefs.h. */ |
| 12731 | _ACEOF |
| 12732 | cat confdefs.h >>conftest.$ac_ext |
| 12733 | cat >>conftest.$ac_ext <<_ACEOF |
| 12734 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12735 | #include <sys/types.h> |
| 12736 | #include <sys/stat.h> |
| 12737 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12738 | _ACEOF |
| 12739 | rm -f conftest$ac_exeext |
| 12740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12741 | (eval $ac_link) 2>&5 |
| 12742 | ac_status=$? |
| 12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12744 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12746 | (eval $ac_try) 2>&5 |
| 12747 | ac_status=$? |
| 12748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12749 | (exit $ac_status); }; }; then |
| 12750 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12751 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12752 | #define STAT_IGNORES_SLASH 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12753 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12754 | |
| 12755 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12756 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12757 | echo "$as_me: failed program was:" >&5 |
| 12758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12759 | |
| 12760 | ( exit $ac_status ) |
| 12761 | echo "$as_me:$LINENO: result: no" >&5 |
| 12762 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12763 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12764 | 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] | 12765 | fi |
| 12766 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12767 | echo "$as_me:$LINENO: checking for iconv_open()" >&5 |
| 12768 | echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12769 | save_LIBS="$LIBS" |
| 12770 | LIBS="$LIBS -liconv" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12771 | cat >conftest.$ac_ext <<_ACEOF |
| 12772 | /* confdefs.h. */ |
| 12773 | _ACEOF |
| 12774 | cat confdefs.h >>conftest.$ac_ext |
| 12775 | cat >>conftest.$ac_ext <<_ACEOF |
| 12776 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12777 | |
| 12778 | #ifdef HAVE_ICONV_H |
| 12779 | # include <iconv.h> |
| 12780 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12781 | |
| 12782 | int |
| 12783 | main () |
| 12784 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12785 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12786 | ; |
| 12787 | return 0; |
| 12788 | } |
| 12789 | _ACEOF |
| 12790 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12792 | (eval $ac_link) 2>conftest.er1 |
| 12793 | ac_status=$? |
| 12794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12795 | rm -f conftest.er1 |
| 12796 | cat conftest.err >&5 |
| 12797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12798 | (exit $ac_status); } && |
| 12799 | { ac_try='test -z "$ac_c_werror_flag" |
| 12800 | || test ! -s conftest.err' |
| 12801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12802 | (eval $ac_try) 2>&5 |
| 12803 | ac_status=$? |
| 12804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12805 | (exit $ac_status); }; } && |
| 12806 | { ac_try='test -s conftest$ac_exeext' |
| 12807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12808 | (eval $ac_try) 2>&5 |
| 12809 | ac_status=$? |
| 12810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12811 | (exit $ac_status); }; }; then |
| 12812 | echo "$as_me:$LINENO: result: yes; with -liconv" >&5 |
| 12813 | echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12814 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12815 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12816 | |
| 12817 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12818 | echo "$as_me: failed program was:" >&5 |
| 12819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12820 | |
| 12821 | LIBS="$save_LIBS" |
| 12822 | cat >conftest.$ac_ext <<_ACEOF |
| 12823 | /* confdefs.h. */ |
| 12824 | _ACEOF |
| 12825 | cat confdefs.h >>conftest.$ac_ext |
| 12826 | cat >>conftest.$ac_ext <<_ACEOF |
| 12827 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12828 | |
| 12829 | #ifdef HAVE_ICONV_H |
| 12830 | # include <iconv.h> |
| 12831 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12832 | |
| 12833 | int |
| 12834 | main () |
| 12835 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12836 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12837 | ; |
| 12838 | return 0; |
| 12839 | } |
| 12840 | _ACEOF |
| 12841 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12843 | (eval $ac_link) 2>conftest.er1 |
| 12844 | ac_status=$? |
| 12845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12846 | rm -f conftest.er1 |
| 12847 | cat conftest.err >&5 |
| 12848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12849 | (exit $ac_status); } && |
| 12850 | { ac_try='test -z "$ac_c_werror_flag" |
| 12851 | || test ! -s conftest.err' |
| 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); }; } && |
| 12857 | { ac_try='test -s conftest$ac_exeext' |
| 12858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12859 | (eval $ac_try) 2>&5 |
| 12860 | ac_status=$? |
| 12861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12862 | (exit $ac_status); }; }; then |
| 12863 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12864 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12865 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12866 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12867 | |
| 12868 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12869 | echo "$as_me: failed program was:" >&5 |
| 12870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12871 | |
| 12872 | echo "$as_me:$LINENO: result: no" >&5 |
| 12873 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12874 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12875 | rm -f conftest.err conftest.$ac_objext \ |
| 12876 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12877 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12878 | rm -f conftest.err conftest.$ac_objext \ |
| 12879 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12880 | |
| 12881 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12882 | echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
| 12883 | echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6 |
| 12884 | cat >conftest.$ac_ext <<_ACEOF |
| 12885 | /* confdefs.h. */ |
| 12886 | _ACEOF |
| 12887 | cat confdefs.h >>conftest.$ac_ext |
| 12888 | cat >>conftest.$ac_ext <<_ACEOF |
| 12889 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12890 | |
| 12891 | #ifdef HAVE_LANGINFO_H |
| 12892 | # include <langinfo.h> |
| 12893 | #endif |
| 12894 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12895 | int |
| 12896 | main () |
| 12897 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12898 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12899 | ; |
| 12900 | return 0; |
| 12901 | } |
| 12902 | _ACEOF |
| 12903 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12905 | (eval $ac_link) 2>conftest.er1 |
| 12906 | ac_status=$? |
| 12907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12908 | rm -f conftest.er1 |
| 12909 | cat conftest.err >&5 |
| 12910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12911 | (exit $ac_status); } && |
| 12912 | { ac_try='test -z "$ac_c_werror_flag" |
| 12913 | || test ! -s conftest.err' |
| 12914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12915 | (eval $ac_try) 2>&5 |
| 12916 | ac_status=$? |
| 12917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12918 | (exit $ac_status); }; } && |
| 12919 | { ac_try='test -s conftest$ac_exeext' |
| 12920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12921 | (eval $ac_try) 2>&5 |
| 12922 | ac_status=$? |
| 12923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12924 | (exit $ac_status); }; }; then |
| 12925 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12926 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12927 | #define HAVE_NL_LANGINFO_CODESET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12928 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12929 | |
| 12930 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12931 | echo "$as_me: failed program was:" >&5 |
| 12932 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12933 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12934 | echo "$as_me:$LINENO: result: no" >&5 |
| 12935 | echo "${ECHO_T}no" >&6 |
| 12936 | fi |
| 12937 | rm -f conftest.err conftest.$ac_objext \ |
| 12938 | conftest$ac_exeext conftest.$ac_ext |
| 12939 | |
| 12940 | echo "$as_me:$LINENO: checking --disable-acl argument" >&5 |
| 12941 | echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12942 | # Check whether --enable-acl or --disable-acl was given. |
| 12943 | if test "${enable_acl+set}" = set; then |
| 12944 | enableval="$enable_acl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12945 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12946 | else |
| 12947 | enable_acl="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12948 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12949 | if test "$enable_acl" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12950 | echo "$as_me:$LINENO: result: no" >&5 |
| 12951 | echo "${ECHO_T}no" >&6 |
| 12952 | echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
| 12953 | echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6 |
| 12954 | if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
| 12955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12956 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12957 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12958 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12959 | cat >conftest.$ac_ext <<_ACEOF |
| 12960 | /* confdefs.h. */ |
| 12961 | _ACEOF |
| 12962 | cat confdefs.h >>conftest.$ac_ext |
| 12963 | cat >>conftest.$ac_ext <<_ACEOF |
| 12964 | /* end confdefs.h. */ |
| 12965 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12966 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12967 | #ifdef __cplusplus |
| 12968 | extern "C" |
| 12969 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12970 | /* 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] | 12971 | builtin and then its argument prototype would still apply. */ |
| 12972 | char acl_get_file (); |
| 12973 | int |
| 12974 | main () |
| 12975 | { |
| 12976 | acl_get_file (); |
| 12977 | ; |
| 12978 | return 0; |
| 12979 | } |
| 12980 | _ACEOF |
| 12981 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12983 | (eval $ac_link) 2>conftest.er1 |
| 12984 | ac_status=$? |
| 12985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12986 | rm -f conftest.er1 |
| 12987 | cat conftest.err >&5 |
| 12988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12989 | (exit $ac_status); } && |
| 12990 | { ac_try='test -z "$ac_c_werror_flag" |
| 12991 | || test ! -s conftest.err' |
| 12992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12993 | (eval $ac_try) 2>&5 |
| 12994 | ac_status=$? |
| 12995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12996 | (exit $ac_status); }; } && |
| 12997 | { ac_try='test -s conftest$ac_exeext' |
| 12998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12999 | (eval $ac_try) 2>&5 |
| 13000 | ac_status=$? |
| 13001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13002 | (exit $ac_status); }; }; then |
| 13003 | ac_cv_lib_posix1e_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13004 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13005 | echo "$as_me: failed program was:" >&5 |
| 13006 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13007 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13008 | ac_cv_lib_posix1e_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13009 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13010 | rm -f conftest.err conftest.$ac_objext \ |
| 13011 | conftest$ac_exeext conftest.$ac_ext |
| 13012 | LIBS=$ac_check_lib_save_LIBS |
| 13013 | fi |
| 13014 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 13015 | echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6 |
| 13016 | if test $ac_cv_lib_posix1e_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13017 | LIBS="$LIBS -lposix1e" |
| 13018 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13019 | echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
| 13020 | echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6 |
| 13021 | if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
| 13022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13023 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13024 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13025 | LIBS="-lacl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13026 | cat >conftest.$ac_ext <<_ACEOF |
| 13027 | /* confdefs.h. */ |
| 13028 | _ACEOF |
| 13029 | cat confdefs.h >>conftest.$ac_ext |
| 13030 | cat >>conftest.$ac_ext <<_ACEOF |
| 13031 | /* end confdefs.h. */ |
| 13032 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13033 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13034 | #ifdef __cplusplus |
| 13035 | extern "C" |
| 13036 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13037 | /* 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] | 13038 | builtin and then its argument prototype would still apply. */ |
| 13039 | char acl_get_file (); |
| 13040 | int |
| 13041 | main () |
| 13042 | { |
| 13043 | acl_get_file (); |
| 13044 | ; |
| 13045 | return 0; |
| 13046 | } |
| 13047 | _ACEOF |
| 13048 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13050 | (eval $ac_link) 2>conftest.er1 |
| 13051 | ac_status=$? |
| 13052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13053 | rm -f conftest.er1 |
| 13054 | cat conftest.err >&5 |
| 13055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13056 | (exit $ac_status); } && |
| 13057 | { ac_try='test -z "$ac_c_werror_flag" |
| 13058 | || test ! -s conftest.err' |
| 13059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13060 | (eval $ac_try) 2>&5 |
| 13061 | ac_status=$? |
| 13062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13063 | (exit $ac_status); }; } && |
| 13064 | { ac_try='test -s conftest$ac_exeext' |
| 13065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13066 | (eval $ac_try) 2>&5 |
| 13067 | ac_status=$? |
| 13068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13069 | (exit $ac_status); }; }; then |
| 13070 | ac_cv_lib_acl_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13071 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13072 | echo "$as_me: failed program was:" >&5 |
| 13073 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13074 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13075 | ac_cv_lib_acl_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13076 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13077 | rm -f conftest.err conftest.$ac_objext \ |
| 13078 | conftest$ac_exeext conftest.$ac_ext |
| 13079 | LIBS=$ac_check_lib_save_LIBS |
| 13080 | fi |
| 13081 | echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 13082 | echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6 |
| 13083 | if test $ac_cv_lib_acl_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13084 | LIBS="$LIBS -lacl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13085 | echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
| 13086 | echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6 |
| 13087 | if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
| 13088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13089 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13090 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13091 | LIBS="-lattr $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13092 | cat >conftest.$ac_ext <<_ACEOF |
| 13093 | /* confdefs.h. */ |
| 13094 | _ACEOF |
| 13095 | cat confdefs.h >>conftest.$ac_ext |
| 13096 | cat >>conftest.$ac_ext <<_ACEOF |
| 13097 | /* end confdefs.h. */ |
| 13098 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13099 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13100 | #ifdef __cplusplus |
| 13101 | extern "C" |
| 13102 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13103 | /* 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] | 13104 | builtin and then its argument prototype would still apply. */ |
| 13105 | char fgetxattr (); |
| 13106 | int |
| 13107 | main () |
| 13108 | { |
| 13109 | fgetxattr (); |
| 13110 | ; |
| 13111 | return 0; |
| 13112 | } |
| 13113 | _ACEOF |
| 13114 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13116 | (eval $ac_link) 2>conftest.er1 |
| 13117 | ac_status=$? |
| 13118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13119 | rm -f conftest.er1 |
| 13120 | cat conftest.err >&5 |
| 13121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13122 | (exit $ac_status); } && |
| 13123 | { ac_try='test -z "$ac_c_werror_flag" |
| 13124 | || test ! -s conftest.err' |
| 13125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13126 | (eval $ac_try) 2>&5 |
| 13127 | ac_status=$? |
| 13128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13129 | (exit $ac_status); }; } && |
| 13130 | { ac_try='test -s conftest$ac_exeext' |
| 13131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13132 | (eval $ac_try) 2>&5 |
| 13133 | ac_status=$? |
| 13134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13135 | (exit $ac_status); }; }; then |
| 13136 | ac_cv_lib_attr_fgetxattr=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13137 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13138 | echo "$as_me: failed program was:" >&5 |
| 13139 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13140 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13141 | ac_cv_lib_attr_fgetxattr=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13142 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13143 | rm -f conftest.err conftest.$ac_objext \ |
| 13144 | conftest$ac_exeext conftest.$ac_ext |
| 13145 | LIBS=$ac_check_lib_save_LIBS |
| 13146 | fi |
| 13147 | echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 13148 | echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6 |
| 13149 | if test $ac_cv_lib_attr_fgetxattr = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13150 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13151 | fi |
| 13152 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13153 | fi |
| 13154 | |
| 13155 | fi |
| 13156 | |
| 13157 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13158 | echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
| 13159 | echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6 |
| 13160 | cat >conftest.$ac_ext <<_ACEOF |
| 13161 | /* confdefs.h. */ |
| 13162 | _ACEOF |
| 13163 | cat confdefs.h >>conftest.$ac_ext |
| 13164 | cat >>conftest.$ac_ext <<_ACEOF |
| 13165 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13166 | |
| 13167 | #include <sys/types.h> |
| 13168 | #ifdef HAVE_SYS_ACL_H |
| 13169 | # include <sys/acl.h> |
| 13170 | #endif |
| 13171 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13172 | int |
| 13173 | main () |
| 13174 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13175 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 13176 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 13177 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13178 | ; |
| 13179 | return 0; |
| 13180 | } |
| 13181 | _ACEOF |
| 13182 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13184 | (eval $ac_link) 2>conftest.er1 |
| 13185 | ac_status=$? |
| 13186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13187 | rm -f conftest.er1 |
| 13188 | cat conftest.err >&5 |
| 13189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13190 | (exit $ac_status); } && |
| 13191 | { ac_try='test -z "$ac_c_werror_flag" |
| 13192 | || test ! -s conftest.err' |
| 13193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13194 | (eval $ac_try) 2>&5 |
| 13195 | ac_status=$? |
| 13196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13197 | (exit $ac_status); }; } && |
| 13198 | { ac_try='test -s conftest$ac_exeext' |
| 13199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13200 | (eval $ac_try) 2>&5 |
| 13201 | ac_status=$? |
| 13202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13203 | (exit $ac_status); }; }; then |
| 13204 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13205 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13206 | #define HAVE_POSIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13207 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13208 | |
| 13209 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13210 | echo "$as_me: failed program was:" >&5 |
| 13211 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13212 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13213 | echo "$as_me:$LINENO: result: no" >&5 |
| 13214 | echo "${ECHO_T}no" >&6 |
| 13215 | fi |
| 13216 | rm -f conftest.err conftest.$ac_objext \ |
| 13217 | conftest$ac_exeext conftest.$ac_ext |
| 13218 | |
| 13219 | echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
| 13220 | echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6 |
| 13221 | cat >conftest.$ac_ext <<_ACEOF |
| 13222 | /* confdefs.h. */ |
| 13223 | _ACEOF |
| 13224 | cat confdefs.h >>conftest.$ac_ext |
| 13225 | cat >>conftest.$ac_ext <<_ACEOF |
| 13226 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13227 | |
| 13228 | #ifdef HAVE_SYS_ACL_H |
| 13229 | # include <sys/acl.h> |
| 13230 | #endif |
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 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13235 | |
| 13236 | ; |
| 13237 | return 0; |
| 13238 | } |
| 13239 | _ACEOF |
| 13240 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13242 | (eval $ac_link) 2>conftest.er1 |
| 13243 | ac_status=$? |
| 13244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13245 | rm -f conftest.er1 |
| 13246 | cat conftest.err >&5 |
| 13247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13248 | (exit $ac_status); } && |
| 13249 | { ac_try='test -z "$ac_c_werror_flag" |
| 13250 | || test ! -s conftest.err' |
| 13251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13252 | (eval $ac_try) 2>&5 |
| 13253 | ac_status=$? |
| 13254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13255 | (exit $ac_status); }; } && |
| 13256 | { ac_try='test -s conftest$ac_exeext' |
| 13257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13258 | (eval $ac_try) 2>&5 |
| 13259 | ac_status=$? |
| 13260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13261 | (exit $ac_status); }; }; then |
| 13262 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13263 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13264 | #define HAVE_SOLARIS_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13265 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13266 | |
| 13267 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13268 | echo "$as_me: failed program was:" >&5 |
| 13269 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13270 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13271 | echo "$as_me:$LINENO: result: no" >&5 |
| 13272 | echo "${ECHO_T}no" >&6 |
| 13273 | fi |
| 13274 | rm -f conftest.err conftest.$ac_objext \ |
| 13275 | conftest$ac_exeext conftest.$ac_ext |
| 13276 | |
| 13277 | echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
| 13278 | echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6 |
| 13279 | cat >conftest.$ac_ext <<_ACEOF |
| 13280 | /* confdefs.h. */ |
| 13281 | _ACEOF |
| 13282 | cat confdefs.h >>conftest.$ac_ext |
| 13283 | cat >>conftest.$ac_ext <<_ACEOF |
| 13284 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13285 | |
| 13286 | #ifdef HAVE_SYS_ACL_H |
| 13287 | # include <sys/acl.h> |
| 13288 | #endif |
| 13289 | #ifdef HAVE_SYS_ACCESS_H |
| 13290 | # include <sys/access.h> |
| 13291 | #endif |
| 13292 | #define _ALL_SOURCE |
| 13293 | |
| 13294 | #include <sys/stat.h> |
| 13295 | |
| 13296 | int aclsize; |
| 13297 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13298 | int |
| 13299 | main () |
| 13300 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13301 | aclsize = sizeof(struct acl); |
| 13302 | aclent = (void *)malloc(aclsize); |
| 13303 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13304 | |
| 13305 | ; |
| 13306 | return 0; |
| 13307 | } |
| 13308 | _ACEOF |
| 13309 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13311 | (eval $ac_link) 2>conftest.er1 |
| 13312 | ac_status=$? |
| 13313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13314 | rm -f conftest.er1 |
| 13315 | cat conftest.err >&5 |
| 13316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13317 | (exit $ac_status); } && |
| 13318 | { ac_try='test -z "$ac_c_werror_flag" |
| 13319 | || test ! -s conftest.err' |
| 13320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13321 | (eval $ac_try) 2>&5 |
| 13322 | ac_status=$? |
| 13323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13324 | (exit $ac_status); }; } && |
| 13325 | { ac_try='test -s conftest$ac_exeext' |
| 13326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13327 | (eval $ac_try) 2>&5 |
| 13328 | ac_status=$? |
| 13329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13330 | (exit $ac_status); }; }; then |
| 13331 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13332 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13333 | #define HAVE_AIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13334 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13335 | |
| 13336 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13337 | echo "$as_me: failed program was:" >&5 |
| 13338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13339 | |
| 13340 | echo "$as_me:$LINENO: result: no" >&5 |
| 13341 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13342 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13343 | rm -f conftest.err conftest.$ac_objext \ |
| 13344 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13345 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13346 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13347 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13348 | fi |
| 13349 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13350 | echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 |
| 13351 | echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13352 | # Check whether --enable-gpm or --disable-gpm was given. |
| 13353 | if test "${enable_gpm+set}" = set; then |
| 13354 | enableval="$enable_gpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13355 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13356 | else |
| 13357 | enable_gpm="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13358 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13359 | |
| 13360 | if test "$enable_gpm" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13361 | echo "$as_me:$LINENO: result: no" >&5 |
| 13362 | echo "${ECHO_T}no" >&6 |
| 13363 | echo "$as_me:$LINENO: checking for gpm" >&5 |
| 13364 | echo $ECHO_N "checking for gpm... $ECHO_C" >&6 |
| 13365 | if test "${vi_cv_have_gpm+set}" = set; then |
| 13366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13367 | else |
| 13368 | olibs="$LIBS" ; LIBS="-lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13369 | cat >conftest.$ac_ext <<_ACEOF |
| 13370 | /* confdefs.h. */ |
| 13371 | _ACEOF |
| 13372 | cat confdefs.h >>conftest.$ac_ext |
| 13373 | cat >>conftest.$ac_ext <<_ACEOF |
| 13374 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13375 | #include <gpm.h> |
| 13376 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13377 | int |
| 13378 | main () |
| 13379 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13380 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13381 | ; |
| 13382 | return 0; |
| 13383 | } |
| 13384 | _ACEOF |
| 13385 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13387 | (eval $ac_link) 2>conftest.er1 |
| 13388 | ac_status=$? |
| 13389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13390 | rm -f conftest.er1 |
| 13391 | cat conftest.err >&5 |
| 13392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13393 | (exit $ac_status); } && |
| 13394 | { ac_try='test -z "$ac_c_werror_flag" |
| 13395 | || test ! -s conftest.err' |
| 13396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13397 | (eval $ac_try) 2>&5 |
| 13398 | ac_status=$? |
| 13399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13400 | (exit $ac_status); }; } && |
| 13401 | { ac_try='test -s conftest$ac_exeext' |
| 13402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13403 | (eval $ac_try) 2>&5 |
| 13404 | ac_status=$? |
| 13405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13406 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13407 | vi_cv_have_gpm=yes |
| 13408 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13409 | echo "$as_me: failed program was:" >&5 |
| 13410 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13411 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13412 | vi_cv_have_gpm=no |
| 13413 | fi |
| 13414 | rm -f conftest.err conftest.$ac_objext \ |
| 13415 | conftest$ac_exeext conftest.$ac_ext |
| 13416 | LIBS="$olibs" |
| 13417 | |
| 13418 | fi |
| 13419 | echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
| 13420 | echo "${ECHO_T}$vi_cv_have_gpm" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13421 | if test $vi_cv_have_gpm = yes; then |
| 13422 | LIBS="$LIBS -lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13423 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13424 | #define HAVE_GPM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13425 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13426 | |
| 13427 | fi |
| 13428 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13429 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13430 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13431 | fi |
| 13432 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13433 | echo "$as_me:$LINENO: checking for rename" >&5 |
| 13434 | echo $ECHO_N "checking for rename... $ECHO_C" >&6 |
| 13435 | cat >conftest.$ac_ext <<_ACEOF |
| 13436 | /* confdefs.h. */ |
| 13437 | _ACEOF |
| 13438 | cat confdefs.h >>conftest.$ac_ext |
| 13439 | cat >>conftest.$ac_ext <<_ACEOF |
| 13440 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13441 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13442 | int |
| 13443 | main () |
| 13444 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13445 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13446 | ; |
| 13447 | return 0; |
| 13448 | } |
| 13449 | _ACEOF |
| 13450 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13452 | (eval $ac_link) 2>conftest.er1 |
| 13453 | ac_status=$? |
| 13454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13455 | rm -f conftest.er1 |
| 13456 | cat conftest.err >&5 |
| 13457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13458 | (exit $ac_status); } && |
| 13459 | { ac_try='test -z "$ac_c_werror_flag" |
| 13460 | || test ! -s conftest.err' |
| 13461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13462 | (eval $ac_try) 2>&5 |
| 13463 | ac_status=$? |
| 13464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13465 | (exit $ac_status); }; } && |
| 13466 | { ac_try='test -s conftest$ac_exeext' |
| 13467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13468 | (eval $ac_try) 2>&5 |
| 13469 | ac_status=$? |
| 13470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13471 | (exit $ac_status); }; }; then |
| 13472 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13473 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13474 | #define HAVE_RENAME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13475 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13476 | |
| 13477 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13478 | echo "$as_me: failed program was:" >&5 |
| 13479 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13480 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13481 | echo "$as_me:$LINENO: result: no" >&5 |
| 13482 | echo "${ECHO_T}no" >&6 |
| 13483 | fi |
| 13484 | rm -f conftest.err conftest.$ac_objext \ |
| 13485 | conftest$ac_exeext conftest.$ac_ext |
| 13486 | |
| 13487 | echo "$as_me:$LINENO: checking for sysctl" >&5 |
| 13488 | echo $ECHO_N "checking for sysctl... $ECHO_C" >&6 |
| 13489 | cat >conftest.$ac_ext <<_ACEOF |
| 13490 | /* confdefs.h. */ |
| 13491 | _ACEOF |
| 13492 | cat confdefs.h >>conftest.$ac_ext |
| 13493 | cat >>conftest.$ac_ext <<_ACEOF |
| 13494 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13495 | #include <sys/types.h> |
| 13496 | #include <sys/sysctl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13497 | int |
| 13498 | main () |
| 13499 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13500 | int mib[2], r; |
| 13501 | size_t len; |
| 13502 | |
| 13503 | mib[0] = CTL_HW; |
| 13504 | mib[1] = HW_USERMEM; |
| 13505 | len = sizeof(r); |
| 13506 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13507 | |
| 13508 | ; |
| 13509 | return 0; |
| 13510 | } |
| 13511 | _ACEOF |
| 13512 | rm -f conftest.$ac_objext |
| 13513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13514 | (eval $ac_compile) 2>conftest.er1 |
| 13515 | ac_status=$? |
| 13516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13517 | rm -f conftest.er1 |
| 13518 | cat conftest.err >&5 |
| 13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13520 | (exit $ac_status); } && |
| 13521 | { ac_try='test -z "$ac_c_werror_flag" |
| 13522 | || test ! -s conftest.err' |
| 13523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13524 | (eval $ac_try) 2>&5 |
| 13525 | ac_status=$? |
| 13526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13527 | (exit $ac_status); }; } && |
| 13528 | { ac_try='test -s conftest.$ac_objext' |
| 13529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13530 | (eval $ac_try) 2>&5 |
| 13531 | ac_status=$? |
| 13532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13533 | (exit $ac_status); }; }; then |
| 13534 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13535 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13536 | #define HAVE_SYSCTL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13537 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13538 | |
| 13539 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13540 | echo "$as_me: failed program was:" >&5 |
| 13541 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13542 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13543 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13544 | echo "${ECHO_T}not usable" >&6 |
| 13545 | fi |
| 13546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13547 | |
| 13548 | echo "$as_me:$LINENO: checking for sysinfo" >&5 |
| 13549 | echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6 |
| 13550 | cat >conftest.$ac_ext <<_ACEOF |
| 13551 | /* confdefs.h. */ |
| 13552 | _ACEOF |
| 13553 | cat confdefs.h >>conftest.$ac_ext |
| 13554 | cat >>conftest.$ac_ext <<_ACEOF |
| 13555 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13556 | #include <sys/types.h> |
| 13557 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13558 | int |
| 13559 | main () |
| 13560 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13561 | struct sysinfo sinfo; |
| 13562 | int t; |
| 13563 | |
| 13564 | (void)sysinfo(&sinfo); |
| 13565 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13566 | |
| 13567 | ; |
| 13568 | return 0; |
| 13569 | } |
| 13570 | _ACEOF |
| 13571 | rm -f conftest.$ac_objext |
| 13572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13573 | (eval $ac_compile) 2>conftest.er1 |
| 13574 | ac_status=$? |
| 13575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13576 | rm -f conftest.er1 |
| 13577 | cat conftest.err >&5 |
| 13578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13579 | (exit $ac_status); } && |
| 13580 | { ac_try='test -z "$ac_c_werror_flag" |
| 13581 | || test ! -s conftest.err' |
| 13582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13583 | (eval $ac_try) 2>&5 |
| 13584 | ac_status=$? |
| 13585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13586 | (exit $ac_status); }; } && |
| 13587 | { ac_try='test -s conftest.$ac_objext' |
| 13588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13589 | (eval $ac_try) 2>&5 |
| 13590 | ac_status=$? |
| 13591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13592 | (exit $ac_status); }; }; then |
| 13593 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13594 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13595 | #define HAVE_SYSINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13596 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13597 | |
| 13598 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13599 | echo "$as_me: failed program was:" >&5 |
| 13600 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13601 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13602 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13603 | echo "${ECHO_T}not usable" >&6 |
| 13604 | fi |
| 13605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13606 | |
| 13607 | echo "$as_me:$LINENO: checking for sysconf" >&5 |
| 13608 | echo $ECHO_N "checking for sysconf... $ECHO_C" >&6 |
| 13609 | cat >conftest.$ac_ext <<_ACEOF |
| 13610 | /* confdefs.h. */ |
| 13611 | _ACEOF |
| 13612 | cat confdefs.h >>conftest.$ac_ext |
| 13613 | cat >>conftest.$ac_ext <<_ACEOF |
| 13614 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13615 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13616 | int |
| 13617 | main () |
| 13618 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13619 | (void)sysconf(_SC_PAGESIZE); |
| 13620 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13621 | |
| 13622 | ; |
| 13623 | return 0; |
| 13624 | } |
| 13625 | _ACEOF |
| 13626 | rm -f conftest.$ac_objext |
| 13627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13628 | (eval $ac_compile) 2>conftest.er1 |
| 13629 | ac_status=$? |
| 13630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13631 | rm -f conftest.er1 |
| 13632 | cat conftest.err >&5 |
| 13633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13634 | (exit $ac_status); } && |
| 13635 | { ac_try='test -z "$ac_c_werror_flag" |
| 13636 | || test ! -s conftest.err' |
| 13637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13638 | (eval $ac_try) 2>&5 |
| 13639 | ac_status=$? |
| 13640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13641 | (exit $ac_status); }; } && |
| 13642 | { ac_try='test -s conftest.$ac_objext' |
| 13643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13644 | (eval $ac_try) 2>&5 |
| 13645 | ac_status=$? |
| 13646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13647 | (exit $ac_status); }; }; then |
| 13648 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13649 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13650 | #define HAVE_SYSCONF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13651 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13652 | |
| 13653 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13654 | echo "$as_me: failed program was:" >&5 |
| 13655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13656 | |
| 13657 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13658 | echo "${ECHO_T}not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13659 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13661 | |
| 13662 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13663 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 13664 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 13665 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 13666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13667 | else |
| 13668 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13669 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13670 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13671 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13672 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13673 | cat >conftest.$ac_ext <<_ACEOF |
| 13674 | /* confdefs.h. */ |
| 13675 | _ACEOF |
| 13676 | cat confdefs.h >>conftest.$ac_ext |
| 13677 | cat >>conftest.$ac_ext <<_ACEOF |
| 13678 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13679 | #include <stdio.h> |
| 13680 | main() |
| 13681 | { |
| 13682 | FILE *f=fopen("conftestval", "w"); |
| 13683 | if (!f) exit(1); |
| 13684 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 13685 | exit(0); |
| 13686 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13687 | _ACEOF |
| 13688 | rm -f conftest$ac_exeext |
| 13689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13690 | (eval $ac_link) 2>&5 |
| 13691 | ac_status=$? |
| 13692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13693 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13695 | (eval $ac_try) 2>&5 |
| 13696 | ac_status=$? |
| 13697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13698 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13699 | ac_cv_sizeof_int=`cat conftestval` |
| 13700 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13701 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13702 | echo "$as_me: failed program was:" >&5 |
| 13703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13704 | |
| 13705 | ( exit $ac_status ) |
| 13706 | ac_cv_sizeof_int=0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13707 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13708 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13709 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13710 | fi |
| 13711 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13712 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13713 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 13714 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13715 | #define SIZEOF_INT $ac_cv_sizeof_int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13716 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13717 | |
| 13718 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13719 | echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5 |
| 13720 | 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] | 13721 | bcopy_test_prog=' |
| 13722 | main() { |
| 13723 | char buf[10]; |
| 13724 | strcpy(buf, "abcdefghi"); |
| 13725 | mch_memmove(buf, buf + 2, 3); |
| 13726 | if (strncmp(buf, "ababcf", 6)) |
| 13727 | exit(1); |
| 13728 | strcpy(buf, "abcdefghi"); |
| 13729 | mch_memmove(buf + 2, buf, 3); |
| 13730 | if (strncmp(buf, "cdedef", 6)) |
| 13731 | exit(1); |
| 13732 | exit(0); /* libc version works properly. */ |
| 13733 | }' |
| 13734 | |
| 13735 | |
| 13736 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13737 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13738 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13739 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13740 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13741 | cat >conftest.$ac_ext <<_ACEOF |
| 13742 | /* confdefs.h. */ |
| 13743 | _ACEOF |
| 13744 | cat confdefs.h >>conftest.$ac_ext |
| 13745 | cat >>conftest.$ac_ext <<_ACEOF |
| 13746 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13747 | #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] | 13748 | _ACEOF |
| 13749 | rm -f conftest$ac_exeext |
| 13750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13751 | (eval $ac_link) 2>&5 |
| 13752 | ac_status=$? |
| 13753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13754 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13756 | (eval $ac_try) 2>&5 |
| 13757 | ac_status=$? |
| 13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13759 | (exit $ac_status); }; }; then |
| 13760 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13761 | #define USEMEMMOVE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13762 | _ACEOF |
| 13763 | echo "$as_me:$LINENO: result: memmove does" >&5 |
| 13764 | echo "${ECHO_T}memmove does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13765 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13766 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13767 | echo "$as_me: failed program was:" >&5 |
| 13768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13769 | |
| 13770 | ( exit $ac_status ) |
| 13771 | if test "$cross_compiling" = yes; then |
| 13772 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13773 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13774 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13775 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13776 | cat >conftest.$ac_ext <<_ACEOF |
| 13777 | /* confdefs.h. */ |
| 13778 | _ACEOF |
| 13779 | cat confdefs.h >>conftest.$ac_ext |
| 13780 | cat >>conftest.$ac_ext <<_ACEOF |
| 13781 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13782 | #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] | 13783 | _ACEOF |
| 13784 | rm -f conftest$ac_exeext |
| 13785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13786 | (eval $ac_link) 2>&5 |
| 13787 | ac_status=$? |
| 13788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13789 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13791 | (eval $ac_try) 2>&5 |
| 13792 | ac_status=$? |
| 13793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13794 | (exit $ac_status); }; }; then |
| 13795 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13796 | #define USEBCOPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13797 | _ACEOF |
| 13798 | echo "$as_me:$LINENO: result: bcopy does" >&5 |
| 13799 | echo "${ECHO_T}bcopy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13800 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13801 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13802 | echo "$as_me: failed program was:" >&5 |
| 13803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13804 | |
| 13805 | ( exit $ac_status ) |
| 13806 | if test "$cross_compiling" = yes; then |
| 13807 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13808 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13809 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13810 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13811 | cat >conftest.$ac_ext <<_ACEOF |
| 13812 | /* confdefs.h. */ |
| 13813 | _ACEOF |
| 13814 | cat confdefs.h >>conftest.$ac_ext |
| 13815 | cat >>conftest.$ac_ext <<_ACEOF |
| 13816 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13817 | #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] | 13818 | _ACEOF |
| 13819 | rm -f conftest$ac_exeext |
| 13820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13821 | (eval $ac_link) 2>&5 |
| 13822 | ac_status=$? |
| 13823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13824 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13826 | (eval $ac_try) 2>&5 |
| 13827 | ac_status=$? |
| 13828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13829 | (exit $ac_status); }; }; then |
| 13830 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13831 | #define USEMEMCPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13832 | _ACEOF |
| 13833 | echo "$as_me:$LINENO: result: memcpy does" >&5 |
| 13834 | echo "${ECHO_T}memcpy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13835 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13836 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13837 | echo "$as_me: failed program was:" >&5 |
| 13838 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13839 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13840 | ( exit $ac_status ) |
| 13841 | echo "$as_me:$LINENO: result: no" >&5 |
| 13842 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13843 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13844 | 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] | 13845 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13846 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13847 | 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] | 13848 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13849 | fi |
| 13850 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13851 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13852 | |
| 13853 | |
| 13854 | if test "$enable_multibyte" = "yes"; then |
| 13855 | cflags_save=$CFLAGS |
| 13856 | ldflags_save=$LDFLAGS |
| 13857 | if test -n "$x_includes" ; then |
| 13858 | CFLAGS="$CFLAGS -I$x_includes" |
| 13859 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13860 | echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
| 13861 | echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6 |
| 13862 | cat >conftest.$ac_ext <<_ACEOF |
| 13863 | /* confdefs.h. */ |
| 13864 | _ACEOF |
| 13865 | cat confdefs.h >>conftest.$ac_ext |
| 13866 | cat >>conftest.$ac_ext <<_ACEOF |
| 13867 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13868 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13869 | int |
| 13870 | main () |
| 13871 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13872 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13873 | ; |
| 13874 | return 0; |
| 13875 | } |
| 13876 | _ACEOF |
| 13877 | rm -f conftest.$ac_objext |
| 13878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13879 | (eval $ac_compile) 2>conftest.er1 |
| 13880 | ac_status=$? |
| 13881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13882 | rm -f conftest.er1 |
| 13883 | cat conftest.err >&5 |
| 13884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13885 | (exit $ac_status); } && |
| 13886 | { ac_try='test -z "$ac_c_werror_flag" |
| 13887 | || test ! -s conftest.err' |
| 13888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13889 | (eval $ac_try) 2>&5 |
| 13890 | ac_status=$? |
| 13891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13892 | (exit $ac_status); }; } && |
| 13893 | { ac_try='test -s conftest.$ac_objext' |
| 13894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13895 | (eval $ac_try) 2>&5 |
| 13896 | ac_status=$? |
| 13897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13898 | (exit $ac_status); }; }; then |
| 13899 | cat >conftest.$ac_ext <<_ACEOF |
| 13900 | /* confdefs.h. */ |
| 13901 | _ACEOF |
| 13902 | cat confdefs.h >>conftest.$ac_ext |
| 13903 | cat >>conftest.$ac_ext <<_ACEOF |
| 13904 | /* end confdefs.h. */ |
| 13905 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13906 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13907 | #ifdef __cplusplus |
| 13908 | extern "C" |
| 13909 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13910 | /* 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] | 13911 | builtin and then its argument prototype would still apply. */ |
| 13912 | char _Xsetlocale (); |
| 13913 | int |
| 13914 | main () |
| 13915 | { |
| 13916 | _Xsetlocale (); |
| 13917 | ; |
| 13918 | return 0; |
| 13919 | } |
| 13920 | _ACEOF |
| 13921 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13923 | (eval $ac_link) 2>conftest.er1 |
| 13924 | ac_status=$? |
| 13925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13926 | rm -f conftest.er1 |
| 13927 | cat conftest.err >&5 |
| 13928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13929 | (exit $ac_status); } && |
| 13930 | { ac_try='test -z "$ac_c_werror_flag" |
| 13931 | || test ! -s conftest.err' |
| 13932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13933 | (eval $ac_try) 2>&5 |
| 13934 | ac_status=$? |
| 13935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13936 | (exit $ac_status); }; } && |
| 13937 | { ac_try='test -s conftest$ac_exeext' |
| 13938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13939 | (eval $ac_try) 2>&5 |
| 13940 | ac_status=$? |
| 13941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13942 | (exit $ac_status); }; }; then |
| 13943 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13944 | echo "${ECHO_T}yes" >&6 |
| 13945 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13946 | #define X_LOCALE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13947 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13948 | |
| 13949 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13950 | echo "$as_me: failed program was:" >&5 |
| 13951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13952 | |
| 13953 | echo "$as_me:$LINENO: result: no" >&5 |
| 13954 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13955 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13956 | rm -f conftest.err conftest.$ac_objext \ |
| 13957 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13958 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13959 | echo "$as_me: failed program was:" >&5 |
| 13960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13961 | |
| 13962 | echo "$as_me:$LINENO: result: no" >&5 |
| 13963 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13964 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13966 | fi |
| 13967 | CFLAGS=$cflags_save |
| 13968 | LDFLAGS=$ldflags_save |
| 13969 | fi |
| 13970 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13971 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 13972 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 13973 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 13974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13975 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13976 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13977 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13978 | cat >conftest.$ac_ext <<_ACEOF |
| 13979 | /* confdefs.h. */ |
| 13980 | _ACEOF |
| 13981 | cat confdefs.h >>conftest.$ac_ext |
| 13982 | cat >>conftest.$ac_ext <<_ACEOF |
| 13983 | /* end confdefs.h. */ |
| 13984 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13985 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13986 | #ifdef __cplusplus |
| 13987 | extern "C" |
| 13988 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13989 | /* 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] | 13990 | builtin and then its argument prototype would still apply. */ |
| 13991 | char _xpg4_setrunelocale (); |
| 13992 | int |
| 13993 | main () |
| 13994 | { |
| 13995 | _xpg4_setrunelocale (); |
| 13996 | ; |
| 13997 | return 0; |
| 13998 | } |
| 13999 | _ACEOF |
| 14000 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14002 | (eval $ac_link) 2>conftest.er1 |
| 14003 | ac_status=$? |
| 14004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14005 | rm -f conftest.er1 |
| 14006 | cat conftest.err >&5 |
| 14007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14008 | (exit $ac_status); } && |
| 14009 | { ac_try='test -z "$ac_c_werror_flag" |
| 14010 | || test ! -s conftest.err' |
| 14011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14012 | (eval $ac_try) 2>&5 |
| 14013 | ac_status=$? |
| 14014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14015 | (exit $ac_status); }; } && |
| 14016 | { ac_try='test -s conftest$ac_exeext' |
| 14017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14018 | (eval $ac_try) 2>&5 |
| 14019 | ac_status=$? |
| 14020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14021 | (exit $ac_status); }; }; then |
| 14022 | ac_cv_lib_xpg4__xpg4_setrunelocale=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 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14026 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14027 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14028 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14029 | rm -f conftest.err conftest.$ac_objext \ |
| 14030 | conftest$ac_exeext conftest.$ac_ext |
| 14031 | LIBS=$ac_check_lib_save_LIBS |
| 14032 | fi |
| 14033 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 14034 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 14035 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14036 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14037 | fi |
| 14038 | |
| 14039 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14040 | echo "$as_me:$LINENO: checking how to create tags" >&5 |
| 14041 | echo $ECHO_N "checking how to create tags... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14042 | test -f tags && mv tags tags.save |
| 14043 | 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] | 14044 | TAGPRG="ctags -I INIT+" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14045 | else |
| 14046 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 14047 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 14048 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 14049 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 14050 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 14051 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 14052 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 14053 | fi |
| 14054 | test -f tags.save && mv tags.save tags |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14055 | echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
| 14056 | echo "${ECHO_T}$TAGPRG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14057 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14058 | echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
| 14059 | 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] | 14060 | MANDEF="man" |
| 14061 | (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] | 14062 | echo "$as_me:$LINENO: result: $MANDEF" >&5 |
| 14063 | echo "${ECHO_T}$MANDEF" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14064 | if test "$MANDEF" = "man -s"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14065 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14066 | #define USEMAN_S 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14067 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14068 | |
| 14069 | fi |
| 14070 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14071 | echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
| 14072 | echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14073 | # Check whether --enable-nls or --disable-nls was given. |
| 14074 | if test "${enable_nls+set}" = set; then |
| 14075 | enableval="$enable_nls" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14076 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14077 | else |
| 14078 | enable_nls="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14079 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14080 | |
| 14081 | if test "$enable_nls" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14082 | echo "$as_me:$LINENO: result: no" >&5 |
| 14083 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 14084 | |
| 14085 | INSTALL_LANGS=install-languages |
| 14086 | |
| 14087 | INSTALL_TOOL_LANGS=install-tool-languages |
| 14088 | |
| 14089 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14090 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 14091 | set dummy msgfmt; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14092 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14094 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
| 14095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14096 | else |
| 14097 | if test -n "$MSGFMT"; then |
| 14098 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 14099 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14101 | for as_dir in $PATH |
| 14102 | do |
| 14103 | IFS=$as_save_IFS |
| 14104 | test -z "$as_dir" && as_dir=. |
| 14105 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14106 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14107 | ac_cv_prog_MSGFMT="msgfmt" |
| 14108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14109 | break 2 |
| 14110 | fi |
| 14111 | done |
| 14112 | done |
| 14113 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14114 | fi |
| 14115 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14116 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14117 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14118 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 14119 | echo "${ECHO_T}$MSGFMT" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14120 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14121 | echo "$as_me:$LINENO: result: no" >&5 |
| 14122 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14123 | fi |
| 14124 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14125 | echo "$as_me:$LINENO: checking for NLS" >&5 |
| 14126 | echo $ECHO_N "checking for NLS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14127 | if test -f po/Makefile; then |
| 14128 | have_gettext="no" |
| 14129 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14130 | cat >conftest.$ac_ext <<_ACEOF |
| 14131 | /* confdefs.h. */ |
| 14132 | _ACEOF |
| 14133 | cat confdefs.h >>conftest.$ac_ext |
| 14134 | cat >>conftest.$ac_ext <<_ACEOF |
| 14135 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14136 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14137 | int |
| 14138 | main () |
| 14139 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14140 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14141 | ; |
| 14142 | return 0; |
| 14143 | } |
| 14144 | _ACEOF |
| 14145 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14147 | (eval $ac_link) 2>conftest.er1 |
| 14148 | ac_status=$? |
| 14149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14150 | rm -f conftest.er1 |
| 14151 | cat conftest.err >&5 |
| 14152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14153 | (exit $ac_status); } && |
| 14154 | { ac_try='test -z "$ac_c_werror_flag" |
| 14155 | || test ! -s conftest.err' |
| 14156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14157 | (eval $ac_try) 2>&5 |
| 14158 | ac_status=$? |
| 14159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14160 | (exit $ac_status); }; } && |
| 14161 | { ac_try='test -s conftest$ac_exeext' |
| 14162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14163 | (eval $ac_try) 2>&5 |
| 14164 | ac_status=$? |
| 14165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14166 | (exit $ac_status); }; }; then |
| 14167 | echo "$as_me:$LINENO: result: gettext() works" >&5 |
| 14168 | echo "${ECHO_T}gettext() works" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14169 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14170 | echo "$as_me: failed program was:" >&5 |
| 14171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14172 | |
| 14173 | olibs=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14174 | LIBS="$LIBS -lintl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14175 | cat >conftest.$ac_ext <<_ACEOF |
| 14176 | /* confdefs.h. */ |
| 14177 | _ACEOF |
| 14178 | cat confdefs.h >>conftest.$ac_ext |
| 14179 | cat >>conftest.$ac_ext <<_ACEOF |
| 14180 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14181 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14182 | int |
| 14183 | main () |
| 14184 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14185 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14186 | ; |
| 14187 | return 0; |
| 14188 | } |
| 14189 | _ACEOF |
| 14190 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14192 | (eval $ac_link) 2>conftest.er1 |
| 14193 | ac_status=$? |
| 14194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14195 | rm -f conftest.er1 |
| 14196 | cat conftest.err >&5 |
| 14197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14198 | (exit $ac_status); } && |
| 14199 | { ac_try='test -z "$ac_c_werror_flag" |
| 14200 | || test ! -s conftest.err' |
| 14201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14202 | (eval $ac_try) 2>&5 |
| 14203 | ac_status=$? |
| 14204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14205 | (exit $ac_status); }; } && |
| 14206 | { ac_try='test -s conftest$ac_exeext' |
| 14207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14208 | (eval $ac_try) 2>&5 |
| 14209 | ac_status=$? |
| 14210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14211 | (exit $ac_status); }; }; then |
| 14212 | echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 |
| 14213 | echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14214 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14215 | echo "$as_me: failed program was:" >&5 |
| 14216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14217 | |
| 14218 | echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 |
| 14219 | echo "${ECHO_T}gettext() doesn't work" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14220 | LIBS=$olibs |
| 14221 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14222 | rm -f conftest.err conftest.$ac_objext \ |
| 14223 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14224 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14225 | rm -f conftest.err conftest.$ac_objext \ |
| 14226 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14227 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14228 | echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
| 14229 | echo "${ECHO_T}msgfmt not found - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14230 | fi |
| 14231 | if test $have_gettext = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14232 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14233 | #define HAVE_GETTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14234 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14235 | |
| 14236 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14237 | |
| 14238 | |
| 14239 | for ac_func in bind_textdomain_codeset |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14240 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14241 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14242 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14243 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14244 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14246 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14247 | cat >conftest.$ac_ext <<_ACEOF |
| 14248 | /* confdefs.h. */ |
| 14249 | _ACEOF |
| 14250 | cat confdefs.h >>conftest.$ac_ext |
| 14251 | cat >>conftest.$ac_ext <<_ACEOF |
| 14252 | /* end confdefs.h. */ |
| 14253 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14254 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14255 | #define $ac_func innocuous_$ac_func |
| 14256 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14257 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14258 | which can conflict with char $ac_func (); below. |
| 14259 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14260 | <limits.h> exists even on freestanding compilers. */ |
| 14261 | |
| 14262 | #ifdef __STDC__ |
| 14263 | # include <limits.h> |
| 14264 | #else |
| 14265 | # include <assert.h> |
| 14266 | #endif |
| 14267 | |
| 14268 | #undef $ac_func |
| 14269 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14270 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14271 | #ifdef __cplusplus |
| 14272 | extern "C" |
| 14273 | { |
| 14274 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14275 | /* 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] | 14276 | builtin and then its argument prototype would still apply. */ |
| 14277 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14278 | /* The GNU C library defines this for functions which it implements |
| 14279 | to always fail with ENOSYS. Some functions are actually named |
| 14280 | something starting with __ and the normal name is an alias. */ |
| 14281 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14282 | choke me |
| 14283 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14284 | char (*f) () = $ac_func; |
| 14285 | #endif |
| 14286 | #ifdef __cplusplus |
| 14287 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14288 | #endif |
| 14289 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14290 | int |
| 14291 | main () |
| 14292 | { |
| 14293 | return f != $ac_func; |
| 14294 | ; |
| 14295 | return 0; |
| 14296 | } |
| 14297 | _ACEOF |
| 14298 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14300 | (eval $ac_link) 2>conftest.er1 |
| 14301 | ac_status=$? |
| 14302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14303 | rm -f conftest.er1 |
| 14304 | cat conftest.err >&5 |
| 14305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14306 | (exit $ac_status); } && |
| 14307 | { ac_try='test -z "$ac_c_werror_flag" |
| 14308 | || test ! -s conftest.err' |
| 14309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14310 | (eval $ac_try) 2>&5 |
| 14311 | ac_status=$? |
| 14312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14313 | (exit $ac_status); }; } && |
| 14314 | { ac_try='test -s conftest$ac_exeext' |
| 14315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14316 | (eval $ac_try) 2>&5 |
| 14317 | ac_status=$? |
| 14318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14319 | (exit $ac_status); }; }; then |
| 14320 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14321 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14322 | echo "$as_me: failed program was:" >&5 |
| 14323 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14324 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14325 | eval "$as_ac_var=no" |
| 14326 | fi |
| 14327 | rm -f conftest.err conftest.$ac_objext \ |
| 14328 | conftest$ac_exeext conftest.$ac_ext |
| 14329 | fi |
| 14330 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14331 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14332 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14333 | cat >>confdefs.h <<_ACEOF |
| 14334 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14335 | _ACEOF |
| 14336 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14337 | fi |
| 14338 | done |
| 14339 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14340 | echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
| 14341 | echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6 |
| 14342 | cat >conftest.$ac_ext <<_ACEOF |
| 14343 | /* confdefs.h. */ |
| 14344 | _ACEOF |
| 14345 | cat confdefs.h >>conftest.$ac_ext |
| 14346 | cat >>conftest.$ac_ext <<_ACEOF |
| 14347 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14348 | #include <libintl.h> |
| 14349 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14350 | int |
| 14351 | main () |
| 14352 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14353 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14354 | ; |
| 14355 | return 0; |
| 14356 | } |
| 14357 | _ACEOF |
| 14358 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14360 | (eval $ac_link) 2>conftest.er1 |
| 14361 | ac_status=$? |
| 14362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14363 | rm -f conftest.er1 |
| 14364 | cat conftest.err >&5 |
| 14365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14366 | (exit $ac_status); } && |
| 14367 | { ac_try='test -z "$ac_c_werror_flag" |
| 14368 | || test ! -s conftest.err' |
| 14369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14370 | (eval $ac_try) 2>&5 |
| 14371 | ac_status=$? |
| 14372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14373 | (exit $ac_status); }; } && |
| 14374 | { ac_try='test -s conftest$ac_exeext' |
| 14375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14376 | (eval $ac_try) 2>&5 |
| 14377 | ac_status=$? |
| 14378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14379 | (exit $ac_status); }; }; then |
| 14380 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14381 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14382 | #define HAVE_NL_MSG_CAT_CNTR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14383 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14384 | |
| 14385 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14386 | echo "$as_me: failed program was:" >&5 |
| 14387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14388 | |
| 14389 | echo "$as_me:$LINENO: result: no" >&5 |
| 14390 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14391 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14392 | rm -f conftest.err conftest.$ac_objext \ |
| 14393 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14394 | fi |
| 14395 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14396 | echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
| 14397 | echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14398 | fi |
| 14399 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14400 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14401 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14402 | fi |
| 14403 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14404 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14405 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 14406 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 14407 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14409 | fi |
| 14410 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 14411 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14412 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14413 | # Is the header compilable? |
| 14414 | echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 14415 | echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 |
| 14416 | cat >conftest.$ac_ext <<_ACEOF |
| 14417 | /* confdefs.h. */ |
| 14418 | _ACEOF |
| 14419 | cat confdefs.h >>conftest.$ac_ext |
| 14420 | cat >>conftest.$ac_ext <<_ACEOF |
| 14421 | /* end confdefs.h. */ |
| 14422 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14423 | #include <dlfcn.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14424 | _ACEOF |
| 14425 | rm -f conftest.$ac_objext |
| 14426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14427 | (eval $ac_compile) 2>conftest.er1 |
| 14428 | ac_status=$? |
| 14429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14430 | rm -f conftest.er1 |
| 14431 | cat conftest.err >&5 |
| 14432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14433 | (exit $ac_status); } && |
| 14434 | { ac_try='test -z "$ac_c_werror_flag" |
| 14435 | || test ! -s conftest.err' |
| 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); }; } && |
| 14441 | { ac_try='test -s conftest.$ac_objext' |
| 14442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14443 | (eval $ac_try) 2>&5 |
| 14444 | ac_status=$? |
| 14445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14446 | (exit $ac_status); }; }; then |
| 14447 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14448 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14449 | echo "$as_me: failed program was:" >&5 |
| 14450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14451 | |
| 14452 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14453 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14455 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14456 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14457 | |
| 14458 | # Is the header present? |
| 14459 | echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 14460 | echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 |
| 14461 | cat >conftest.$ac_ext <<_ACEOF |
| 14462 | /* confdefs.h. */ |
| 14463 | _ACEOF |
| 14464 | cat confdefs.h >>conftest.$ac_ext |
| 14465 | cat >>conftest.$ac_ext <<_ACEOF |
| 14466 | /* end confdefs.h. */ |
| 14467 | #include <dlfcn.h> |
| 14468 | _ACEOF |
| 14469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14471 | ac_status=$? |
| 14472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14473 | rm -f conftest.er1 |
| 14474 | cat conftest.err >&5 |
| 14475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14476 | (exit $ac_status); } >/dev/null; then |
| 14477 | if test -s conftest.err; then |
| 14478 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14479 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14480 | else |
| 14481 | ac_cpp_err= |
| 14482 | fi |
| 14483 | else |
| 14484 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14485 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14486 | if test -z "$ac_cpp_err"; then |
| 14487 | ac_header_preproc=yes |
| 14488 | else |
| 14489 | echo "$as_me: failed program was:" >&5 |
| 14490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14491 | |
| 14492 | ac_header_preproc=no |
| 14493 | fi |
| 14494 | rm -f conftest.err conftest.$ac_ext |
| 14495 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14496 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14497 | |
| 14498 | # So? What about this header? |
| 14499 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14500 | yes:no: ) |
| 14501 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14502 | echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14503 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 14504 | echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} |
| 14505 | ac_header_preproc=yes |
| 14506 | ;; |
| 14507 | no:yes:* ) |
| 14508 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 14509 | echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 14510 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 14511 | echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 14512 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 14513 | echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 14514 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14515 | echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14516 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 14517 | echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 14518 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 14519 | echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 14520 | ( |
| 14521 | cat <<\_ASBOX |
| 14522 | ## ------------------------------------------ ## |
| 14523 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14524 | ## ------------------------------------------ ## |
| 14525 | _ASBOX |
| 14526 | ) | |
| 14527 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14528 | ;; |
| 14529 | esac |
| 14530 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 14531 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 14532 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14534 | else |
| 14535 | ac_cv_header_dlfcn_h=$ac_header_preproc |
| 14536 | fi |
| 14537 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 14538 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
| 14539 | |
| 14540 | fi |
| 14541 | if test $ac_cv_header_dlfcn_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14542 | DLL=dlfcn.h |
| 14543 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14544 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14545 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 14546 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 14547 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14549 | fi |
| 14550 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 14551 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14552 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14553 | # Is the header compilable? |
| 14554 | echo "$as_me:$LINENO: checking dl.h usability" >&5 |
| 14555 | echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6 |
| 14556 | cat >conftest.$ac_ext <<_ACEOF |
| 14557 | /* confdefs.h. */ |
| 14558 | _ACEOF |
| 14559 | cat confdefs.h >>conftest.$ac_ext |
| 14560 | cat >>conftest.$ac_ext <<_ACEOF |
| 14561 | /* end confdefs.h. */ |
| 14562 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14563 | #include <dl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14564 | _ACEOF |
| 14565 | rm -f conftest.$ac_objext |
| 14566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14567 | (eval $ac_compile) 2>conftest.er1 |
| 14568 | ac_status=$? |
| 14569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14570 | rm -f conftest.er1 |
| 14571 | cat conftest.err >&5 |
| 14572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14573 | (exit $ac_status); } && |
| 14574 | { ac_try='test -z "$ac_c_werror_flag" |
| 14575 | || test ! -s conftest.err' |
| 14576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14577 | (eval $ac_try) 2>&5 |
| 14578 | ac_status=$? |
| 14579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14580 | (exit $ac_status); }; } && |
| 14581 | { ac_try='test -s conftest.$ac_objext' |
| 14582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14583 | (eval $ac_try) 2>&5 |
| 14584 | ac_status=$? |
| 14585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14586 | (exit $ac_status); }; }; then |
| 14587 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14588 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14589 | echo "$as_me: failed program was:" >&5 |
| 14590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14591 | |
| 14592 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14593 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14595 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14596 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14597 | |
| 14598 | # Is the header present? |
| 14599 | echo "$as_me:$LINENO: checking dl.h presence" >&5 |
| 14600 | echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6 |
| 14601 | cat >conftest.$ac_ext <<_ACEOF |
| 14602 | /* confdefs.h. */ |
| 14603 | _ACEOF |
| 14604 | cat confdefs.h >>conftest.$ac_ext |
| 14605 | cat >>conftest.$ac_ext <<_ACEOF |
| 14606 | /* end confdefs.h. */ |
| 14607 | #include <dl.h> |
| 14608 | _ACEOF |
| 14609 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14610 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14611 | ac_status=$? |
| 14612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14613 | rm -f conftest.er1 |
| 14614 | cat conftest.err >&5 |
| 14615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14616 | (exit $ac_status); } >/dev/null; then |
| 14617 | if test -s conftest.err; then |
| 14618 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14619 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14620 | else |
| 14621 | ac_cpp_err= |
| 14622 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14623 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14624 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14625 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14626 | if test -z "$ac_cpp_err"; then |
| 14627 | ac_header_preproc=yes |
| 14628 | else |
| 14629 | echo "$as_me: failed program was:" >&5 |
| 14630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14631 | |
| 14632 | ac_header_preproc=no |
| 14633 | fi |
| 14634 | rm -f conftest.err conftest.$ac_ext |
| 14635 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14636 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14637 | |
| 14638 | # So? What about this header? |
| 14639 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14640 | yes:no: ) |
| 14641 | { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14642 | echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14643 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 |
| 14644 | echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;} |
| 14645 | ac_header_preproc=yes |
| 14646 | ;; |
| 14647 | no:yes:* ) |
| 14648 | { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 |
| 14649 | echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} |
| 14650 | { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 |
| 14651 | echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} |
| 14652 | { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 |
| 14653 | echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} |
| 14654 | { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14655 | echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14656 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 |
| 14657 | echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} |
| 14658 | { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 |
| 14659 | echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} |
| 14660 | ( |
| 14661 | cat <<\_ASBOX |
| 14662 | ## ------------------------------------------ ## |
| 14663 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14664 | ## ------------------------------------------ ## |
| 14665 | _ASBOX |
| 14666 | ) | |
| 14667 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14668 | ;; |
| 14669 | esac |
| 14670 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 14671 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 14672 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14674 | else |
| 14675 | ac_cv_header_dl_h=$ac_header_preproc |
| 14676 | fi |
| 14677 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 14678 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14679 | |
| 14680 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14681 | if test $ac_cv_header_dl_h = yes; then |
| 14682 | DLL=dl.h |
| 14683 | fi |
| 14684 | |
| 14685 | |
| 14686 | fi |
| 14687 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14688 | |
| 14689 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14690 | |
| 14691 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14692 | #define HAVE_DLFCN_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14693 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14694 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14695 | echo "$as_me:$LINENO: checking for dlopen()" >&5 |
| 14696 | echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6 |
| 14697 | cat >conftest.$ac_ext <<_ACEOF |
| 14698 | /* confdefs.h. */ |
| 14699 | _ACEOF |
| 14700 | cat confdefs.h >>conftest.$ac_ext |
| 14701 | cat >>conftest.$ac_ext <<_ACEOF |
| 14702 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14703 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14704 | int |
| 14705 | main () |
| 14706 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14707 | |
| 14708 | extern void* dlopen(); |
| 14709 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14710 | |
| 14711 | ; |
| 14712 | return 0; |
| 14713 | } |
| 14714 | _ACEOF |
| 14715 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14717 | (eval $ac_link) 2>conftest.er1 |
| 14718 | ac_status=$? |
| 14719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14720 | rm -f conftest.er1 |
| 14721 | cat conftest.err >&5 |
| 14722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14723 | (exit $ac_status); } && |
| 14724 | { ac_try='test -z "$ac_c_werror_flag" |
| 14725 | || test ! -s conftest.err' |
| 14726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14727 | (eval $ac_try) 2>&5 |
| 14728 | ac_status=$? |
| 14729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14730 | (exit $ac_status); }; } && |
| 14731 | { ac_try='test -s conftest$ac_exeext' |
| 14732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14733 | (eval $ac_try) 2>&5 |
| 14734 | ac_status=$? |
| 14735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14736 | (exit $ac_status); }; }; then |
| 14737 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14738 | echo "${ECHO_T}yes" >&6; |
| 14739 | |
| 14740 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14741 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14742 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14743 | |
| 14744 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14745 | echo "$as_me: failed program was:" >&5 |
| 14746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14747 | |
| 14748 | echo "$as_me:$LINENO: result: no" >&5 |
| 14749 | echo "${ECHO_T}no" >&6; |
| 14750 | echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
| 14751 | echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14752 | olibs=$LIBS |
| 14753 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14754 | cat >conftest.$ac_ext <<_ACEOF |
| 14755 | /* confdefs.h. */ |
| 14756 | _ACEOF |
| 14757 | cat confdefs.h >>conftest.$ac_ext |
| 14758 | cat >>conftest.$ac_ext <<_ACEOF |
| 14759 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14760 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14761 | int |
| 14762 | main () |
| 14763 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14764 | |
| 14765 | extern void* dlopen(); |
| 14766 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14767 | |
| 14768 | ; |
| 14769 | return 0; |
| 14770 | } |
| 14771 | _ACEOF |
| 14772 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14774 | (eval $ac_link) 2>conftest.er1 |
| 14775 | ac_status=$? |
| 14776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14777 | rm -f conftest.er1 |
| 14778 | cat conftest.err >&5 |
| 14779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14780 | (exit $ac_status); } && |
| 14781 | { ac_try='test -z "$ac_c_werror_flag" |
| 14782 | || test ! -s conftest.err' |
| 14783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14784 | (eval $ac_try) 2>&5 |
| 14785 | ac_status=$? |
| 14786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14787 | (exit $ac_status); }; } && |
| 14788 | { ac_try='test -s conftest$ac_exeext' |
| 14789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14790 | (eval $ac_try) 2>&5 |
| 14791 | ac_status=$? |
| 14792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14793 | (exit $ac_status); }; }; then |
| 14794 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14795 | echo "${ECHO_T}yes" >&6; |
| 14796 | |
| 14797 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14798 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14799 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14800 | |
| 14801 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14802 | echo "$as_me: failed program was:" >&5 |
| 14803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14804 | |
| 14805 | echo "$as_me:$LINENO: result: no" >&5 |
| 14806 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14807 | LIBS=$olibs |
| 14808 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14809 | rm -f conftest.err conftest.$ac_objext \ |
| 14810 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14811 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14812 | rm -f conftest.err conftest.$ac_objext \ |
| 14813 | conftest$ac_exeext conftest.$ac_ext |
| 14814 | echo "$as_me:$LINENO: checking for dlsym()" >&5 |
| 14815 | echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6 |
| 14816 | cat >conftest.$ac_ext <<_ACEOF |
| 14817 | /* confdefs.h. */ |
| 14818 | _ACEOF |
| 14819 | cat confdefs.h >>conftest.$ac_ext |
| 14820 | cat >>conftest.$ac_ext <<_ACEOF |
| 14821 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14822 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14823 | int |
| 14824 | main () |
| 14825 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14826 | |
| 14827 | extern void* dlsym(); |
| 14828 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14829 | |
| 14830 | ; |
| 14831 | return 0; |
| 14832 | } |
| 14833 | _ACEOF |
| 14834 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14836 | (eval $ac_link) 2>conftest.er1 |
| 14837 | ac_status=$? |
| 14838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14839 | rm -f conftest.er1 |
| 14840 | cat conftest.err >&5 |
| 14841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14842 | (exit $ac_status); } && |
| 14843 | { ac_try='test -z "$ac_c_werror_flag" |
| 14844 | || test ! -s conftest.err' |
| 14845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14846 | (eval $ac_try) 2>&5 |
| 14847 | ac_status=$? |
| 14848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14849 | (exit $ac_status); }; } && |
| 14850 | { ac_try='test -s conftest$ac_exeext' |
| 14851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14852 | (eval $ac_try) 2>&5 |
| 14853 | ac_status=$? |
| 14854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14855 | (exit $ac_status); }; }; then |
| 14856 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14857 | echo "${ECHO_T}yes" >&6; |
| 14858 | |
| 14859 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14860 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14861 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14862 | |
| 14863 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14864 | echo "$as_me: failed program was:" >&5 |
| 14865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14866 | |
| 14867 | echo "$as_me:$LINENO: result: no" >&5 |
| 14868 | echo "${ECHO_T}no" >&6; |
| 14869 | echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
| 14870 | echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14871 | olibs=$LIBS |
| 14872 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14873 | cat >conftest.$ac_ext <<_ACEOF |
| 14874 | /* confdefs.h. */ |
| 14875 | _ACEOF |
| 14876 | cat confdefs.h >>conftest.$ac_ext |
| 14877 | cat >>conftest.$ac_ext <<_ACEOF |
| 14878 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14879 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14880 | int |
| 14881 | main () |
| 14882 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14883 | |
| 14884 | extern void* dlsym(); |
| 14885 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14886 | |
| 14887 | ; |
| 14888 | return 0; |
| 14889 | } |
| 14890 | _ACEOF |
| 14891 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14893 | (eval $ac_link) 2>conftest.er1 |
| 14894 | ac_status=$? |
| 14895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14896 | rm -f conftest.er1 |
| 14897 | cat conftest.err >&5 |
| 14898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14899 | (exit $ac_status); } && |
| 14900 | { ac_try='test -z "$ac_c_werror_flag" |
| 14901 | || test ! -s conftest.err' |
| 14902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14903 | (eval $ac_try) 2>&5 |
| 14904 | ac_status=$? |
| 14905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14906 | (exit $ac_status); }; } && |
| 14907 | { ac_try='test -s conftest$ac_exeext' |
| 14908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14909 | (eval $ac_try) 2>&5 |
| 14910 | ac_status=$? |
| 14911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14912 | (exit $ac_status); }; }; then |
| 14913 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14914 | echo "${ECHO_T}yes" >&6; |
| 14915 | |
| 14916 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14917 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14918 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14919 | |
| 14920 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14921 | echo "$as_me: failed program was:" >&5 |
| 14922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14923 | |
| 14924 | echo "$as_me:$LINENO: result: no" >&5 |
| 14925 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14926 | LIBS=$olibs |
| 14927 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14928 | rm -f conftest.err conftest.$ac_objext \ |
| 14929 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14930 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14931 | rm -f conftest.err conftest.$ac_objext \ |
| 14932 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14933 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14934 | |
| 14935 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14936 | #define HAVE_DL_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14937 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14938 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14939 | echo "$as_me:$LINENO: checking for shl_load()" >&5 |
| 14940 | echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6 |
| 14941 | cat >conftest.$ac_ext <<_ACEOF |
| 14942 | /* confdefs.h. */ |
| 14943 | _ACEOF |
| 14944 | cat confdefs.h >>conftest.$ac_ext |
| 14945 | cat >>conftest.$ac_ext <<_ACEOF |
| 14946 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14947 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14948 | int |
| 14949 | main () |
| 14950 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14951 | |
| 14952 | extern void* shl_load(); |
| 14953 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14954 | |
| 14955 | ; |
| 14956 | return 0; |
| 14957 | } |
| 14958 | _ACEOF |
| 14959 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14961 | (eval $ac_link) 2>conftest.er1 |
| 14962 | ac_status=$? |
| 14963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14964 | rm -f conftest.er1 |
| 14965 | cat conftest.err >&5 |
| 14966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14967 | (exit $ac_status); } && |
| 14968 | { ac_try='test -z "$ac_c_werror_flag" |
| 14969 | || test ! -s conftest.err' |
| 14970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14971 | (eval $ac_try) 2>&5 |
| 14972 | ac_status=$? |
| 14973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14974 | (exit $ac_status); }; } && |
| 14975 | { ac_try='test -s conftest$ac_exeext' |
| 14976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14977 | (eval $ac_try) 2>&5 |
| 14978 | ac_status=$? |
| 14979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14980 | (exit $ac_status); }; }; then |
| 14981 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14982 | echo "${ECHO_T}yes" >&6; |
| 14983 | |
| 14984 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14985 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14986 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14987 | |
| 14988 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14989 | echo "$as_me: failed program was:" >&5 |
| 14990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14991 | |
| 14992 | echo "$as_me:$LINENO: result: no" >&5 |
| 14993 | echo "${ECHO_T}no" >&6; |
| 14994 | echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
| 14995 | echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14996 | olibs=$LIBS |
| 14997 | LIBS="$LIBS -ldld" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14998 | cat >conftest.$ac_ext <<_ACEOF |
| 14999 | /* confdefs.h. */ |
| 15000 | _ACEOF |
| 15001 | cat confdefs.h >>conftest.$ac_ext |
| 15002 | cat >>conftest.$ac_ext <<_ACEOF |
| 15003 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15004 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15005 | int |
| 15006 | main () |
| 15007 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15008 | |
| 15009 | extern void* shl_load(); |
| 15010 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15011 | |
| 15012 | ; |
| 15013 | return 0; |
| 15014 | } |
| 15015 | _ACEOF |
| 15016 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15017 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15018 | (eval $ac_link) 2>conftest.er1 |
| 15019 | ac_status=$? |
| 15020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15021 | rm -f conftest.er1 |
| 15022 | cat conftest.err >&5 |
| 15023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15024 | (exit $ac_status); } && |
| 15025 | { ac_try='test -z "$ac_c_werror_flag" |
| 15026 | || test ! -s conftest.err' |
| 15027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15028 | (eval $ac_try) 2>&5 |
| 15029 | ac_status=$? |
| 15030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15031 | (exit $ac_status); }; } && |
| 15032 | { ac_try='test -s conftest$ac_exeext' |
| 15033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15034 | (eval $ac_try) 2>&5 |
| 15035 | ac_status=$? |
| 15036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15037 | (exit $ac_status); }; }; then |
| 15038 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15039 | echo "${ECHO_T}yes" >&6; |
| 15040 | |
| 15041 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15042 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15043 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15044 | |
| 15045 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15046 | echo "$as_me: failed program was:" >&5 |
| 15047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15048 | |
| 15049 | echo "$as_me:$LINENO: result: no" >&5 |
| 15050 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15051 | LIBS=$olibs |
| 15052 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15053 | rm -f conftest.err conftest.$ac_objext \ |
| 15054 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15055 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15056 | rm -f conftest.err conftest.$ac_objext \ |
| 15057 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15058 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15059 | |
| 15060 | for ac_header in setjmp.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15061 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15062 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15064 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15068 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15069 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15070 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15071 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15072 | # Is the header compilable? |
| 15073 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15074 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15075 | cat >conftest.$ac_ext <<_ACEOF |
| 15076 | /* confdefs.h. */ |
| 15077 | _ACEOF |
| 15078 | cat confdefs.h >>conftest.$ac_ext |
| 15079 | cat >>conftest.$ac_ext <<_ACEOF |
| 15080 | /* end confdefs.h. */ |
| 15081 | $ac_includes_default |
| 15082 | #include <$ac_header> |
| 15083 | _ACEOF |
| 15084 | rm -f conftest.$ac_objext |
| 15085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15086 | (eval $ac_compile) 2>conftest.er1 |
| 15087 | ac_status=$? |
| 15088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15089 | rm -f conftest.er1 |
| 15090 | cat conftest.err >&5 |
| 15091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15092 | (exit $ac_status); } && |
| 15093 | { ac_try='test -z "$ac_c_werror_flag" |
| 15094 | || test ! -s conftest.err' |
| 15095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15096 | (eval $ac_try) 2>&5 |
| 15097 | ac_status=$? |
| 15098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15099 | (exit $ac_status); }; } && |
| 15100 | { ac_try='test -s conftest.$ac_objext' |
| 15101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15102 | (eval $ac_try) 2>&5 |
| 15103 | ac_status=$? |
| 15104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15105 | (exit $ac_status); }; }; then |
| 15106 | ac_header_compiler=yes |
| 15107 | else |
| 15108 | echo "$as_me: failed program was:" >&5 |
| 15109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15110 | |
| 15111 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15112 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15114 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15115 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15116 | |
| 15117 | # Is the header present? |
| 15118 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15119 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15120 | cat >conftest.$ac_ext <<_ACEOF |
| 15121 | /* confdefs.h. */ |
| 15122 | _ACEOF |
| 15123 | cat confdefs.h >>conftest.$ac_ext |
| 15124 | cat >>conftest.$ac_ext <<_ACEOF |
| 15125 | /* end confdefs.h. */ |
| 15126 | #include <$ac_header> |
| 15127 | _ACEOF |
| 15128 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15129 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15130 | ac_status=$? |
| 15131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15132 | rm -f conftest.er1 |
| 15133 | cat conftest.err >&5 |
| 15134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15135 | (exit $ac_status); } >/dev/null; then |
| 15136 | if test -s conftest.err; then |
| 15137 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15138 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15139 | else |
| 15140 | ac_cpp_err= |
| 15141 | fi |
| 15142 | else |
| 15143 | ac_cpp_err=yes |
| 15144 | fi |
| 15145 | if test -z "$ac_cpp_err"; then |
| 15146 | ac_header_preproc=yes |
| 15147 | else |
| 15148 | echo "$as_me: failed program was:" >&5 |
| 15149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15150 | |
| 15151 | ac_header_preproc=no |
| 15152 | fi |
| 15153 | rm -f conftest.err conftest.$ac_ext |
| 15154 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15155 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15156 | |
| 15157 | # So? What about this header? |
| 15158 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15159 | yes:no: ) |
| 15160 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15161 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15162 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15163 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15164 | ac_header_preproc=yes |
| 15165 | ;; |
| 15166 | no:yes:* ) |
| 15167 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15168 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15169 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15170 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15171 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15172 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15173 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15174 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15176 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15177 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15178 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15179 | ( |
| 15180 | cat <<\_ASBOX |
| 15181 | ## ------------------------------------------ ## |
| 15182 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15183 | ## ------------------------------------------ ## |
| 15184 | _ASBOX |
| 15185 | ) | |
| 15186 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15187 | ;; |
| 15188 | esac |
| 15189 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15190 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15193 | else |
| 15194 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15195 | fi |
| 15196 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15197 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15198 | |
| 15199 | fi |
| 15200 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15201 | cat >>confdefs.h <<_ACEOF |
| 15202 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15203 | _ACEOF |
| 15204 | |
| 15205 | fi |
| 15206 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15207 | done |
| 15208 | |
| 15209 | |
| 15210 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 15211 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 15212 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 15213 | PERL_LIBS="$PERL_LIBS -ldl" |
| 15214 | fi |
| 15215 | fi |
| 15216 | |
| 15217 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 15218 | && test "x$GUITYPE" != "xCARBONGUI"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15219 | echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
| 15220 | echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15221 | if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \ |
| 15222 | || test "x$features" = "xhuge"; then |
| 15223 | LIBS="$LIBS -framework Carbon" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15224 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15225 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15226 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15227 | echo "$as_me:$LINENO: result: no" >&5 |
| 15228 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15229 | fi |
| 15230 | fi |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 15231 | if test "x$MACARCH" = "xboth"; then |
| 15232 | LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 15233 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15234 | |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 15235 | echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 |
| 15236 | echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6 |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15237 | DEPEND_CFLAGS_FILTER= |
| 15238 | if test "$GCC" = yes; then |
Bram Moolenaar | 32466aa | 2006-02-24 23:53:04 +0000 | [diff] [blame] | 15239 | gccmajor=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\(darwin.[^0-9]*\)*\([1-9]\)\.[0-9].*$/\2/g'` |
Bram Moolenaar | f740b29 | 2006-02-16 22:11:02 +0000 | [diff] [blame] | 15240 | if test "$gccmajor" -gt "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15241 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
| 15242 | fi |
| 15243 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 15244 | if test "$DEPEND_CFLAGS_FILTER" = ""; then |
| 15245 | echo "$as_me:$LINENO: result: no" >&5 |
| 15246 | echo "${ECHO_T}no" >&6 |
| 15247 | else |
| 15248 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15249 | echo "${ECHO_T}yes" >&6 |
| 15250 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15251 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15252 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15253 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 15254 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15255 | # This file is a shell script that caches the results of configure |
| 15256 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15257 | # scripts and configure runs, see configure's option --config-cache. |
| 15258 | # It is not useful on other systems. If it contains results you don't |
| 15259 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15260 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15261 | # config.status only pays attention to the cache file if you give it |
| 15262 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15263 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15264 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15265 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15266 | # following values. |
| 15267 | |
| 15268 | _ACEOF |
| 15269 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15270 | # The following way of writing the cache mishandles newlines in values, |
| 15271 | # but we know of no workaround that is simple, portable, and efficient. |
| 15272 | # So, don't put newlines in cache variables' values. |
| 15273 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15274 | # 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] | 15275 | { |
| 15276 | (set) 2>&1 | |
| 15277 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15278 | *ac_space=\ *) |
| 15279 | # `set' does not quote correctly, so add quotes (double-quote |
| 15280 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15281 | sed -n \ |
| 15282 | "s/'/'\\\\''/g; |
| 15283 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15284 | ;; |
| 15285 | *) |
| 15286 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15287 | sed -n \ |
| 15288 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15289 | ;; |
| 15290 | esac; |
| 15291 | } | |
| 15292 | sed ' |
| 15293 | t clear |
| 15294 | : clear |
| 15295 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15296 | t end |
| 15297 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15298 | : end' >>confcache |
| 15299 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15300 | if test -w $cache_file; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15301 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15302 | cat confcache >$cache_file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15303 | else |
| 15304 | echo "not updating unwritable cache $cache_file" |
| 15305 | fi |
| 15306 | fi |
| 15307 | rm -f confcache |
| 15308 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15309 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15310 | # Let make expand exec_prefix. |
| 15311 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15312 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15313 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15314 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15315 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15316 | # (actually we leave an empty line to preserve line numbers). |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15317 | if test "x$srcdir" = x.; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15318 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15319 | s/:*\$(srcdir):*/:/; |
| 15320 | s/:*\${srcdir}:*/:/; |
| 15321 | s/:*@srcdir@:*/:/; |
| 15322 | s/^\([^=]*=[ ]*\):*/\1/; |
| 15323 | s/:*$//; |
| 15324 | s/^[^=]*=[ ]*$//; |
| 15325 | }' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15326 | fi |
| 15327 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15328 | DEFS=-DHAVE_CONFIG_H |
| 15329 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15330 | ac_libobjs= |
| 15331 | ac_ltlibobjs= |
| 15332 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15333 | # 1. Remove the extension, and $U if already installed. |
| 15334 | ac_i=`echo "$ac_i" | |
| 15335 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 15336 | # 2. Add them. |
| 15337 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 15338 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 15339 | done |
| 15340 | LIBOBJS=$ac_libobjs |
| 15341 | |
| 15342 | LTLIBOBJS=$ac_ltlibobjs |
| 15343 | |
| 15344 | |
| 15345 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15346 | : ${CONFIG_STATUS=./config.status} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15347 | ac_clean_files_save=$ac_clean_files |
| 15348 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15349 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15350 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15351 | cat >$CONFIG_STATUS <<_ACEOF |
| 15352 | #! $SHELL |
| 15353 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15354 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15355 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15356 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15357 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15358 | debug=false |
| 15359 | ac_cs_recheck=false |
| 15360 | ac_cs_silent=false |
| 15361 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15362 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15363 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15364 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15365 | ## --------------------- ## |
| 15366 | ## M4sh Initialization. ## |
| 15367 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15368 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15369 | # Be Bourne compatible |
| 15370 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15371 | emulate sh |
| 15372 | NULLCMD=: |
| 15373 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15374 | # is contrary to our usage. Disable this feature. |
| 15375 | alias -g '${1+"$@"}'='"$@"' |
| 15376 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 15377 | set -o posix |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15378 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15379 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15380 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15381 | # Support unset when possible. |
| 15382 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15383 | as_unset=unset |
| 15384 | else |
| 15385 | as_unset=false |
| 15386 | fi |
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 | |
| 15389 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15390 | $as_unset ENV MAIL MAILPATH |
| 15391 | PS1='$ ' |
| 15392 | PS2='> ' |
| 15393 | PS4='+ ' |
| 15394 | |
| 15395 | # NLS nuisances. |
| 15396 | for as_var in \ |
| 15397 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15398 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15399 | LC_TELEPHONE LC_TIME |
| 15400 | do |
| 15401 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15402 | eval $as_var=C; export $as_var |
| 15403 | else |
| 15404 | $as_unset $as_var |
| 15405 | fi |
| 15406 | done |
| 15407 | |
| 15408 | # Required to use basename. |
| 15409 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15410 | as_expr=expr |
| 15411 | else |
| 15412 | as_expr=false |
| 15413 | fi |
| 15414 | |
| 15415 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 15416 | as_basename=basename |
| 15417 | else |
| 15418 | as_basename=false |
| 15419 | fi |
| 15420 | |
| 15421 | |
| 15422 | # Name of the executable. |
| 15423 | as_me=`$as_basename "$0" || |
| 15424 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15425 | X"$0" : 'X\(//\)$' \| \ |
| 15426 | X"$0" : 'X\(/\)$' \| \ |
| 15427 | . : '\(.\)' 2>/dev/null || |
| 15428 | echo X/"$0" | |
| 15429 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 15430 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 15431 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 15432 | s/.*/./; q'` |
| 15433 | |
| 15434 | |
| 15435 | # PATH needs CR, and LINENO needs CR and PATH. |
| 15436 | # Avoid depending upon Character Ranges. |
| 15437 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15438 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15439 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15440 | as_cr_digits='0123456789' |
| 15441 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15442 | |
| 15443 | # The user is always right. |
| 15444 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15445 | echo "#! /bin/sh" >conf$$.sh |
| 15446 | echo "exit 0" >>conf$$.sh |
| 15447 | chmod +x conf$$.sh |
| 15448 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15449 | PATH_SEPARATOR=';' |
| 15450 | else |
| 15451 | PATH_SEPARATOR=: |
| 15452 | fi |
| 15453 | rm -f conf$$.sh |
| 15454 | fi |
| 15455 | |
| 15456 | |
| 15457 | as_lineno_1=$LINENO |
| 15458 | as_lineno_2=$LINENO |
| 15459 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15460 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15461 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 15462 | # Find who we are. Look in the path if we contain no path at all |
| 15463 | # relative or not. |
| 15464 | case $0 in |
| 15465 | *[\\/]* ) as_myself=$0 ;; |
| 15466 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15467 | for as_dir in $PATH |
| 15468 | do |
| 15469 | IFS=$as_save_IFS |
| 15470 | test -z "$as_dir" && as_dir=. |
| 15471 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15472 | done |
| 15473 | |
| 15474 | ;; |
| 15475 | esac |
| 15476 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15477 | # in which case we are not to be found in the path. |
| 15478 | if test "x$as_myself" = x; then |
| 15479 | as_myself=$0 |
| 15480 | fi |
| 15481 | if test ! -f "$as_myself"; then |
| 15482 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 15483 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 15484 | { (exit 1); exit 1; }; } |
| 15485 | fi |
| 15486 | case $CONFIG_SHELL in |
| 15487 | '') |
| 15488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15489 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 15490 | do |
| 15491 | IFS=$as_save_IFS |
| 15492 | test -z "$as_dir" && as_dir=. |
| 15493 | for as_base in sh bash ksh sh5; do |
| 15494 | case $as_dir in |
| 15495 | /*) |
| 15496 | if ("$as_dir/$as_base" -c ' |
| 15497 | as_lineno_1=$LINENO |
| 15498 | as_lineno_2=$LINENO |
| 15499 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15500 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15501 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 15502 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 15503 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 15504 | CONFIG_SHELL=$as_dir/$as_base |
| 15505 | export CONFIG_SHELL |
| 15506 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 15507 | fi;; |
| 15508 | esac |
| 15509 | done |
| 15510 | done |
| 15511 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15512 | esac |
| 15513 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15514 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15515 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 15516 | # line-number line before each line; the second 'sed' does the real |
| 15517 | # work. The second script uses 'N' to pair each line-number line |
| 15518 | # with the numbered line, and appends trailing '-' during |
| 15519 | # substitution so that $LINENO is not a special case at line end. |
| 15520 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 15521 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 15522 | sed '=' <$as_myself | |
| 15523 | sed ' |
| 15524 | N |
| 15525 | s,$,-, |
| 15526 | : loop |
| 15527 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 15528 | t loop |
| 15529 | s,-$,, |
| 15530 | s,^['$as_cr_digits']*\n,, |
| 15531 | ' >$as_me.lineno && |
| 15532 | chmod +x $as_me.lineno || |
| 15533 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 15534 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 15535 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15536 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15537 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15538 | # (the dirname of $[0] is not the place where we might find the |
| 15539 | # original and so on. Autoconf is especially sensible to this). |
| 15540 | . ./$as_me.lineno |
| 15541 | # Exit status is that of the last command. |
| 15542 | exit |
| 15543 | } |
| 15544 | |
| 15545 | |
| 15546 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 15547 | *c*,-n*) ECHO_N= ECHO_C=' |
| 15548 | ' ECHO_T=' ' ;; |
| 15549 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 15550 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 15551 | esac |
| 15552 | |
| 15553 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15554 | as_expr=expr |
| 15555 | else |
| 15556 | as_expr=false |
| 15557 | fi |
| 15558 | |
| 15559 | rm -f conf$$ conf$$.exe conf$$.file |
| 15560 | echo >conf$$.file |
| 15561 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15562 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 15563 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 15564 | if test -f conf$$.exe; then |
| 15565 | # Don't use ln at all; we don't have any links |
| 15566 | as_ln_s='cp -p' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15567 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15568 | as_ln_s='ln -s' |
| 15569 | fi |
| 15570 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15571 | as_ln_s=ln |
| 15572 | else |
| 15573 | as_ln_s='cp -p' |
| 15574 | fi |
| 15575 | rm -f conf$$ conf$$.exe conf$$.file |
| 15576 | |
| 15577 | if mkdir -p . 2>/dev/null; then |
| 15578 | as_mkdir_p=: |
| 15579 | else |
| 15580 | test -d ./-p && rmdir ./-p |
| 15581 | as_mkdir_p=false |
| 15582 | fi |
| 15583 | |
| 15584 | as_executable_p="test -f" |
| 15585 | |
| 15586 | # Sed expression to map a string onto a valid CPP name. |
| 15587 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15588 | |
| 15589 | # Sed expression to map a string onto a valid variable name. |
| 15590 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15591 | |
| 15592 | |
| 15593 | # IFS |
| 15594 | # We need space, tab and new line, in precisely that order. |
| 15595 | as_nl=' |
| 15596 | ' |
| 15597 | IFS=" $as_nl" |
| 15598 | |
| 15599 | # CDPATH. |
| 15600 | $as_unset CDPATH |
| 15601 | |
| 15602 | exec 6>&1 |
| 15603 | |
| 15604 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 15605 | # report actual input values of CONFIG_FILES etc. instead of their |
| 15606 | # values after options handling. Logging --version etc. is OK. |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 15607 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15608 | { |
| 15609 | echo |
| 15610 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15611 | ## Running $as_me. ## |
| 15612 | _ASBOX |
| 15613 | } >&5 |
| 15614 | cat >&5 <<_CSEOF |
| 15615 | |
| 15616 | This file was extended by $as_me, which was |
| 15617 | generated by GNU Autoconf 2.59. Invocation command line was |
| 15618 | |
| 15619 | CONFIG_FILES = $CONFIG_FILES |
| 15620 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15621 | CONFIG_LINKS = $CONFIG_LINKS |
| 15622 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15623 | $ $0 $@ |
| 15624 | |
| 15625 | _CSEOF |
| 15626 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 15627 | echo >&5 |
| 15628 | _ACEOF |
| 15629 | |
| 15630 | # Files that config.status was made for. |
| 15631 | if test -n "$ac_config_files"; then |
| 15632 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 15633 | fi |
| 15634 | |
| 15635 | if test -n "$ac_config_headers"; then |
| 15636 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 15637 | fi |
| 15638 | |
| 15639 | if test -n "$ac_config_links"; then |
| 15640 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 15641 | fi |
| 15642 | |
| 15643 | if test -n "$ac_config_commands"; then |
| 15644 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 15645 | fi |
| 15646 | |
| 15647 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15648 | |
| 15649 | ac_cs_usage="\ |
| 15650 | \`$as_me' instantiates files from templates according to the |
| 15651 | current configuration. |
| 15652 | |
| 15653 | Usage: $0 [OPTIONS] [FILE]... |
| 15654 | |
| 15655 | -h, --help print this help, then exit |
| 15656 | -V, --version print version number, then exit |
| 15657 | -q, --quiet do not print progress messages |
| 15658 | -d, --debug don't remove temporary files |
| 15659 | --recheck update $as_me by reconfiguring in the same conditions |
| 15660 | --file=FILE[:TEMPLATE] |
| 15661 | instantiate the configuration file FILE |
| 15662 | --header=FILE[:TEMPLATE] |
| 15663 | instantiate the configuration header FILE |
| 15664 | |
| 15665 | Configuration files: |
| 15666 | $config_files |
| 15667 | |
| 15668 | Configuration headers: |
| 15669 | $config_headers |
| 15670 | |
| 15671 | Report bugs to <bug-autoconf@gnu.org>." |
| 15672 | _ACEOF |
| 15673 | |
| 15674 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15675 | ac_cs_version="\\ |
| 15676 | config.status |
| 15677 | configured by $0, generated by GNU Autoconf 2.59, |
| 15678 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 15679 | |
| 15680 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 15681 | This config.status script is free software; the Free Software Foundation |
| 15682 | gives unlimited permission to copy, distribute and modify it." |
| 15683 | srcdir=$srcdir |
| 15684 | _ACEOF |
| 15685 | |
| 15686 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15687 | # If no file are specified by the user, then we need to provide default |
| 15688 | # value. By we need to know if files were specified by the user. |
| 15689 | ac_need_defaults=: |
| 15690 | while test $# != 0 |
| 15691 | do |
| 15692 | case $1 in |
| 15693 | --*=*) |
| 15694 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 15695 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 15696 | ac_shift=: |
| 15697 | ;; |
| 15698 | -*) |
| 15699 | ac_option=$1 |
| 15700 | ac_optarg=$2 |
| 15701 | ac_shift=shift |
| 15702 | ;; |
| 15703 | *) # This is not an option, so the user has probably given explicit |
| 15704 | # arguments. |
| 15705 | ac_option=$1 |
| 15706 | ac_need_defaults=false;; |
| 15707 | esac |
| 15708 | |
| 15709 | case $ac_option in |
| 15710 | # Handling of the options. |
| 15711 | _ACEOF |
| 15712 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15713 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15714 | ac_cs_recheck=: ;; |
| 15715 | --version | --vers* | -V ) |
| 15716 | echo "$ac_cs_version"; exit 0 ;; |
| 15717 | --he | --h) |
| 15718 | # Conflict between --help and --header |
| 15719 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 15720 | Try \`$0 --help' for more information." >&5 |
| 15721 | echo "$as_me: error: ambiguous option: $1 |
| 15722 | Try \`$0 --help' for more information." >&2;} |
| 15723 | { (exit 1); exit 1; }; };; |
| 15724 | --help | --hel | -h ) |
| 15725 | echo "$ac_cs_usage"; exit 0 ;; |
| 15726 | --debug | --d* | -d ) |
| 15727 | debug=: ;; |
| 15728 | --file | --fil | --fi | --f ) |
| 15729 | $ac_shift |
| 15730 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15731 | ac_need_defaults=false;; |
| 15732 | --header | --heade | --head | --hea ) |
| 15733 | $ac_shift |
| 15734 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 15735 | ac_need_defaults=false;; |
| 15736 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15737 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15738 | ac_cs_silent=: ;; |
| 15739 | |
| 15740 | # This is an error. |
| 15741 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 15742 | Try \`$0 --help' for more information." >&5 |
| 15743 | echo "$as_me: error: unrecognized option: $1 |
| 15744 | Try \`$0 --help' for more information." >&2;} |
| 15745 | { (exit 1); exit 1; }; } ;; |
| 15746 | |
| 15747 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 15748 | |
| 15749 | esac |
| 15750 | shift |
| 15751 | done |
| 15752 | |
| 15753 | ac_configure_extra_args= |
| 15754 | |
| 15755 | if $ac_cs_silent; then |
| 15756 | exec 6>/dev/null |
| 15757 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15758 | fi |
| 15759 | |
| 15760 | _ACEOF |
| 15761 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15762 | if \$ac_cs_recheck; then |
| 15763 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15764 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 15765 | fi |
| 15766 | |
| 15767 | _ACEOF |
| 15768 | |
| 15769 | |
| 15770 | |
| 15771 | |
| 15772 | |
| 15773 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15774 | for ac_config_target in $ac_config_targets |
| 15775 | do |
| 15776 | case "$ac_config_target" in |
| 15777 | # Handling of arguments. |
| 15778 | "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 15779 | "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 15780 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15781 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15782 | { (exit 1); exit 1; }; };; |
| 15783 | esac |
| 15784 | done |
| 15785 | |
| 15786 | # If the user did not use the arguments to specify the items to instantiate, |
| 15787 | # then the envvar interface is used. Set only those that are not. |
| 15788 | # We use the long form for the default assignment because of an extremely |
| 15789 | # bizarre bug on SunOS 4.1.3. |
| 15790 | if $ac_need_defaults; then |
| 15791 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15792 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 15793 | fi |
| 15794 | |
| 15795 | # Have a temporary directory for convenience. Make it in the build tree |
| 15796 | # simply because there is no reason to put it here, and in addition, |
| 15797 | # creating and moving files from /tmp can sometimes cause problems. |
| 15798 | # Create a temporary directory, and hook for its removal unless debugging. |
| 15799 | $debug || |
| 15800 | { |
| 15801 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 15802 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15803 | } |
| 15804 | |
| 15805 | # Create a (secure) tmp directory for tmp files. |
| 15806 | |
| 15807 | { |
| 15808 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 15809 | test -n "$tmp" && test -d "$tmp" |
| 15810 | } || |
| 15811 | { |
| 15812 | tmp=./confstat$$-$RANDOM |
| 15813 | (umask 077 && mkdir $tmp) |
| 15814 | } || |
| 15815 | { |
| 15816 | echo "$me: cannot create a temporary directory in ." >&2 |
| 15817 | { (exit 1); exit 1; } |
| 15818 | } |
| 15819 | |
| 15820 | _ACEOF |
| 15821 | |
| 15822 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15823 | |
| 15824 | # |
| 15825 | # CONFIG_FILES section. |
| 15826 | # |
| 15827 | |
| 15828 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 15829 | # This happens for instance when ./config.status config.h |
| 15830 | if test -n "\$CONFIG_FILES"; then |
| 15831 | # Protect against being on the right side of a sed subst in config.status. |
| 15832 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 15833 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 15834 | s,@SHELL@,$SHELL,;t t |
| 15835 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 15836 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 15837 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 15838 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 15839 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 15840 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 15841 | s,@exec_prefix@,$exec_prefix,;t t |
| 15842 | s,@prefix@,$prefix,;t t |
| 15843 | s,@program_transform_name@,$program_transform_name,;t t |
| 15844 | s,@bindir@,$bindir,;t t |
| 15845 | s,@sbindir@,$sbindir,;t t |
| 15846 | s,@libexecdir@,$libexecdir,;t t |
| 15847 | s,@datadir@,$datadir,;t t |
| 15848 | s,@sysconfdir@,$sysconfdir,;t t |
| 15849 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 15850 | s,@localstatedir@,$localstatedir,;t t |
| 15851 | s,@libdir@,$libdir,;t t |
| 15852 | s,@includedir@,$includedir,;t t |
| 15853 | s,@oldincludedir@,$oldincludedir,;t t |
| 15854 | s,@infodir@,$infodir,;t t |
| 15855 | s,@mandir@,$mandir,;t t |
| 15856 | s,@build_alias@,$build_alias,;t t |
| 15857 | s,@host_alias@,$host_alias,;t t |
| 15858 | s,@target_alias@,$target_alias,;t t |
| 15859 | s,@DEFS@,$DEFS,;t t |
| 15860 | s,@ECHO_C@,$ECHO_C,;t t |
| 15861 | s,@ECHO_N@,$ECHO_N,;t t |
| 15862 | s,@ECHO_T@,$ECHO_T,;t t |
| 15863 | s,@LIBS@,$LIBS,;t t |
| 15864 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 15865 | s,@CC@,$CC,;t t |
| 15866 | s,@CFLAGS@,$CFLAGS,;t t |
| 15867 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 15868 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 15869 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 15870 | s,@EXEEXT@,$EXEEXT,;t t |
| 15871 | s,@OBJEXT@,$OBJEXT,;t t |
| 15872 | s,@CPP@,$CPP,;t t |
| 15873 | s,@EGREP@,$EGREP,;t t |
| 15874 | s,@AWK@,$AWK,;t t |
| 15875 | s,@STRIP@,$STRIP,;t t |
| 15876 | s,@CPP_MM@,$CPP_MM,;t t |
| 15877 | s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t |
| 15878 | s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t |
| 15879 | s,@VIMNAME@,$VIMNAME,;t t |
| 15880 | s,@EXNAME@,$EXNAME,;t t |
| 15881 | s,@VIEWNAME@,$VIEWNAME,;t t |
| 15882 | s,@line_break@,$line_break,;t t |
| 15883 | s,@dovimdiff@,$dovimdiff,;t t |
| 15884 | s,@dogvimdiff@,$dogvimdiff,;t t |
| 15885 | s,@compiledby@,$compiledby,;t t |
| 15886 | s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t |
| 15887 | s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t |
| 15888 | s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t |
| 15889 | s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t |
| 15890 | s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t |
| 15891 | s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t |
| 15892 | s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t |
| 15893 | s,@vi_cv_perllib@,$vi_cv_perllib,;t t |
| 15894 | s,@shrpenv@,$shrpenv,;t t |
| 15895 | s,@PERL_SRC@,$PERL_SRC,;t t |
| 15896 | s,@PERL_OBJ@,$PERL_OBJ,;t t |
| 15897 | s,@PERL_PRO@,$PERL_PRO,;t t |
| 15898 | s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t |
| 15899 | s,@PERL_LIBS@,$PERL_LIBS,;t t |
| 15900 | s,@vi_cv_path_python@,$vi_cv_path_python,;t t |
| 15901 | s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t |
| 15902 | s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t |
| 15903 | s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t |
| 15904 | s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t |
| 15905 | s,@PYTHON_SRC@,$PYTHON_SRC,;t t |
| 15906 | s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t |
| 15907 | s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t |
| 15908 | s,@TCL_SRC@,$TCL_SRC,;t t |
| 15909 | s,@TCL_OBJ@,$TCL_OBJ,;t t |
| 15910 | s,@TCL_PRO@,$TCL_PRO,;t t |
| 15911 | s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t |
| 15912 | s,@TCL_LIBS@,$TCL_LIBS,;t t |
| 15913 | s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t |
| 15914 | s,@RUBY_SRC@,$RUBY_SRC,;t t |
| 15915 | s,@RUBY_OBJ@,$RUBY_OBJ,;t t |
| 15916 | s,@RUBY_PRO@,$RUBY_PRO,;t t |
| 15917 | s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t |
| 15918 | s,@RUBY_LIBS@,$RUBY_LIBS,;t t |
| 15919 | s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t |
| 15920 | s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t |
| 15921 | s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t |
| 15922 | s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t |
| 15923 | s,@SNIFF_SRC@,$SNIFF_SRC,;t t |
| 15924 | s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t |
| 15925 | s,@xmkmfpath@,$xmkmfpath,;t t |
| 15926 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 15927 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 15928 | s,@X_LIBS@,$X_LIBS,;t t |
| 15929 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 15930 | s,@X_LIB@,$X_LIB,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15931 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t |
| 15932 | s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t |
| 15933 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
| 15934 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t |
| 15935 | s,@GTK_LIBS@,$GTK_LIBS,;t t |
| 15936 | s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t |
| 15937 | s,@GNOME_LIBS@,$GNOME_LIBS,;t t |
| 15938 | s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t |
| 15939 | s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t |
| 15940 | s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t |
| 15941 | s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t |
| 15942 | s,@NARROW_PROTO@,$NARROW_PROTO,;t t |
| 15943 | s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t |
| 15944 | s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t |
| 15945 | s,@GUITYPE@,$GUITYPE,;t t |
| 15946 | s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t |
| 15947 | s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t |
| 15948 | s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t |
| 15949 | s,@TAGPRG@,$TAGPRG,;t t |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 15950 | s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t |
| 15951 | s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15952 | s,@MSGFMT@,$MSGFMT,;t t |
| 15953 | s,@MAKEMO@,$MAKEMO,;t t |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15954 | s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15955 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 15956 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 15957 | CEOF |
| 15958 | |
| 15959 | _ACEOF |
| 15960 | |
| 15961 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15962 | # Split the substitutions into bite-sized pieces for seds with |
| 15963 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 15964 | ac_max_sed_lines=48 |
| 15965 | ac_sed_frag=1 # Number of current file. |
| 15966 | ac_beg=1 # First line for current file. |
| 15967 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 15968 | ac_more_lines=: |
| 15969 | ac_sed_cmds= |
| 15970 | while $ac_more_lines; do |
| 15971 | if test $ac_beg -gt 1; then |
| 15972 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 15973 | else |
| 15974 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 15975 | fi |
| 15976 | if test ! -s $tmp/subs.frag; then |
| 15977 | ac_more_lines=false |
| 15978 | else |
| 15979 | # The purpose of the label and of the branching condition is to |
| 15980 | # speed up the sed processing (if there are no `@' at all, there |
| 15981 | # is no need to browse any of the substitutions). |
| 15982 | # These are the two extra sed commands mentioned above. |
| 15983 | (echo ':t |
| 15984 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 15985 | if test -z "$ac_sed_cmds"; then |
| 15986 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 15987 | else |
| 15988 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 15989 | fi |
| 15990 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 15991 | ac_beg=$ac_end |
| 15992 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 15993 | fi |
| 15994 | done |
| 15995 | if test -z "$ac_sed_cmds"; then |
| 15996 | ac_sed_cmds=cat |
| 15997 | fi |
| 15998 | fi # test -n "$CONFIG_FILES" |
| 15999 | |
| 16000 | _ACEOF |
| 16001 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16002 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16003 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16004 | case $ac_file in |
| 16005 | - | *:- | *:-:* ) # input from stdin |
| 16006 | cat >$tmp/stdin |
| 16007 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16008 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16009 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16010 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16011 | * ) ac_file_in=$ac_file.in ;; |
| 16012 | esac |
| 16013 | |
| 16014 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16015 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16016 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16017 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16018 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16019 | X"$ac_file" : 'X\(/\)' \| \ |
| 16020 | . : '\(.\)' 2>/dev/null || |
| 16021 | echo X"$ac_file" | |
| 16022 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16023 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16024 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16025 | /^X\(\/\).*/{ s//\1/; q; } |
| 16026 | s/.*/./; q'` |
| 16027 | { if $as_mkdir_p; then |
| 16028 | mkdir -p "$ac_dir" |
| 16029 | else |
| 16030 | as_dir="$ac_dir" |
| 16031 | as_dirs= |
| 16032 | while test ! -d "$as_dir"; do |
| 16033 | as_dirs="$as_dir $as_dirs" |
| 16034 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16035 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16036 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16037 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16038 | X"$as_dir" : 'X\(/\)' \| \ |
| 16039 | . : '\(.\)' 2>/dev/null || |
| 16040 | echo X"$as_dir" | |
| 16041 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16042 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16043 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16044 | /^X\(\/\).*/{ s//\1/; q; } |
| 16045 | s/.*/./; q'` |
| 16046 | done |
| 16047 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16048 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16049 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16050 | { (exit 1); exit 1; }; }; } |
| 16051 | |
| 16052 | ac_builddir=. |
| 16053 | |
| 16054 | if test "$ac_dir" != .; then |
| 16055 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16056 | # A "../" for each directory in $ac_dir_suffix. |
| 16057 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16058 | else |
| 16059 | ac_dir_suffix= ac_top_builddir= |
| 16060 | fi |
| 16061 | |
| 16062 | case $srcdir in |
| 16063 | .) # No --srcdir option. We are building in place. |
| 16064 | ac_srcdir=. |
| 16065 | if test -z "$ac_top_builddir"; then |
| 16066 | ac_top_srcdir=. |
| 16067 | else |
| 16068 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16069 | fi ;; |
| 16070 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16071 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16072 | ac_top_srcdir=$srcdir ;; |
| 16073 | *) # Relative path. |
| 16074 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16075 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16076 | esac |
| 16077 | |
| 16078 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 16079 | # the directories may not exist. |
| 16080 | case `pwd` in |
| 16081 | .) ac_abs_builddir="$ac_dir";; |
| 16082 | *) |
| 16083 | case "$ac_dir" in |
| 16084 | .) ac_abs_builddir=`pwd`;; |
| 16085 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 16086 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 16087 | esac;; |
| 16088 | esac |
| 16089 | case $ac_abs_builddir in |
| 16090 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16091 | *) |
| 16092 | case ${ac_top_builddir}. in |
| 16093 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 16094 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16095 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 16096 | esac;; |
| 16097 | esac |
| 16098 | case $ac_abs_builddir in |
| 16099 | .) ac_abs_srcdir=$ac_srcdir;; |
| 16100 | *) |
| 16101 | case $ac_srcdir in |
| 16102 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 16103 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 16104 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 16105 | esac;; |
| 16106 | esac |
| 16107 | case $ac_abs_builddir in |
| 16108 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16109 | *) |
| 16110 | case $ac_top_srcdir in |
| 16111 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 16112 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16113 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 16114 | esac;; |
| 16115 | esac |
| 16116 | |
| 16117 | |
| 16118 | |
| 16119 | if test x"$ac_file" != x-; then |
| 16120 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16121 | echo "$as_me: creating $ac_file" >&6;} |
| 16122 | rm -f "$ac_file" |
| 16123 | fi |
| 16124 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16125 | # use $as_me), people would be surprised to read: |
| 16126 | # /* config.h. Generated by config.status. */ |
| 16127 | if test x"$ac_file" = x-; then |
| 16128 | configure_input= |
| 16129 | else |
| 16130 | configure_input="$ac_file. " |
| 16131 | fi |
| 16132 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16133 | sed 's,.*/,,'` by configure." |
| 16134 | |
| 16135 | # First look for the input files in the build tree, otherwise in the |
| 16136 | # src tree. |
| 16137 | ac_file_inputs=`IFS=: |
| 16138 | for f in $ac_file_in; do |
| 16139 | case $f in |
| 16140 | -) echo $tmp/stdin ;; |
| 16141 | [\\/$]*) |
| 16142 | # Absolute (can't be DOS-style, as IFS=:) |
| 16143 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16144 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16145 | { (exit 1); exit 1; }; } |
| 16146 | echo "$f";; |
| 16147 | *) # Relative |
| 16148 | if test -f "$f"; then |
| 16149 | # Build tree |
| 16150 | echo "$f" |
| 16151 | elif test -f "$srcdir/$f"; then |
| 16152 | # Source tree |
| 16153 | echo "$srcdir/$f" |
| 16154 | else |
| 16155 | # /dev/null tree |
| 16156 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16157 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16158 | { (exit 1); exit 1; }; } |
| 16159 | fi;; |
| 16160 | esac |
| 16161 | done` || { (exit 1); exit 1; } |
| 16162 | _ACEOF |
| 16163 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16164 | sed "$ac_vpsub |
| 16165 | $extrasub |
| 16166 | _ACEOF |
| 16167 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16168 | :t |
| 16169 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16170 | s,@configure_input@,$configure_input,;t t |
| 16171 | s,@srcdir@,$ac_srcdir,;t t |
| 16172 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16173 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16174 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16175 | s,@builddir@,$ac_builddir,;t t |
| 16176 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16177 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16178 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16179 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16180 | rm -f $tmp/stdin |
| 16181 | if test x"$ac_file" != x-; then |
| 16182 | mv $tmp/out $ac_file |
| 16183 | else |
| 16184 | cat $tmp/out |
| 16185 | rm -f $tmp/out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16186 | fi |
| 16187 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16188 | done |
| 16189 | _ACEOF |
| 16190 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16191 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16192 | # |
| 16193 | # CONFIG_HEADER section. |
| 16194 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16195 | |
| 16196 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16197 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 16198 | # |
| 16199 | # ac_d sets the value in "#define NAME VALUE" lines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16200 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16201 | ac_dB='[ ].*$,\1#\2' |
| 16202 | ac_dC=' ' |
| 16203 | ac_dD=',;t' |
| 16204 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16205 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16206 | ac_uB='$,\1#\2define\3' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16207 | ac_uC=' ' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16208 | ac_uD=',;t' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16209 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16210 | 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] | 16211 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16212 | case $ac_file in |
| 16213 | - | *:- | *:-:* ) # input from stdin |
| 16214 | cat >$tmp/stdin |
| 16215 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16216 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16217 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16218 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16219 | * ) ac_file_in=$ac_file.in ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16220 | esac |
| 16221 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16222 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16223 | echo "$as_me: creating $ac_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16224 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16225 | # First look for the input files in the build tree, otherwise in the |
| 16226 | # src tree. |
| 16227 | ac_file_inputs=`IFS=: |
| 16228 | for f in $ac_file_in; do |
| 16229 | case $f in |
| 16230 | -) echo $tmp/stdin ;; |
| 16231 | [\\/$]*) |
| 16232 | # Absolute (can't be DOS-style, as IFS=:) |
| 16233 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16234 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16235 | { (exit 1); exit 1; }; } |
| 16236 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 16237 | echo "$f";; |
| 16238 | *) # Relative |
| 16239 | if test -f "$f"; then |
| 16240 | # Build tree |
| 16241 | echo "$f" |
| 16242 | elif test -f "$srcdir/$f"; then |
| 16243 | # Source tree |
| 16244 | echo "$srcdir/$f" |
| 16245 | else |
| 16246 | # /dev/null tree |
| 16247 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16248 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16249 | { (exit 1); exit 1; }; } |
| 16250 | fi;; |
| 16251 | esac |
| 16252 | done` || { (exit 1); exit 1; } |
| 16253 | # Remove the trailing spaces. |
| 16254 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16255 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16256 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16257 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16258 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16259 | # `conftest.undefs', that substitutes the proper values into |
| 16260 | # config.h.in to produce config.h. The first handles `#define' |
| 16261 | # templates, and the second `#undef' templates. |
| 16262 | # And first: Protect against being on the right side of a sed subst in |
| 16263 | # config.status. Protect against being in an unquoted here document |
| 16264 | # in config.status. |
| 16265 | rm -f conftest.defines conftest.undefs |
| 16266 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16267 | # Putting comments in sed scripts is not portable. |
| 16268 | # |
| 16269 | # `end' is used to avoid that the second main sed command (meant for |
| 16270 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16271 | # See the Autoconf documentation for `clear'. |
| 16272 | cat >confdef2sed.sed <<\_ACEOF |
| 16273 | s/[\\&,]/\\&/g |
| 16274 | s,[\\$`],\\&,g |
| 16275 | t clear |
| 16276 | : clear |
| 16277 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16278 | t end |
| 16279 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16280 | : end |
| 16281 | _ACEOF |
| 16282 | # If some macros were called several times there might be several times |
| 16283 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16284 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16285 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16286 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16287 | rm -f confdef2sed.sed |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16288 | |
| 16289 | # This sed command replaces #undef with comments. This is necessary, for |
| 16290 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16291 | # on some systems where configure will not decide to define it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16292 | cat >>conftest.undefs <<\_ACEOF |
| 16293 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16294 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16295 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16296 | # Break up conftest.defines because some shells have a limit on the size |
| 16297 | # of here documents, and old seds have small limits too (100 cmds). |
| 16298 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16299 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16300 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16301 | echo ' :' >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16302 | rm -f conftest.tail |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16303 | while grep . conftest.defines >/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16304 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16305 | # Write a limited-size here document to $tmp/defines.sed. |
| 16306 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16307 | # Speed up: don't consider the non `#define' lines. |
| 16308 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16309 | # Work around the forget-to-reset-the-flag bug. |
| 16310 | echo 't clr' >>$CONFIG_STATUS |
| 16311 | echo ': clr' >>$CONFIG_STATUS |
| 16312 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16313 | echo 'CEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16314 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16315 | rm -f $tmp/in |
| 16316 | mv $tmp/out $tmp/in |
| 16317 | ' >>$CONFIG_STATUS |
| 16318 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16319 | rm -f conftest.defines |
| 16320 | mv conftest.tail conftest.defines |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16321 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16322 | rm -f conftest.defines |
| 16323 | echo ' fi # grep' >>$CONFIG_STATUS |
| 16324 | echo >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16325 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16326 | # Break up conftest.undefs because some shells have a limit on the size |
| 16327 | # of here documents, and old seds have small limits too (100 cmds). |
| 16328 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16329 | rm -f conftest.tail |
| 16330 | while grep . conftest.undefs >/dev/null |
| 16331 | do |
| 16332 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16333 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16334 | # Speed up: don't consider the non `#undef' |
| 16335 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16336 | # Work around the forget-to-reset-the-flag bug. |
| 16337 | echo 't clr' >>$CONFIG_STATUS |
| 16338 | echo ': clr' >>$CONFIG_STATUS |
| 16339 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16340 | echo 'CEOF |
| 16341 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16342 | rm -f $tmp/in |
| 16343 | mv $tmp/out $tmp/in |
| 16344 | ' >>$CONFIG_STATUS |
| 16345 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16346 | rm -f conftest.undefs |
| 16347 | mv conftest.tail conftest.undefs |
| 16348 | done |
| 16349 | rm -f conftest.undefs |
| 16350 | |
| 16351 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16352 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16353 | # use $as_me), people would be surprised to read: |
| 16354 | # /* config.h. Generated by config.status. */ |
| 16355 | if test x"$ac_file" = x-; then |
| 16356 | echo "/* Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16357 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16358 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16359 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16360 | cat $tmp/in >>$tmp/config.h |
| 16361 | rm -f $tmp/in |
| 16362 | if test x"$ac_file" != x-; then |
| 16363 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 16364 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16365 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16366 | else |
| 16367 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16368 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16369 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16370 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16371 | X"$ac_file" : 'X\(/\)' \| \ |
| 16372 | . : '\(.\)' 2>/dev/null || |
| 16373 | echo X"$ac_file" | |
| 16374 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16375 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16376 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16377 | /^X\(\/\).*/{ s//\1/; q; } |
| 16378 | s/.*/./; q'` |
| 16379 | { if $as_mkdir_p; then |
| 16380 | mkdir -p "$ac_dir" |
| 16381 | else |
| 16382 | as_dir="$ac_dir" |
| 16383 | as_dirs= |
| 16384 | while test ! -d "$as_dir"; do |
| 16385 | as_dirs="$as_dir $as_dirs" |
| 16386 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16387 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16388 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16389 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16390 | X"$as_dir" : 'X\(/\)' \| \ |
| 16391 | . : '\(.\)' 2>/dev/null || |
| 16392 | echo X"$as_dir" | |
| 16393 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16394 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16395 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16396 | /^X\(\/\).*/{ s//\1/; q; } |
| 16397 | s/.*/./; q'` |
| 16398 | done |
| 16399 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16400 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16401 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16402 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16403 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16404 | rm -f $ac_file |
| 16405 | mv $tmp/config.h $ac_file |
| 16406 | fi |
| 16407 | else |
| 16408 | cat $tmp/config.h |
| 16409 | rm -f $tmp/config.h |
| 16410 | fi |
| 16411 | done |
| 16412 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16413 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16414 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16415 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16416 | { (exit 0); exit 0; } |
| 16417 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16418 | chmod +x $CONFIG_STATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16419 | ac_clean_files=$ac_clean_files_save |
| 16420 | |
| 16421 | |
| 16422 | # configure is writing to config.log, and then calls config.status. |
| 16423 | # config.status does its own redirection, appending to config.log. |
| 16424 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16425 | # by configure, so config.status won't be able to write to it; its |
| 16426 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16427 | # effectively closing config.log, so it can be properly (re)opened and |
| 16428 | # appended to by config.status. When coming back to configure, we |
| 16429 | # need to make the FD available again. |
| 16430 | if test "$no_create" != yes; then |
| 16431 | ac_cs_success=: |
| 16432 | ac_config_status_args= |
| 16433 | test "$silent" = yes && |
| 16434 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16435 | exec 5>/dev/null |
| 16436 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 16437 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16438 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16439 | # would make configure fail if this is the last instruction. |
| 16440 | $ac_cs_success || { (exit 1); exit 1; } |
| 16441 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16442 | |
| 16443 | |