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 | 899dddf | 2006-03-26 21:06:50 +0000 | [diff] [blame] | 879 | --with-mac-arch=ARCH current, 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 | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 2784 | gccversion=`"$CC" -dumpversion` |
| 2785 | if test "x$gccversion" = "x"; then |
| 2786 | gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
| 2787 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 2788 | 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] | 2789 | 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] | 2790 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 2791 | else |
| 2792 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 2793 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 2794 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 2795 | fi |
| 2796 | fi |
| 2797 | fi |
| 2798 | |
| 2799 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2800 | { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS |
| 2801 | (cross compiling doesn't work)" >&5 |
| 2802 | echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS |
| 2803 | (cross compiling doesn't work)" >&2;} |
| 2804 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2805 | fi |
| 2806 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2807 | test "$GCC" = yes && CPP_MM=M; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2808 | |
| 2809 | if test -f ./toolcheck; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2810 | { echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
| 2811 | echo "$as_me: checking for buggy tools..." >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2812 | sh ./toolcheck 1>&6 |
| 2813 | fi |
| 2814 | |
| 2815 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 2816 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2817 | echo "$as_me:$LINENO: checking for BeOS" >&5 |
| 2818 | echo $ECHO_N "checking for BeOS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2819 | case `uname` in |
| 2820 | 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] | 2821 | BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2822 | echo "${ECHO_T}yes" >&6;; |
| 2823 | *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2824 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2825 | esac |
| 2826 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2827 | echo "$as_me:$LINENO: checking for QNX" >&5 |
| 2828 | echo $ECHO_N "checking for QNX... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2829 | case `uname` in |
| 2830 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 2831 | test -z "$with_x" && with_x=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2832 | QNX=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2833 | echo "${ECHO_T}yes" >&6;; |
| 2834 | *) QNX=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2835 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2836 | esac |
| 2837 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2838 | echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
| 2839 | echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2840 | if test "`(uname) 2>/dev/null`" = Darwin; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2841 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2842 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2843 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2844 | echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
| 2845 | echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2846 | # Check whether --enable-darwin or --disable-darwin was given. |
| 2847 | if test "${enable_darwin+set}" = set; then |
| 2848 | enableval="$enable_darwin" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2849 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2850 | else |
| 2851 | enable_darwin="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2852 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2853 | if test "$enable_darwin" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2854 | echo "$as_me:$LINENO: result: no" >&5 |
| 2855 | echo "${ECHO_T}no" >&6 |
| 2856 | echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
| 2857 | echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2858 | if test -f os_macosx.c; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2859 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2860 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2861 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2862 | echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
| 2863 | echo "${ECHO_T}no, Darwin support disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2864 | enable_darwin=no |
| 2865 | fi |
| 2866 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2867 | echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
| 2868 | echo "${ECHO_T}yes, Darwin support excluded" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2869 | fi |
| 2870 | |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2871 | echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5 |
| 2872 | echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6 |
| 2873 | |
| 2874 | # Check whether --with-mac-arch or --without-mac-arch was given. |
| 2875 | if test "${with_mac_arch+set}" = set; then |
| 2876 | withval="$with_mac_arch" |
| 2877 | MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5 |
| 2878 | echo "${ECHO_T}$MACARCH" >&6 |
| 2879 | else |
Bram Moolenaar | 899dddf | 2006-03-26 21:06:50 +0000 | [diff] [blame] | 2880 | MACARCH="current"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5 |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2881 | echo "${ECHO_T}defaulting to $MACARCH" >&6 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2882 | fi; |
| 2883 | |
| 2884 | if test "x$MACARCH" = "xboth"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2885 | echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5 |
| 2886 | echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6 |
| 2887 | save_cppflags="$CPPFLAGS" |
| 2888 | save_cflags="$CFLAGS" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2889 | save_ldflags="$LDFLAGS" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2890 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2891 | cat >conftest.$ac_ext <<_ACEOF |
| 2892 | /* confdefs.h. */ |
| 2893 | _ACEOF |
| 2894 | cat confdefs.h >>conftest.$ac_ext |
| 2895 | cat >>conftest.$ac_ext <<_ACEOF |
| 2896 | /* end confdefs.h. */ |
| 2897 | |
| 2898 | int |
| 2899 | main () |
| 2900 | { |
| 2901 | |
| 2902 | ; |
| 2903 | return 0; |
| 2904 | } |
| 2905 | _ACEOF |
| 2906 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2908 | (eval $ac_link) 2>conftest.er1 |
| 2909 | ac_status=$? |
| 2910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2911 | rm -f conftest.er1 |
| 2912 | cat conftest.err >&5 |
| 2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2914 | (exit $ac_status); } && |
| 2915 | { ac_try='test -z "$ac_c_werror_flag" |
| 2916 | || test ! -s conftest.err' |
| 2917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2918 | (eval $ac_try) 2>&5 |
| 2919 | ac_status=$? |
| 2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2921 | (exit $ac_status); }; } && |
| 2922 | { ac_try='test -s conftest$ac_exeext' |
| 2923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2924 | (eval $ac_try) 2>&5 |
| 2925 | ac_status=$? |
| 2926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2927 | (exit $ac_status); }; }; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2928 | echo "$as_me:$LINENO: result: found" >&5 |
| 2929 | echo "${ECHO_T}found" >&6 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2930 | else |
| 2931 | echo "$as_me: failed program was:" >&5 |
| 2932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2933 | |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2934 | echo "$as_me:$LINENO: result: not found" >&5 |
| 2935 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 1f35bf9 | 2006-03-07 22:38:47 +0000 | [diff] [blame] | 2936 | CFLAGS="$save_cflags" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2937 | echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2938 | echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6 |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2939 | CPPFLAGS="$CPPFLAGS -arch i386" |
| 2940 | LDFLAGS="$save_ldflags -arch i386" |
| 2941 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2942 | /* confdefs.h. */ |
| 2943 | _ACEOF |
| 2944 | cat confdefs.h >>conftest.$ac_ext |
| 2945 | cat >>conftest.$ac_ext <<_ACEOF |
| 2946 | /* end confdefs.h. */ |
| 2947 | |
| 2948 | int |
| 2949 | main () |
| 2950 | { |
| 2951 | |
| 2952 | ; |
| 2953 | return 0; |
| 2954 | } |
| 2955 | _ACEOF |
| 2956 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2958 | (eval $ac_link) 2>conftest.er1 |
| 2959 | ac_status=$? |
| 2960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2961 | rm -f conftest.er1 |
| 2962 | cat conftest.err >&5 |
| 2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2964 | (exit $ac_status); } && |
| 2965 | { ac_try='test -z "$ac_c_werror_flag" |
| 2966 | || test ! -s conftest.err' |
| 2967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2968 | (eval $ac_try) 2>&5 |
| 2969 | ac_status=$? |
| 2970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2971 | (exit $ac_status); }; } && |
| 2972 | { ac_try='test -s conftest$ac_exeext' |
| 2973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2974 | (eval $ac_try) 2>&5 |
| 2975 | ac_status=$? |
| 2976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2977 | (exit $ac_status); }; }; then |
| 2978 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2979 | echo "${ECHO_T}yes" >&6; MACARCH="intel" |
| 2980 | else |
| 2981 | echo "$as_me: failed program was:" >&5 |
| 2982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2983 | |
| 2984 | echo "$as_me:$LINENO: result: no" >&5 |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2985 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 2986 | MACARCH="ppc" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2987 | CPPFLAGS="$save_cppflags -arch ppc" |
| 2988 | LDFLAGS="$save_ldflags -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2989 | fi |
| 2990 | rm -f conftest.err conftest.$ac_objext \ |
| 2991 | conftest$ac_exeext conftest.$ac_ext |
| 2992 | fi |
| 2993 | rm -f conftest.err conftest.$ac_objext \ |
| 2994 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2995 | elif test "x$MACARCH" = "xintel"; then |
| 2996 | CPPFLAGS="$CPPFLAGS -arch intel" |
| 2997 | LDFLAGS="$LDFLAGS -arch intel" |
Bram Moolenaar | e2f98b9 | 2006-03-29 21:18:24 +0000 | [diff] [blame] | 2998 | elif test "x$MACARCH" = "xppc"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2999 | CPPFLAGS="$CPPFLAGS -arch ppc" |
| 3000 | LDFLAGS="$LDFLAGS -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 3001 | fi |
| 3002 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3003 | if test "$enable_darwin" = "yes"; then |
| 3004 | MACOSX=yes |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 3005 | OS_EXTRA_SCR="os_macosx.c os_mac_conv.c"; |
| 3006 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 3007 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" |
| 3008 | if test "x$MACARCH" = "xboth"; then |
| 3009 | CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" |
| 3010 | else |
| 3011 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon" |
| 3012 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3013 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3014 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3015 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3016 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3018 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3019 | cat >conftest.$ac_ext <<_ACEOF |
| 3020 | /* confdefs.h. */ |
| 3021 | _ACEOF |
| 3022 | cat confdefs.h >>conftest.$ac_ext |
| 3023 | cat >>conftest.$ac_ext <<_ACEOF |
| 3024 | /* end confdefs.h. */ |
| 3025 | #include <stdlib.h> |
| 3026 | #include <stdarg.h> |
| 3027 | #include <string.h> |
| 3028 | #include <float.h> |
| 3029 | |
| 3030 | int |
| 3031 | main () |
| 3032 | { |
| 3033 | |
| 3034 | ; |
| 3035 | return 0; |
| 3036 | } |
| 3037 | _ACEOF |
| 3038 | rm -f conftest.$ac_objext |
| 3039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3040 | (eval $ac_compile) 2>conftest.er1 |
| 3041 | ac_status=$? |
| 3042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3043 | rm -f conftest.er1 |
| 3044 | cat conftest.err >&5 |
| 3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3046 | (exit $ac_status); } && |
| 3047 | { ac_try='test -z "$ac_c_werror_flag" |
| 3048 | || test ! -s conftest.err' |
| 3049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3050 | (eval $ac_try) 2>&5 |
| 3051 | ac_status=$? |
| 3052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3053 | (exit $ac_status); }; } && |
| 3054 | { ac_try='test -s conftest.$ac_objext' |
| 3055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3056 | (eval $ac_try) 2>&5 |
| 3057 | ac_status=$? |
| 3058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3059 | (exit $ac_status); }; }; then |
| 3060 | ac_cv_header_stdc=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3061 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3062 | echo "$as_me: failed program was:" >&5 |
| 3063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3064 | |
| 3065 | ac_cv_header_stdc=no |
| 3066 | fi |
| 3067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3068 | |
| 3069 | if test $ac_cv_header_stdc = yes; then |
| 3070 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3071 | cat >conftest.$ac_ext <<_ACEOF |
| 3072 | /* confdefs.h. */ |
| 3073 | _ACEOF |
| 3074 | cat confdefs.h >>conftest.$ac_ext |
| 3075 | cat >>conftest.$ac_ext <<_ACEOF |
| 3076 | /* end confdefs.h. */ |
| 3077 | #include <string.h> |
| 3078 | |
| 3079 | _ACEOF |
| 3080 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3081 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3082 | : |
| 3083 | else |
| 3084 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3085 | fi |
| 3086 | rm -f conftest* |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3087 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3088 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3089 | |
| 3090 | if test $ac_cv_header_stdc = yes; then |
| 3091 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3092 | cat >conftest.$ac_ext <<_ACEOF |
| 3093 | /* confdefs.h. */ |
| 3094 | _ACEOF |
| 3095 | cat confdefs.h >>conftest.$ac_ext |
| 3096 | cat >>conftest.$ac_ext <<_ACEOF |
| 3097 | /* end confdefs.h. */ |
| 3098 | #include <stdlib.h> |
| 3099 | |
| 3100 | _ACEOF |
| 3101 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3102 | $EGREP "free" >/dev/null 2>&1; then |
| 3103 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3104 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3105 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3106 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3107 | rm -f conftest* |
| 3108 | |
| 3109 | fi |
| 3110 | |
| 3111 | if test $ac_cv_header_stdc = yes; then |
| 3112 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3113 | if test "$cross_compiling" = yes; then |
| 3114 | : |
| 3115 | else |
| 3116 | cat >conftest.$ac_ext <<_ACEOF |
| 3117 | /* confdefs.h. */ |
| 3118 | _ACEOF |
| 3119 | cat confdefs.h >>conftest.$ac_ext |
| 3120 | cat >>conftest.$ac_ext <<_ACEOF |
| 3121 | /* end confdefs.h. */ |
| 3122 | #include <ctype.h> |
| 3123 | #if ((' ' & 0x0FF) == 0x020) |
| 3124 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3125 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3126 | #else |
| 3127 | # define ISLOWER(c) \ |
| 3128 | (('a' <= (c) && (c) <= 'i') \ |
| 3129 | || ('j' <= (c) && (c) <= 'r') \ |
| 3130 | || ('s' <= (c) && (c) <= 'z')) |
| 3131 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3132 | #endif |
| 3133 | |
| 3134 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3135 | int |
| 3136 | main () |
| 3137 | { |
| 3138 | int i; |
| 3139 | for (i = 0; i < 256; i++) |
| 3140 | if (XOR (islower (i), ISLOWER (i)) |
| 3141 | || toupper (i) != TOUPPER (i)) |
| 3142 | exit(2); |
| 3143 | exit (0); |
| 3144 | } |
| 3145 | _ACEOF |
| 3146 | rm -f conftest$ac_exeext |
| 3147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3148 | (eval $ac_link) 2>&5 |
| 3149 | ac_status=$? |
| 3150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3151 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3153 | (eval $ac_try) 2>&5 |
| 3154 | ac_status=$? |
| 3155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3156 | (exit $ac_status); }; }; then |
| 3157 | : |
| 3158 | else |
| 3159 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3160 | echo "$as_me: failed program was:" >&5 |
| 3161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3162 | |
| 3163 | ( exit $ac_status ) |
| 3164 | ac_cv_header_stdc=no |
| 3165 | fi |
| 3166 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3167 | fi |
| 3168 | fi |
| 3169 | fi |
| 3170 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3171 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3172 | if test $ac_cv_header_stdc = yes; then |
| 3173 | |
| 3174 | cat >>confdefs.h <<\_ACEOF |
| 3175 | #define STDC_HEADERS 1 |
| 3176 | _ACEOF |
| 3177 | |
| 3178 | fi |
| 3179 | |
| 3180 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3181 | |
| 3182 | |
| 3183 | |
| 3184 | |
| 3185 | |
| 3186 | |
| 3187 | |
| 3188 | |
| 3189 | |
| 3190 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3191 | inttypes.h stdint.h unistd.h |
| 3192 | do |
| 3193 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3194 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3195 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3196 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3198 | else |
| 3199 | cat >conftest.$ac_ext <<_ACEOF |
| 3200 | /* confdefs.h. */ |
| 3201 | _ACEOF |
| 3202 | cat confdefs.h >>conftest.$ac_ext |
| 3203 | cat >>conftest.$ac_ext <<_ACEOF |
| 3204 | /* end confdefs.h. */ |
| 3205 | $ac_includes_default |
| 3206 | |
| 3207 | #include <$ac_header> |
| 3208 | _ACEOF |
| 3209 | rm -f conftest.$ac_objext |
| 3210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3211 | (eval $ac_compile) 2>conftest.er1 |
| 3212 | ac_status=$? |
| 3213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3214 | rm -f conftest.er1 |
| 3215 | cat conftest.err >&5 |
| 3216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3217 | (exit $ac_status); } && |
| 3218 | { ac_try='test -z "$ac_c_werror_flag" |
| 3219 | || test ! -s conftest.err' |
| 3220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3221 | (eval $ac_try) 2>&5 |
| 3222 | ac_status=$? |
| 3223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3224 | (exit $ac_status); }; } && |
| 3225 | { ac_try='test -s conftest.$ac_objext' |
| 3226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3227 | (eval $ac_try) 2>&5 |
| 3228 | ac_status=$? |
| 3229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3230 | (exit $ac_status); }; }; then |
| 3231 | eval "$as_ac_Header=yes" |
| 3232 | else |
| 3233 | echo "$as_me: failed program was:" >&5 |
| 3234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3235 | |
| 3236 | eval "$as_ac_Header=no" |
| 3237 | fi |
| 3238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3239 | fi |
| 3240 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3241 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3242 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3243 | cat >>confdefs.h <<_ACEOF |
| 3244 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3245 | _ACEOF |
| 3246 | |
| 3247 | fi |
| 3248 | |
| 3249 | done |
| 3250 | |
| 3251 | |
| 3252 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3253 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3254 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3255 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3257 | fi |
| 3258 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3259 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3260 | else |
| 3261 | # Is the header compilable? |
| 3262 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 3263 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 |
| 3264 | cat >conftest.$ac_ext <<_ACEOF |
| 3265 | /* confdefs.h. */ |
| 3266 | _ACEOF |
| 3267 | cat confdefs.h >>conftest.$ac_ext |
| 3268 | cat >>conftest.$ac_ext <<_ACEOF |
| 3269 | /* end confdefs.h. */ |
| 3270 | $ac_includes_default |
| 3271 | #include <Carbon/Carbon.h> |
| 3272 | _ACEOF |
| 3273 | rm -f conftest.$ac_objext |
| 3274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3275 | (eval $ac_compile) 2>conftest.er1 |
| 3276 | ac_status=$? |
| 3277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3278 | rm -f conftest.er1 |
| 3279 | cat conftest.err >&5 |
| 3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3281 | (exit $ac_status); } && |
| 3282 | { ac_try='test -z "$ac_c_werror_flag" |
| 3283 | || test ! -s conftest.err' |
| 3284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3285 | (eval $ac_try) 2>&5 |
| 3286 | ac_status=$? |
| 3287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3288 | (exit $ac_status); }; } && |
| 3289 | { ac_try='test -s conftest.$ac_objext' |
| 3290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3291 | (eval $ac_try) 2>&5 |
| 3292 | ac_status=$? |
| 3293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3294 | (exit $ac_status); }; }; then |
| 3295 | ac_header_compiler=yes |
| 3296 | else |
| 3297 | echo "$as_me: failed program was:" >&5 |
| 3298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3299 | |
| 3300 | ac_header_compiler=no |
| 3301 | fi |
| 3302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3303 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3304 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3305 | |
| 3306 | # Is the header present? |
| 3307 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 3308 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 |
| 3309 | cat >conftest.$ac_ext <<_ACEOF |
| 3310 | /* confdefs.h. */ |
| 3311 | _ACEOF |
| 3312 | cat confdefs.h >>conftest.$ac_ext |
| 3313 | cat >>conftest.$ac_ext <<_ACEOF |
| 3314 | /* end confdefs.h. */ |
| 3315 | #include <Carbon/Carbon.h> |
| 3316 | _ACEOF |
| 3317 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3318 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3319 | ac_status=$? |
| 3320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3321 | rm -f conftest.er1 |
| 3322 | cat conftest.err >&5 |
| 3323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3324 | (exit $ac_status); } >/dev/null; then |
| 3325 | if test -s conftest.err; then |
| 3326 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3327 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3328 | else |
| 3329 | ac_cpp_err= |
| 3330 | fi |
| 3331 | else |
| 3332 | ac_cpp_err=yes |
| 3333 | fi |
| 3334 | if test -z "$ac_cpp_err"; then |
| 3335 | ac_header_preproc=yes |
| 3336 | else |
| 3337 | echo "$as_me: failed program was:" >&5 |
| 3338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3339 | |
| 3340 | ac_header_preproc=no |
| 3341 | fi |
| 3342 | rm -f conftest.err conftest.$ac_ext |
| 3343 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3344 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3345 | |
| 3346 | # So? What about this header? |
| 3347 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3348 | yes:no: ) |
| 3349 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3350 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3351 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 3352 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} |
| 3353 | ac_header_preproc=yes |
| 3354 | ;; |
| 3355 | no:yes:* ) |
| 3356 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 3357 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 3358 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 3359 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 3360 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 3361 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 3362 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3363 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3364 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 3365 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 3366 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 3367 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 3368 | ( |
| 3369 | cat <<\_ASBOX |
| 3370 | ## ------------------------------------------ ## |
| 3371 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3372 | ## ------------------------------------------ ## |
| 3373 | _ASBOX |
| 3374 | ) | |
| 3375 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3376 | ;; |
| 3377 | esac |
| 3378 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3379 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3380 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3382 | else |
| 3383 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 3384 | fi |
| 3385 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3386 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3387 | |
| 3388 | fi |
| 3389 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
| 3390 | CARBON=yes |
| 3391 | fi |
| 3392 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3393 | |
| 3394 | if test "x$CARBON" = "xyes"; then |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 3395 | 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] | 3396 | with_x=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3397 | fi |
| 3398 | fi |
| 3399 | fi |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 3400 | |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 3401 | if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 3402 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` |
| 3403 | fi |
| 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 | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3750 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 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 | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3754 | # Extract the first word of "mzscheme", so it can be a program name with args. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3794 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3801 | if test "X$vi_cv_path_mzscheme" != "X"; then |
| 3802 | echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 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=` |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 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)))) \ |
| 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+/$++'` |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3817 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | c218a2e | 2006-09-05 15:32:11 +0000 | [diff] [blame] | 4017 | PERL_CFLAGS=`echo "$perlcppflags" | sed 's/-pipe //'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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= |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 4259 | if test "`(uname) 2>/dev/null`" != Darwin; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 7263 | |
| 7264 | if test x$prefix = xNONE; then |
| 7265 | prefix=/Applications |
| 7266 | fi |
| 7267 | |
| 7268 | datadir='${prefix}/Vim.app/Contents/Resources' |
| 7269 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7270 | SKIP_GTK=YES; |
| 7271 | SKIP_GTK2=YES; |
| 7272 | SKIP_GNOME=YES; |
| 7273 | SKIP_MOTIF=YES; |
| 7274 | SKIP_ATHENA=YES; |
| 7275 | SKIP_NEXTAW=YES; |
| 7276 | SKIP_PHOTON=YES; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7277 | SKIP_CARBON=YES |
| 7278 | fi |
| 7279 | |
| 7280 | |
| 7281 | |
| 7282 | |
| 7283 | |
| 7284 | |
| 7285 | |
| 7286 | |
| 7287 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7288 | if test -z "$SKIP_GTK"; then |
| 7289 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7290 | echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
| 7291 | echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6 |
| 7292 | |
| 7293 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7294 | if test "${with_gtk_prefix+set}" = set; then |
| 7295 | withval="$with_gtk_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7296 | gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 7297 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7298 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7299 | gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 7300 | echo "${ECHO_T}no" >&6 |
| 7301 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7302 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7303 | echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
| 7304 | echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7305 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7306 | # 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] | 7307 | if test "${with_gtk_exec_prefix+set}" = set; then |
| 7308 | withval="$with_gtk_exec_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7309 | gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 7310 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7311 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7312 | gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 7313 | echo "${ECHO_T}no" >&6 |
| 7314 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7315 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7316 | echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
| 7317 | echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7318 | # Check whether --enable-gtktest or --disable-gtktest was given. |
| 7319 | if test "${enable_gtktest+set}" = set; then |
| 7320 | enableval="$enable_gtktest" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7321 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7322 | else |
| 7323 | enable_gtktest=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7324 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7325 | if test "x$enable_gtktest" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7326 | echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
| 7327 | echo "${ECHO_T}gtk test enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7328 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7329 | echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
| 7330 | echo "${ECHO_T}gtk test disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7331 | fi |
| 7332 | |
| 7333 | if test "x$gtk_config_prefix" != "x" ; then |
| 7334 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 7335 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 7336 | fi |
| 7337 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 7338 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 7339 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 7340 | fi |
| 7341 | if test "X$GTK_CONFIG" = "X"; then |
| 7342 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 7343 | set dummy gtk-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7344 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7346 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
| 7347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7348 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7349 | case $GTK_CONFIG in |
| 7350 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7351 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 7352 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7353 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7355 | for as_dir in $PATH |
| 7356 | do |
| 7357 | IFS=$as_save_IFS |
| 7358 | test -z "$as_dir" && as_dir=. |
| 7359 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7360 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7361 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7363 | break 2 |
| 7364 | fi |
| 7365 | done |
| 7366 | done |
| 7367 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7368 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 7369 | ;; |
| 7370 | esac |
| 7371 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7372 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
| 7373 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7374 | if test -n "$GTK_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7375 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
| 7376 | echo "${ECHO_T}$GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7377 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7378 | echo "$as_me:$LINENO: result: no" >&5 |
| 7379 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7380 | fi |
| 7381 | |
| 7382 | if test "X$GTK_CONFIG" = "Xno"; then |
| 7383 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 7384 | set dummy gtk12-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7385 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7387 | if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
| 7388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7389 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7390 | case $GTK12_CONFIG in |
| 7391 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7392 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 7393 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7394 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7396 | for as_dir in $PATH |
| 7397 | do |
| 7398 | IFS=$as_save_IFS |
| 7399 | test -z "$as_dir" && as_dir=. |
| 7400 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7401 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7402 | ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7403 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7404 | break 2 |
| 7405 | fi |
| 7406 | done |
| 7407 | done |
| 7408 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7409 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 7410 | ;; |
| 7411 | esac |
| 7412 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7413 | GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
| 7414 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7415 | if test -n "$GTK12_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7416 | echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
| 7417 | echo "${ECHO_T}$GTK12_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7418 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7419 | echo "$as_me:$LINENO: result: no" >&5 |
| 7420 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7421 | fi |
| 7422 | |
| 7423 | GTK_CONFIG="$GTK12_CONFIG" |
| 7424 | fi |
| 7425 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7426 | echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
| 7427 | echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7428 | fi |
| 7429 | if test "X$PKG_CONFIG" = "X"; then |
| 7430 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 7431 | set dummy pkg-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7432 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7434 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 7435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7436 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7437 | case $PKG_CONFIG in |
| 7438 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7439 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 7440 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7441 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7443 | for as_dir in $PATH |
| 7444 | do |
| 7445 | IFS=$as_save_IFS |
| 7446 | test -z "$as_dir" && as_dir=. |
| 7447 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7448 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7449 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7450 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7451 | break 2 |
| 7452 | fi |
| 7453 | done |
| 7454 | done |
| 7455 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7456 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 7457 | ;; |
| 7458 | esac |
| 7459 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7460 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 7461 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7462 | if test -n "$PKG_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7463 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 7464 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7465 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7466 | echo "$as_me:$LINENO: result: no" >&5 |
| 7467 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7468 | fi |
| 7469 | |
| 7470 | fi |
| 7471 | |
| 7472 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 7473 | if test "X$SKIP_GTK2" != "XYES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7474 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7475 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 7476 | { |
| 7477 | min_gtk_version=2.2.0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7478 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 7479 | 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] | 7480 | no_gtk="" |
| 7481 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 7482 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 7483 | { |
| 7484 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7485 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7486 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 7487 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7488 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7489 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7490 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7491 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7492 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7493 | } |
| 7494 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 7495 | { |
| 7496 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7497 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7498 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 7499 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7500 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7501 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7502 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7503 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7504 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7505 | } |
| 7506 | else |
| 7507 | no_gtk=yes |
| 7508 | fi |
| 7509 | |
| 7510 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 7511 | { |
| 7512 | ac_save_CFLAGS="$CFLAGS" |
| 7513 | ac_save_LIBS="$LIBS" |
| 7514 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 7515 | LIBS="$LIBS $GTK_LIBS" |
| 7516 | |
| 7517 | rm -f conf.gtktest |
| 7518 | if test "$cross_compiling" = yes; then |
| 7519 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 7520 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7521 | cat >conftest.$ac_ext <<_ACEOF |
| 7522 | /* confdefs.h. */ |
| 7523 | _ACEOF |
| 7524 | cat confdefs.h >>conftest.$ac_ext |
| 7525 | cat >>conftest.$ac_ext <<_ACEOF |
| 7526 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7527 | |
| 7528 | #include <gtk/gtk.h> |
| 7529 | #include <stdio.h> |
| 7530 | |
| 7531 | int |
| 7532 | main () |
| 7533 | { |
| 7534 | int major, minor, micro; |
| 7535 | char *tmp_version; |
| 7536 | |
| 7537 | system ("touch conf.gtktest"); |
| 7538 | |
| 7539 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 7540 | tmp_version = g_strdup("$min_gtk_version"); |
| 7541 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 7542 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 7543 | exit(1); |
| 7544 | } |
| 7545 | |
| 7546 | if ((gtk_major_version > major) || |
| 7547 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 7548 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 7549 | (gtk_micro_version >= micro))) |
| 7550 | { |
| 7551 | return 0; |
| 7552 | } |
| 7553 | return 1; |
| 7554 | } |
| 7555 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7556 | _ACEOF |
| 7557 | rm -f conftest$ac_exeext |
| 7558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7559 | (eval $ac_link) 2>&5 |
| 7560 | ac_status=$? |
| 7561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7562 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7564 | (eval $ac_try) 2>&5 |
| 7565 | ac_status=$? |
| 7566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7567 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7568 | : |
| 7569 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7570 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7571 | echo "$as_me: failed program was:" >&5 |
| 7572 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7573 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7574 | ( exit $ac_status ) |
| 7575 | no_gtk=yes |
| 7576 | fi |
| 7577 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7578 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7579 | CFLAGS="$ac_save_CFLAGS" |
| 7580 | LIBS="$ac_save_LIBS" |
| 7581 | } |
| 7582 | fi |
| 7583 | if test "x$no_gtk" = x ; then |
| 7584 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7585 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7586 | 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] | 7587 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7588 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7589 | 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] | 7590 | fi |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7591 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 7592 | GTK_LIBNAME="$GTK_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7593 | GUI_INC_LOC="$GTK_CFLAGS" |
| 7594 | else |
| 7595 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7596 | echo "$as_me:$LINENO: result: no" >&5 |
| 7597 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7598 | GTK_CFLAGS="" |
| 7599 | GTK_LIBS="" |
| 7600 | : |
| 7601 | } |
| 7602 | fi |
| 7603 | } |
| 7604 | else |
| 7605 | GTK_CFLAGS="" |
| 7606 | GTK_LIBS="" |
| 7607 | : |
| 7608 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7609 | |
| 7610 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7611 | rm -f conf.gtktest |
| 7612 | |
| 7613 | if test "x$GTK_CFLAGS" != "x"; then |
| 7614 | SKIP_ATHENA=YES |
| 7615 | SKIP_NEXTAW=YES |
| 7616 | SKIP_MOTIF=YES |
| 7617 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7618 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7619 | fi |
| 7620 | fi |
| 7621 | |
| 7622 | if test "x$GUITYPE" != "xGTK"; then |
| 7623 | SKIP_GTK2=YES |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7624 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7625 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 7626 | { |
| 7627 | min_gtk_version=1.1.16 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7628 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 7629 | 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] | 7630 | no_gtk="" |
| 7631 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 7632 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 7633 | { |
| 7634 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7635 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7636 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 7637 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7638 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7639 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7640 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7641 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7642 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7643 | } |
| 7644 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 7645 | { |
| 7646 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7647 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7648 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 7649 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7650 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7651 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7652 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7653 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7654 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7655 | } |
| 7656 | else |
| 7657 | no_gtk=yes |
| 7658 | fi |
| 7659 | |
| 7660 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 7661 | { |
| 7662 | ac_save_CFLAGS="$CFLAGS" |
| 7663 | ac_save_LIBS="$LIBS" |
| 7664 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 7665 | LIBS="$LIBS $GTK_LIBS" |
| 7666 | |
| 7667 | rm -f conf.gtktest |
| 7668 | if test "$cross_compiling" = yes; then |
| 7669 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 7670 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7671 | cat >conftest.$ac_ext <<_ACEOF |
| 7672 | /* confdefs.h. */ |
| 7673 | _ACEOF |
| 7674 | cat confdefs.h >>conftest.$ac_ext |
| 7675 | cat >>conftest.$ac_ext <<_ACEOF |
| 7676 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7677 | |
| 7678 | #include <gtk/gtk.h> |
| 7679 | #include <stdio.h> |
| 7680 | |
| 7681 | int |
| 7682 | main () |
| 7683 | { |
| 7684 | int major, minor, micro; |
| 7685 | char *tmp_version; |
| 7686 | |
| 7687 | system ("touch conf.gtktest"); |
| 7688 | |
| 7689 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 7690 | tmp_version = g_strdup("$min_gtk_version"); |
| 7691 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 7692 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 7693 | exit(1); |
| 7694 | } |
| 7695 | |
| 7696 | if ((gtk_major_version > major) || |
| 7697 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 7698 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 7699 | (gtk_micro_version >= micro))) |
| 7700 | { |
| 7701 | return 0; |
| 7702 | } |
| 7703 | return 1; |
| 7704 | } |
| 7705 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7706 | _ACEOF |
| 7707 | rm -f conftest$ac_exeext |
| 7708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7709 | (eval $ac_link) 2>&5 |
| 7710 | ac_status=$? |
| 7711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7712 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7714 | (eval $ac_try) 2>&5 |
| 7715 | ac_status=$? |
| 7716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7717 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7718 | : |
| 7719 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7720 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7721 | echo "$as_me: failed program was:" >&5 |
| 7722 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7723 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7724 | ( exit $ac_status ) |
| 7725 | no_gtk=yes |
| 7726 | fi |
| 7727 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7728 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7729 | CFLAGS="$ac_save_CFLAGS" |
| 7730 | LIBS="$ac_save_LIBS" |
| 7731 | } |
| 7732 | fi |
| 7733 | if test "x$no_gtk" = x ; then |
| 7734 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7735 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7736 | 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] | 7737 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7738 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7739 | 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] | 7740 | fi |
| 7741 | GTK_LIBNAME="$GTK_LIBS" |
| 7742 | GUI_INC_LOC="$GTK_CFLAGS" |
| 7743 | else |
| 7744 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7745 | echo "$as_me:$LINENO: result: no" >&5 |
| 7746 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7747 | GTK_CFLAGS="" |
| 7748 | GTK_LIBS="" |
| 7749 | : |
| 7750 | } |
| 7751 | fi |
| 7752 | } |
| 7753 | else |
| 7754 | GTK_CFLAGS="" |
| 7755 | GTK_LIBS="" |
| 7756 | : |
| 7757 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7758 | |
| 7759 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7760 | rm -f conf.gtktest |
| 7761 | |
| 7762 | if test "x$GTK_CFLAGS" != "x"; then |
| 7763 | SKIP_ATHENA=YES |
| 7764 | SKIP_NEXTAW=YES |
| 7765 | SKIP_MOTIF=YES |
| 7766 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7767 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7768 | fi |
| 7769 | fi |
| 7770 | fi |
| 7771 | if test "x$GUITYPE" = "xGTK"; then |
| 7772 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 7773 | -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] | 7774 | echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
| 7775 | 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] | 7776 | else |
| 7777 | { |
| 7778 | if test "0$gtk_major_version" -ge 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_GTK2 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 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 7784 | || test "0$gtk_minor_version" -ge 2 \ |
| 7785 | || test "0$gtk_major_version" -gt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7786 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7787 | #define HAVE_GTK_MULTIHEAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7788 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7789 | |
| 7790 | fi |
| 7791 | fi |
| 7792 | if test -z "$SKIP_GNOME"; then |
| 7793 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7794 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7795 | |
| 7796 | |
| 7797 | |
| 7798 | |
| 7799 | |
| 7800 | # Check whether --with-gnome-includes or --without-gnome-includes was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7801 | if test "${with_gnome_includes+set}" = set; then |
| 7802 | withval="$with_gnome_includes" |
| 7803 | CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7804 | |
| 7805 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7806 | |
| 7807 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7808 | # Check whether --with-gnome-libs or --without-gnome-libs was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7809 | if test "${with_gnome_libs+set}" = set; then |
| 7810 | withval="$with_gnome_libs" |
| 7811 | LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7812 | |
| 7813 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7814 | |
| 7815 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7816 | # Check whether --with-gnome or --without-gnome was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7817 | if test "${with_gnome+set}" = set; then |
| 7818 | withval="$with_gnome" |
| 7819 | if test x$withval = xyes; then |
| 7820 | want_gnome=yes |
| 7821 | have_gnome=yes |
| 7822 | else |
| 7823 | if test "x$withval" = xno; then |
| 7824 | want_gnome=no |
| 7825 | else |
| 7826 | want_gnome=yes |
| 7827 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 7828 | CFLAGS="$CFLAGS -I$withval/include" |
| 7829 | gnome_prefix=$withval/lib |
| 7830 | fi |
| 7831 | fi |
| 7832 | else |
| 7833 | want_gnome=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7834 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7835 | |
| 7836 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 7837 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7838 | echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
| 7839 | echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7840 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7841 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7842 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7843 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 7844 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 7845 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 7846 | |
| 7847 | echo "$as_me:$LINENO: checking for FreeBSD" >&5 |
| 7848 | echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6 |
| 7849 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 7850 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7851 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 7852 | GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 7853 | GNOME_LIBS="$GNOME_LIBS -pthread" |
| 7854 | else |
| 7855 | echo "$as_me:$LINENO: result: no" >&5 |
| 7856 | echo "${ECHO_T}no" >&6 |
| 7857 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7858 | have_gnome=yes |
| 7859 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7860 | echo "$as_me:$LINENO: result: not found" >&5 |
| 7861 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7862 | if test "x" = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7863 | { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
| 7864 | echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;} |
| 7865 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7866 | fi |
| 7867 | fi |
| 7868 | } |
| 7869 | elif test "x$want_gnome" = xyes; then |
| 7870 | { |
| 7871 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 7872 | set dummy gnome-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7875 | if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
| 7876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7877 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7878 | case $GNOME_CONFIG in |
| 7879 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7880 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 7881 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7882 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7884 | for as_dir in $PATH |
| 7885 | do |
| 7886 | IFS=$as_save_IFS |
| 7887 | test -z "$as_dir" && as_dir=. |
| 7888 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7890 | ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7892 | break 2 |
| 7893 | fi |
| 7894 | done |
| 7895 | done |
| 7896 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7897 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 7898 | ;; |
| 7899 | esac |
| 7900 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7901 | GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
| 7902 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7903 | if test -n "$GNOME_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7904 | echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
| 7905 | echo "${ECHO_T}$GNOME_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7906 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7907 | echo "$as_me:$LINENO: result: no" >&5 |
| 7908 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7909 | fi |
| 7910 | |
| 7911 | if test "$GNOME_CONFIG" = "no"; then |
| 7912 | no_gnome_config="yes" |
| 7913 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7914 | echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
| 7915 | echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7916 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7917 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7918 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7919 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 7920 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 7921 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 7922 | have_gnome=yes |
| 7923 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7924 | echo "$as_me:$LINENO: result: no" >&5 |
| 7925 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7926 | no_gnome_config="yes" |
| 7927 | fi |
| 7928 | fi |
| 7929 | |
| 7930 | if test x$exec_prefix = xNONE; then |
| 7931 | if test x$prefix = xNONE; then |
| 7932 | gnome_prefix=$ac_default_prefix/lib |
| 7933 | else |
| 7934 | gnome_prefix=$prefix/lib |
| 7935 | fi |
| 7936 | else |
| 7937 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 7938 | fi |
| 7939 | |
| 7940 | if test "$no_gnome_config" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7941 | echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 7942 | 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] | 7943 | if test -f $gnome_prefix/gnomeConf.sh; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7944 | echo "$as_me:$LINENO: result: found" >&5 |
| 7945 | echo "${ECHO_T}found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7946 | echo "loading gnome configuration from" \ |
| 7947 | "$gnome_prefix/gnomeConf.sh" |
| 7948 | . $gnome_prefix/gnomeConf.sh |
| 7949 | have_gnome=yes |
| 7950 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7951 | echo "$as_me:$LINENO: result: not found" >&5 |
| 7952 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7953 | if test x = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7954 | { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
| 7955 | echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;} |
| 7956 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7957 | fi |
| 7958 | fi |
| 7959 | fi |
| 7960 | } |
| 7961 | fi |
| 7962 | |
| 7963 | if test x$have_gnome = xyes ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7964 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7965 | #define FEAT_GUI_GNOME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7966 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7967 | |
| 7968 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 7969 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 7970 | fi |
| 7971 | } |
| 7972 | fi |
| 7973 | } |
| 7974 | fi |
| 7975 | fi |
| 7976 | fi |
| 7977 | |
| 7978 | |
| 7979 | if test -z "$SKIP_MOTIF"; then |
| 7980 | 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" |
| 7981 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 7982 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7983 | echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
| 7984 | 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] | 7985 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 7986 | GUI_INC_LOC= |
| 7987 | for try in $gui_includes; do |
| 7988 | if test -f "$try/Xm/Xm.h"; then |
| 7989 | GUI_INC_LOC=$try |
| 7990 | fi |
| 7991 | done |
| 7992 | if test -n "$GUI_INC_LOC"; then |
| 7993 | if test "$GUI_INC_LOC" = /usr/include; then |
| 7994 | GUI_INC_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7995 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 7996 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7997 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7998 | echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
| 7999 | echo "${ECHO_T}$GUI_INC_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8000 | fi |
| 8001 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8002 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 8003 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8004 | SKIP_MOTIF=YES |
| 8005 | fi |
| 8006 | fi |
| 8007 | |
| 8008 | |
| 8009 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8010 | echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
| 8011 | echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6 |
| 8012 | |
| 8013 | # Check whether --with-motif-lib or --without-motif-lib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8014 | if test "${with_motif_lib+set}" = set; then |
| 8015 | withval="$with_motif_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8016 | MOTIF_LIBNAME="${withval}" |
| 8017 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8018 | |
| 8019 | if test -n "$MOTIF_LIBNAME"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8020 | echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
| 8021 | echo "${ECHO_T}$MOTIF_LIBNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8022 | GUI_LIB_LOC= |
| 8023 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8024 | echo "$as_me:$LINENO: result: no" >&5 |
| 8025 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8026 | |
| 8027 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 8028 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8029 | echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
| 8030 | 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] | 8031 | 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" |
| 8032 | GUI_LIB_LOC= |
| 8033 | for try in $gui_libs; do |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 8034 | 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] | 8035 | if test -f "$libtry"; then |
| 8036 | GUI_LIB_LOC=$try |
| 8037 | fi |
| 8038 | done |
| 8039 | done |
| 8040 | if test -n "$GUI_LIB_LOC"; then |
| 8041 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 8042 | GUI_LIB_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8043 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 8044 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8045 | else |
| 8046 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8047 | echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
| 8048 | echo "${ECHO_T}$GUI_LIB_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8049 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 8050 | uname -r | grep '^5' >/dev/null; then |
| 8051 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 8052 | fi |
| 8053 | fi |
| 8054 | fi |
| 8055 | MOTIF_LIBNAME=-lXm |
| 8056 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8057 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 8058 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8059 | SKIP_MOTIF=YES |
| 8060 | fi |
| 8061 | fi |
| 8062 | fi |
| 8063 | |
| 8064 | if test -z "$SKIP_MOTIF"; then |
| 8065 | SKIP_ATHENA=YES |
| 8066 | SKIP_NEXTAW=YES |
| 8067 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8068 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8069 | fi |
| 8070 | |
| 8071 | |
| 8072 | GUI_X_LIBS= |
| 8073 | |
| 8074 | if test -z "$SKIP_ATHENA"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8075 | echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
| 8076 | 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] | 8077 | cflags_save=$CFLAGS |
| 8078 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8079 | cat >conftest.$ac_ext <<_ACEOF |
| 8080 | /* confdefs.h. */ |
| 8081 | _ACEOF |
| 8082 | cat confdefs.h >>conftest.$ac_ext |
| 8083 | cat >>conftest.$ac_ext <<_ACEOF |
| 8084 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8085 | |
| 8086 | #include <X11/Intrinsic.h> |
| 8087 | #include <X11/Xaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8088 | int |
| 8089 | main () |
| 8090 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8091 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8092 | ; |
| 8093 | return 0; |
| 8094 | } |
| 8095 | _ACEOF |
| 8096 | rm -f conftest.$ac_objext |
| 8097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8098 | (eval $ac_compile) 2>conftest.er1 |
| 8099 | ac_status=$? |
| 8100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8101 | rm -f conftest.er1 |
| 8102 | cat conftest.err >&5 |
| 8103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8104 | (exit $ac_status); } && |
| 8105 | { ac_try='test -z "$ac_c_werror_flag" |
| 8106 | || test ! -s conftest.err' |
| 8107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8108 | (eval $ac_try) 2>&5 |
| 8109 | ac_status=$? |
| 8110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8111 | (exit $ac_status); }; } && |
| 8112 | { ac_try='test -s conftest.$ac_objext' |
| 8113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8114 | (eval $ac_try) 2>&5 |
| 8115 | ac_status=$? |
| 8116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8117 | (exit $ac_status); }; }; then |
| 8118 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8119 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8120 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8121 | echo "$as_me: failed program was:" >&5 |
| 8122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8123 | |
| 8124 | echo "$as_me:$LINENO: result: no" >&5 |
| 8125 | echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8126 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8128 | CFLAGS=$cflags_save |
| 8129 | fi |
| 8130 | |
| 8131 | if test -z "$SKIP_ATHENA"; then |
| 8132 | GUITYPE=ATHENA |
| 8133 | fi |
| 8134 | |
| 8135 | if test -z "$SKIP_NEXTAW"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8136 | echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
| 8137 | 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] | 8138 | cflags_save=$CFLAGS |
| 8139 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8140 | cat >conftest.$ac_ext <<_ACEOF |
| 8141 | /* confdefs.h. */ |
| 8142 | _ACEOF |
| 8143 | cat confdefs.h >>conftest.$ac_ext |
| 8144 | cat >>conftest.$ac_ext <<_ACEOF |
| 8145 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8146 | |
| 8147 | #include <X11/Intrinsic.h> |
| 8148 | #include <X11/neXtaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8149 | int |
| 8150 | main () |
| 8151 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8152 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8153 | ; |
| 8154 | return 0; |
| 8155 | } |
| 8156 | _ACEOF |
| 8157 | rm -f conftest.$ac_objext |
| 8158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8159 | (eval $ac_compile) 2>conftest.er1 |
| 8160 | ac_status=$? |
| 8161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8162 | rm -f conftest.er1 |
| 8163 | cat conftest.err >&5 |
| 8164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8165 | (exit $ac_status); } && |
| 8166 | { ac_try='test -z "$ac_c_werror_flag" |
| 8167 | || test ! -s conftest.err' |
| 8168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8169 | (eval $ac_try) 2>&5 |
| 8170 | ac_status=$? |
| 8171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8172 | (exit $ac_status); }; } && |
| 8173 | { ac_try='test -s conftest.$ac_objext' |
| 8174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8175 | (eval $ac_try) 2>&5 |
| 8176 | ac_status=$? |
| 8177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8178 | (exit $ac_status); }; }; then |
| 8179 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8180 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8181 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8182 | echo "$as_me: failed program was:" >&5 |
| 8183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8184 | |
| 8185 | echo "$as_me:$LINENO: result: no" >&5 |
| 8186 | echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8187 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8189 | CFLAGS=$cflags_save |
| 8190 | fi |
| 8191 | |
| 8192 | if test -z "$SKIP_NEXTAW"; then |
| 8193 | GUITYPE=NEXTAW |
| 8194 | fi |
| 8195 | |
| 8196 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 8197 | if test -n "$GUI_INC_LOC"; then |
| 8198 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 8199 | fi |
| 8200 | if test -n "$GUI_LIB_LOC"; then |
| 8201 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 8202 | fi |
| 8203 | |
| 8204 | ldflags_save=$LDFLAGS |
| 8205 | LDFLAGS="$X_LIBS $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8206 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 8207 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 8208 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 8209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8210 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8211 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8212 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8213 | cat >conftest.$ac_ext <<_ACEOF |
| 8214 | /* confdefs.h. */ |
| 8215 | _ACEOF |
| 8216 | cat confdefs.h >>conftest.$ac_ext |
| 8217 | cat >>conftest.$ac_ext <<_ACEOF |
| 8218 | /* end confdefs.h. */ |
| 8219 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8220 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8221 | #ifdef __cplusplus |
| 8222 | extern "C" |
| 8223 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8224 | /* 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] | 8225 | builtin and then its argument prototype would still apply. */ |
| 8226 | char XShapeQueryExtension (); |
| 8227 | int |
| 8228 | main () |
| 8229 | { |
| 8230 | XShapeQueryExtension (); |
| 8231 | ; |
| 8232 | return 0; |
| 8233 | } |
| 8234 | _ACEOF |
| 8235 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8237 | (eval $ac_link) 2>conftest.er1 |
| 8238 | ac_status=$? |
| 8239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8240 | rm -f conftest.er1 |
| 8241 | cat conftest.err >&5 |
| 8242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8243 | (exit $ac_status); } && |
| 8244 | { ac_try='test -z "$ac_c_werror_flag" |
| 8245 | || test ! -s conftest.err' |
| 8246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8247 | (eval $ac_try) 2>&5 |
| 8248 | ac_status=$? |
| 8249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8250 | (exit $ac_status); }; } && |
| 8251 | { ac_try='test -s conftest$ac_exeext' |
| 8252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8253 | (eval $ac_try) 2>&5 |
| 8254 | ac_status=$? |
| 8255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8256 | (exit $ac_status); }; }; then |
| 8257 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8258 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8259 | echo "$as_me: failed program was:" >&5 |
| 8260 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8261 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8262 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8263 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8264 | rm -f conftest.err conftest.$ac_objext \ |
| 8265 | conftest$ac_exeext conftest.$ac_ext |
| 8266 | LIBS=$ac_check_lib_save_LIBS |
| 8267 | fi |
| 8268 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 8269 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 8270 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8271 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8272 | fi |
| 8273 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8274 | echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
| 8275 | echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6 |
| 8276 | if test "${ac_cv_lib_w_wslen+set}" = set; then |
| 8277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8278 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8279 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8280 | 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] | 8281 | cat >conftest.$ac_ext <<_ACEOF |
| 8282 | /* confdefs.h. */ |
| 8283 | _ACEOF |
| 8284 | cat confdefs.h >>conftest.$ac_ext |
| 8285 | cat >>conftest.$ac_ext <<_ACEOF |
| 8286 | /* end confdefs.h. */ |
| 8287 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8288 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8289 | #ifdef __cplusplus |
| 8290 | extern "C" |
| 8291 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8292 | /* 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] | 8293 | builtin and then its argument prototype would still apply. */ |
| 8294 | char wslen (); |
| 8295 | int |
| 8296 | main () |
| 8297 | { |
| 8298 | wslen (); |
| 8299 | ; |
| 8300 | return 0; |
| 8301 | } |
| 8302 | _ACEOF |
| 8303 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8305 | (eval $ac_link) 2>conftest.er1 |
| 8306 | ac_status=$? |
| 8307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8308 | rm -f conftest.er1 |
| 8309 | cat conftest.err >&5 |
| 8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8311 | (exit $ac_status); } && |
| 8312 | { ac_try='test -z "$ac_c_werror_flag" |
| 8313 | || test ! -s conftest.err' |
| 8314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8315 | (eval $ac_try) 2>&5 |
| 8316 | ac_status=$? |
| 8317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8318 | (exit $ac_status); }; } && |
| 8319 | { ac_try='test -s conftest$ac_exeext' |
| 8320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8321 | (eval $ac_try) 2>&5 |
| 8322 | ac_status=$? |
| 8323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8324 | (exit $ac_status); }; }; then |
| 8325 | ac_cv_lib_w_wslen=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8326 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8327 | echo "$as_me: failed program was:" >&5 |
| 8328 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8329 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8330 | ac_cv_lib_w_wslen=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8331 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8332 | rm -f conftest.err conftest.$ac_objext \ |
| 8333 | conftest$ac_exeext conftest.$ac_ext |
| 8334 | LIBS=$ac_check_lib_save_LIBS |
| 8335 | fi |
| 8336 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 |
| 8337 | echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6 |
| 8338 | if test $ac_cv_lib_w_wslen = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8339 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8340 | fi |
| 8341 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8342 | echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
| 8343 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 |
| 8344 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
| 8345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8346 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8347 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8348 | 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] | 8349 | cat >conftest.$ac_ext <<_ACEOF |
| 8350 | /* confdefs.h. */ |
| 8351 | _ACEOF |
| 8352 | cat confdefs.h >>conftest.$ac_ext |
| 8353 | cat >>conftest.$ac_ext <<_ACEOF |
| 8354 | /* end confdefs.h. */ |
| 8355 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8356 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8357 | #ifdef __cplusplus |
| 8358 | extern "C" |
| 8359 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8360 | /* 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] | 8361 | builtin and then its argument prototype would still apply. */ |
| 8362 | char dlsym (); |
| 8363 | int |
| 8364 | main () |
| 8365 | { |
| 8366 | dlsym (); |
| 8367 | ; |
| 8368 | return 0; |
| 8369 | } |
| 8370 | _ACEOF |
| 8371 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8373 | (eval $ac_link) 2>conftest.er1 |
| 8374 | ac_status=$? |
| 8375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8376 | rm -f conftest.er1 |
| 8377 | cat conftest.err >&5 |
| 8378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8379 | (exit $ac_status); } && |
| 8380 | { ac_try='test -z "$ac_c_werror_flag" |
| 8381 | || test ! -s conftest.err' |
| 8382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8383 | (eval $ac_try) 2>&5 |
| 8384 | ac_status=$? |
| 8385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8386 | (exit $ac_status); }; } && |
| 8387 | { ac_try='test -s conftest$ac_exeext' |
| 8388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8389 | (eval $ac_try) 2>&5 |
| 8390 | ac_status=$? |
| 8391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8392 | (exit $ac_status); }; }; then |
| 8393 | ac_cv_lib_dl_dlsym=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8394 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8395 | echo "$as_me: failed program was:" >&5 |
| 8396 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8397 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8398 | ac_cv_lib_dl_dlsym=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8399 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8400 | rm -f conftest.err conftest.$ac_objext \ |
| 8401 | conftest$ac_exeext conftest.$ac_ext |
| 8402 | LIBS=$ac_check_lib_save_LIBS |
| 8403 | fi |
| 8404 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
| 8405 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 |
| 8406 | if test $ac_cv_lib_dl_dlsym = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8407 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8408 | fi |
| 8409 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8410 | echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 8411 | echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6 |
| 8412 | if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then |
| 8413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8414 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8415 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8416 | 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] | 8417 | cat >conftest.$ac_ext <<_ACEOF |
| 8418 | /* confdefs.h. */ |
| 8419 | _ACEOF |
| 8420 | cat confdefs.h >>conftest.$ac_ext |
| 8421 | cat >>conftest.$ac_ext <<_ACEOF |
| 8422 | /* end confdefs.h. */ |
| 8423 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8424 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8425 | #ifdef __cplusplus |
| 8426 | extern "C" |
| 8427 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8428 | /* 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] | 8429 | builtin and then its argument prototype would still apply. */ |
| 8430 | char XmuCreateStippledPixmap (); |
| 8431 | int |
| 8432 | main () |
| 8433 | { |
| 8434 | XmuCreateStippledPixmap (); |
| 8435 | ; |
| 8436 | return 0; |
| 8437 | } |
| 8438 | _ACEOF |
| 8439 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8441 | (eval $ac_link) 2>conftest.er1 |
| 8442 | ac_status=$? |
| 8443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8444 | rm -f conftest.er1 |
| 8445 | cat conftest.err >&5 |
| 8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8447 | (exit $ac_status); } && |
| 8448 | { ac_try='test -z "$ac_c_werror_flag" |
| 8449 | || test ! -s conftest.err' |
| 8450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8451 | (eval $ac_try) 2>&5 |
| 8452 | ac_status=$? |
| 8453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8454 | (exit $ac_status); }; } && |
| 8455 | { ac_try='test -s conftest$ac_exeext' |
| 8456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8457 | (eval $ac_try) 2>&5 |
| 8458 | ac_status=$? |
| 8459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8460 | (exit $ac_status); }; }; then |
| 8461 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8462 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8463 | echo "$as_me: failed program was:" >&5 |
| 8464 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8465 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8466 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8467 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8468 | rm -f conftest.err conftest.$ac_objext \ |
| 8469 | conftest$ac_exeext conftest.$ac_ext |
| 8470 | LIBS=$ac_check_lib_save_LIBS |
| 8471 | fi |
| 8472 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 8473 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6 |
| 8474 | if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8475 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8476 | fi |
| 8477 | |
| 8478 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8479 | echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
| 8480 | echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6 |
| 8481 | if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
| 8482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8483 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8484 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8485 | 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] | 8486 | cat >conftest.$ac_ext <<_ACEOF |
| 8487 | /* confdefs.h. */ |
| 8488 | _ACEOF |
| 8489 | cat confdefs.h >>conftest.$ac_ext |
| 8490 | cat >>conftest.$ac_ext <<_ACEOF |
| 8491 | /* end confdefs.h. */ |
| 8492 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8493 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8494 | #ifdef __cplusplus |
| 8495 | extern "C" |
| 8496 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8497 | /* 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] | 8498 | builtin and then its argument prototype would still apply. */ |
| 8499 | char XpEndJob (); |
| 8500 | int |
| 8501 | main () |
| 8502 | { |
| 8503 | XpEndJob (); |
| 8504 | ; |
| 8505 | return 0; |
| 8506 | } |
| 8507 | _ACEOF |
| 8508 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8510 | (eval $ac_link) 2>conftest.er1 |
| 8511 | ac_status=$? |
| 8512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8513 | rm -f conftest.er1 |
| 8514 | cat conftest.err >&5 |
| 8515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8516 | (exit $ac_status); } && |
| 8517 | { ac_try='test -z "$ac_c_werror_flag" |
| 8518 | || test ! -s conftest.err' |
| 8519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8520 | (eval $ac_try) 2>&5 |
| 8521 | ac_status=$? |
| 8522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8523 | (exit $ac_status); }; } && |
| 8524 | { ac_try='test -s conftest$ac_exeext' |
| 8525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8526 | (eval $ac_try) 2>&5 |
| 8527 | ac_status=$? |
| 8528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8529 | (exit $ac_status); }; }; then |
| 8530 | ac_cv_lib_Xp_XpEndJob=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8531 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8532 | echo "$as_me: failed program was:" >&5 |
| 8533 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8534 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8535 | ac_cv_lib_Xp_XpEndJob=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8536 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8537 | rm -f conftest.err conftest.$ac_objext \ |
| 8538 | conftest$ac_exeext conftest.$ac_ext |
| 8539 | LIBS=$ac_check_lib_save_LIBS |
| 8540 | fi |
| 8541 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 8542 | echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6 |
| 8543 | if test $ac_cv_lib_Xp_XpEndJob = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8544 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8545 | fi |
| 8546 | |
| 8547 | fi |
| 8548 | LDFLAGS=$ldflags_save |
| 8549 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8550 | echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
| 8551 | echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8552 | NARROW_PROTO= |
| 8553 | rm -fr conftestdir |
| 8554 | if mkdir conftestdir; then |
| 8555 | cd conftestdir |
| 8556 | cat > Imakefile <<'EOF' |
| 8557 | acfindx: |
| 8558 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 8559 | EOF |
| 8560 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 8561 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 8562 | fi |
| 8563 | cd .. |
| 8564 | rm -fr conftestdir |
| 8565 | fi |
| 8566 | if test -z "$NARROW_PROTO"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8567 | echo "$as_me:$LINENO: result: no" >&5 |
| 8568 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8569 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8570 | echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
| 8571 | echo "${ECHO_T}$NARROW_PROTO" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8572 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8573 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8574 | fi |
| 8575 | |
| 8576 | if test "$enable_xsmp" = "yes"; then |
| 8577 | cppflags_save=$CPPFLAGS |
| 8578 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8579 | |
| 8580 | for ac_header in X11/SM/SMlib.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8581 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8582 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8583 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8584 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8585 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8586 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8588 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8589 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8590 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8591 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8592 | # Is the header compilable? |
| 8593 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8594 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8595 | cat >conftest.$ac_ext <<_ACEOF |
| 8596 | /* confdefs.h. */ |
| 8597 | _ACEOF |
| 8598 | cat confdefs.h >>conftest.$ac_ext |
| 8599 | cat >>conftest.$ac_ext <<_ACEOF |
| 8600 | /* end confdefs.h. */ |
| 8601 | $ac_includes_default |
| 8602 | #include <$ac_header> |
| 8603 | _ACEOF |
| 8604 | rm -f conftest.$ac_objext |
| 8605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8606 | (eval $ac_compile) 2>conftest.er1 |
| 8607 | ac_status=$? |
| 8608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8609 | rm -f conftest.er1 |
| 8610 | cat conftest.err >&5 |
| 8611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8612 | (exit $ac_status); } && |
| 8613 | { ac_try='test -z "$ac_c_werror_flag" |
| 8614 | || test ! -s conftest.err' |
| 8615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8616 | (eval $ac_try) 2>&5 |
| 8617 | ac_status=$? |
| 8618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8619 | (exit $ac_status); }; } && |
| 8620 | { ac_try='test -s conftest.$ac_objext' |
| 8621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8622 | (eval $ac_try) 2>&5 |
| 8623 | ac_status=$? |
| 8624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8625 | (exit $ac_status); }; }; then |
| 8626 | ac_header_compiler=yes |
| 8627 | else |
| 8628 | echo "$as_me: failed program was:" >&5 |
| 8629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8630 | |
| 8631 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8632 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8634 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8635 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8636 | |
| 8637 | # Is the header present? |
| 8638 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8639 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8640 | cat >conftest.$ac_ext <<_ACEOF |
| 8641 | /* confdefs.h. */ |
| 8642 | _ACEOF |
| 8643 | cat confdefs.h >>conftest.$ac_ext |
| 8644 | cat >>conftest.$ac_ext <<_ACEOF |
| 8645 | /* end confdefs.h. */ |
| 8646 | #include <$ac_header> |
| 8647 | _ACEOF |
| 8648 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8649 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8650 | ac_status=$? |
| 8651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8652 | rm -f conftest.er1 |
| 8653 | cat conftest.err >&5 |
| 8654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8655 | (exit $ac_status); } >/dev/null; then |
| 8656 | if test -s conftest.err; then |
| 8657 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8658 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8659 | else |
| 8660 | ac_cpp_err= |
| 8661 | fi |
| 8662 | else |
| 8663 | ac_cpp_err=yes |
| 8664 | fi |
| 8665 | if test -z "$ac_cpp_err"; then |
| 8666 | ac_header_preproc=yes |
| 8667 | else |
| 8668 | echo "$as_me: failed program was:" >&5 |
| 8669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8670 | |
| 8671 | ac_header_preproc=no |
| 8672 | fi |
| 8673 | rm -f conftest.err conftest.$ac_ext |
| 8674 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8675 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8676 | |
| 8677 | # So? What about this header? |
| 8678 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8679 | yes:no: ) |
| 8680 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8681 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8682 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8683 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8684 | ac_header_preproc=yes |
| 8685 | ;; |
| 8686 | no:yes:* ) |
| 8687 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8688 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8689 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8690 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8691 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8692 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8693 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8694 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8695 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8696 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8697 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8698 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8699 | ( |
| 8700 | cat <<\_ASBOX |
| 8701 | ## ------------------------------------------ ## |
| 8702 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8703 | ## ------------------------------------------ ## |
| 8704 | _ASBOX |
| 8705 | ) | |
| 8706 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8707 | ;; |
| 8708 | esac |
| 8709 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8710 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8711 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8713 | else |
| 8714 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8715 | fi |
| 8716 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8717 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8718 | |
| 8719 | fi |
| 8720 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8721 | cat >>confdefs.h <<_ACEOF |
| 8722 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8723 | _ACEOF |
| 8724 | |
| 8725 | fi |
| 8726 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8727 | done |
| 8728 | |
| 8729 | CPPFLAGS=$cppflags_save |
| 8730 | fi |
| 8731 | |
| 8732 | |
| 8733 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 8734 | cppflags_save=$CPPFLAGS |
| 8735 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8736 | |
| 8737 | |
| 8738 | for ac_header in X11/xpm.h X11/Sunkeysym.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8739 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8740 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8741 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8742 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8743 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8744 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8746 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8747 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8748 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8749 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8750 | # Is the header compilable? |
| 8751 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8752 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8753 | cat >conftest.$ac_ext <<_ACEOF |
| 8754 | /* confdefs.h. */ |
| 8755 | _ACEOF |
| 8756 | cat confdefs.h >>conftest.$ac_ext |
| 8757 | cat >>conftest.$ac_ext <<_ACEOF |
| 8758 | /* end confdefs.h. */ |
| 8759 | $ac_includes_default |
| 8760 | #include <$ac_header> |
| 8761 | _ACEOF |
| 8762 | rm -f conftest.$ac_objext |
| 8763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8764 | (eval $ac_compile) 2>conftest.er1 |
| 8765 | ac_status=$? |
| 8766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8767 | rm -f conftest.er1 |
| 8768 | cat conftest.err >&5 |
| 8769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8770 | (exit $ac_status); } && |
| 8771 | { ac_try='test -z "$ac_c_werror_flag" |
| 8772 | || test ! -s conftest.err' |
| 8773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8774 | (eval $ac_try) 2>&5 |
| 8775 | ac_status=$? |
| 8776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8777 | (exit $ac_status); }; } && |
| 8778 | { ac_try='test -s conftest.$ac_objext' |
| 8779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8780 | (eval $ac_try) 2>&5 |
| 8781 | ac_status=$? |
| 8782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8783 | (exit $ac_status); }; }; then |
| 8784 | ac_header_compiler=yes |
| 8785 | else |
| 8786 | echo "$as_me: failed program was:" >&5 |
| 8787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8788 | |
| 8789 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8790 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8792 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8793 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8794 | |
| 8795 | # Is the header present? |
| 8796 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8797 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8798 | cat >conftest.$ac_ext <<_ACEOF |
| 8799 | /* confdefs.h. */ |
| 8800 | _ACEOF |
| 8801 | cat confdefs.h >>conftest.$ac_ext |
| 8802 | cat >>conftest.$ac_ext <<_ACEOF |
| 8803 | /* end confdefs.h. */ |
| 8804 | #include <$ac_header> |
| 8805 | _ACEOF |
| 8806 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8807 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8808 | ac_status=$? |
| 8809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8810 | rm -f conftest.er1 |
| 8811 | cat conftest.err >&5 |
| 8812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8813 | (exit $ac_status); } >/dev/null; then |
| 8814 | if test -s conftest.err; then |
| 8815 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8816 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8817 | else |
| 8818 | ac_cpp_err= |
| 8819 | fi |
| 8820 | else |
| 8821 | ac_cpp_err=yes |
| 8822 | fi |
| 8823 | if test -z "$ac_cpp_err"; then |
| 8824 | ac_header_preproc=yes |
| 8825 | else |
| 8826 | echo "$as_me: failed program was:" >&5 |
| 8827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8828 | |
| 8829 | ac_header_preproc=no |
| 8830 | fi |
| 8831 | rm -f conftest.err conftest.$ac_ext |
| 8832 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8833 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8834 | |
| 8835 | # So? What about this header? |
| 8836 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8837 | yes:no: ) |
| 8838 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8839 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8840 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8841 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8842 | ac_header_preproc=yes |
| 8843 | ;; |
| 8844 | no:yes:* ) |
| 8845 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8846 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8847 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8848 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8849 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8850 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8851 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8852 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8853 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8854 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8855 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8856 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8857 | ( |
| 8858 | cat <<\_ASBOX |
| 8859 | ## ------------------------------------------ ## |
| 8860 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8861 | ## ------------------------------------------ ## |
| 8862 | _ASBOX |
| 8863 | ) | |
| 8864 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8865 | ;; |
| 8866 | esac |
| 8867 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8869 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8871 | else |
| 8872 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8873 | fi |
| 8874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8876 | |
| 8877 | fi |
| 8878 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8879 | cat >>confdefs.h <<_ACEOF |
| 8880 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8881 | _ACEOF |
| 8882 | |
| 8883 | fi |
| 8884 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8885 | done |
| 8886 | |
| 8887 | |
| 8888 | if test ! "$enable_xim" = "no"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8889 | echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
| 8890 | echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6 |
| 8891 | cat >conftest.$ac_ext <<_ACEOF |
| 8892 | /* confdefs.h. */ |
| 8893 | _ACEOF |
| 8894 | cat confdefs.h >>conftest.$ac_ext |
| 8895 | cat >>conftest.$ac_ext <<_ACEOF |
| 8896 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8897 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8898 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8899 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8900 | $EGREP "XIMText" >/dev/null 2>&1; then |
| 8901 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8902 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8903 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8904 | echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
| 8905 | echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8906 | fi |
| 8907 | rm -f conftest* |
| 8908 | |
| 8909 | fi |
| 8910 | CPPFLAGS=$cppflags_save |
| 8911 | |
| 8912 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 8913 | -a "x$GUITYPE" != "xNONE" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8914 | echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
| 8915 | echo "${ECHO_T}X GUI selected; xim has been enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8916 | enable_xim="yes" |
| 8917 | fi |
| 8918 | fi |
| 8919 | |
| 8920 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 8921 | cppflags_save=$CPPFLAGS |
| 8922 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8923 | echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 |
| 8924 | echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6 |
| 8925 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8926 | /* confdefs.h. */ |
| 8927 | _ACEOF |
| 8928 | cat confdefs.h >>conftest.$ac_ext |
| 8929 | cat >>conftest.$ac_ext <<_ACEOF |
| 8930 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8931 | |
| 8932 | #include <X11/Intrinsic.h> |
| 8933 | #include <X11/Xmu/Editres.h> |
| 8934 | int |
| 8935 | main () |
| 8936 | { |
| 8937 | int i; i = 0; |
| 8938 | ; |
| 8939 | return 0; |
| 8940 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8941 | _ACEOF |
| 8942 | rm -f conftest.$ac_objext |
| 8943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8944 | (eval $ac_compile) 2>conftest.er1 |
| 8945 | ac_status=$? |
| 8946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8947 | rm -f conftest.er1 |
| 8948 | cat conftest.err >&5 |
| 8949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8950 | (exit $ac_status); } && |
| 8951 | { ac_try='test -z "$ac_c_werror_flag" |
| 8952 | || test ! -s conftest.err' |
| 8953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8954 | (eval $ac_try) 2>&5 |
| 8955 | ac_status=$? |
| 8956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8957 | (exit $ac_status); }; } && |
| 8958 | { ac_try='test -s conftest.$ac_objext' |
| 8959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8960 | (eval $ac_try) 2>&5 |
| 8961 | ac_status=$? |
| 8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8963 | (exit $ac_status); }; }; then |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8964 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8965 | echo "${ECHO_T}yes" >&6 |
| 8966 | cat >>confdefs.h <<\_ACEOF |
| 8967 | #define HAVE_X11_XMU_EDITRES_H 1 |
| 8968 | _ACEOF |
| 8969 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8970 | else |
| 8971 | echo "$as_me: failed program was:" >&5 |
| 8972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8973 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8974 | echo "$as_me:$LINENO: result: no" >&5 |
| 8975 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8976 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8978 | CPPFLAGS=$cppflags_save |
| 8979 | fi |
| 8980 | |
| 8981 | if test -z "$SKIP_MOTIF"; then |
| 8982 | cppflags_save=$CPPFLAGS |
| 8983 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8984 | |
| 8985 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8986 | |
| 8987 | |
| 8988 | |
| 8989 | |
Bram Moolenaar | fc1421e | 2006-04-20 22:17:20 +0000 | [diff] [blame] | 8990 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8991 | for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \ |
Bram Moolenaar | fc1421e | 2006-04-20 22:17:20 +0000 | [diff] [blame] | 8992 | Xm/UnhighlightT.h Xm/Notebook.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8993 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8994 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8996 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8997 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9000 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9003 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9004 | # Is the header compilable? |
| 9005 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9006 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9007 | cat >conftest.$ac_ext <<_ACEOF |
| 9008 | /* confdefs.h. */ |
| 9009 | _ACEOF |
| 9010 | cat confdefs.h >>conftest.$ac_ext |
| 9011 | cat >>conftest.$ac_ext <<_ACEOF |
| 9012 | /* end confdefs.h. */ |
| 9013 | $ac_includes_default |
| 9014 | #include <$ac_header> |
| 9015 | _ACEOF |
| 9016 | rm -f conftest.$ac_objext |
| 9017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9018 | (eval $ac_compile) 2>conftest.er1 |
| 9019 | ac_status=$? |
| 9020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9021 | rm -f conftest.er1 |
| 9022 | cat conftest.err >&5 |
| 9023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9024 | (exit $ac_status); } && |
| 9025 | { ac_try='test -z "$ac_c_werror_flag" |
| 9026 | || test ! -s conftest.err' |
| 9027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9028 | (eval $ac_try) 2>&5 |
| 9029 | ac_status=$? |
| 9030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9031 | (exit $ac_status); }; } && |
| 9032 | { ac_try='test -s conftest.$ac_objext' |
| 9033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9034 | (eval $ac_try) 2>&5 |
| 9035 | ac_status=$? |
| 9036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9037 | (exit $ac_status); }; }; then |
| 9038 | ac_header_compiler=yes |
| 9039 | else |
| 9040 | echo "$as_me: failed program was:" >&5 |
| 9041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9042 | |
| 9043 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9044 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9046 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9047 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9048 | |
| 9049 | # Is the header present? |
| 9050 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9051 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9052 | cat >conftest.$ac_ext <<_ACEOF |
| 9053 | /* confdefs.h. */ |
| 9054 | _ACEOF |
| 9055 | cat confdefs.h >>conftest.$ac_ext |
| 9056 | cat >>conftest.$ac_ext <<_ACEOF |
| 9057 | /* end confdefs.h. */ |
| 9058 | #include <$ac_header> |
| 9059 | _ACEOF |
| 9060 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9061 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9062 | ac_status=$? |
| 9063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9064 | rm -f conftest.er1 |
| 9065 | cat conftest.err >&5 |
| 9066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9067 | (exit $ac_status); } >/dev/null; then |
| 9068 | if test -s conftest.err; then |
| 9069 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9070 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9071 | else |
| 9072 | ac_cpp_err= |
| 9073 | fi |
| 9074 | else |
| 9075 | ac_cpp_err=yes |
| 9076 | fi |
| 9077 | if test -z "$ac_cpp_err"; then |
| 9078 | ac_header_preproc=yes |
| 9079 | else |
| 9080 | echo "$as_me: failed program was:" >&5 |
| 9081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9082 | |
| 9083 | ac_header_preproc=no |
| 9084 | fi |
| 9085 | rm -f conftest.err conftest.$ac_ext |
| 9086 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9087 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9088 | |
| 9089 | # So? What about this header? |
| 9090 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9091 | yes:no: ) |
| 9092 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9093 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9094 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9095 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9096 | ac_header_preproc=yes |
| 9097 | ;; |
| 9098 | no:yes:* ) |
| 9099 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9100 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9101 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9102 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9103 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9104 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9105 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9106 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9107 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9108 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9109 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9110 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9111 | ( |
| 9112 | cat <<\_ASBOX |
| 9113 | ## ------------------------------------------ ## |
| 9114 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9115 | ## ------------------------------------------ ## |
| 9116 | _ASBOX |
| 9117 | ) | |
| 9118 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9119 | ;; |
| 9120 | esac |
| 9121 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9122 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9123 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9125 | else |
| 9126 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9127 | fi |
| 9128 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9129 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9130 | |
| 9131 | fi |
| 9132 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9133 | cat >>confdefs.h <<_ACEOF |
| 9134 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9135 | _ACEOF |
| 9136 | |
| 9137 | fi |
| 9138 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9139 | done |
| 9140 | |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 9141 | |
| 9142 | if test $ac_cv_header_Xm_XpmP_h = yes; then |
| 9143 | echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 |
| 9144 | echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6 |
| 9145 | cat >conftest.$ac_ext <<_ACEOF |
| 9146 | /* confdefs.h. */ |
| 9147 | _ACEOF |
| 9148 | cat confdefs.h >>conftest.$ac_ext |
| 9149 | cat >>conftest.$ac_ext <<_ACEOF |
| 9150 | /* end confdefs.h. */ |
| 9151 | #include <Xm/XpmP.h> |
| 9152 | int |
| 9153 | main () |
| 9154 | { |
| 9155 | XpmAttributes_21 attr; |
| 9156 | ; |
| 9157 | return 0; |
| 9158 | } |
| 9159 | _ACEOF |
| 9160 | rm -f conftest.$ac_objext |
| 9161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9162 | (eval $ac_compile) 2>conftest.er1 |
| 9163 | ac_status=$? |
| 9164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9165 | rm -f conftest.er1 |
| 9166 | cat conftest.err >&5 |
| 9167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9168 | (exit $ac_status); } && |
| 9169 | { ac_try='test -z "$ac_c_werror_flag" |
| 9170 | || test ! -s conftest.err' |
| 9171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9172 | (eval $ac_try) 2>&5 |
| 9173 | ac_status=$? |
| 9174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9175 | (exit $ac_status); }; } && |
| 9176 | { ac_try='test -s conftest.$ac_objext' |
| 9177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9178 | (eval $ac_try) 2>&5 |
| 9179 | ac_status=$? |
| 9180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9181 | (exit $ac_status); }; }; then |
| 9182 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9183 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
| 9184 | #define XPMATTRIBUTES_TYPE XpmAttributes_21 |
| 9185 | _ACEOF |
| 9186 | |
| 9187 | else |
| 9188 | echo "$as_me: failed program was:" >&5 |
| 9189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9190 | |
| 9191 | echo "$as_me:$LINENO: result: no" >&5 |
| 9192 | echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF |
| 9193 | #define XPMATTRIBUTES_TYPE XpmAttributes |
| 9194 | _ACEOF |
| 9195 | |
| 9196 | |
| 9197 | fi |
| 9198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9199 | else |
| 9200 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 57657d8 | 2006-04-21 22:12:41 +0000 | [diff] [blame] | 9201 | #define XPMATTRIBUTES_TYPE XpmAttributes |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 9202 | _ACEOF |
| 9203 | |
| 9204 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9205 | CPPFLAGS=$cppflags_save |
| 9206 | fi |
| 9207 | |
| 9208 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9209 | echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
| 9210 | echo "${ECHO_T}no GUI selected; xim has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9211 | enable_xim="no" |
| 9212 | fi |
| 9213 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9214 | echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
| 9215 | echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9216 | enable_fontset="no" |
| 9217 | fi |
| 9218 | 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] | 9219 | echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 9220 | echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9221 | enable_fontset="no" |
| 9222 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9223 | |
| 9224 | if test -z "$SKIP_PHOTON"; then |
| 9225 | GUITYPE=PHOTONGUI |
| 9226 | fi |
| 9227 | |
| 9228 | |
| 9229 | |
| 9230 | |
| 9231 | |
| 9232 | |
| 9233 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9234 | { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
| 9235 | echo "$as_me: error: cannot use workshop without Motif" >&2;} |
| 9236 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9237 | fi |
| 9238 | |
| 9239 | if test "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9240 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9241 | #define FEAT_XIM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9242 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9243 | |
| 9244 | fi |
| 9245 | if test "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9246 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9247 | #define FEAT_XFONTSET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9248 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9249 | |
| 9250 | fi |
| 9251 | |
| 9252 | |
| 9253 | |
| 9254 | |
| 9255 | if test "$enable_hangulinput" = "yes"; then |
| 9256 | if test "x$GUITYPE" = "xNONE"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9257 | echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
| 9258 | echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9259 | enable_hangulinput=no |
| 9260 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9261 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9262 | #define FEAT_HANGULIN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9263 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9264 | |
| 9265 | HANGULIN_SRC=hangulin.c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9266 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9267 | HANGULIN_OBJ=objects/hangulin.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9268 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9269 | fi |
| 9270 | fi |
| 9271 | |
| 9272 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9273 | echo "$as_me:$LINENO: checking quality of toupper" >&5 |
| 9274 | echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9275 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9276 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 9277 | echo "$as_me: error: failed to compile test program" >&2;} |
| 9278 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9279 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9280 | cat >conftest.$ac_ext <<_ACEOF |
| 9281 | /* confdefs.h. */ |
| 9282 | _ACEOF |
| 9283 | cat confdefs.h >>conftest.$ac_ext |
| 9284 | cat >>conftest.$ac_ext <<_ACEOF |
| 9285 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9286 | #include <ctype.h> |
| 9287 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9288 | _ACEOF |
| 9289 | rm -f conftest$ac_exeext |
| 9290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9291 | (eval $ac_link) 2>&5 |
| 9292 | ac_status=$? |
| 9293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9294 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9296 | (eval $ac_try) 2>&5 |
| 9297 | ac_status=$? |
| 9298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9299 | (exit $ac_status); }; }; then |
| 9300 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9301 | #define BROKEN_TOUPPER 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9302 | _ACEOF |
| 9303 | echo "$as_me:$LINENO: result: bad" >&5 |
| 9304 | echo "${ECHO_T}bad" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9305 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9306 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9307 | echo "$as_me: failed program was:" >&5 |
| 9308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9309 | |
| 9310 | ( exit $ac_status ) |
| 9311 | echo "$as_me:$LINENO: result: good" >&5 |
| 9312 | echo "${ECHO_T}good" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9313 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9314 | 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] | 9315 | fi |
| 9316 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9317 | echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
| 9318 | echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6 |
| 9319 | cat >conftest.$ac_ext <<_ACEOF |
| 9320 | /* confdefs.h. */ |
| 9321 | _ACEOF |
| 9322 | cat confdefs.h >>conftest.$ac_ext |
| 9323 | cat >>conftest.$ac_ext <<_ACEOF |
| 9324 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9325 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9326 | int |
| 9327 | main () |
| 9328 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9329 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9330 | ; |
| 9331 | return 0; |
| 9332 | } |
| 9333 | _ACEOF |
| 9334 | rm -f conftest.$ac_objext |
| 9335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9336 | (eval $ac_compile) 2>conftest.er1 |
| 9337 | ac_status=$? |
| 9338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9339 | rm -f conftest.er1 |
| 9340 | cat conftest.err >&5 |
| 9341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9342 | (exit $ac_status); } && |
| 9343 | { ac_try='test -z "$ac_c_werror_flag" |
| 9344 | || test ! -s conftest.err' |
| 9345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9346 | (eval $ac_try) 2>&5 |
| 9347 | ac_status=$? |
| 9348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9349 | (exit $ac_status); }; } && |
| 9350 | { ac_try='test -s conftest.$ac_objext' |
| 9351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9352 | (eval $ac_try) 2>&5 |
| 9353 | ac_status=$? |
| 9354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9355 | (exit $ac_status); }; }; then |
| 9356 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9357 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9358 | #define HAVE_DATE_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9359 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9360 | |
| 9361 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9362 | echo "$as_me: failed program was:" >&5 |
| 9363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9364 | |
| 9365 | echo "$as_me:$LINENO: result: no" >&5 |
| 9366 | echo "${ECHO_T}no" >&6 |
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 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9369 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9370 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9371 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 9372 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 9373 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9375 | fi |
| 9376 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 9377 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9378 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9379 | # Is the header compilable? |
| 9380 | echo "$as_me:$LINENO: checking elf.h usability" >&5 |
| 9381 | echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6 |
| 9382 | cat >conftest.$ac_ext <<_ACEOF |
| 9383 | /* confdefs.h. */ |
| 9384 | _ACEOF |
| 9385 | cat confdefs.h >>conftest.$ac_ext |
| 9386 | cat >>conftest.$ac_ext <<_ACEOF |
| 9387 | /* end confdefs.h. */ |
| 9388 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9389 | #include <elf.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9390 | _ACEOF |
| 9391 | rm -f conftest.$ac_objext |
| 9392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9393 | (eval $ac_compile) 2>conftest.er1 |
| 9394 | ac_status=$? |
| 9395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9396 | rm -f conftest.er1 |
| 9397 | cat conftest.err >&5 |
| 9398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9399 | (exit $ac_status); } && |
| 9400 | { ac_try='test -z "$ac_c_werror_flag" |
| 9401 | || test ! -s conftest.err' |
| 9402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9403 | (eval $ac_try) 2>&5 |
| 9404 | ac_status=$? |
| 9405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9406 | (exit $ac_status); }; } && |
| 9407 | { ac_try='test -s conftest.$ac_objext' |
| 9408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9409 | (eval $ac_try) 2>&5 |
| 9410 | ac_status=$? |
| 9411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9412 | (exit $ac_status); }; }; then |
| 9413 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9414 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9415 | echo "$as_me: failed program was:" >&5 |
| 9416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9417 | |
| 9418 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9419 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9421 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9422 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9423 | |
| 9424 | # Is the header present? |
| 9425 | echo "$as_me:$LINENO: checking elf.h presence" >&5 |
| 9426 | echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6 |
| 9427 | cat >conftest.$ac_ext <<_ACEOF |
| 9428 | /* confdefs.h. */ |
| 9429 | _ACEOF |
| 9430 | cat confdefs.h >>conftest.$ac_ext |
| 9431 | cat >>conftest.$ac_ext <<_ACEOF |
| 9432 | /* end confdefs.h. */ |
| 9433 | #include <elf.h> |
| 9434 | _ACEOF |
| 9435 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9436 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9437 | ac_status=$? |
| 9438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9439 | rm -f conftest.er1 |
| 9440 | cat conftest.err >&5 |
| 9441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9442 | (exit $ac_status); } >/dev/null; then |
| 9443 | if test -s conftest.err; then |
| 9444 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9445 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9446 | else |
| 9447 | ac_cpp_err= |
| 9448 | fi |
| 9449 | else |
| 9450 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9451 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9452 | if test -z "$ac_cpp_err"; then |
| 9453 | ac_header_preproc=yes |
| 9454 | else |
| 9455 | echo "$as_me: failed program was:" >&5 |
| 9456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9457 | |
| 9458 | ac_header_preproc=no |
| 9459 | fi |
| 9460 | rm -f conftest.err conftest.$ac_ext |
| 9461 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9462 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9463 | |
| 9464 | # So? What about this header? |
| 9465 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9466 | yes:no: ) |
| 9467 | { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9468 | echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9469 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 |
| 9470 | echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;} |
| 9471 | ac_header_preproc=yes |
| 9472 | ;; |
| 9473 | no:yes:* ) |
| 9474 | { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 |
| 9475 | echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} |
| 9476 | { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 |
| 9477 | echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} |
| 9478 | { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 |
| 9479 | echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} |
| 9480 | { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9481 | echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9482 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 |
| 9483 | echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} |
| 9484 | { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 |
| 9485 | echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} |
| 9486 | ( |
| 9487 | cat <<\_ASBOX |
| 9488 | ## ------------------------------------------ ## |
| 9489 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9490 | ## ------------------------------------------ ## |
| 9491 | _ASBOX |
| 9492 | ) | |
| 9493 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9494 | ;; |
| 9495 | esac |
| 9496 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 9497 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 9498 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9500 | else |
| 9501 | ac_cv_header_elf_h=$ac_header_preproc |
| 9502 | fi |
| 9503 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 9504 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
| 9505 | |
| 9506 | fi |
| 9507 | if test $ac_cv_header_elf_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9508 | HAS_ELF=1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9509 | fi |
| 9510 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9511 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9512 | if test "$HAS_ELF" = 1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9513 | |
| 9514 | echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
| 9515 | echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6 |
| 9516 | if test "${ac_cv_lib_elf_main+set}" = set; then |
| 9517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9518 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9519 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9520 | LIBS="-lelf $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9521 | cat >conftest.$ac_ext <<_ACEOF |
| 9522 | /* confdefs.h. */ |
| 9523 | _ACEOF |
| 9524 | cat confdefs.h >>conftest.$ac_ext |
| 9525 | cat >>conftest.$ac_ext <<_ACEOF |
| 9526 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9527 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9528 | |
| 9529 | int |
| 9530 | main () |
| 9531 | { |
| 9532 | main (); |
| 9533 | ; |
| 9534 | return 0; |
| 9535 | } |
| 9536 | _ACEOF |
| 9537 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9539 | (eval $ac_link) 2>conftest.er1 |
| 9540 | ac_status=$? |
| 9541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9542 | rm -f conftest.er1 |
| 9543 | cat conftest.err >&5 |
| 9544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9545 | (exit $ac_status); } && |
| 9546 | { ac_try='test -z "$ac_c_werror_flag" |
| 9547 | || test ! -s conftest.err' |
| 9548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9549 | (eval $ac_try) 2>&5 |
| 9550 | ac_status=$? |
| 9551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9552 | (exit $ac_status); }; } && |
| 9553 | { ac_try='test -s conftest$ac_exeext' |
| 9554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9555 | (eval $ac_try) 2>&5 |
| 9556 | ac_status=$? |
| 9557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9558 | (exit $ac_status); }; }; then |
| 9559 | ac_cv_lib_elf_main=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9560 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9561 | echo "$as_me: failed program was:" >&5 |
| 9562 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9563 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9564 | ac_cv_lib_elf_main=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9565 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9566 | rm -f conftest.err conftest.$ac_objext \ |
| 9567 | conftest$ac_exeext conftest.$ac_ext |
| 9568 | LIBS=$ac_check_lib_save_LIBS |
| 9569 | fi |
| 9570 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 |
| 9571 | echo "${ECHO_T}$ac_cv_lib_elf_main" >&6 |
| 9572 | if test $ac_cv_lib_elf_main = yes; then |
| 9573 | cat >>confdefs.h <<_ACEOF |
| 9574 | #define HAVE_LIBELF 1 |
| 9575 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9576 | |
| 9577 | LIBS="-lelf $LIBS" |
| 9578 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9579 | fi |
| 9580 | |
| 9581 | fi |
| 9582 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9583 | |
| 9584 | |
| 9585 | |
| 9586 | |
| 9587 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9588 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9589 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 9590 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9591 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9592 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 9593 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9595 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9596 | cat >conftest.$ac_ext <<_ACEOF |
| 9597 | /* confdefs.h. */ |
| 9598 | _ACEOF |
| 9599 | cat confdefs.h >>conftest.$ac_ext |
| 9600 | cat >>conftest.$ac_ext <<_ACEOF |
| 9601 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9602 | #include <sys/types.h> |
| 9603 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9604 | |
| 9605 | int |
| 9606 | main () |
| 9607 | { |
| 9608 | if ((DIR *) 0) |
| 9609 | return 0; |
| 9610 | ; |
| 9611 | return 0; |
| 9612 | } |
| 9613 | _ACEOF |
| 9614 | rm -f conftest.$ac_objext |
| 9615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9616 | (eval $ac_compile) 2>conftest.er1 |
| 9617 | ac_status=$? |
| 9618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9619 | rm -f conftest.er1 |
| 9620 | cat conftest.err >&5 |
| 9621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9622 | (exit $ac_status); } && |
| 9623 | { ac_try='test -z "$ac_c_werror_flag" |
| 9624 | || test ! -s conftest.err' |
| 9625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9626 | (eval $ac_try) 2>&5 |
| 9627 | ac_status=$? |
| 9628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9629 | (exit $ac_status); }; } && |
| 9630 | { ac_try='test -s conftest.$ac_objext' |
| 9631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9632 | (eval $ac_try) 2>&5 |
| 9633 | ac_status=$? |
| 9634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9635 | (exit $ac_status); }; }; then |
| 9636 | eval "$as_ac_Header=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9637 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9638 | echo "$as_me: failed program was:" >&5 |
| 9639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9640 | |
| 9641 | eval "$as_ac_Header=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9642 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9644 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9646 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9647 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9648 | cat >>confdefs.h <<_ACEOF |
| 9649 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 9650 | _ACEOF |
| 9651 | |
| 9652 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9653 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9654 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9655 | done |
| 9656 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9657 | if test $ac_header_dirent = dirent.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9658 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9659 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 9660 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9662 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9663 | ac_func_search_save_LIBS=$LIBS |
| 9664 | ac_cv_search_opendir=no |
| 9665 | cat >conftest.$ac_ext <<_ACEOF |
| 9666 | /* confdefs.h. */ |
| 9667 | _ACEOF |
| 9668 | cat confdefs.h >>conftest.$ac_ext |
| 9669 | cat >>conftest.$ac_ext <<_ACEOF |
| 9670 | /* end confdefs.h. */ |
| 9671 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9672 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9673 | #ifdef __cplusplus |
| 9674 | extern "C" |
| 9675 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9676 | /* 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] | 9677 | builtin and then its argument prototype would still apply. */ |
| 9678 | char opendir (); |
| 9679 | int |
| 9680 | main () |
| 9681 | { |
| 9682 | opendir (); |
| 9683 | ; |
| 9684 | return 0; |
| 9685 | } |
| 9686 | _ACEOF |
| 9687 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9689 | (eval $ac_link) 2>conftest.er1 |
| 9690 | ac_status=$? |
| 9691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9692 | rm -f conftest.er1 |
| 9693 | cat conftest.err >&5 |
| 9694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9695 | (exit $ac_status); } && |
| 9696 | { ac_try='test -z "$ac_c_werror_flag" |
| 9697 | || test ! -s conftest.err' |
| 9698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9699 | (eval $ac_try) 2>&5 |
| 9700 | ac_status=$? |
| 9701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9702 | (exit $ac_status); }; } && |
| 9703 | { ac_try='test -s conftest$ac_exeext' |
| 9704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9705 | (eval $ac_try) 2>&5 |
| 9706 | ac_status=$? |
| 9707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9708 | (exit $ac_status); }; }; then |
| 9709 | ac_cv_search_opendir="none required" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9710 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9711 | echo "$as_me: failed program was:" >&5 |
| 9712 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9713 | |
| 9714 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9715 | rm -f conftest.err conftest.$ac_objext \ |
| 9716 | conftest$ac_exeext conftest.$ac_ext |
| 9717 | if test "$ac_cv_search_opendir" = no; then |
| 9718 | for ac_lib in dir; do |
| 9719 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9720 | cat >conftest.$ac_ext <<_ACEOF |
| 9721 | /* confdefs.h. */ |
| 9722 | _ACEOF |
| 9723 | cat confdefs.h >>conftest.$ac_ext |
| 9724 | cat >>conftest.$ac_ext <<_ACEOF |
| 9725 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9726 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9727 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9728 | #ifdef __cplusplus |
| 9729 | extern "C" |
| 9730 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9731 | /* 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] | 9732 | builtin and then its argument prototype would still apply. */ |
| 9733 | char opendir (); |
| 9734 | int |
| 9735 | main () |
| 9736 | { |
| 9737 | opendir (); |
| 9738 | ; |
| 9739 | return 0; |
| 9740 | } |
| 9741 | _ACEOF |
| 9742 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9744 | (eval $ac_link) 2>conftest.er1 |
| 9745 | ac_status=$? |
| 9746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9747 | rm -f conftest.er1 |
| 9748 | cat conftest.err >&5 |
| 9749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9750 | (exit $ac_status); } && |
| 9751 | { ac_try='test -z "$ac_c_werror_flag" |
| 9752 | || test ! -s conftest.err' |
| 9753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9754 | (eval $ac_try) 2>&5 |
| 9755 | ac_status=$? |
| 9756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9757 | (exit $ac_status); }; } && |
| 9758 | { ac_try='test -s conftest$ac_exeext' |
| 9759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9760 | (eval $ac_try) 2>&5 |
| 9761 | ac_status=$? |
| 9762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9763 | (exit $ac_status); }; }; then |
| 9764 | ac_cv_search_opendir="-l$ac_lib" |
| 9765 | break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9766 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9767 | echo "$as_me: failed program was:" >&5 |
| 9768 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9769 | |
| 9770 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9771 | rm -f conftest.err conftest.$ac_objext \ |
| 9772 | conftest$ac_exeext conftest.$ac_ext |
| 9773 | done |
| 9774 | fi |
| 9775 | LIBS=$ac_func_search_save_LIBS |
| 9776 | fi |
| 9777 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9778 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 9779 | if test "$ac_cv_search_opendir" != no; then |
| 9780 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 9781 | |
| 9782 | fi |
| 9783 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9784 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9785 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9786 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 9787 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9789 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9790 | ac_func_search_save_LIBS=$LIBS |
| 9791 | ac_cv_search_opendir=no |
| 9792 | cat >conftest.$ac_ext <<_ACEOF |
| 9793 | /* confdefs.h. */ |
| 9794 | _ACEOF |
| 9795 | cat confdefs.h >>conftest.$ac_ext |
| 9796 | cat >>conftest.$ac_ext <<_ACEOF |
| 9797 | /* end confdefs.h. */ |
| 9798 | |
| 9799 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9800 | #ifdef __cplusplus |
| 9801 | extern "C" |
| 9802 | #endif |
| 9803 | /* We use char because int might match the return type of a gcc2 |
| 9804 | builtin and then its argument prototype would still apply. */ |
| 9805 | char opendir (); |
| 9806 | int |
| 9807 | main () |
| 9808 | { |
| 9809 | opendir (); |
| 9810 | ; |
| 9811 | return 0; |
| 9812 | } |
| 9813 | _ACEOF |
| 9814 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9816 | (eval $ac_link) 2>conftest.er1 |
| 9817 | ac_status=$? |
| 9818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9819 | rm -f conftest.er1 |
| 9820 | cat conftest.err >&5 |
| 9821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9822 | (exit $ac_status); } && |
| 9823 | { ac_try='test -z "$ac_c_werror_flag" |
| 9824 | || test ! -s conftest.err' |
| 9825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9826 | (eval $ac_try) 2>&5 |
| 9827 | ac_status=$? |
| 9828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9829 | (exit $ac_status); }; } && |
| 9830 | { ac_try='test -s conftest$ac_exeext' |
| 9831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9832 | (eval $ac_try) 2>&5 |
| 9833 | ac_status=$? |
| 9834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9835 | (exit $ac_status); }; }; then |
| 9836 | ac_cv_search_opendir="none required" |
| 9837 | else |
| 9838 | echo "$as_me: failed program was:" >&5 |
| 9839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9840 | |
| 9841 | fi |
| 9842 | rm -f conftest.err conftest.$ac_objext \ |
| 9843 | conftest$ac_exeext conftest.$ac_ext |
| 9844 | if test "$ac_cv_search_opendir" = no; then |
| 9845 | for ac_lib in x; do |
| 9846 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9847 | cat >conftest.$ac_ext <<_ACEOF |
| 9848 | /* confdefs.h. */ |
| 9849 | _ACEOF |
| 9850 | cat confdefs.h >>conftest.$ac_ext |
| 9851 | cat >>conftest.$ac_ext <<_ACEOF |
| 9852 | /* end confdefs.h. */ |
| 9853 | |
| 9854 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9855 | #ifdef __cplusplus |
| 9856 | extern "C" |
| 9857 | #endif |
| 9858 | /* We use char because int might match the return type of a gcc2 |
| 9859 | builtin and then its argument prototype would still apply. */ |
| 9860 | char opendir (); |
| 9861 | int |
| 9862 | main () |
| 9863 | { |
| 9864 | opendir (); |
| 9865 | ; |
| 9866 | return 0; |
| 9867 | } |
| 9868 | _ACEOF |
| 9869 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9871 | (eval $ac_link) 2>conftest.er1 |
| 9872 | ac_status=$? |
| 9873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9874 | rm -f conftest.er1 |
| 9875 | cat conftest.err >&5 |
| 9876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9877 | (exit $ac_status); } && |
| 9878 | { ac_try='test -z "$ac_c_werror_flag" |
| 9879 | || test ! -s conftest.err' |
| 9880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9881 | (eval $ac_try) 2>&5 |
| 9882 | ac_status=$? |
| 9883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9884 | (exit $ac_status); }; } && |
| 9885 | { ac_try='test -s conftest$ac_exeext' |
| 9886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9887 | (eval $ac_try) 2>&5 |
| 9888 | ac_status=$? |
| 9889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9890 | (exit $ac_status); }; }; then |
| 9891 | ac_cv_search_opendir="-l$ac_lib" |
| 9892 | break |
| 9893 | else |
| 9894 | echo "$as_me: failed program was:" >&5 |
| 9895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9896 | |
| 9897 | fi |
| 9898 | rm -f conftest.err conftest.$ac_objext \ |
| 9899 | conftest$ac_exeext conftest.$ac_ext |
| 9900 | done |
| 9901 | fi |
| 9902 | LIBS=$ac_func_search_save_LIBS |
| 9903 | fi |
| 9904 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9905 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 9906 | if test "$ac_cv_search_opendir" != no; then |
| 9907 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 9908 | |
| 9909 | fi |
| 9910 | |
| 9911 | fi |
| 9912 | |
| 9913 | |
| 9914 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 9915 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 9916 | if test "${ac_cv_header_stdc+set}" = set; then |
| 9917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9918 | else |
| 9919 | cat >conftest.$ac_ext <<_ACEOF |
| 9920 | /* confdefs.h. */ |
| 9921 | _ACEOF |
| 9922 | cat confdefs.h >>conftest.$ac_ext |
| 9923 | cat >>conftest.$ac_ext <<_ACEOF |
| 9924 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9925 | #include <stdlib.h> |
| 9926 | #include <stdarg.h> |
| 9927 | #include <string.h> |
| 9928 | #include <float.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9929 | |
| 9930 | int |
| 9931 | main () |
| 9932 | { |
| 9933 | |
| 9934 | ; |
| 9935 | return 0; |
| 9936 | } |
| 9937 | _ACEOF |
| 9938 | rm -f conftest.$ac_objext |
| 9939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9940 | (eval $ac_compile) 2>conftest.er1 |
| 9941 | ac_status=$? |
| 9942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9943 | rm -f conftest.er1 |
| 9944 | cat conftest.err >&5 |
| 9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9946 | (exit $ac_status); } && |
| 9947 | { ac_try='test -z "$ac_c_werror_flag" |
| 9948 | || test ! -s conftest.err' |
| 9949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9950 | (eval $ac_try) 2>&5 |
| 9951 | ac_status=$? |
| 9952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9953 | (exit $ac_status); }; } && |
| 9954 | { ac_try='test -s conftest.$ac_objext' |
| 9955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9956 | (eval $ac_try) 2>&5 |
| 9957 | ac_status=$? |
| 9958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9959 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9960 | ac_cv_header_stdc=yes |
| 9961 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9962 | echo "$as_me: failed program was:" >&5 |
| 9963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9964 | |
| 9965 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9966 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9968 | |
| 9969 | if test $ac_cv_header_stdc = yes; then |
| 9970 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9971 | cat >conftest.$ac_ext <<_ACEOF |
| 9972 | /* confdefs.h. */ |
| 9973 | _ACEOF |
| 9974 | cat confdefs.h >>conftest.$ac_ext |
| 9975 | cat >>conftest.$ac_ext <<_ACEOF |
| 9976 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9977 | #include <string.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9978 | |
| 9979 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9980 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9981 | $EGREP "memchr" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9982 | : |
| 9983 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9984 | ac_cv_header_stdc=no |
| 9985 | fi |
| 9986 | rm -f conftest* |
| 9987 | |
| 9988 | fi |
| 9989 | |
| 9990 | if test $ac_cv_header_stdc = yes; then |
| 9991 | # 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] | 9992 | cat >conftest.$ac_ext <<_ACEOF |
| 9993 | /* confdefs.h. */ |
| 9994 | _ACEOF |
| 9995 | cat confdefs.h >>conftest.$ac_ext |
| 9996 | cat >>conftest.$ac_ext <<_ACEOF |
| 9997 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9998 | #include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9999 | |
| 10000 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10001 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10002 | $EGREP "free" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10003 | : |
| 10004 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10005 | ac_cv_header_stdc=no |
| 10006 | fi |
| 10007 | rm -f conftest* |
| 10008 | |
| 10009 | fi |
| 10010 | |
| 10011 | if test $ac_cv_header_stdc = yes; then |
| 10012 | # /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] | 10013 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10014 | : |
| 10015 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10016 | cat >conftest.$ac_ext <<_ACEOF |
| 10017 | /* confdefs.h. */ |
| 10018 | _ACEOF |
| 10019 | cat confdefs.h >>conftest.$ac_ext |
| 10020 | cat >>conftest.$ac_ext <<_ACEOF |
| 10021 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10022 | #include <ctype.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10023 | #if ((' ' & 0x0FF) == 0x020) |
| 10024 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 10025 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 10026 | #else |
| 10027 | # define ISLOWER(c) \ |
| 10028 | (('a' <= (c) && (c) <= 'i') \ |
| 10029 | || ('j' <= (c) && (c) <= 'r') \ |
| 10030 | || ('s' <= (c) && (c) <= 'z')) |
| 10031 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 10032 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10033 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10034 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 10035 | int |
| 10036 | main () |
| 10037 | { |
| 10038 | int i; |
| 10039 | for (i = 0; i < 256; i++) |
| 10040 | if (XOR (islower (i), ISLOWER (i)) |
| 10041 | || toupper (i) != TOUPPER (i)) |
| 10042 | exit(2); |
| 10043 | exit (0); |
| 10044 | } |
| 10045 | _ACEOF |
| 10046 | rm -f conftest$ac_exeext |
| 10047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10048 | (eval $ac_link) 2>&5 |
| 10049 | ac_status=$? |
| 10050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10051 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10053 | (eval $ac_try) 2>&5 |
| 10054 | ac_status=$? |
| 10055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10056 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10057 | : |
| 10058 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10059 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10060 | echo "$as_me: failed program was:" >&5 |
| 10061 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10062 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10063 | ( exit $ac_status ) |
| 10064 | ac_cv_header_stdc=no |
| 10065 | fi |
| 10066 | 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] | 10067 | fi |
| 10068 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10069 | fi |
| 10070 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 10071 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10072 | if test $ac_cv_header_stdc = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10073 | |
| 10074 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10075 | #define STDC_HEADERS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10076 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10077 | |
| 10078 | fi |
| 10079 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10080 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 10081 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 10082 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 10083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10084 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10085 | cat >conftest.$ac_ext <<_ACEOF |
| 10086 | /* confdefs.h. */ |
| 10087 | _ACEOF |
| 10088 | cat confdefs.h >>conftest.$ac_ext |
| 10089 | cat >>conftest.$ac_ext <<_ACEOF |
| 10090 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10091 | #include <sys/types.h> |
| 10092 | #include <sys/wait.h> |
| 10093 | #ifndef WEXITSTATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10094 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10095 | #endif |
| 10096 | #ifndef WIFEXITED |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10097 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10098 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10099 | |
| 10100 | int |
| 10101 | main () |
| 10102 | { |
| 10103 | int s; |
| 10104 | wait (&s); |
| 10105 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 10106 | ; |
| 10107 | return 0; |
| 10108 | } |
| 10109 | _ACEOF |
| 10110 | rm -f conftest.$ac_objext |
| 10111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10112 | (eval $ac_compile) 2>conftest.er1 |
| 10113 | ac_status=$? |
| 10114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10115 | rm -f conftest.er1 |
| 10116 | cat conftest.err >&5 |
| 10117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10118 | (exit $ac_status); } && |
| 10119 | { ac_try='test -z "$ac_c_werror_flag" |
| 10120 | || test ! -s conftest.err' |
| 10121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10122 | (eval $ac_try) 2>&5 |
| 10123 | ac_status=$? |
| 10124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10125 | (exit $ac_status); }; } && |
| 10126 | { ac_try='test -s conftest.$ac_objext' |
| 10127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10128 | (eval $ac_try) 2>&5 |
| 10129 | ac_status=$? |
| 10130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10131 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10132 | ac_cv_header_sys_wait_h=yes |
| 10133 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10134 | echo "$as_me: failed program was:" >&5 |
| 10135 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10136 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10137 | ac_cv_header_sys_wait_h=no |
| 10138 | fi |
| 10139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10140 | fi |
| 10141 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 10142 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10143 | if test $ac_cv_header_sys_wait_h = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10144 | |
| 10145 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10146 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10147 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10148 | |
| 10149 | fi |
| 10150 | |
| 10151 | |
| 10152 | if test $ac_cv_header_sys_wait_h = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10153 | echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
| 10154 | echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6 |
| 10155 | cat >conftest.$ac_ext <<_ACEOF |
| 10156 | /* confdefs.h. */ |
| 10157 | _ACEOF |
| 10158 | cat confdefs.h >>conftest.$ac_ext |
| 10159 | cat >>conftest.$ac_ext <<_ACEOF |
| 10160 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10161 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10162 | int |
| 10163 | main () |
| 10164 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10165 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10166 | ; |
| 10167 | return 0; |
| 10168 | } |
| 10169 | _ACEOF |
| 10170 | rm -f conftest.$ac_objext |
| 10171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10172 | (eval $ac_compile) 2>conftest.er1 |
| 10173 | ac_status=$? |
| 10174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10175 | rm -f conftest.er1 |
| 10176 | cat conftest.err >&5 |
| 10177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10178 | (exit $ac_status); } && |
| 10179 | { ac_try='test -z "$ac_c_werror_flag" |
| 10180 | || test ! -s conftest.err' |
| 10181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10182 | (eval $ac_try) 2>&5 |
| 10183 | ac_status=$? |
| 10184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10185 | (exit $ac_status); }; } && |
| 10186 | { ac_try='test -s conftest.$ac_objext' |
| 10187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10188 | (eval $ac_try) 2>&5 |
| 10189 | ac_status=$? |
| 10190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10191 | (exit $ac_status); }; }; then |
| 10192 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10193 | echo "${ECHO_T}yes" >&6 |
| 10194 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10195 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10196 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10197 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10198 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10199 | #define HAVE_UNION_WAIT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10200 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10201 | |
| 10202 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10203 | echo "$as_me: failed program was:" >&5 |
| 10204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10205 | |
| 10206 | echo "$as_me:$LINENO: result: no" >&5 |
| 10207 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10208 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10209 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10210 | fi |
| 10211 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10212 | |
| 10213 | |
| 10214 | |
| 10215 | |
| 10216 | |
| 10217 | |
| 10218 | |
| 10219 | |
| 10220 | |
| 10221 | |
| 10222 | |
| 10223 | |
| 10224 | |
| 10225 | |
| 10226 | |
| 10227 | |
| 10228 | |
| 10229 | |
| 10230 | |
| 10231 | |
| 10232 | |
| 10233 | |
| 10234 | |
| 10235 | |
| 10236 | |
| 10237 | |
| 10238 | |
| 10239 | |
| 10240 | |
| 10241 | |
| 10242 | |
| 10243 | |
| 10244 | |
| 10245 | |
| 10246 | |
| 10247 | |
| 10248 | |
| 10249 | |
| 10250 | |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10251 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10252 | 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] | 10253 | termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \ |
| 10254 | iconv.h langinfo.h unistd.h stropts.h errno.h \ |
| 10255 | sys/resource.h sys/systeminfo.h locale.h \ |
| 10256 | sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ |
| 10257 | 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] | 10258 | libgen.h util/debug.h util/msg18n.h frame.h \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10259 | 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] | 10260 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10261 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10262 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10263 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10264 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10265 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10267 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10269 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10270 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10271 | # Is the header compilable? |
| 10272 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10273 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10274 | cat >conftest.$ac_ext <<_ACEOF |
| 10275 | /* confdefs.h. */ |
| 10276 | _ACEOF |
| 10277 | cat confdefs.h >>conftest.$ac_ext |
| 10278 | cat >>conftest.$ac_ext <<_ACEOF |
| 10279 | /* end confdefs.h. */ |
| 10280 | $ac_includes_default |
| 10281 | #include <$ac_header> |
| 10282 | _ACEOF |
| 10283 | rm -f conftest.$ac_objext |
| 10284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10285 | (eval $ac_compile) 2>conftest.er1 |
| 10286 | ac_status=$? |
| 10287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10288 | rm -f conftest.er1 |
| 10289 | cat conftest.err >&5 |
| 10290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10291 | (exit $ac_status); } && |
| 10292 | { ac_try='test -z "$ac_c_werror_flag" |
| 10293 | || test ! -s conftest.err' |
| 10294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10295 | (eval $ac_try) 2>&5 |
| 10296 | ac_status=$? |
| 10297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10298 | (exit $ac_status); }; } && |
| 10299 | { ac_try='test -s conftest.$ac_objext' |
| 10300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10301 | (eval $ac_try) 2>&5 |
| 10302 | ac_status=$? |
| 10303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10304 | (exit $ac_status); }; }; then |
| 10305 | ac_header_compiler=yes |
| 10306 | else |
| 10307 | echo "$as_me: failed program was:" >&5 |
| 10308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10309 | |
| 10310 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10311 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10313 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10314 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10315 | |
| 10316 | # Is the header present? |
| 10317 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10318 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10319 | cat >conftest.$ac_ext <<_ACEOF |
| 10320 | /* confdefs.h. */ |
| 10321 | _ACEOF |
| 10322 | cat confdefs.h >>conftest.$ac_ext |
| 10323 | cat >>conftest.$ac_ext <<_ACEOF |
| 10324 | /* end confdefs.h. */ |
| 10325 | #include <$ac_header> |
| 10326 | _ACEOF |
| 10327 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10328 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10329 | ac_status=$? |
| 10330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10331 | rm -f conftest.er1 |
| 10332 | cat conftest.err >&5 |
| 10333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10334 | (exit $ac_status); } >/dev/null; then |
| 10335 | if test -s conftest.err; then |
| 10336 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10337 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10338 | else |
| 10339 | ac_cpp_err= |
| 10340 | fi |
| 10341 | else |
| 10342 | ac_cpp_err=yes |
| 10343 | fi |
| 10344 | if test -z "$ac_cpp_err"; then |
| 10345 | ac_header_preproc=yes |
| 10346 | else |
| 10347 | echo "$as_me: failed program was:" >&5 |
| 10348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10349 | |
| 10350 | ac_header_preproc=no |
| 10351 | fi |
| 10352 | rm -f conftest.err conftest.$ac_ext |
| 10353 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10354 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10355 | |
| 10356 | # So? What about this header? |
| 10357 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10358 | yes:no: ) |
| 10359 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10360 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10361 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10362 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10363 | ac_header_preproc=yes |
| 10364 | ;; |
| 10365 | no:yes:* ) |
| 10366 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10367 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10368 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10369 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10370 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10371 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10372 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10373 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10374 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10375 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10376 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10377 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10378 | ( |
| 10379 | cat <<\_ASBOX |
| 10380 | ## ------------------------------------------ ## |
| 10381 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10382 | ## ------------------------------------------ ## |
| 10383 | _ASBOX |
| 10384 | ) | |
| 10385 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10386 | ;; |
| 10387 | esac |
| 10388 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10389 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10390 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10392 | else |
| 10393 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10394 | fi |
| 10395 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10396 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10397 | |
| 10398 | fi |
| 10399 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10400 | cat >>confdefs.h <<_ACEOF |
| 10401 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10402 | _ACEOF |
| 10403 | |
| 10404 | fi |
| 10405 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10406 | done |
| 10407 | |
| 10408 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10409 | echo "$as_me:$LINENO: checking for pthread_np.h" >&5 |
| 10410 | echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6 |
| 10411 | cat >conftest.$ac_ext <<_ACEOF |
| 10412 | /* confdefs.h. */ |
| 10413 | _ACEOF |
| 10414 | cat confdefs.h >>conftest.$ac_ext |
| 10415 | cat >>conftest.$ac_ext <<_ACEOF |
| 10416 | /* end confdefs.h. */ |
| 10417 | |
| 10418 | #include <pthread.h> |
| 10419 | #include <pthread_np.h> |
| 10420 | int |
| 10421 | main () |
| 10422 | { |
| 10423 | int i; i = 0; |
| 10424 | ; |
| 10425 | return 0; |
| 10426 | } |
| 10427 | _ACEOF |
| 10428 | rm -f conftest.$ac_objext |
| 10429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10430 | (eval $ac_compile) 2>conftest.er1 |
| 10431 | ac_status=$? |
| 10432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10433 | rm -f conftest.er1 |
| 10434 | cat conftest.err >&5 |
| 10435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10436 | (exit $ac_status); } && |
| 10437 | { ac_try='test -z "$ac_c_werror_flag" |
| 10438 | || test ! -s conftest.err' |
| 10439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10440 | (eval $ac_try) 2>&5 |
| 10441 | ac_status=$? |
| 10442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10443 | (exit $ac_status); }; } && |
| 10444 | { ac_try='test -s conftest.$ac_objext' |
| 10445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10446 | (eval $ac_try) 2>&5 |
| 10447 | ac_status=$? |
| 10448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10449 | (exit $ac_status); }; }; then |
| 10450 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10451 | echo "${ECHO_T}yes" >&6 |
| 10452 | cat >>confdefs.h <<\_ACEOF |
| 10453 | #define HAVE_PTHREAD_NP_H 1 |
| 10454 | _ACEOF |
| 10455 | |
| 10456 | else |
| 10457 | echo "$as_me: failed program was:" >&5 |
| 10458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10459 | |
| 10460 | echo "$as_me:$LINENO: result: no" >&5 |
| 10461 | echo "${ECHO_T}no" >&6 |
| 10462 | fi |
| 10463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10464 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10465 | |
| 10466 | for ac_header in strings.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10467 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10468 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10469 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10470 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10471 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10472 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10474 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10475 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10476 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10477 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10478 | # Is the header compilable? |
| 10479 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10480 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10481 | cat >conftest.$ac_ext <<_ACEOF |
| 10482 | /* confdefs.h. */ |
| 10483 | _ACEOF |
| 10484 | cat confdefs.h >>conftest.$ac_ext |
| 10485 | cat >>conftest.$ac_ext <<_ACEOF |
| 10486 | /* end confdefs.h. */ |
| 10487 | $ac_includes_default |
| 10488 | #include <$ac_header> |
| 10489 | _ACEOF |
| 10490 | rm -f conftest.$ac_objext |
| 10491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10492 | (eval $ac_compile) 2>conftest.er1 |
| 10493 | ac_status=$? |
| 10494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10495 | rm -f conftest.er1 |
| 10496 | cat conftest.err >&5 |
| 10497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10498 | (exit $ac_status); } && |
| 10499 | { ac_try='test -z "$ac_c_werror_flag" |
| 10500 | || test ! -s conftest.err' |
| 10501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10502 | (eval $ac_try) 2>&5 |
| 10503 | ac_status=$? |
| 10504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10505 | (exit $ac_status); }; } && |
| 10506 | { ac_try='test -s conftest.$ac_objext' |
| 10507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10508 | (eval $ac_try) 2>&5 |
| 10509 | ac_status=$? |
| 10510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10511 | (exit $ac_status); }; }; then |
| 10512 | ac_header_compiler=yes |
| 10513 | else |
| 10514 | echo "$as_me: failed program was:" >&5 |
| 10515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10516 | |
| 10517 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10518 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10520 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10521 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10522 | |
| 10523 | # Is the header present? |
| 10524 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10525 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10526 | cat >conftest.$ac_ext <<_ACEOF |
| 10527 | /* confdefs.h. */ |
| 10528 | _ACEOF |
| 10529 | cat confdefs.h >>conftest.$ac_ext |
| 10530 | cat >>conftest.$ac_ext <<_ACEOF |
| 10531 | /* end confdefs.h. */ |
| 10532 | #include <$ac_header> |
| 10533 | _ACEOF |
| 10534 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10535 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10536 | ac_status=$? |
| 10537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10538 | rm -f conftest.er1 |
| 10539 | cat conftest.err >&5 |
| 10540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10541 | (exit $ac_status); } >/dev/null; then |
| 10542 | if test -s conftest.err; then |
| 10543 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10544 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10545 | else |
| 10546 | ac_cpp_err= |
| 10547 | fi |
| 10548 | else |
| 10549 | ac_cpp_err=yes |
| 10550 | fi |
| 10551 | if test -z "$ac_cpp_err"; then |
| 10552 | ac_header_preproc=yes |
| 10553 | else |
| 10554 | echo "$as_me: failed program was:" >&5 |
| 10555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10556 | |
| 10557 | ac_header_preproc=no |
| 10558 | fi |
| 10559 | rm -f conftest.err conftest.$ac_ext |
| 10560 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10561 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10562 | |
| 10563 | # So? What about this header? |
| 10564 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10565 | yes:no: ) |
| 10566 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10567 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10568 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10569 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10570 | ac_header_preproc=yes |
| 10571 | ;; |
| 10572 | no:yes:* ) |
| 10573 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10574 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10575 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10576 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10577 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10578 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10579 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10580 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10581 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10582 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10583 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10584 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10585 | ( |
| 10586 | cat <<\_ASBOX |
| 10587 | ## ------------------------------------------ ## |
| 10588 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10589 | ## ------------------------------------------ ## |
| 10590 | _ASBOX |
| 10591 | ) | |
| 10592 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10593 | ;; |
| 10594 | esac |
| 10595 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10596 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10599 | else |
| 10600 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10601 | fi |
| 10602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10603 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10604 | |
| 10605 | fi |
| 10606 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10607 | cat >>confdefs.h <<_ACEOF |
| 10608 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10609 | _ACEOF |
| 10610 | |
| 10611 | fi |
| 10612 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10613 | done |
| 10614 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 10615 | if test "x$MACOSX" = "xyes"; then |
| 10616 | cat >>confdefs.h <<\_ACEOF |
| 10617 | #define NO_STRINGS_WITH_STRING_H 1 |
| 10618 | _ACEOF |
| 10619 | |
| 10620 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10621 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10622 | echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
| 10623 | 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] | 10624 | cppflags_save=$CPPFLAGS |
| 10625 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10626 | cat >conftest.$ac_ext <<_ACEOF |
| 10627 | /* confdefs.h. */ |
| 10628 | _ACEOF |
| 10629 | cat confdefs.h >>conftest.$ac_ext |
| 10630 | cat >>conftest.$ac_ext <<_ACEOF |
| 10631 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10632 | |
| 10633 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 10634 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 10635 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 10636 | #endif |
| 10637 | #ifdef HAVE_XM_XM_H |
| 10638 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 10639 | #endif |
| 10640 | #ifdef HAVE_STRING_H |
| 10641 | # include <string.h> |
| 10642 | #endif |
| 10643 | #if defined(HAVE_STRINGS_H) |
| 10644 | # include <strings.h> |
| 10645 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10646 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10647 | int |
| 10648 | main () |
| 10649 | { |
| 10650 | int i; i = 0; |
| 10651 | ; |
| 10652 | return 0; |
| 10653 | } |
| 10654 | _ACEOF |
| 10655 | rm -f conftest.$ac_objext |
| 10656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10657 | (eval $ac_compile) 2>conftest.er1 |
| 10658 | ac_status=$? |
| 10659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10660 | rm -f conftest.er1 |
| 10661 | cat conftest.err >&5 |
| 10662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10663 | (exit $ac_status); } && |
| 10664 | { ac_try='test -z "$ac_c_werror_flag" |
| 10665 | || test ! -s conftest.err' |
| 10666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10667 | (eval $ac_try) 2>&5 |
| 10668 | ac_status=$? |
| 10669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10670 | (exit $ac_status); }; } && |
| 10671 | { ac_try='test -s conftest.$ac_objext' |
| 10672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10673 | (eval $ac_try) 2>&5 |
| 10674 | ac_status=$? |
| 10675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10676 | (exit $ac_status); }; }; then |
| 10677 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10678 | echo "${ECHO_T}yes" >&6 |
| 10679 | else |
| 10680 | echo "$as_me: failed program was:" >&5 |
| 10681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10682 | |
| 10683 | cat >>confdefs.h <<\_ACEOF |
| 10684 | #define NO_STRINGS_WITH_STRING_H 1 |
| 10685 | _ACEOF |
| 10686 | |
| 10687 | echo "$as_me:$LINENO: result: no" >&5 |
| 10688 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10689 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10691 | CPPFLAGS=$cppflags_save |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 10692 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10693 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10694 | if test $ac_cv_c_compiler_gnu = yes; then |
| 10695 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 10696 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
| 10697 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 10698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10699 | else |
| 10700 | ac_pattern="Autoconf.*'x'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10701 | cat >conftest.$ac_ext <<_ACEOF |
| 10702 | /* confdefs.h. */ |
| 10703 | _ACEOF |
| 10704 | cat confdefs.h >>conftest.$ac_ext |
| 10705 | cat >>conftest.$ac_ext <<_ACEOF |
| 10706 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10707 | #include <sgtty.h> |
| 10708 | Autoconf TIOCGETP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10709 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10710 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10711 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10712 | ac_cv_prog_gcc_traditional=yes |
| 10713 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10714 | ac_cv_prog_gcc_traditional=no |
| 10715 | fi |
| 10716 | rm -f conftest* |
| 10717 | |
| 10718 | |
| 10719 | if test $ac_cv_prog_gcc_traditional = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10720 | cat >conftest.$ac_ext <<_ACEOF |
| 10721 | /* confdefs.h. */ |
| 10722 | _ACEOF |
| 10723 | cat confdefs.h >>conftest.$ac_ext |
| 10724 | cat >>conftest.$ac_ext <<_ACEOF |
| 10725 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10726 | #include <termio.h> |
| 10727 | Autoconf TCGETA |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10728 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10730 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10731 | ac_cv_prog_gcc_traditional=yes |
| 10732 | fi |
| 10733 | rm -f conftest* |
| 10734 | |
| 10735 | fi |
| 10736 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10737 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 10738 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10739 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 10740 | CC="$CC -traditional" |
| 10741 | fi |
| 10742 | fi |
| 10743 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10744 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 10745 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 10746 | if test "${ac_cv_c_const+set}" = set; then |
| 10747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10748 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10749 | cat >conftest.$ac_ext <<_ACEOF |
| 10750 | /* confdefs.h. */ |
| 10751 | _ACEOF |
| 10752 | cat confdefs.h >>conftest.$ac_ext |
| 10753 | cat >>conftest.$ac_ext <<_ACEOF |
| 10754 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10755 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10756 | int |
| 10757 | main () |
| 10758 | { |
| 10759 | /* FIXME: Include the comments suggested by Paul. */ |
| 10760 | #ifndef __cplusplus |
| 10761 | /* Ultrix mips cc rejects this. */ |
| 10762 | typedef int charset[2]; |
| 10763 | const charset x; |
| 10764 | /* SunOS 4.1.1 cc rejects this. */ |
| 10765 | char const *const *ccp; |
| 10766 | char **p; |
| 10767 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 10768 | struct point {int x, y;}; |
| 10769 | static struct point const zero = {0,0}; |
| 10770 | /* AIX XL C 1.02.0.0 rejects this. |
| 10771 | It does not let you subtract one const X* pointer from another in |
| 10772 | an arm of an if-expression whose if-part is not a constant |
| 10773 | expression */ |
| 10774 | const char *g = "string"; |
| 10775 | ccp = &g + (g ? g-g : 0); |
| 10776 | /* HPUX 7.0 cc rejects these. */ |
| 10777 | ++ccp; |
| 10778 | p = (char**) ccp; |
| 10779 | ccp = (char const *const *) p; |
| 10780 | { /* SCO 3.2v4 cc rejects this. */ |
| 10781 | char *t; |
| 10782 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10783 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10784 | *t++ = 0; |
| 10785 | } |
| 10786 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 10787 | int x[] = {25, 17}; |
| 10788 | const int *foo = &x[0]; |
| 10789 | ++foo; |
| 10790 | } |
| 10791 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 10792 | typedef const int *iptr; |
| 10793 | iptr p = 0; |
| 10794 | ++p; |
| 10795 | } |
| 10796 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 10797 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 10798 | struct s { int j; const int *ap[3]; }; |
| 10799 | struct s *b; b->j = 5; |
| 10800 | } |
| 10801 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 10802 | const int foo = 10; |
| 10803 | } |
| 10804 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10805 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10806 | ; |
| 10807 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10808 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10809 | _ACEOF |
| 10810 | rm -f conftest.$ac_objext |
| 10811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10812 | (eval $ac_compile) 2>conftest.er1 |
| 10813 | ac_status=$? |
| 10814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10815 | rm -f conftest.er1 |
| 10816 | cat conftest.err >&5 |
| 10817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10818 | (exit $ac_status); } && |
| 10819 | { ac_try='test -z "$ac_c_werror_flag" |
| 10820 | || test ! -s conftest.err' |
| 10821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10822 | (eval $ac_try) 2>&5 |
| 10823 | ac_status=$? |
| 10824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10825 | (exit $ac_status); }; } && |
| 10826 | { ac_try='test -s conftest.$ac_objext' |
| 10827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10828 | (eval $ac_try) 2>&5 |
| 10829 | ac_status=$? |
| 10830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10831 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10832 | ac_cv_c_const=yes |
| 10833 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10834 | echo "$as_me: failed program was:" >&5 |
| 10835 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10836 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10837 | ac_cv_c_const=no |
| 10838 | fi |
| 10839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10840 | fi |
| 10841 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 10842 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10843 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10844 | |
| 10845 | cat >>confdefs.h <<\_ACEOF |
| 10846 | #define const |
| 10847 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10848 | |
| 10849 | fi |
| 10850 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10851 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 10852 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 10853 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 10854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10855 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10856 | cat >conftest.$ac_ext <<_ACEOF |
| 10857 | /* confdefs.h. */ |
| 10858 | _ACEOF |
| 10859 | cat confdefs.h >>conftest.$ac_ext |
| 10860 | cat >>conftest.$ac_ext <<_ACEOF |
| 10861 | /* end confdefs.h. */ |
| 10862 | $ac_includes_default |
| 10863 | int |
| 10864 | main () |
| 10865 | { |
| 10866 | if ((mode_t *) 0) |
| 10867 | return 0; |
| 10868 | if (sizeof (mode_t)) |
| 10869 | return 0; |
| 10870 | ; |
| 10871 | return 0; |
| 10872 | } |
| 10873 | _ACEOF |
| 10874 | rm -f conftest.$ac_objext |
| 10875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10876 | (eval $ac_compile) 2>conftest.er1 |
| 10877 | ac_status=$? |
| 10878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10879 | rm -f conftest.er1 |
| 10880 | cat conftest.err >&5 |
| 10881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10882 | (exit $ac_status); } && |
| 10883 | { ac_try='test -z "$ac_c_werror_flag" |
| 10884 | || test ! -s conftest.err' |
| 10885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10886 | (eval $ac_try) 2>&5 |
| 10887 | ac_status=$? |
| 10888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10889 | (exit $ac_status); }; } && |
| 10890 | { ac_try='test -s conftest.$ac_objext' |
| 10891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10892 | (eval $ac_try) 2>&5 |
| 10893 | ac_status=$? |
| 10894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10895 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10896 | ac_cv_type_mode_t=yes |
| 10897 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10898 | echo "$as_me: failed program was:" >&5 |
| 10899 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10900 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10901 | ac_cv_type_mode_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10902 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10904 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10905 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 10906 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 10907 | if test $ac_cv_type_mode_t = yes; then |
| 10908 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10909 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10910 | |
| 10911 | cat >>confdefs.h <<_ACEOF |
| 10912 | #define mode_t int |
| 10913 | _ACEOF |
| 10914 | |
| 10915 | fi |
| 10916 | |
| 10917 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 10918 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 10919 | if test "${ac_cv_type_off_t+set}" = set; then |
| 10920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10921 | else |
| 10922 | cat >conftest.$ac_ext <<_ACEOF |
| 10923 | /* confdefs.h. */ |
| 10924 | _ACEOF |
| 10925 | cat confdefs.h >>conftest.$ac_ext |
| 10926 | cat >>conftest.$ac_ext <<_ACEOF |
| 10927 | /* end confdefs.h. */ |
| 10928 | $ac_includes_default |
| 10929 | int |
| 10930 | main () |
| 10931 | { |
| 10932 | if ((off_t *) 0) |
| 10933 | return 0; |
| 10934 | if (sizeof (off_t)) |
| 10935 | return 0; |
| 10936 | ; |
| 10937 | return 0; |
| 10938 | } |
| 10939 | _ACEOF |
| 10940 | rm -f conftest.$ac_objext |
| 10941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10942 | (eval $ac_compile) 2>conftest.er1 |
| 10943 | ac_status=$? |
| 10944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10945 | rm -f conftest.er1 |
| 10946 | cat conftest.err >&5 |
| 10947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10948 | (exit $ac_status); } && |
| 10949 | { ac_try='test -z "$ac_c_werror_flag" |
| 10950 | || test ! -s conftest.err' |
| 10951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10952 | (eval $ac_try) 2>&5 |
| 10953 | ac_status=$? |
| 10954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10955 | (exit $ac_status); }; } && |
| 10956 | { ac_try='test -s conftest.$ac_objext' |
| 10957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10958 | (eval $ac_try) 2>&5 |
| 10959 | ac_status=$? |
| 10960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10961 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10962 | ac_cv_type_off_t=yes |
| 10963 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10964 | echo "$as_me: failed program was:" >&5 |
| 10965 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10966 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10967 | ac_cv_type_off_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10968 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10970 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10971 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 10972 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 10973 | if test $ac_cv_type_off_t = yes; then |
| 10974 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10975 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10976 | |
| 10977 | cat >>confdefs.h <<_ACEOF |
| 10978 | #define off_t long |
| 10979 | _ACEOF |
| 10980 | |
| 10981 | fi |
| 10982 | |
| 10983 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10984 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 10985 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10987 | else |
| 10988 | cat >conftest.$ac_ext <<_ACEOF |
| 10989 | /* confdefs.h. */ |
| 10990 | _ACEOF |
| 10991 | cat confdefs.h >>conftest.$ac_ext |
| 10992 | cat >>conftest.$ac_ext <<_ACEOF |
| 10993 | /* end confdefs.h. */ |
| 10994 | $ac_includes_default |
| 10995 | int |
| 10996 | main () |
| 10997 | { |
| 10998 | if ((pid_t *) 0) |
| 10999 | return 0; |
| 11000 | if (sizeof (pid_t)) |
| 11001 | return 0; |
| 11002 | ; |
| 11003 | return 0; |
| 11004 | } |
| 11005 | _ACEOF |
| 11006 | rm -f conftest.$ac_objext |
| 11007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11008 | (eval $ac_compile) 2>conftest.er1 |
| 11009 | ac_status=$? |
| 11010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11011 | rm -f conftest.er1 |
| 11012 | cat conftest.err >&5 |
| 11013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11014 | (exit $ac_status); } && |
| 11015 | { ac_try='test -z "$ac_c_werror_flag" |
| 11016 | || test ! -s conftest.err' |
| 11017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11018 | (eval $ac_try) 2>&5 |
| 11019 | ac_status=$? |
| 11020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11021 | (exit $ac_status); }; } && |
| 11022 | { ac_try='test -s conftest.$ac_objext' |
| 11023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11024 | (eval $ac_try) 2>&5 |
| 11025 | ac_status=$? |
| 11026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11027 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11028 | ac_cv_type_pid_t=yes |
| 11029 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11030 | echo "$as_me: failed program was:" >&5 |
| 11031 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11032 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11033 | ac_cv_type_pid_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11034 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11036 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11037 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 11038 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 11039 | if test $ac_cv_type_pid_t = yes; then |
| 11040 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11041 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11042 | |
| 11043 | cat >>confdefs.h <<_ACEOF |
| 11044 | #define pid_t int |
| 11045 | _ACEOF |
| 11046 | |
| 11047 | fi |
| 11048 | |
| 11049 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 11050 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 11051 | if test "${ac_cv_type_size_t+set}" = set; then |
| 11052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11053 | else |
| 11054 | cat >conftest.$ac_ext <<_ACEOF |
| 11055 | /* confdefs.h. */ |
| 11056 | _ACEOF |
| 11057 | cat confdefs.h >>conftest.$ac_ext |
| 11058 | cat >>conftest.$ac_ext <<_ACEOF |
| 11059 | /* end confdefs.h. */ |
| 11060 | $ac_includes_default |
| 11061 | int |
| 11062 | main () |
| 11063 | { |
| 11064 | if ((size_t *) 0) |
| 11065 | return 0; |
| 11066 | if (sizeof (size_t)) |
| 11067 | return 0; |
| 11068 | ; |
| 11069 | return 0; |
| 11070 | } |
| 11071 | _ACEOF |
| 11072 | rm -f conftest.$ac_objext |
| 11073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11074 | (eval $ac_compile) 2>conftest.er1 |
| 11075 | ac_status=$? |
| 11076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11077 | rm -f conftest.er1 |
| 11078 | cat conftest.err >&5 |
| 11079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11080 | (exit $ac_status); } && |
| 11081 | { ac_try='test -z "$ac_c_werror_flag" |
| 11082 | || test ! -s conftest.err' |
| 11083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11084 | (eval $ac_try) 2>&5 |
| 11085 | ac_status=$? |
| 11086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11087 | (exit $ac_status); }; } && |
| 11088 | { ac_try='test -s conftest.$ac_objext' |
| 11089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11090 | (eval $ac_try) 2>&5 |
| 11091 | ac_status=$? |
| 11092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11093 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11094 | ac_cv_type_size_t=yes |
| 11095 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11096 | echo "$as_me: failed program was:" >&5 |
| 11097 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11098 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11099 | ac_cv_type_size_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11100 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11102 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11103 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 11104 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 11105 | if test $ac_cv_type_size_t = yes; then |
| 11106 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11107 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11108 | |
| 11109 | cat >>confdefs.h <<_ACEOF |
| 11110 | #define size_t unsigned |
| 11111 | _ACEOF |
| 11112 | |
| 11113 | fi |
| 11114 | |
| 11115 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 11116 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 11117 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 11118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11119 | else |
| 11120 | cat >conftest.$ac_ext <<_ACEOF |
| 11121 | /* confdefs.h. */ |
| 11122 | _ACEOF |
| 11123 | cat confdefs.h >>conftest.$ac_ext |
| 11124 | cat >>conftest.$ac_ext <<_ACEOF |
| 11125 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11126 | #include <sys/types.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11127 | |
| 11128 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11129 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11130 | $EGREP "uid_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11131 | ac_cv_type_uid_t=yes |
| 11132 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11133 | ac_cv_type_uid_t=no |
| 11134 | fi |
| 11135 | rm -f conftest* |
| 11136 | |
| 11137 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11138 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 11139 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11140 | if test $ac_cv_type_uid_t = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11141 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11142 | cat >>confdefs.h <<\_ACEOF |
| 11143 | #define uid_t int |
| 11144 | _ACEOF |
| 11145 | |
| 11146 | |
| 11147 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11148 | #define gid_t int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11149 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11150 | |
| 11151 | fi |
| 11152 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11153 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 11154 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 11155 | if test "${ac_cv_header_time+set}" = set; then |
| 11156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11157 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11158 | cat >conftest.$ac_ext <<_ACEOF |
| 11159 | /* confdefs.h. */ |
| 11160 | _ACEOF |
| 11161 | cat confdefs.h >>conftest.$ac_ext |
| 11162 | cat >>conftest.$ac_ext <<_ACEOF |
| 11163 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11164 | #include <sys/types.h> |
| 11165 | #include <sys/time.h> |
| 11166 | #include <time.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11167 | |
| 11168 | int |
| 11169 | main () |
| 11170 | { |
| 11171 | if ((struct tm *) 0) |
| 11172 | return 0; |
| 11173 | ; |
| 11174 | return 0; |
| 11175 | } |
| 11176 | _ACEOF |
| 11177 | rm -f conftest.$ac_objext |
| 11178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11179 | (eval $ac_compile) 2>conftest.er1 |
| 11180 | ac_status=$? |
| 11181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11182 | rm -f conftest.er1 |
| 11183 | cat conftest.err >&5 |
| 11184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11185 | (exit $ac_status); } && |
| 11186 | { ac_try='test -z "$ac_c_werror_flag" |
| 11187 | || test ! -s conftest.err' |
| 11188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11189 | (eval $ac_try) 2>&5 |
| 11190 | ac_status=$? |
| 11191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11192 | (exit $ac_status); }; } && |
| 11193 | { ac_try='test -s conftest.$ac_objext' |
| 11194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11195 | (eval $ac_try) 2>&5 |
| 11196 | ac_status=$? |
| 11197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11198 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11199 | ac_cv_header_time=yes |
| 11200 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11201 | echo "$as_me: failed program was:" >&5 |
| 11202 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11203 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11204 | ac_cv_header_time=no |
| 11205 | fi |
| 11206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11207 | fi |
| 11208 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 11209 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11210 | if test $ac_cv_header_time = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11211 | |
| 11212 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11213 | #define TIME_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11214 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11215 | |
| 11216 | fi |
| 11217 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11218 | echo "$as_me:$LINENO: checking for ino_t" >&5 |
| 11219 | echo $ECHO_N "checking for ino_t... $ECHO_C" >&6 |
| 11220 | if test "${ac_cv_type_ino_t+set}" = set; then |
| 11221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11222 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11223 | cat >conftest.$ac_ext <<_ACEOF |
| 11224 | /* confdefs.h. */ |
| 11225 | _ACEOF |
| 11226 | cat confdefs.h >>conftest.$ac_ext |
| 11227 | cat >>conftest.$ac_ext <<_ACEOF |
| 11228 | /* end confdefs.h. */ |
| 11229 | $ac_includes_default |
| 11230 | int |
| 11231 | main () |
| 11232 | { |
| 11233 | if ((ino_t *) 0) |
| 11234 | return 0; |
| 11235 | if (sizeof (ino_t)) |
| 11236 | return 0; |
| 11237 | ; |
| 11238 | return 0; |
| 11239 | } |
| 11240 | _ACEOF |
| 11241 | rm -f conftest.$ac_objext |
| 11242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11243 | (eval $ac_compile) 2>conftest.er1 |
| 11244 | ac_status=$? |
| 11245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11246 | rm -f conftest.er1 |
| 11247 | cat conftest.err >&5 |
| 11248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11249 | (exit $ac_status); } && |
| 11250 | { ac_try='test -z "$ac_c_werror_flag" |
| 11251 | || test ! -s conftest.err' |
| 11252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11253 | (eval $ac_try) 2>&5 |
| 11254 | ac_status=$? |
| 11255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11256 | (exit $ac_status); }; } && |
| 11257 | { ac_try='test -s conftest.$ac_objext' |
| 11258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11259 | (eval $ac_try) 2>&5 |
| 11260 | ac_status=$? |
| 11261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11262 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11263 | ac_cv_type_ino_t=yes |
| 11264 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11265 | echo "$as_me: failed program was:" >&5 |
| 11266 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11267 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11268 | ac_cv_type_ino_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11269 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11271 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11272 | echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
| 11273 | echo "${ECHO_T}$ac_cv_type_ino_t" >&6 |
| 11274 | if test $ac_cv_type_ino_t = yes; then |
| 11275 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11276 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11277 | |
| 11278 | cat >>confdefs.h <<_ACEOF |
| 11279 | #define ino_t long |
| 11280 | _ACEOF |
| 11281 | |
| 11282 | fi |
| 11283 | |
| 11284 | echo "$as_me:$LINENO: checking for dev_t" >&5 |
| 11285 | echo $ECHO_N "checking for dev_t... $ECHO_C" >&6 |
| 11286 | if test "${ac_cv_type_dev_t+set}" = set; then |
| 11287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11288 | else |
| 11289 | cat >conftest.$ac_ext <<_ACEOF |
| 11290 | /* confdefs.h. */ |
| 11291 | _ACEOF |
| 11292 | cat confdefs.h >>conftest.$ac_ext |
| 11293 | cat >>conftest.$ac_ext <<_ACEOF |
| 11294 | /* end confdefs.h. */ |
| 11295 | $ac_includes_default |
| 11296 | int |
| 11297 | main () |
| 11298 | { |
| 11299 | if ((dev_t *) 0) |
| 11300 | return 0; |
| 11301 | if (sizeof (dev_t)) |
| 11302 | return 0; |
| 11303 | ; |
| 11304 | return 0; |
| 11305 | } |
| 11306 | _ACEOF |
| 11307 | rm -f conftest.$ac_objext |
| 11308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11309 | (eval $ac_compile) 2>conftest.er1 |
| 11310 | ac_status=$? |
| 11311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11312 | rm -f conftest.er1 |
| 11313 | cat conftest.err >&5 |
| 11314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11315 | (exit $ac_status); } && |
| 11316 | { ac_try='test -z "$ac_c_werror_flag" |
| 11317 | || test ! -s conftest.err' |
| 11318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11319 | (eval $ac_try) 2>&5 |
| 11320 | ac_status=$? |
| 11321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11322 | (exit $ac_status); }; } && |
| 11323 | { ac_try='test -s conftest.$ac_objext' |
| 11324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11325 | (eval $ac_try) 2>&5 |
| 11326 | ac_status=$? |
| 11327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11328 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11329 | ac_cv_type_dev_t=yes |
| 11330 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11331 | echo "$as_me: failed program was:" >&5 |
| 11332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11333 | |
| 11334 | ac_cv_type_dev_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11335 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11337 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11338 | echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
| 11339 | echo "${ECHO_T}$ac_cv_type_dev_t" >&6 |
| 11340 | if test $ac_cv_type_dev_t = yes; then |
| 11341 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11342 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11343 | |
| 11344 | cat >>confdefs.h <<_ACEOF |
| 11345 | #define dev_t unsigned |
| 11346 | _ACEOF |
| 11347 | |
| 11348 | fi |
| 11349 | |
| 11350 | |
| 11351 | echo "$as_me:$LINENO: checking for rlim_t" >&5 |
| 11352 | echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6 |
| 11353 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
| 11354 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 11355 | echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6 |
| 11356 | else |
| 11357 | cat >conftest.$ac_ext <<_ACEOF |
| 11358 | /* confdefs.h. */ |
| 11359 | _ACEOF |
| 11360 | cat confdefs.h >>conftest.$ac_ext |
| 11361 | cat >>conftest.$ac_ext <<_ACEOF |
| 11362 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11363 | |
| 11364 | #include <sys/types.h> |
| 11365 | #if STDC_HEADERS |
| 11366 | #include <stdlib.h> |
| 11367 | #include <stddef.h> |
| 11368 | #endif |
| 11369 | #ifdef HAVE_SYS_RESOURCE_H |
| 11370 | #include <sys/resource.h> |
| 11371 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11372 | |
| 11373 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11374 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11375 | $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] | 11376 | ac_cv_type_rlim_t=yes |
| 11377 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11378 | ac_cv_type_rlim_t=no |
| 11379 | fi |
| 11380 | rm -f conftest* |
| 11381 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11382 | echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
| 11383 | echo "${ECHO_T}$ac_cv_type_rlim_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11384 | fi |
| 11385 | if test $ac_cv_type_rlim_t = no; then |
| 11386 | cat >> confdefs.h <<\EOF |
| 11387 | #define rlim_t unsigned long |
| 11388 | EOF |
| 11389 | fi |
| 11390 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11391 | echo "$as_me:$LINENO: checking for stack_t" >&5 |
| 11392 | echo $ECHO_N "checking for stack_t... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11393 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11394 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
| 11395 | echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11396 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11397 | cat >conftest.$ac_ext <<_ACEOF |
| 11398 | /* confdefs.h. */ |
| 11399 | _ACEOF |
| 11400 | cat confdefs.h >>conftest.$ac_ext |
| 11401 | cat >>conftest.$ac_ext <<_ACEOF |
| 11402 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11403 | |
| 11404 | #include <sys/types.h> |
| 11405 | #if STDC_HEADERS |
| 11406 | #include <stdlib.h> |
| 11407 | #include <stddef.h> |
| 11408 | #endif |
| 11409 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11410 | |
| 11411 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11412 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11413 | $EGREP "stack_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11414 | ac_cv_type_stack_t=yes |
| 11415 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11416 | ac_cv_type_stack_t=no |
| 11417 | fi |
| 11418 | rm -f conftest* |
| 11419 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11420 | echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
| 11421 | echo "${ECHO_T}$ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11422 | fi |
| 11423 | if test $ac_cv_type_stack_t = no; then |
| 11424 | cat >> confdefs.h <<\EOF |
| 11425 | #define stack_t struct sigaltstack |
| 11426 | EOF |
| 11427 | fi |
| 11428 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11429 | echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
| 11430 | echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6 |
| 11431 | cat >conftest.$ac_ext <<_ACEOF |
| 11432 | /* confdefs.h. */ |
| 11433 | _ACEOF |
| 11434 | cat confdefs.h >>conftest.$ac_ext |
| 11435 | cat >>conftest.$ac_ext <<_ACEOF |
| 11436 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11437 | |
| 11438 | #include <sys/types.h> |
| 11439 | #if STDC_HEADERS |
| 11440 | #include <stdlib.h> |
| 11441 | #include <stddef.h> |
| 11442 | #endif |
| 11443 | #include <signal.h> |
| 11444 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11445 | |
| 11446 | int |
| 11447 | main () |
| 11448 | { |
| 11449 | stack_t sigstk; sigstk.ss_base = 0; |
| 11450 | ; |
| 11451 | return 0; |
| 11452 | } |
| 11453 | _ACEOF |
| 11454 | rm -f conftest.$ac_objext |
| 11455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11456 | (eval $ac_compile) 2>conftest.er1 |
| 11457 | ac_status=$? |
| 11458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11459 | rm -f conftest.er1 |
| 11460 | cat conftest.err >&5 |
| 11461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11462 | (exit $ac_status); } && |
| 11463 | { ac_try='test -z "$ac_c_werror_flag" |
| 11464 | || test ! -s conftest.err' |
| 11465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11466 | (eval $ac_try) 2>&5 |
| 11467 | ac_status=$? |
| 11468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11469 | (exit $ac_status); }; } && |
| 11470 | { ac_try='test -s conftest.$ac_objext' |
| 11471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11472 | (eval $ac_try) 2>&5 |
| 11473 | ac_status=$? |
| 11474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11475 | (exit $ac_status); }; }; then |
| 11476 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11477 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11478 | #define HAVE_SS_BASE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11479 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11480 | |
| 11481 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11482 | echo "$as_me: failed program was:" >&5 |
| 11483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11484 | |
| 11485 | echo "$as_me:$LINENO: result: no" >&5 |
| 11486 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11487 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11489 | |
| 11490 | olibs="$LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11491 | echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
| 11492 | echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6 |
| 11493 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11494 | # Check whether --with-tlib or --without-tlib was given. |
| 11495 | if test "${with_tlib+set}" = set; then |
| 11496 | withval="$with_tlib" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11497 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11498 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11499 | if test -n "$with_tlib"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11500 | echo "$as_me:$LINENO: result: $with_tlib" >&5 |
| 11501 | echo "${ECHO_T}$with_tlib" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11502 | LIBS="$LIBS -l$with_tlib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11503 | echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
| 11504 | echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6 |
| 11505 | cat >conftest.$ac_ext <<_ACEOF |
| 11506 | /* confdefs.h. */ |
| 11507 | _ACEOF |
| 11508 | cat confdefs.h >>conftest.$ac_ext |
| 11509 | cat >>conftest.$ac_ext <<_ACEOF |
| 11510 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11511 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11512 | int |
| 11513 | main () |
| 11514 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11515 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11516 | ; |
| 11517 | return 0; |
| 11518 | } |
| 11519 | _ACEOF |
| 11520 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11522 | (eval $ac_link) 2>conftest.er1 |
| 11523 | ac_status=$? |
| 11524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11525 | rm -f conftest.er1 |
| 11526 | cat conftest.err >&5 |
| 11527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11528 | (exit $ac_status); } && |
| 11529 | { ac_try='test -z "$ac_c_werror_flag" |
| 11530 | || test ! -s conftest.err' |
| 11531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11532 | (eval $ac_try) 2>&5 |
| 11533 | ac_status=$? |
| 11534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11535 | (exit $ac_status); }; } && |
| 11536 | { ac_try='test -s conftest$ac_exeext' |
| 11537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11538 | (eval $ac_try) 2>&5 |
| 11539 | ac_status=$? |
| 11540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11541 | (exit $ac_status); }; }; then |
| 11542 | echo "$as_me:$LINENO: result: OK" >&5 |
| 11543 | echo "${ECHO_T}OK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11544 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11545 | echo "$as_me: failed program was:" >&5 |
| 11546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11547 | |
| 11548 | { { echo "$as_me:$LINENO: error: FAILED" >&5 |
| 11549 | echo "$as_me: error: FAILED" >&2;} |
| 11550 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11551 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11552 | rm -f conftest.err conftest.$ac_objext \ |
| 11553 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11554 | olibs="$LIBS" |
| 11555 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11556 | echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
| 11557 | echo "${ECHO_T}empty: automatic terminal library selection" >&6 |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 11558 | case "`uname -s 2>/dev/null`" in |
| 11559 | OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11560 | *) tlibs="ncurses termlib termcap curses";; |
| 11561 | esac |
| 11562 | for libname in $tlibs; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11563 | |
| 11564 | as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
| 11565 | echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
| 11566 | echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6 |
| 11567 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
| 11568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11569 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11570 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11571 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11572 | cat >conftest.$ac_ext <<_ACEOF |
| 11573 | /* confdefs.h. */ |
| 11574 | _ACEOF |
| 11575 | cat confdefs.h >>conftest.$ac_ext |
| 11576 | cat >>conftest.$ac_ext <<_ACEOF |
| 11577 | /* end confdefs.h. */ |
| 11578 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11579 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11580 | #ifdef __cplusplus |
| 11581 | extern "C" |
| 11582 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11583 | /* 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] | 11584 | builtin and then its argument prototype would still apply. */ |
| 11585 | char tgetent (); |
| 11586 | int |
| 11587 | main () |
| 11588 | { |
| 11589 | tgetent (); |
| 11590 | ; |
| 11591 | return 0; |
| 11592 | } |
| 11593 | _ACEOF |
| 11594 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11596 | (eval $ac_link) 2>conftest.er1 |
| 11597 | ac_status=$? |
| 11598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11599 | rm -f conftest.er1 |
| 11600 | cat conftest.err >&5 |
| 11601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11602 | (exit $ac_status); } && |
| 11603 | { ac_try='test -z "$ac_c_werror_flag" |
| 11604 | || test ! -s conftest.err' |
| 11605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11606 | (eval $ac_try) 2>&5 |
| 11607 | ac_status=$? |
| 11608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11609 | (exit $ac_status); }; } && |
| 11610 | { ac_try='test -s conftest$ac_exeext' |
| 11611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11612 | (eval $ac_try) 2>&5 |
| 11613 | ac_status=$? |
| 11614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11615 | (exit $ac_status); }; }; then |
| 11616 | eval "$as_ac_Lib=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11617 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11618 | echo "$as_me: failed program was:" >&5 |
| 11619 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11620 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11621 | eval "$as_ac_Lib=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11622 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11623 | rm -f conftest.err conftest.$ac_objext \ |
| 11624 | conftest$ac_exeext conftest.$ac_ext |
| 11625 | LIBS=$ac_check_lib_save_LIBS |
| 11626 | fi |
| 11627 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
| 11628 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
| 11629 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
| 11630 | cat >>confdefs.h <<_ACEOF |
| 11631 | #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 |
| 11632 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11633 | |
| 11634 | LIBS="-l${libname} $LIBS" |
| 11635 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11636 | fi |
| 11637 | |
| 11638 | if test "x$olibs" != "x$LIBS"; then |
| 11639 | if test "$cross_compiling" = yes; then |
| 11640 | res="FAIL" |
| 11641 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11642 | cat >conftest.$ac_ext <<_ACEOF |
| 11643 | /* confdefs.h. */ |
| 11644 | _ACEOF |
| 11645 | cat confdefs.h >>conftest.$ac_ext |
| 11646 | cat >>conftest.$ac_ext <<_ACEOF |
| 11647 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11648 | |
| 11649 | #ifdef HAVE_TERMCAP_H |
| 11650 | # include <termcap.h> |
| 11651 | #endif |
| 11652 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11653 | _ACEOF |
| 11654 | rm -f conftest$ac_exeext |
| 11655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11656 | (eval $ac_link) 2>&5 |
| 11657 | ac_status=$? |
| 11658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11659 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11661 | (eval $ac_try) 2>&5 |
| 11662 | ac_status=$? |
| 11663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11664 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11665 | res="OK" |
| 11666 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11667 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11668 | echo "$as_me: failed program was:" >&5 |
| 11669 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11670 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11671 | ( exit $ac_status ) |
| 11672 | res="FAIL" |
| 11673 | fi |
| 11674 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11675 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11676 | if test "$res" = "OK"; then |
| 11677 | break |
| 11678 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11679 | echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
| 11680 | echo "${ECHO_T}$libname library is not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11681 | LIBS="$olibs" |
| 11682 | fi |
| 11683 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11684 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11685 | echo "$as_me:$LINENO: result: no terminal library found" >&5 |
| 11686 | echo "${ECHO_T}no terminal library found" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11687 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11688 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11689 | |
| 11690 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11691 | echo "$as_me:$LINENO: checking for tgetent()" >&5 |
| 11692 | echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6 |
| 11693 | cat >conftest.$ac_ext <<_ACEOF |
| 11694 | /* confdefs.h. */ |
| 11695 | _ACEOF |
| 11696 | cat confdefs.h >>conftest.$ac_ext |
| 11697 | cat >>conftest.$ac_ext <<_ACEOF |
| 11698 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11699 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11700 | int |
| 11701 | main () |
| 11702 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11703 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11704 | ; |
| 11705 | return 0; |
| 11706 | } |
| 11707 | _ACEOF |
| 11708 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11710 | (eval $ac_link) 2>conftest.er1 |
| 11711 | ac_status=$? |
| 11712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11713 | rm -f conftest.er1 |
| 11714 | cat conftest.err >&5 |
| 11715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11716 | (exit $ac_status); } && |
| 11717 | { ac_try='test -z "$ac_c_werror_flag" |
| 11718 | || test ! -s conftest.err' |
| 11719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11720 | (eval $ac_try) 2>&5 |
| 11721 | ac_status=$? |
| 11722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11723 | (exit $ac_status); }; } && |
| 11724 | { ac_try='test -s conftest$ac_exeext' |
| 11725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11726 | (eval $ac_try) 2>&5 |
| 11727 | ac_status=$? |
| 11728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11729 | (exit $ac_status); }; }; then |
| 11730 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11731 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11732 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11733 | echo "$as_me: failed program was:" >&5 |
| 11734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11735 | |
| 11736 | { { echo "$as_me:$LINENO: error: NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11737 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11738 | Or specify the name of the library with --with-tlib." >&5 |
| 11739 | echo "$as_me: error: NOT FOUND! |
| 11740 | You need to install a terminal library; for example ncurses. |
| 11741 | Or specify the name of the library with --with-tlib." >&2;} |
| 11742 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11743 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11744 | rm -f conftest.err conftest.$ac_objext \ |
| 11745 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11746 | fi |
| 11747 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11748 | echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 |
| 11749 | echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11750 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11751 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 11752 | echo "$as_me: error: failed to compile test program." >&2;} |
| 11753 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11754 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11755 | cat >conftest.$ac_ext <<_ACEOF |
| 11756 | /* confdefs.h. */ |
| 11757 | _ACEOF |
| 11758 | cat confdefs.h >>conftest.$ac_ext |
| 11759 | cat >>conftest.$ac_ext <<_ACEOF |
| 11760 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11761 | |
| 11762 | #ifdef HAVE_TERMCAP_H |
| 11763 | # include <termcap.h> |
| 11764 | #endif |
| 11765 | main() |
| 11766 | {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] | 11767 | _ACEOF |
| 11768 | rm -f conftest$ac_exeext |
| 11769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11770 | (eval $ac_link) 2>&5 |
| 11771 | ac_status=$? |
| 11772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11773 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11775 | (eval $ac_try) 2>&5 |
| 11776 | ac_status=$? |
| 11777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11778 | (exit $ac_status); }; }; then |
| 11779 | echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5 |
| 11780 | echo "${ECHO_T}no -- we are in termcap land" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11781 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11782 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11783 | echo "$as_me: failed program was:" >&5 |
| 11784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11785 | |
| 11786 | ( exit $ac_status ) |
| 11787 | echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5 |
| 11788 | echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11789 | #define TERMINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11790 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11791 | |
| 11792 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11793 | 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] | 11794 | fi |
| 11795 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11796 | if test "x$olibs" != "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11797 | echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
| 11798 | 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] | 11799 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11800 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 11801 | echo "$as_me: error: failed to compile test program." >&2;} |
| 11802 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11803 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11804 | cat >conftest.$ac_ext <<_ACEOF |
| 11805 | /* confdefs.h. */ |
| 11806 | _ACEOF |
| 11807 | cat confdefs.h >>conftest.$ac_ext |
| 11808 | cat >>conftest.$ac_ext <<_ACEOF |
| 11809 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11810 | |
| 11811 | #ifdef HAVE_TERMCAP_H |
| 11812 | # include <termcap.h> |
| 11813 | #endif |
| 11814 | main() |
| 11815 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11816 | _ACEOF |
| 11817 | rm -f conftest$ac_exeext |
| 11818 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11819 | (eval $ac_link) 2>&5 |
| 11820 | ac_status=$? |
| 11821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11822 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11824 | (eval $ac_try) 2>&5 |
| 11825 | ac_status=$? |
| 11826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11827 | (exit $ac_status); }; }; then |
| 11828 | echo "$as_me:$LINENO: result: zero" >&5 |
| 11829 | echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11830 | #define TGETENT_ZERO_ERR 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11831 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11832 | |
| 11833 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11834 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11835 | echo "$as_me: failed program was:" >&5 |
| 11836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11837 | |
| 11838 | ( exit $ac_status ) |
| 11839 | echo "$as_me:$LINENO: result: non-zero" >&5 |
| 11840 | echo "${ECHO_T}non-zero" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11841 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11842 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11843 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11844 | fi |
| 11845 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11846 | echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
| 11847 | echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6 |
| 11848 | cat >conftest.$ac_ext <<_ACEOF |
| 11849 | /* confdefs.h. */ |
| 11850 | _ACEOF |
| 11851 | cat confdefs.h >>conftest.$ac_ext |
| 11852 | cat >>conftest.$ac_ext <<_ACEOF |
| 11853 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11854 | |
| 11855 | #ifdef HAVE_TERMCAP_H |
| 11856 | # include <termcap.h> |
| 11857 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11858 | |
| 11859 | int |
| 11860 | main () |
| 11861 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11862 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11863 | ; |
| 11864 | return 0; |
| 11865 | } |
| 11866 | _ACEOF |
| 11867 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11869 | (eval $ac_link) 2>conftest.er1 |
| 11870 | ac_status=$? |
| 11871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11872 | rm -f conftest.er1 |
| 11873 | cat conftest.err >&5 |
| 11874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11875 | (exit $ac_status); } && |
| 11876 | { ac_try='test -z "$ac_c_werror_flag" |
| 11877 | || test ! -s conftest.err' |
| 11878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11879 | (eval $ac_try) 2>&5 |
| 11880 | ac_status=$? |
| 11881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11882 | (exit $ac_status); }; } && |
| 11883 | { ac_try='test -s conftest$ac_exeext' |
| 11884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11885 | (eval $ac_try) 2>&5 |
| 11886 | ac_status=$? |
| 11887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11888 | (exit $ac_status); }; }; then |
| 11889 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11890 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11891 | #define HAVE_OSPEED 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11892 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11893 | |
| 11894 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11895 | echo "$as_me: failed program was:" >&5 |
| 11896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11897 | |
| 11898 | echo "$as_me:$LINENO: result: no" >&5 |
| 11899 | echo "${ECHO_T}no" >&6 |
| 11900 | echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
| 11901 | echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6 |
| 11902 | cat >conftest.$ac_ext <<_ACEOF |
| 11903 | /* confdefs.h. */ |
| 11904 | _ACEOF |
| 11905 | cat confdefs.h >>conftest.$ac_ext |
| 11906 | cat >>conftest.$ac_ext <<_ACEOF |
| 11907 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11908 | |
| 11909 | #ifdef HAVE_TERMCAP_H |
| 11910 | # include <termcap.h> |
| 11911 | #endif |
| 11912 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11913 | |
| 11914 | int |
| 11915 | main () |
| 11916 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11917 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11918 | ; |
| 11919 | return 0; |
| 11920 | } |
| 11921 | _ACEOF |
| 11922 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11924 | (eval $ac_link) 2>conftest.er1 |
| 11925 | ac_status=$? |
| 11926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11927 | rm -f conftest.er1 |
| 11928 | cat conftest.err >&5 |
| 11929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11930 | (exit $ac_status); } && |
| 11931 | { ac_try='test -z "$ac_c_werror_flag" |
| 11932 | || test ! -s conftest.err' |
| 11933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11934 | (eval $ac_try) 2>&5 |
| 11935 | ac_status=$? |
| 11936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11937 | (exit $ac_status); }; } && |
| 11938 | { ac_try='test -s conftest$ac_exeext' |
| 11939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11940 | (eval $ac_try) 2>&5 |
| 11941 | ac_status=$? |
| 11942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11943 | (exit $ac_status); }; }; then |
| 11944 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11945 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11946 | #define OSPEED_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11947 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11948 | |
| 11949 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11950 | echo "$as_me: failed program was:" >&5 |
| 11951 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11952 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11953 | echo "$as_me:$LINENO: result: no" >&5 |
| 11954 | echo "${ECHO_T}no" >&6 |
| 11955 | fi |
| 11956 | rm -f conftest.err conftest.$ac_objext \ |
| 11957 | conftest$ac_exeext conftest.$ac_ext |
| 11958 | |
| 11959 | fi |
| 11960 | rm -f conftest.err conftest.$ac_objext \ |
| 11961 | conftest$ac_exeext conftest.$ac_ext |
| 11962 | |
| 11963 | echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
| 11964 | echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6 |
| 11965 | cat >conftest.$ac_ext <<_ACEOF |
| 11966 | /* confdefs.h. */ |
| 11967 | _ACEOF |
| 11968 | cat confdefs.h >>conftest.$ac_ext |
| 11969 | cat >>conftest.$ac_ext <<_ACEOF |
| 11970 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11971 | |
| 11972 | #ifdef HAVE_TERMCAP_H |
| 11973 | # include <termcap.h> |
| 11974 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11975 | |
| 11976 | int |
| 11977 | main () |
| 11978 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11979 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11980 | ; |
| 11981 | return 0; |
| 11982 | } |
| 11983 | _ACEOF |
| 11984 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11986 | (eval $ac_link) 2>conftest.er1 |
| 11987 | ac_status=$? |
| 11988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11989 | rm -f conftest.er1 |
| 11990 | cat conftest.err >&5 |
| 11991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11992 | (exit $ac_status); } && |
| 11993 | { ac_try='test -z "$ac_c_werror_flag" |
| 11994 | || test ! -s conftest.err' |
| 11995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11996 | (eval $ac_try) 2>&5 |
| 11997 | ac_status=$? |
| 11998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11999 | (exit $ac_status); }; } && |
| 12000 | { ac_try='test -s conftest$ac_exeext' |
| 12001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12002 | (eval $ac_try) 2>&5 |
| 12003 | ac_status=$? |
| 12004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12005 | (exit $ac_status); }; }; then |
| 12006 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12007 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12008 | #define HAVE_UP_BC_PC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12009 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12010 | |
| 12011 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12012 | echo "$as_me: failed program was:" >&5 |
| 12013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12014 | |
| 12015 | echo "$as_me:$LINENO: result: no" >&5 |
| 12016 | echo "${ECHO_T}no" >&6 |
| 12017 | echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
| 12018 | echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6 |
| 12019 | cat >conftest.$ac_ext <<_ACEOF |
| 12020 | /* confdefs.h. */ |
| 12021 | _ACEOF |
| 12022 | cat confdefs.h >>conftest.$ac_ext |
| 12023 | cat >>conftest.$ac_ext <<_ACEOF |
| 12024 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12025 | |
| 12026 | #ifdef HAVE_TERMCAP_H |
| 12027 | # include <termcap.h> |
| 12028 | #endif |
| 12029 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12030 | |
| 12031 | int |
| 12032 | main () |
| 12033 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12034 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12035 | ; |
| 12036 | return 0; |
| 12037 | } |
| 12038 | _ACEOF |
| 12039 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12041 | (eval $ac_link) 2>conftest.er1 |
| 12042 | ac_status=$? |
| 12043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12044 | rm -f conftest.er1 |
| 12045 | cat conftest.err >&5 |
| 12046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12047 | (exit $ac_status); } && |
| 12048 | { ac_try='test -z "$ac_c_werror_flag" |
| 12049 | || test ! -s conftest.err' |
| 12050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12051 | (eval $ac_try) 2>&5 |
| 12052 | ac_status=$? |
| 12053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12054 | (exit $ac_status); }; } && |
| 12055 | { ac_try='test -s conftest$ac_exeext' |
| 12056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12057 | (eval $ac_try) 2>&5 |
| 12058 | ac_status=$? |
| 12059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12060 | (exit $ac_status); }; }; then |
| 12061 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12062 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12063 | #define UP_BC_PC_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12064 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12065 | |
| 12066 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12067 | echo "$as_me: failed program was:" >&5 |
| 12068 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12069 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12070 | echo "$as_me:$LINENO: result: no" >&5 |
| 12071 | echo "${ECHO_T}no" >&6 |
| 12072 | fi |
| 12073 | rm -f conftest.err conftest.$ac_objext \ |
| 12074 | conftest$ac_exeext conftest.$ac_ext |
| 12075 | |
| 12076 | fi |
| 12077 | rm -f conftest.err conftest.$ac_objext \ |
| 12078 | conftest$ac_exeext conftest.$ac_ext |
| 12079 | |
| 12080 | echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
| 12081 | echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6 |
| 12082 | cat >conftest.$ac_ext <<_ACEOF |
| 12083 | /* confdefs.h. */ |
| 12084 | _ACEOF |
| 12085 | cat confdefs.h >>conftest.$ac_ext |
| 12086 | cat >>conftest.$ac_ext <<_ACEOF |
| 12087 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12088 | |
| 12089 | #ifdef HAVE_TERMCAP_H |
| 12090 | # include <termcap.h> |
| 12091 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12092 | |
| 12093 | int |
| 12094 | main () |
| 12095 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12096 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12097 | ; |
| 12098 | return 0; |
| 12099 | } |
| 12100 | _ACEOF |
| 12101 | rm -f conftest.$ac_objext |
| 12102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12103 | (eval $ac_compile) 2>conftest.er1 |
| 12104 | ac_status=$? |
| 12105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12106 | rm -f conftest.er1 |
| 12107 | cat conftest.err >&5 |
| 12108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12109 | (exit $ac_status); } && |
| 12110 | { ac_try='test -z "$ac_c_werror_flag" |
| 12111 | || test ! -s conftest.err' |
| 12112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12113 | (eval $ac_try) 2>&5 |
| 12114 | ac_status=$? |
| 12115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12116 | (exit $ac_status); }; } && |
| 12117 | { ac_try='test -s conftest.$ac_objext' |
| 12118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12119 | (eval $ac_try) 2>&5 |
| 12120 | ac_status=$? |
| 12121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12122 | (exit $ac_status); }; }; then |
| 12123 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12124 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12125 | #define HAVE_OUTFUNTYPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12126 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12127 | |
| 12128 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12129 | echo "$as_me: failed program was:" >&5 |
| 12130 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12131 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12132 | echo "$as_me:$LINENO: result: no" >&5 |
| 12133 | echo "${ECHO_T}no" >&6 |
| 12134 | fi |
| 12135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12136 | |
| 12137 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 12138 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12139 | cat >conftest.$ac_ext <<_ACEOF |
| 12140 | /* confdefs.h. */ |
| 12141 | _ACEOF |
| 12142 | cat confdefs.h >>conftest.$ac_ext |
| 12143 | cat >>conftest.$ac_ext <<_ACEOF |
| 12144 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12145 | |
| 12146 | #include <sys/types.h> |
| 12147 | #include <sys/time.h> |
| 12148 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12149 | int |
| 12150 | main () |
| 12151 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12152 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12153 | ; |
| 12154 | return 0; |
| 12155 | } |
| 12156 | _ACEOF |
| 12157 | rm -f conftest.$ac_objext |
| 12158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12159 | (eval $ac_compile) 2>conftest.er1 |
| 12160 | ac_status=$? |
| 12161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12162 | rm -f conftest.er1 |
| 12163 | cat conftest.err >&5 |
| 12164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12165 | (exit $ac_status); } && |
| 12166 | { ac_try='test -z "$ac_c_werror_flag" |
| 12167 | || test ! -s conftest.err' |
| 12168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12169 | (eval $ac_try) 2>&5 |
| 12170 | ac_status=$? |
| 12171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12172 | (exit $ac_status); }; } && |
| 12173 | { ac_try='test -s conftest.$ac_objext' |
| 12174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12175 | (eval $ac_try) 2>&5 |
| 12176 | ac_status=$? |
| 12177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12178 | (exit $ac_status); }; }; then |
| 12179 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12180 | echo "${ECHO_T}yes" >&6 |
| 12181 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12182 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12183 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12184 | |
| 12185 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12186 | echo "$as_me: failed program was:" >&5 |
| 12187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12188 | |
| 12189 | echo "$as_me:$LINENO: result: no" >&5 |
| 12190 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12191 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12193 | |
| 12194 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12195 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 12196 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12197 | if test -r /dev/ptc; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12198 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12199 | #define HAVE_DEV_PTC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12200 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12201 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12202 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12203 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12204 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12205 | echo "$as_me:$LINENO: result: no" >&5 |
| 12206 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12207 | fi |
| 12208 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12209 | echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 |
| 12210 | echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12211 | if test -c /dev/ptmx ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12212 | cat >conftest.$ac_ext <<_ACEOF |
| 12213 | /* confdefs.h. */ |
| 12214 | _ACEOF |
| 12215 | cat confdefs.h >>conftest.$ac_ext |
| 12216 | cat >>conftest.$ac_ext <<_ACEOF |
| 12217 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12218 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12219 | int |
| 12220 | main () |
| 12221 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12222 | ptsname(0);grantpt(0);unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12223 | ; |
| 12224 | return 0; |
| 12225 | } |
| 12226 | _ACEOF |
| 12227 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12229 | (eval $ac_link) 2>conftest.er1 |
| 12230 | ac_status=$? |
| 12231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12232 | rm -f conftest.er1 |
| 12233 | cat conftest.err >&5 |
| 12234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12235 | (exit $ac_status); } && |
| 12236 | { ac_try='test -z "$ac_c_werror_flag" |
| 12237 | || test ! -s conftest.err' |
| 12238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12239 | (eval $ac_try) 2>&5 |
| 12240 | ac_status=$? |
| 12241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12242 | (exit $ac_status); }; } && |
| 12243 | { ac_try='test -s conftest$ac_exeext' |
| 12244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12245 | (eval $ac_try) 2>&5 |
| 12246 | ac_status=$? |
| 12247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12248 | (exit $ac_status); }; }; then |
| 12249 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12250 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12251 | #define HAVE_SVR4_PTYS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12252 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12253 | |
| 12254 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12255 | echo "$as_me: failed program was:" >&5 |
| 12256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12257 | |
| 12258 | echo "$as_me:$LINENO: result: no" >&5 |
| 12259 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12260 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12261 | rm -f conftest.err conftest.$ac_objext \ |
| 12262 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12263 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12264 | echo "$as_me:$LINENO: result: no" >&5 |
| 12265 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12266 | fi |
| 12267 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12268 | echo "$as_me:$LINENO: checking for ptyranges" >&5 |
| 12269 | echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12270 | if test -d /dev/ptym ; then |
| 12271 | pdir='/dev/ptym' |
| 12272 | else |
| 12273 | pdir='/dev' |
| 12274 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12275 | cat >conftest.$ac_ext <<_ACEOF |
| 12276 | /* confdefs.h. */ |
| 12277 | _ACEOF |
| 12278 | cat confdefs.h >>conftest.$ac_ext |
| 12279 | cat >>conftest.$ac_ext <<_ACEOF |
| 12280 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12281 | #ifdef M_UNIX |
| 12282 | yes; |
| 12283 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12284 | |
| 12285 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12286 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12287 | $EGREP "yes" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12288 | ptys=`echo /dev/ptyp??` |
| 12289 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12290 | ptys=`echo $pdir/pty??` |
| 12291 | fi |
| 12292 | rm -f conftest* |
| 12293 | |
| 12294 | if test "$ptys" != "$pdir/pty??" ; then |
| 12295 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 12296 | 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] | 12297 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12298 | #define PTYRANGE0 "$p0" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12299 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12300 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12301 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12302 | #define PTYRANGE1 "$p1" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12303 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12304 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12305 | echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
| 12306 | echo "${ECHO_T}$p0 / $p1" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12307 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12308 | echo "$as_me:$LINENO: result: don't know" >&5 |
| 12309 | echo "${ECHO_T}don't know" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12310 | fi |
| 12311 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12312 | echo "$as_me:$LINENO: checking default tty permissions/group" >&5 |
| 12313 | echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12314 | rm -f conftest_grp |
| 12315 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12316 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12317 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12318 | { (exit 1); exit 1; }; } |
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 | |
| 12327 | #include <sys/types.h> |
| 12328 | #include <sys/stat.h> |
| 12329 | #include <stdio.h> |
| 12330 | main() |
| 12331 | { |
| 12332 | struct stat sb; |
| 12333 | char *x,*ttyname(); |
| 12334 | int om, m; |
| 12335 | FILE *fp; |
| 12336 | |
| 12337 | if (!(x = ttyname(0))) exit(1); |
| 12338 | if (stat(x, &sb)) exit(1); |
| 12339 | om = sb.st_mode; |
| 12340 | if (om & 002) exit(0); |
| 12341 | m = system("mesg y"); |
| 12342 | if (m == -1 || m == 127) exit(1); |
| 12343 | if (stat(x, &sb)) exit(1); |
| 12344 | m = sb.st_mode; |
| 12345 | if (chmod(x, om)) exit(1); |
| 12346 | if (m & 002) exit(0); |
| 12347 | if (sb.st_gid == getgid()) exit(1); |
| 12348 | if (!(fp=fopen("conftest_grp", "w"))) |
| 12349 | exit(1); |
| 12350 | fprintf(fp, "%d\n", sb.st_gid); |
| 12351 | fclose(fp); |
| 12352 | exit(0); |
| 12353 | } |
| 12354 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12355 | _ACEOF |
| 12356 | rm -f conftest$ac_exeext |
| 12357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12358 | (eval $ac_link) 2>&5 |
| 12359 | ac_status=$? |
| 12360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12361 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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 |
| 12367 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12368 | if test -f conftest_grp; then |
| 12369 | ptygrp=`cat conftest_grp` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12370 | echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5 |
| 12371 | echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6 |
| 12372 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12373 | #define PTYMODE 0620 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12374 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12375 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12376 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12377 | #define PTYGROUP $ptygrp |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12378 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12379 | |
| 12380 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12381 | echo "$as_me:$LINENO: result: ptys are world accessable" >&5 |
| 12382 | echo "${ECHO_T}ptys are world accessable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12383 | fi |
| 12384 | |
| 12385 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12386 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12387 | echo "$as_me: failed program was:" >&5 |
| 12388 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12389 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12390 | ( exit $ac_status ) |
| 12391 | echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5 |
| 12392 | echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6 |
| 12393 | fi |
| 12394 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12395 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12396 | rm -f conftest_grp |
| 12397 | |
| 12398 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12399 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 12400 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 12401 | if test "${ac_cv_type_signal+set}" = set; then |
| 12402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12403 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12404 | cat >conftest.$ac_ext <<_ACEOF |
| 12405 | /* confdefs.h. */ |
| 12406 | _ACEOF |
| 12407 | cat confdefs.h >>conftest.$ac_ext |
| 12408 | cat >>conftest.$ac_ext <<_ACEOF |
| 12409 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12410 | #include <sys/types.h> |
| 12411 | #include <signal.h> |
| 12412 | #ifdef signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12413 | # undef signal |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12414 | #endif |
| 12415 | #ifdef __cplusplus |
| 12416 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 12417 | #else |
| 12418 | void (*signal ()) (); |
| 12419 | #endif |
| 12420 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12421 | int |
| 12422 | main () |
| 12423 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12424 | int i; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12425 | ; |
| 12426 | return 0; |
| 12427 | } |
| 12428 | _ACEOF |
| 12429 | rm -f conftest.$ac_objext |
| 12430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12431 | (eval $ac_compile) 2>conftest.er1 |
| 12432 | ac_status=$? |
| 12433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12434 | rm -f conftest.er1 |
| 12435 | cat conftest.err >&5 |
| 12436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12437 | (exit $ac_status); } && |
| 12438 | { ac_try='test -z "$ac_c_werror_flag" |
| 12439 | || test ! -s conftest.err' |
| 12440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12441 | (eval $ac_try) 2>&5 |
| 12442 | ac_status=$? |
| 12443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12444 | (exit $ac_status); }; } && |
| 12445 | { ac_try='test -s conftest.$ac_objext' |
| 12446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12447 | (eval $ac_try) 2>&5 |
| 12448 | ac_status=$? |
| 12449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12450 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12451 | ac_cv_type_signal=void |
| 12452 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12453 | echo "$as_me: failed program was:" >&5 |
| 12454 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12455 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12456 | ac_cv_type_signal=int |
| 12457 | fi |
| 12458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12459 | fi |
| 12460 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 12461 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 12462 | |
| 12463 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12464 | #define RETSIGTYPE $ac_cv_type_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12465 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12466 | |
| 12467 | |
| 12468 | |
| 12469 | if test $ac_cv_type_signal = void; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12470 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12471 | #define SIGRETURN return |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12472 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12473 | |
| 12474 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12475 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12476 | #define SIGRETURN return 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12477 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12478 | |
| 12479 | fi |
| 12480 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12481 | echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
| 12482 | echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6 |
| 12483 | cat >conftest.$ac_ext <<_ACEOF |
| 12484 | /* confdefs.h. */ |
| 12485 | _ACEOF |
| 12486 | cat confdefs.h >>conftest.$ac_ext |
| 12487 | cat >>conftest.$ac_ext <<_ACEOF |
| 12488 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12489 | |
| 12490 | #include <signal.h> |
| 12491 | test_sig() |
| 12492 | { |
| 12493 | struct sigcontext *scont; |
| 12494 | scont = (struct sigcontext *)0; |
| 12495 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12496 | } |
| 12497 | int |
| 12498 | main () |
| 12499 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12500 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12501 | ; |
| 12502 | return 0; |
| 12503 | } |
| 12504 | _ACEOF |
| 12505 | rm -f conftest.$ac_objext |
| 12506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12507 | (eval $ac_compile) 2>conftest.er1 |
| 12508 | ac_status=$? |
| 12509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12510 | rm -f conftest.er1 |
| 12511 | cat conftest.err >&5 |
| 12512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12513 | (exit $ac_status); } && |
| 12514 | { ac_try='test -z "$ac_c_werror_flag" |
| 12515 | || test ! -s conftest.err' |
| 12516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12517 | (eval $ac_try) 2>&5 |
| 12518 | ac_status=$? |
| 12519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12520 | (exit $ac_status); }; } && |
| 12521 | { ac_try='test -s conftest.$ac_objext' |
| 12522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12523 | (eval $ac_try) 2>&5 |
| 12524 | ac_status=$? |
| 12525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12526 | (exit $ac_status); }; }; then |
| 12527 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12528 | echo "${ECHO_T}yes" >&6 |
| 12529 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12530 | #define HAVE_SIGCONTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12531 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12532 | |
| 12533 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12534 | echo "$as_me: failed program was:" >&5 |
| 12535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12536 | |
| 12537 | echo "$as_me:$LINENO: result: no" >&5 |
| 12538 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12539 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12541 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12542 | echo "$as_me:$LINENO: checking getcwd implementation" >&5 |
| 12543 | echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12544 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12545 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12546 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12547 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12548 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12549 | cat >conftest.$ac_ext <<_ACEOF |
| 12550 | /* confdefs.h. */ |
| 12551 | _ACEOF |
| 12552 | cat confdefs.h >>conftest.$ac_ext |
| 12553 | cat >>conftest.$ac_ext <<_ACEOF |
| 12554 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12555 | |
| 12556 | char *dagger[] = { "IFS=pwd", 0 }; |
| 12557 | main() |
| 12558 | { |
| 12559 | char buffer[500]; |
| 12560 | extern char **environ; |
| 12561 | environ = dagger; |
| 12562 | return getcwd(buffer, 500) ? 0 : 1; |
| 12563 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12564 | _ACEOF |
| 12565 | rm -f conftest$ac_exeext |
| 12566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12567 | (eval $ac_link) 2>&5 |
| 12568 | ac_status=$? |
| 12569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12570 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12572 | (eval $ac_try) 2>&5 |
| 12573 | ac_status=$? |
| 12574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12575 | (exit $ac_status); }; }; then |
| 12576 | echo "$as_me:$LINENO: result: it is usable" >&5 |
| 12577 | echo "${ECHO_T}it is usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12578 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12579 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12580 | echo "$as_me: failed program was:" >&5 |
| 12581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12582 | |
| 12583 | ( exit $ac_status ) |
| 12584 | echo "$as_me:$LINENO: result: it stinks" >&5 |
| 12585 | echo "${ECHO_T}it stinks" >&6 |
| 12586 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12587 | #define BAD_GETCWD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12588 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12589 | |
| 12590 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12591 | 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] | 12592 | fi |
| 12593 | |
| 12594 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12595 | |
| 12596 | |
| 12597 | |
| 12598 | |
| 12599 | |
| 12600 | |
| 12601 | |
| 12602 | |
| 12603 | |
| 12604 | |
| 12605 | |
| 12606 | |
| 12607 | |
| 12608 | |
| 12609 | |
| 12610 | |
| 12611 | |
| 12612 | |
| 12613 | |
| 12614 | |
| 12615 | |
| 12616 | |
| 12617 | |
| 12618 | |
| 12619 | |
| 12620 | |
| 12621 | |
| 12622 | |
| 12623 | |
| 12624 | |
| 12625 | |
| 12626 | |
| 12627 | |
| 12628 | |
| 12629 | |
| 12630 | |
| 12631 | |
| 12632 | |
| 12633 | |
| 12634 | |
| 12635 | |
| 12636 | |
| 12637 | |
| 12638 | |
| 12639 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12640 | for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
| 12641 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
| 12642 | memset nanosleep opendir putenv qsort readlink select setenv \ |
| 12643 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 12644 | sigvec strcasecmp strerror strftime stricmp strncasecmp \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 12645 | strnicmp strpbrk strtol tgetent towlower towupper iswupper \ |
| 12646 | usleep utime utimes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12647 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12648 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12649 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12650 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12651 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12653 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12654 | cat >conftest.$ac_ext <<_ACEOF |
| 12655 | /* confdefs.h. */ |
| 12656 | _ACEOF |
| 12657 | cat confdefs.h >>conftest.$ac_ext |
| 12658 | cat >>conftest.$ac_ext <<_ACEOF |
| 12659 | /* end confdefs.h. */ |
| 12660 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12661 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12662 | #define $ac_func innocuous_$ac_func |
| 12663 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12664 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12665 | which can conflict with char $ac_func (); below. |
| 12666 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12667 | <limits.h> exists even on freestanding compilers. */ |
| 12668 | |
| 12669 | #ifdef __STDC__ |
| 12670 | # include <limits.h> |
| 12671 | #else |
| 12672 | # include <assert.h> |
| 12673 | #endif |
| 12674 | |
| 12675 | #undef $ac_func |
| 12676 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12677 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12678 | #ifdef __cplusplus |
| 12679 | extern "C" |
| 12680 | { |
| 12681 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12682 | /* 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] | 12683 | builtin and then its argument prototype would still apply. */ |
| 12684 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12685 | /* The GNU C library defines this for functions which it implements |
| 12686 | to always fail with ENOSYS. Some functions are actually named |
| 12687 | something starting with __ and the normal name is an alias. */ |
| 12688 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12689 | choke me |
| 12690 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12691 | char (*f) () = $ac_func; |
| 12692 | #endif |
| 12693 | #ifdef __cplusplus |
| 12694 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12695 | #endif |
| 12696 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12697 | int |
| 12698 | main () |
| 12699 | { |
| 12700 | return f != $ac_func; |
| 12701 | ; |
| 12702 | return 0; |
| 12703 | } |
| 12704 | _ACEOF |
| 12705 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12707 | (eval $ac_link) 2>conftest.er1 |
| 12708 | ac_status=$? |
| 12709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12710 | rm -f conftest.er1 |
| 12711 | cat conftest.err >&5 |
| 12712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12713 | (exit $ac_status); } && |
| 12714 | { ac_try='test -z "$ac_c_werror_flag" |
| 12715 | || test ! -s conftest.err' |
| 12716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12717 | (eval $ac_try) 2>&5 |
| 12718 | ac_status=$? |
| 12719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12720 | (exit $ac_status); }; } && |
| 12721 | { ac_try='test -s conftest$ac_exeext' |
| 12722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12723 | (eval $ac_try) 2>&5 |
| 12724 | ac_status=$? |
| 12725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12726 | (exit $ac_status); }; }; then |
| 12727 | eval "$as_ac_var=yes" |
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 | echo "$as_me: failed program was:" >&5 |
| 12730 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12731 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12732 | eval "$as_ac_var=no" |
| 12733 | fi |
| 12734 | rm -f conftest.err conftest.$ac_objext \ |
| 12735 | conftest$ac_exeext conftest.$ac_ext |
| 12736 | fi |
| 12737 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12738 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12739 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12740 | cat >>confdefs.h <<_ACEOF |
| 12741 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12742 | _ACEOF |
| 12743 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12744 | fi |
| 12745 | done |
| 12746 | |
| 12747 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12748 | echo "$as_me:$LINENO: checking for st_blksize" >&5 |
| 12749 | echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6 |
| 12750 | cat >conftest.$ac_ext <<_ACEOF |
| 12751 | /* confdefs.h. */ |
| 12752 | _ACEOF |
| 12753 | cat confdefs.h >>conftest.$ac_ext |
| 12754 | cat >>conftest.$ac_ext <<_ACEOF |
| 12755 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12756 | #include <sys/types.h> |
| 12757 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12758 | int |
| 12759 | main () |
| 12760 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12761 | struct stat st; |
| 12762 | int n; |
| 12763 | |
| 12764 | stat("/", &st); |
| 12765 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12766 | ; |
| 12767 | return 0; |
| 12768 | } |
| 12769 | _ACEOF |
| 12770 | rm -f conftest.$ac_objext |
| 12771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12772 | (eval $ac_compile) 2>conftest.er1 |
| 12773 | ac_status=$? |
| 12774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12775 | rm -f conftest.er1 |
| 12776 | cat conftest.err >&5 |
| 12777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12778 | (exit $ac_status); } && |
| 12779 | { ac_try='test -z "$ac_c_werror_flag" |
| 12780 | || test ! -s conftest.err' |
| 12781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12782 | (eval $ac_try) 2>&5 |
| 12783 | ac_status=$? |
| 12784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12785 | (exit $ac_status); }; } && |
| 12786 | { ac_try='test -s conftest.$ac_objext' |
| 12787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12788 | (eval $ac_try) 2>&5 |
| 12789 | ac_status=$? |
| 12790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12791 | (exit $ac_status); }; }; then |
| 12792 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12793 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12794 | #define HAVE_ST_BLKSIZE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12795 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12796 | |
| 12797 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12798 | echo "$as_me: failed program was:" >&5 |
| 12799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12800 | |
| 12801 | echo "$as_me:$LINENO: result: no" >&5 |
| 12802 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12803 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12805 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12806 | echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
| 12807 | 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] | 12808 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12809 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12810 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12811 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12812 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12813 | cat >conftest.$ac_ext <<_ACEOF |
| 12814 | /* confdefs.h. */ |
| 12815 | _ACEOF |
| 12816 | cat confdefs.h >>conftest.$ac_ext |
| 12817 | cat >>conftest.$ac_ext <<_ACEOF |
| 12818 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12819 | #include <sys/types.h> |
| 12820 | #include <sys/stat.h> |
| 12821 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12822 | _ACEOF |
| 12823 | rm -f conftest$ac_exeext |
| 12824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12825 | (eval $ac_link) 2>&5 |
| 12826 | ac_status=$? |
| 12827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12828 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12830 | (eval $ac_try) 2>&5 |
| 12831 | ac_status=$? |
| 12832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12833 | (exit $ac_status); }; }; then |
| 12834 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12835 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12836 | #define STAT_IGNORES_SLASH 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12837 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12838 | |
| 12839 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12840 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12841 | echo "$as_me: failed program was:" >&5 |
| 12842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12843 | |
| 12844 | ( exit $ac_status ) |
| 12845 | echo "$as_me:$LINENO: result: no" >&5 |
| 12846 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12847 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12848 | 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] | 12849 | fi |
| 12850 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12851 | echo "$as_me:$LINENO: checking for iconv_open()" >&5 |
| 12852 | echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12853 | save_LIBS="$LIBS" |
| 12854 | LIBS="$LIBS -liconv" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12855 | cat >conftest.$ac_ext <<_ACEOF |
| 12856 | /* confdefs.h. */ |
| 12857 | _ACEOF |
| 12858 | cat confdefs.h >>conftest.$ac_ext |
| 12859 | cat >>conftest.$ac_ext <<_ACEOF |
| 12860 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12861 | |
| 12862 | #ifdef HAVE_ICONV_H |
| 12863 | # include <iconv.h> |
| 12864 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12865 | |
| 12866 | int |
| 12867 | main () |
| 12868 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12869 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12870 | ; |
| 12871 | return 0; |
| 12872 | } |
| 12873 | _ACEOF |
| 12874 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12876 | (eval $ac_link) 2>conftest.er1 |
| 12877 | ac_status=$? |
| 12878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12879 | rm -f conftest.er1 |
| 12880 | cat conftest.err >&5 |
| 12881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12882 | (exit $ac_status); } && |
| 12883 | { ac_try='test -z "$ac_c_werror_flag" |
| 12884 | || test ! -s conftest.err' |
| 12885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12886 | (eval $ac_try) 2>&5 |
| 12887 | ac_status=$? |
| 12888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12889 | (exit $ac_status); }; } && |
| 12890 | { ac_try='test -s conftest$ac_exeext' |
| 12891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12892 | (eval $ac_try) 2>&5 |
| 12893 | ac_status=$? |
| 12894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12895 | (exit $ac_status); }; }; then |
| 12896 | echo "$as_me:$LINENO: result: yes; with -liconv" >&5 |
| 12897 | echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12898 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12899 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12900 | |
| 12901 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12902 | echo "$as_me: failed program was:" >&5 |
| 12903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12904 | |
| 12905 | LIBS="$save_LIBS" |
| 12906 | cat >conftest.$ac_ext <<_ACEOF |
| 12907 | /* confdefs.h. */ |
| 12908 | _ACEOF |
| 12909 | cat confdefs.h >>conftest.$ac_ext |
| 12910 | cat >>conftest.$ac_ext <<_ACEOF |
| 12911 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12912 | |
| 12913 | #ifdef HAVE_ICONV_H |
| 12914 | # include <iconv.h> |
| 12915 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12916 | |
| 12917 | int |
| 12918 | main () |
| 12919 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12920 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12921 | ; |
| 12922 | return 0; |
| 12923 | } |
| 12924 | _ACEOF |
| 12925 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12927 | (eval $ac_link) 2>conftest.er1 |
| 12928 | ac_status=$? |
| 12929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12930 | rm -f conftest.er1 |
| 12931 | cat conftest.err >&5 |
| 12932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12933 | (exit $ac_status); } && |
| 12934 | { ac_try='test -z "$ac_c_werror_flag" |
| 12935 | || test ! -s conftest.err' |
| 12936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12937 | (eval $ac_try) 2>&5 |
| 12938 | ac_status=$? |
| 12939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12940 | (exit $ac_status); }; } && |
| 12941 | { ac_try='test -s conftest$ac_exeext' |
| 12942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12943 | (eval $ac_try) 2>&5 |
| 12944 | ac_status=$? |
| 12945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12946 | (exit $ac_status); }; }; then |
| 12947 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12948 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12949 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12950 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12951 | |
| 12952 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12953 | echo "$as_me: failed program was:" >&5 |
| 12954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12955 | |
| 12956 | echo "$as_me:$LINENO: result: no" >&5 |
| 12957 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12958 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12959 | rm -f conftest.err conftest.$ac_objext \ |
| 12960 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12961 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12962 | rm -f conftest.err conftest.$ac_objext \ |
| 12963 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12964 | |
| 12965 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12966 | echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
| 12967 | echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6 |
| 12968 | cat >conftest.$ac_ext <<_ACEOF |
| 12969 | /* confdefs.h. */ |
| 12970 | _ACEOF |
| 12971 | cat confdefs.h >>conftest.$ac_ext |
| 12972 | cat >>conftest.$ac_ext <<_ACEOF |
| 12973 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12974 | |
| 12975 | #ifdef HAVE_LANGINFO_H |
| 12976 | # include <langinfo.h> |
| 12977 | #endif |
| 12978 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12979 | int |
| 12980 | main () |
| 12981 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12982 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12983 | ; |
| 12984 | return 0; |
| 12985 | } |
| 12986 | _ACEOF |
| 12987 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12989 | (eval $ac_link) 2>conftest.er1 |
| 12990 | ac_status=$? |
| 12991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12992 | rm -f conftest.er1 |
| 12993 | cat conftest.err >&5 |
| 12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12995 | (exit $ac_status); } && |
| 12996 | { ac_try='test -z "$ac_c_werror_flag" |
| 12997 | || test ! -s conftest.err' |
| 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); }; } && |
| 13003 | { ac_try='test -s conftest$ac_exeext' |
| 13004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13005 | (eval $ac_try) 2>&5 |
| 13006 | ac_status=$? |
| 13007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13008 | (exit $ac_status); }; }; then |
| 13009 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13010 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13011 | #define HAVE_NL_LANGINFO_CODESET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13012 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13013 | |
| 13014 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13015 | echo "$as_me: failed program was:" >&5 |
| 13016 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13017 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13018 | echo "$as_me:$LINENO: result: no" >&5 |
| 13019 | echo "${ECHO_T}no" >&6 |
| 13020 | fi |
| 13021 | rm -f conftest.err conftest.$ac_objext \ |
| 13022 | conftest$ac_exeext conftest.$ac_ext |
| 13023 | |
| 13024 | echo "$as_me:$LINENO: checking --disable-acl argument" >&5 |
| 13025 | echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13026 | # Check whether --enable-acl or --disable-acl was given. |
| 13027 | if test "${enable_acl+set}" = set; then |
| 13028 | enableval="$enable_acl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13029 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13030 | else |
| 13031 | enable_acl="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13032 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13033 | if test "$enable_acl" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13034 | echo "$as_me:$LINENO: result: no" >&5 |
| 13035 | echo "${ECHO_T}no" >&6 |
| 13036 | echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
| 13037 | echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6 |
| 13038 | if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
| 13039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13040 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13041 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13042 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13043 | cat >conftest.$ac_ext <<_ACEOF |
| 13044 | /* confdefs.h. */ |
| 13045 | _ACEOF |
| 13046 | cat confdefs.h >>conftest.$ac_ext |
| 13047 | cat >>conftest.$ac_ext <<_ACEOF |
| 13048 | /* end confdefs.h. */ |
| 13049 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13050 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13051 | #ifdef __cplusplus |
| 13052 | extern "C" |
| 13053 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13054 | /* 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] | 13055 | builtin and then its argument prototype would still apply. */ |
| 13056 | char acl_get_file (); |
| 13057 | int |
| 13058 | main () |
| 13059 | { |
| 13060 | acl_get_file (); |
| 13061 | ; |
| 13062 | return 0; |
| 13063 | } |
| 13064 | _ACEOF |
| 13065 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13067 | (eval $ac_link) 2>conftest.er1 |
| 13068 | ac_status=$? |
| 13069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13070 | rm -f conftest.er1 |
| 13071 | cat conftest.err >&5 |
| 13072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13073 | (exit $ac_status); } && |
| 13074 | { ac_try='test -z "$ac_c_werror_flag" |
| 13075 | || test ! -s conftest.err' |
| 13076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13077 | (eval $ac_try) 2>&5 |
| 13078 | ac_status=$? |
| 13079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13080 | (exit $ac_status); }; } && |
| 13081 | { ac_try='test -s conftest$ac_exeext' |
| 13082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13083 | (eval $ac_try) 2>&5 |
| 13084 | ac_status=$? |
| 13085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13086 | (exit $ac_status); }; }; then |
| 13087 | ac_cv_lib_posix1e_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13088 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13089 | echo "$as_me: failed program was:" >&5 |
| 13090 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13091 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13092 | ac_cv_lib_posix1e_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13093 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13094 | rm -f conftest.err conftest.$ac_objext \ |
| 13095 | conftest$ac_exeext conftest.$ac_ext |
| 13096 | LIBS=$ac_check_lib_save_LIBS |
| 13097 | fi |
| 13098 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 13099 | echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6 |
| 13100 | if test $ac_cv_lib_posix1e_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13101 | LIBS="$LIBS -lposix1e" |
| 13102 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13103 | echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
| 13104 | echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6 |
| 13105 | if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
| 13106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13107 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13108 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13109 | LIBS="-lacl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13110 | cat >conftest.$ac_ext <<_ACEOF |
| 13111 | /* confdefs.h. */ |
| 13112 | _ACEOF |
| 13113 | cat confdefs.h >>conftest.$ac_ext |
| 13114 | cat >>conftest.$ac_ext <<_ACEOF |
| 13115 | /* end confdefs.h. */ |
| 13116 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13117 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13118 | #ifdef __cplusplus |
| 13119 | extern "C" |
| 13120 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13121 | /* 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] | 13122 | builtin and then its argument prototype would still apply. */ |
| 13123 | char acl_get_file (); |
| 13124 | int |
| 13125 | main () |
| 13126 | { |
| 13127 | acl_get_file (); |
| 13128 | ; |
| 13129 | return 0; |
| 13130 | } |
| 13131 | _ACEOF |
| 13132 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13134 | (eval $ac_link) 2>conftest.er1 |
| 13135 | ac_status=$? |
| 13136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13137 | rm -f conftest.er1 |
| 13138 | cat conftest.err >&5 |
| 13139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13140 | (exit $ac_status); } && |
| 13141 | { ac_try='test -z "$ac_c_werror_flag" |
| 13142 | || test ! -s conftest.err' |
| 13143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13144 | (eval $ac_try) 2>&5 |
| 13145 | ac_status=$? |
| 13146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13147 | (exit $ac_status); }; } && |
| 13148 | { ac_try='test -s conftest$ac_exeext' |
| 13149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13150 | (eval $ac_try) 2>&5 |
| 13151 | ac_status=$? |
| 13152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13153 | (exit $ac_status); }; }; then |
| 13154 | ac_cv_lib_acl_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13155 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13156 | echo "$as_me: failed program was:" >&5 |
| 13157 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13158 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13159 | ac_cv_lib_acl_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13160 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13161 | rm -f conftest.err conftest.$ac_objext \ |
| 13162 | conftest$ac_exeext conftest.$ac_ext |
| 13163 | LIBS=$ac_check_lib_save_LIBS |
| 13164 | fi |
| 13165 | echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 13166 | echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6 |
| 13167 | if test $ac_cv_lib_acl_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13168 | LIBS="$LIBS -lacl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13169 | echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
| 13170 | echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6 |
| 13171 | if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
| 13172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13173 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13174 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13175 | LIBS="-lattr $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13176 | cat >conftest.$ac_ext <<_ACEOF |
| 13177 | /* confdefs.h. */ |
| 13178 | _ACEOF |
| 13179 | cat confdefs.h >>conftest.$ac_ext |
| 13180 | cat >>conftest.$ac_ext <<_ACEOF |
| 13181 | /* end confdefs.h. */ |
| 13182 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13183 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13184 | #ifdef __cplusplus |
| 13185 | extern "C" |
| 13186 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13187 | /* 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] | 13188 | builtin and then its argument prototype would still apply. */ |
| 13189 | char fgetxattr (); |
| 13190 | int |
| 13191 | main () |
| 13192 | { |
| 13193 | fgetxattr (); |
| 13194 | ; |
| 13195 | return 0; |
| 13196 | } |
| 13197 | _ACEOF |
| 13198 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13200 | (eval $ac_link) 2>conftest.er1 |
| 13201 | ac_status=$? |
| 13202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13203 | rm -f conftest.er1 |
| 13204 | cat conftest.err >&5 |
| 13205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13206 | (exit $ac_status); } && |
| 13207 | { ac_try='test -z "$ac_c_werror_flag" |
| 13208 | || test ! -s conftest.err' |
| 13209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13210 | (eval $ac_try) 2>&5 |
| 13211 | ac_status=$? |
| 13212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13213 | (exit $ac_status); }; } && |
| 13214 | { ac_try='test -s conftest$ac_exeext' |
| 13215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13216 | (eval $ac_try) 2>&5 |
| 13217 | ac_status=$? |
| 13218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13219 | (exit $ac_status); }; }; then |
| 13220 | ac_cv_lib_attr_fgetxattr=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13221 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13222 | echo "$as_me: failed program was:" >&5 |
| 13223 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13224 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13225 | ac_cv_lib_attr_fgetxattr=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13226 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13227 | rm -f conftest.err conftest.$ac_objext \ |
| 13228 | conftest$ac_exeext conftest.$ac_ext |
| 13229 | LIBS=$ac_check_lib_save_LIBS |
| 13230 | fi |
| 13231 | echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 13232 | echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6 |
| 13233 | if test $ac_cv_lib_attr_fgetxattr = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13234 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13235 | fi |
| 13236 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13237 | fi |
| 13238 | |
| 13239 | fi |
| 13240 | |
| 13241 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13242 | echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
| 13243 | echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6 |
| 13244 | cat >conftest.$ac_ext <<_ACEOF |
| 13245 | /* confdefs.h. */ |
| 13246 | _ACEOF |
| 13247 | cat confdefs.h >>conftest.$ac_ext |
| 13248 | cat >>conftest.$ac_ext <<_ACEOF |
| 13249 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13250 | |
| 13251 | #include <sys/types.h> |
| 13252 | #ifdef HAVE_SYS_ACL_H |
| 13253 | # include <sys/acl.h> |
| 13254 | #endif |
| 13255 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13256 | int |
| 13257 | main () |
| 13258 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13259 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 13260 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 13261 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13262 | ; |
| 13263 | return 0; |
| 13264 | } |
| 13265 | _ACEOF |
| 13266 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13268 | (eval $ac_link) 2>conftest.er1 |
| 13269 | ac_status=$? |
| 13270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13271 | rm -f conftest.er1 |
| 13272 | cat conftest.err >&5 |
| 13273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13274 | (exit $ac_status); } && |
| 13275 | { ac_try='test -z "$ac_c_werror_flag" |
| 13276 | || test ! -s conftest.err' |
| 13277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13278 | (eval $ac_try) 2>&5 |
| 13279 | ac_status=$? |
| 13280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13281 | (exit $ac_status); }; } && |
| 13282 | { ac_try='test -s conftest$ac_exeext' |
| 13283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13284 | (eval $ac_try) 2>&5 |
| 13285 | ac_status=$? |
| 13286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13287 | (exit $ac_status); }; }; then |
| 13288 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13289 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13290 | #define HAVE_POSIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13291 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13292 | |
| 13293 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13294 | echo "$as_me: failed program was:" >&5 |
| 13295 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13296 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13297 | echo "$as_me:$LINENO: result: no" >&5 |
| 13298 | echo "${ECHO_T}no" >&6 |
| 13299 | fi |
| 13300 | rm -f conftest.err conftest.$ac_objext \ |
| 13301 | conftest$ac_exeext conftest.$ac_ext |
| 13302 | |
| 13303 | echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
| 13304 | echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6 |
| 13305 | cat >conftest.$ac_ext <<_ACEOF |
| 13306 | /* confdefs.h. */ |
| 13307 | _ACEOF |
| 13308 | cat confdefs.h >>conftest.$ac_ext |
| 13309 | cat >>conftest.$ac_ext <<_ACEOF |
| 13310 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13311 | |
| 13312 | #ifdef HAVE_SYS_ACL_H |
| 13313 | # include <sys/acl.h> |
| 13314 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13315 | int |
| 13316 | main () |
| 13317 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13318 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13319 | |
| 13320 | ; |
| 13321 | return 0; |
| 13322 | } |
| 13323 | _ACEOF |
| 13324 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13326 | (eval $ac_link) 2>conftest.er1 |
| 13327 | ac_status=$? |
| 13328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13329 | rm -f conftest.er1 |
| 13330 | cat conftest.err >&5 |
| 13331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13332 | (exit $ac_status); } && |
| 13333 | { ac_try='test -z "$ac_c_werror_flag" |
| 13334 | || test ! -s conftest.err' |
| 13335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13336 | (eval $ac_try) 2>&5 |
| 13337 | ac_status=$? |
| 13338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13339 | (exit $ac_status); }; } && |
| 13340 | { ac_try='test -s conftest$ac_exeext' |
| 13341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13342 | (eval $ac_try) 2>&5 |
| 13343 | ac_status=$? |
| 13344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13345 | (exit $ac_status); }; }; then |
| 13346 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13347 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13348 | #define HAVE_SOLARIS_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13349 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13350 | |
| 13351 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13352 | echo "$as_me: failed program was:" >&5 |
| 13353 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13354 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13355 | echo "$as_me:$LINENO: result: no" >&5 |
| 13356 | echo "${ECHO_T}no" >&6 |
| 13357 | fi |
| 13358 | rm -f conftest.err conftest.$ac_objext \ |
| 13359 | conftest$ac_exeext conftest.$ac_ext |
| 13360 | |
| 13361 | echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
| 13362 | echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6 |
| 13363 | cat >conftest.$ac_ext <<_ACEOF |
| 13364 | /* confdefs.h. */ |
| 13365 | _ACEOF |
| 13366 | cat confdefs.h >>conftest.$ac_ext |
| 13367 | cat >>conftest.$ac_ext <<_ACEOF |
| 13368 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13369 | |
| 13370 | #ifdef HAVE_SYS_ACL_H |
| 13371 | # include <sys/acl.h> |
| 13372 | #endif |
| 13373 | #ifdef HAVE_SYS_ACCESS_H |
| 13374 | # include <sys/access.h> |
| 13375 | #endif |
| 13376 | #define _ALL_SOURCE |
| 13377 | |
| 13378 | #include <sys/stat.h> |
| 13379 | |
| 13380 | int aclsize; |
| 13381 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13382 | int |
| 13383 | main () |
| 13384 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13385 | aclsize = sizeof(struct acl); |
| 13386 | aclent = (void *)malloc(aclsize); |
| 13387 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13388 | |
| 13389 | ; |
| 13390 | return 0; |
| 13391 | } |
| 13392 | _ACEOF |
| 13393 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13395 | (eval $ac_link) 2>conftest.er1 |
| 13396 | ac_status=$? |
| 13397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13398 | rm -f conftest.er1 |
| 13399 | cat conftest.err >&5 |
| 13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13401 | (exit $ac_status); } && |
| 13402 | { ac_try='test -z "$ac_c_werror_flag" |
| 13403 | || test ! -s conftest.err' |
| 13404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13405 | (eval $ac_try) 2>&5 |
| 13406 | ac_status=$? |
| 13407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13408 | (exit $ac_status); }; } && |
| 13409 | { ac_try='test -s conftest$ac_exeext' |
| 13410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13411 | (eval $ac_try) 2>&5 |
| 13412 | ac_status=$? |
| 13413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13414 | (exit $ac_status); }; }; then |
| 13415 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13416 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13417 | #define HAVE_AIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13418 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13419 | |
| 13420 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13421 | echo "$as_me: failed program was:" >&5 |
| 13422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13423 | |
| 13424 | echo "$as_me:$LINENO: result: no" >&5 |
| 13425 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13426 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13427 | rm -f conftest.err conftest.$ac_objext \ |
| 13428 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13429 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13430 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13431 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13432 | fi |
| 13433 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13434 | echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 |
| 13435 | echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13436 | # Check whether --enable-gpm or --disable-gpm was given. |
| 13437 | if test "${enable_gpm+set}" = set; then |
| 13438 | enableval="$enable_gpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13439 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13440 | else |
| 13441 | enable_gpm="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13442 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13443 | |
| 13444 | if test "$enable_gpm" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13445 | echo "$as_me:$LINENO: result: no" >&5 |
| 13446 | echo "${ECHO_T}no" >&6 |
| 13447 | echo "$as_me:$LINENO: checking for gpm" >&5 |
| 13448 | echo $ECHO_N "checking for gpm... $ECHO_C" >&6 |
| 13449 | if test "${vi_cv_have_gpm+set}" = set; then |
| 13450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13451 | else |
| 13452 | olibs="$LIBS" ; LIBS="-lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13453 | cat >conftest.$ac_ext <<_ACEOF |
| 13454 | /* confdefs.h. */ |
| 13455 | _ACEOF |
| 13456 | cat confdefs.h >>conftest.$ac_ext |
| 13457 | cat >>conftest.$ac_ext <<_ACEOF |
| 13458 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13459 | #include <gpm.h> |
| 13460 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13461 | int |
| 13462 | main () |
| 13463 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13464 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13465 | ; |
| 13466 | return 0; |
| 13467 | } |
| 13468 | _ACEOF |
| 13469 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13471 | (eval $ac_link) 2>conftest.er1 |
| 13472 | ac_status=$? |
| 13473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13474 | rm -f conftest.er1 |
| 13475 | cat conftest.err >&5 |
| 13476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13477 | (exit $ac_status); } && |
| 13478 | { ac_try='test -z "$ac_c_werror_flag" |
| 13479 | || test ! -s conftest.err' |
| 13480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13481 | (eval $ac_try) 2>&5 |
| 13482 | ac_status=$? |
| 13483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13484 | (exit $ac_status); }; } && |
| 13485 | { ac_try='test -s conftest$ac_exeext' |
| 13486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13487 | (eval $ac_try) 2>&5 |
| 13488 | ac_status=$? |
| 13489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13490 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13491 | vi_cv_have_gpm=yes |
| 13492 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13493 | echo "$as_me: failed program was:" >&5 |
| 13494 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13495 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13496 | vi_cv_have_gpm=no |
| 13497 | fi |
| 13498 | rm -f conftest.err conftest.$ac_objext \ |
| 13499 | conftest$ac_exeext conftest.$ac_ext |
| 13500 | LIBS="$olibs" |
| 13501 | |
| 13502 | fi |
| 13503 | echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
| 13504 | echo "${ECHO_T}$vi_cv_have_gpm" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13505 | if test $vi_cv_have_gpm = yes; then |
| 13506 | LIBS="$LIBS -lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13507 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13508 | #define HAVE_GPM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13509 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13510 | |
| 13511 | fi |
| 13512 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13513 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13514 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13515 | fi |
| 13516 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13517 | echo "$as_me:$LINENO: checking for rename" >&5 |
| 13518 | echo $ECHO_N "checking for rename... $ECHO_C" >&6 |
| 13519 | cat >conftest.$ac_ext <<_ACEOF |
| 13520 | /* confdefs.h. */ |
| 13521 | _ACEOF |
| 13522 | cat confdefs.h >>conftest.$ac_ext |
| 13523 | cat >>conftest.$ac_ext <<_ACEOF |
| 13524 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13525 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13526 | int |
| 13527 | main () |
| 13528 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13529 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13530 | ; |
| 13531 | return 0; |
| 13532 | } |
| 13533 | _ACEOF |
| 13534 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13536 | (eval $ac_link) 2>conftest.er1 |
| 13537 | ac_status=$? |
| 13538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13539 | rm -f conftest.er1 |
| 13540 | cat conftest.err >&5 |
| 13541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13542 | (exit $ac_status); } && |
| 13543 | { ac_try='test -z "$ac_c_werror_flag" |
| 13544 | || test ! -s conftest.err' |
| 13545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13546 | (eval $ac_try) 2>&5 |
| 13547 | ac_status=$? |
| 13548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13549 | (exit $ac_status); }; } && |
| 13550 | { ac_try='test -s conftest$ac_exeext' |
| 13551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13552 | (eval $ac_try) 2>&5 |
| 13553 | ac_status=$? |
| 13554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13555 | (exit $ac_status); }; }; then |
| 13556 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13557 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13558 | #define HAVE_RENAME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13559 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13560 | |
| 13561 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13562 | echo "$as_me: failed program was:" >&5 |
| 13563 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13564 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13565 | echo "$as_me:$LINENO: result: no" >&5 |
| 13566 | echo "${ECHO_T}no" >&6 |
| 13567 | fi |
| 13568 | rm -f conftest.err conftest.$ac_objext \ |
| 13569 | conftest$ac_exeext conftest.$ac_ext |
| 13570 | |
| 13571 | echo "$as_me:$LINENO: checking for sysctl" >&5 |
| 13572 | echo $ECHO_N "checking for sysctl... $ECHO_C" >&6 |
| 13573 | cat >conftest.$ac_ext <<_ACEOF |
| 13574 | /* confdefs.h. */ |
| 13575 | _ACEOF |
| 13576 | cat confdefs.h >>conftest.$ac_ext |
| 13577 | cat >>conftest.$ac_ext <<_ACEOF |
| 13578 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13579 | #include <sys/types.h> |
| 13580 | #include <sys/sysctl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13581 | int |
| 13582 | main () |
| 13583 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13584 | int mib[2], r; |
| 13585 | size_t len; |
| 13586 | |
| 13587 | mib[0] = CTL_HW; |
| 13588 | mib[1] = HW_USERMEM; |
| 13589 | len = sizeof(r); |
| 13590 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13591 | |
| 13592 | ; |
| 13593 | return 0; |
| 13594 | } |
| 13595 | _ACEOF |
| 13596 | rm -f conftest.$ac_objext |
| 13597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13598 | (eval $ac_compile) 2>conftest.er1 |
| 13599 | ac_status=$? |
| 13600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13601 | rm -f conftest.er1 |
| 13602 | cat conftest.err >&5 |
| 13603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13604 | (exit $ac_status); } && |
| 13605 | { ac_try='test -z "$ac_c_werror_flag" |
| 13606 | || test ! -s conftest.err' |
| 13607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13608 | (eval $ac_try) 2>&5 |
| 13609 | ac_status=$? |
| 13610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13611 | (exit $ac_status); }; } && |
| 13612 | { ac_try='test -s conftest.$ac_objext' |
| 13613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13614 | (eval $ac_try) 2>&5 |
| 13615 | ac_status=$? |
| 13616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13617 | (exit $ac_status); }; }; then |
| 13618 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13619 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13620 | #define HAVE_SYSCTL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13621 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13622 | |
| 13623 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13624 | echo "$as_me: failed program was:" >&5 |
| 13625 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13626 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13627 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13628 | echo "${ECHO_T}not usable" >&6 |
| 13629 | fi |
| 13630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13631 | |
| 13632 | echo "$as_me:$LINENO: checking for sysinfo" >&5 |
| 13633 | echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6 |
| 13634 | cat >conftest.$ac_ext <<_ACEOF |
| 13635 | /* confdefs.h. */ |
| 13636 | _ACEOF |
| 13637 | cat confdefs.h >>conftest.$ac_ext |
| 13638 | cat >>conftest.$ac_ext <<_ACEOF |
| 13639 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13640 | #include <sys/types.h> |
| 13641 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13642 | int |
| 13643 | main () |
| 13644 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13645 | struct sysinfo sinfo; |
| 13646 | int t; |
| 13647 | |
| 13648 | (void)sysinfo(&sinfo); |
| 13649 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13650 | |
| 13651 | ; |
| 13652 | return 0; |
| 13653 | } |
| 13654 | _ACEOF |
| 13655 | rm -f conftest.$ac_objext |
| 13656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13657 | (eval $ac_compile) 2>conftest.er1 |
| 13658 | ac_status=$? |
| 13659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13660 | rm -f conftest.er1 |
| 13661 | cat conftest.err >&5 |
| 13662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13663 | (exit $ac_status); } && |
| 13664 | { ac_try='test -z "$ac_c_werror_flag" |
| 13665 | || test ! -s conftest.err' |
| 13666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13667 | (eval $ac_try) 2>&5 |
| 13668 | ac_status=$? |
| 13669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13670 | (exit $ac_status); }; } && |
| 13671 | { ac_try='test -s conftest.$ac_objext' |
| 13672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13673 | (eval $ac_try) 2>&5 |
| 13674 | ac_status=$? |
| 13675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13676 | (exit $ac_status); }; }; then |
| 13677 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13678 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13679 | #define HAVE_SYSINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13680 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13681 | |
| 13682 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13683 | echo "$as_me: failed program was:" >&5 |
| 13684 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13685 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13686 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13687 | echo "${ECHO_T}not usable" >&6 |
| 13688 | fi |
| 13689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13690 | |
| 13691 | echo "$as_me:$LINENO: checking for sysconf" >&5 |
| 13692 | echo $ECHO_N "checking for sysconf... $ECHO_C" >&6 |
| 13693 | cat >conftest.$ac_ext <<_ACEOF |
| 13694 | /* confdefs.h. */ |
| 13695 | _ACEOF |
| 13696 | cat confdefs.h >>conftest.$ac_ext |
| 13697 | cat >>conftest.$ac_ext <<_ACEOF |
| 13698 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13699 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13700 | int |
| 13701 | main () |
| 13702 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13703 | (void)sysconf(_SC_PAGESIZE); |
| 13704 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13705 | |
| 13706 | ; |
| 13707 | return 0; |
| 13708 | } |
| 13709 | _ACEOF |
| 13710 | rm -f conftest.$ac_objext |
| 13711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13712 | (eval $ac_compile) 2>conftest.er1 |
| 13713 | ac_status=$? |
| 13714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13715 | rm -f conftest.er1 |
| 13716 | cat conftest.err >&5 |
| 13717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13718 | (exit $ac_status); } && |
| 13719 | { ac_try='test -z "$ac_c_werror_flag" |
| 13720 | || test ! -s conftest.err' |
| 13721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13722 | (eval $ac_try) 2>&5 |
| 13723 | ac_status=$? |
| 13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13725 | (exit $ac_status); }; } && |
| 13726 | { ac_try='test -s conftest.$ac_objext' |
| 13727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13728 | (eval $ac_try) 2>&5 |
| 13729 | ac_status=$? |
| 13730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13731 | (exit $ac_status); }; }; then |
| 13732 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13733 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13734 | #define HAVE_SYSCONF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13735 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13736 | |
| 13737 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13738 | echo "$as_me: failed program was:" >&5 |
| 13739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13740 | |
| 13741 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13742 | echo "${ECHO_T}not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13743 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13745 | |
| 13746 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13747 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 13748 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 13749 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 13750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13751 | else |
| 13752 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13753 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13754 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13755 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13756 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13757 | cat >conftest.$ac_ext <<_ACEOF |
| 13758 | /* confdefs.h. */ |
| 13759 | _ACEOF |
| 13760 | cat confdefs.h >>conftest.$ac_ext |
| 13761 | cat >>conftest.$ac_ext <<_ACEOF |
| 13762 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13763 | #include <stdio.h> |
| 13764 | main() |
| 13765 | { |
| 13766 | FILE *f=fopen("conftestval", "w"); |
| 13767 | if (!f) exit(1); |
| 13768 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 13769 | exit(0); |
| 13770 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13771 | _ACEOF |
| 13772 | rm -f conftest$ac_exeext |
| 13773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13774 | (eval $ac_link) 2>&5 |
| 13775 | ac_status=$? |
| 13776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13777 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13779 | (eval $ac_try) 2>&5 |
| 13780 | ac_status=$? |
| 13781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13782 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13783 | ac_cv_sizeof_int=`cat conftestval` |
| 13784 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13785 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13786 | echo "$as_me: failed program was:" >&5 |
| 13787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13788 | |
| 13789 | ( exit $ac_status ) |
| 13790 | ac_cv_sizeof_int=0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13791 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13792 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13793 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13794 | fi |
| 13795 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13796 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13797 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 13798 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13799 | #define SIZEOF_INT $ac_cv_sizeof_int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13800 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13801 | |
| 13802 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13803 | echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5 |
| 13804 | 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] | 13805 | bcopy_test_prog=' |
| 13806 | main() { |
| 13807 | char buf[10]; |
| 13808 | strcpy(buf, "abcdefghi"); |
| 13809 | mch_memmove(buf, buf + 2, 3); |
| 13810 | if (strncmp(buf, "ababcf", 6)) |
| 13811 | exit(1); |
| 13812 | strcpy(buf, "abcdefghi"); |
| 13813 | mch_memmove(buf + 2, buf, 3); |
| 13814 | if (strncmp(buf, "cdedef", 6)) |
| 13815 | exit(1); |
| 13816 | exit(0); /* libc version works properly. */ |
| 13817 | }' |
| 13818 | |
| 13819 | |
| 13820 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13821 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13822 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13823 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13824 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13825 | cat >conftest.$ac_ext <<_ACEOF |
| 13826 | /* confdefs.h. */ |
| 13827 | _ACEOF |
| 13828 | cat confdefs.h >>conftest.$ac_ext |
| 13829 | cat >>conftest.$ac_ext <<_ACEOF |
| 13830 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13831 | #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] | 13832 | _ACEOF |
| 13833 | rm -f conftest$ac_exeext |
| 13834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13835 | (eval $ac_link) 2>&5 |
| 13836 | ac_status=$? |
| 13837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13838 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13840 | (eval $ac_try) 2>&5 |
| 13841 | ac_status=$? |
| 13842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13843 | (exit $ac_status); }; }; then |
| 13844 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13845 | #define USEMEMMOVE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13846 | _ACEOF |
| 13847 | echo "$as_me:$LINENO: result: memmove does" >&5 |
| 13848 | echo "${ECHO_T}memmove does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13849 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13850 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13851 | echo "$as_me: failed program was:" >&5 |
| 13852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13853 | |
| 13854 | ( exit $ac_status ) |
| 13855 | if test "$cross_compiling" = yes; then |
| 13856 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13857 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13858 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13859 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13860 | cat >conftest.$ac_ext <<_ACEOF |
| 13861 | /* confdefs.h. */ |
| 13862 | _ACEOF |
| 13863 | cat confdefs.h >>conftest.$ac_ext |
| 13864 | cat >>conftest.$ac_ext <<_ACEOF |
| 13865 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13866 | #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] | 13867 | _ACEOF |
| 13868 | rm -f conftest$ac_exeext |
| 13869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13870 | (eval $ac_link) 2>&5 |
| 13871 | ac_status=$? |
| 13872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13873 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13875 | (eval $ac_try) 2>&5 |
| 13876 | ac_status=$? |
| 13877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13878 | (exit $ac_status); }; }; then |
| 13879 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13880 | #define USEBCOPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13881 | _ACEOF |
| 13882 | echo "$as_me:$LINENO: result: bcopy does" >&5 |
| 13883 | echo "${ECHO_T}bcopy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13884 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13885 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13886 | echo "$as_me: failed program was:" >&5 |
| 13887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13888 | |
| 13889 | ( exit $ac_status ) |
| 13890 | if test "$cross_compiling" = yes; then |
| 13891 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13892 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13893 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13894 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13895 | cat >conftest.$ac_ext <<_ACEOF |
| 13896 | /* confdefs.h. */ |
| 13897 | _ACEOF |
| 13898 | cat confdefs.h >>conftest.$ac_ext |
| 13899 | cat >>conftest.$ac_ext <<_ACEOF |
| 13900 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13901 | #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] | 13902 | _ACEOF |
| 13903 | rm -f conftest$ac_exeext |
| 13904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13905 | (eval $ac_link) 2>&5 |
| 13906 | ac_status=$? |
| 13907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13908 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13910 | (eval $ac_try) 2>&5 |
| 13911 | ac_status=$? |
| 13912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13913 | (exit $ac_status); }; }; then |
| 13914 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13915 | #define USEMEMCPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13916 | _ACEOF |
| 13917 | echo "$as_me:$LINENO: result: memcpy does" >&5 |
| 13918 | echo "${ECHO_T}memcpy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13919 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13920 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13921 | echo "$as_me: failed program was:" >&5 |
| 13922 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13923 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13924 | ( exit $ac_status ) |
| 13925 | echo "$as_me:$LINENO: result: no" >&5 |
| 13926 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13927 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13928 | 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] | 13929 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13930 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13931 | 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] | 13932 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13933 | fi |
| 13934 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13935 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13936 | |
| 13937 | |
| 13938 | if test "$enable_multibyte" = "yes"; then |
| 13939 | cflags_save=$CFLAGS |
| 13940 | ldflags_save=$LDFLAGS |
| 13941 | if test -n "$x_includes" ; then |
| 13942 | CFLAGS="$CFLAGS -I$x_includes" |
| 13943 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13944 | echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
| 13945 | echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6 |
| 13946 | cat >conftest.$ac_ext <<_ACEOF |
| 13947 | /* confdefs.h. */ |
| 13948 | _ACEOF |
| 13949 | cat confdefs.h >>conftest.$ac_ext |
| 13950 | cat >>conftest.$ac_ext <<_ACEOF |
| 13951 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13952 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13953 | int |
| 13954 | main () |
| 13955 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13956 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13957 | ; |
| 13958 | return 0; |
| 13959 | } |
| 13960 | _ACEOF |
| 13961 | rm -f conftest.$ac_objext |
| 13962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13963 | (eval $ac_compile) 2>conftest.er1 |
| 13964 | ac_status=$? |
| 13965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13966 | rm -f conftest.er1 |
| 13967 | cat conftest.err >&5 |
| 13968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13969 | (exit $ac_status); } && |
| 13970 | { ac_try='test -z "$ac_c_werror_flag" |
| 13971 | || test ! -s conftest.err' |
| 13972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13973 | (eval $ac_try) 2>&5 |
| 13974 | ac_status=$? |
| 13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13976 | (exit $ac_status); }; } && |
| 13977 | { ac_try='test -s conftest.$ac_objext' |
| 13978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13979 | (eval $ac_try) 2>&5 |
| 13980 | ac_status=$? |
| 13981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13982 | (exit $ac_status); }; }; then |
| 13983 | cat >conftest.$ac_ext <<_ACEOF |
| 13984 | /* confdefs.h. */ |
| 13985 | _ACEOF |
| 13986 | cat confdefs.h >>conftest.$ac_ext |
| 13987 | cat >>conftest.$ac_ext <<_ACEOF |
| 13988 | /* end confdefs.h. */ |
| 13989 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13990 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13991 | #ifdef __cplusplus |
| 13992 | extern "C" |
| 13993 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13994 | /* 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] | 13995 | builtin and then its argument prototype would still apply. */ |
| 13996 | char _Xsetlocale (); |
| 13997 | int |
| 13998 | main () |
| 13999 | { |
| 14000 | _Xsetlocale (); |
| 14001 | ; |
| 14002 | return 0; |
| 14003 | } |
| 14004 | _ACEOF |
| 14005 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14007 | (eval $ac_link) 2>conftest.er1 |
| 14008 | ac_status=$? |
| 14009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14010 | rm -f conftest.er1 |
| 14011 | cat conftest.err >&5 |
| 14012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14013 | (exit $ac_status); } && |
| 14014 | { ac_try='test -z "$ac_c_werror_flag" |
| 14015 | || test ! -s conftest.err' |
| 14016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14017 | (eval $ac_try) 2>&5 |
| 14018 | ac_status=$? |
| 14019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14020 | (exit $ac_status); }; } && |
| 14021 | { ac_try='test -s conftest$ac_exeext' |
| 14022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14023 | (eval $ac_try) 2>&5 |
| 14024 | ac_status=$? |
| 14025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14026 | (exit $ac_status); }; }; then |
| 14027 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14028 | echo "${ECHO_T}yes" >&6 |
| 14029 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14030 | #define X_LOCALE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14031 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14032 | |
| 14033 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14034 | echo "$as_me: failed program was:" >&5 |
| 14035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14036 | |
| 14037 | echo "$as_me:$LINENO: result: no" >&5 |
| 14038 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14039 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14040 | rm -f conftest.err conftest.$ac_objext \ |
| 14041 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14042 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14043 | echo "$as_me: failed program was:" >&5 |
| 14044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14045 | |
| 14046 | echo "$as_me:$LINENO: result: no" >&5 |
| 14047 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14048 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14050 | fi |
| 14051 | CFLAGS=$cflags_save |
| 14052 | LDFLAGS=$ldflags_save |
| 14053 | fi |
| 14054 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14055 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 14056 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 14057 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 14058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14059 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14060 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14061 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14062 | cat >conftest.$ac_ext <<_ACEOF |
| 14063 | /* confdefs.h. */ |
| 14064 | _ACEOF |
| 14065 | cat confdefs.h >>conftest.$ac_ext |
| 14066 | cat >>conftest.$ac_ext <<_ACEOF |
| 14067 | /* end confdefs.h. */ |
| 14068 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14069 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14070 | #ifdef __cplusplus |
| 14071 | extern "C" |
| 14072 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14073 | /* 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] | 14074 | builtin and then its argument prototype would still apply. */ |
| 14075 | char _xpg4_setrunelocale (); |
| 14076 | int |
| 14077 | main () |
| 14078 | { |
| 14079 | _xpg4_setrunelocale (); |
| 14080 | ; |
| 14081 | return 0; |
| 14082 | } |
| 14083 | _ACEOF |
| 14084 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14086 | (eval $ac_link) 2>conftest.er1 |
| 14087 | ac_status=$? |
| 14088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14089 | rm -f conftest.er1 |
| 14090 | cat conftest.err >&5 |
| 14091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14092 | (exit $ac_status); } && |
| 14093 | { ac_try='test -z "$ac_c_werror_flag" |
| 14094 | || test ! -s conftest.err' |
| 14095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14096 | (eval $ac_try) 2>&5 |
| 14097 | ac_status=$? |
| 14098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14099 | (exit $ac_status); }; } && |
| 14100 | { ac_try='test -s conftest$ac_exeext' |
| 14101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14102 | (eval $ac_try) 2>&5 |
| 14103 | ac_status=$? |
| 14104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14105 | (exit $ac_status); }; }; then |
| 14106 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14107 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14108 | echo "$as_me: failed program was:" >&5 |
| 14109 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14110 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14111 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14112 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14113 | rm -f conftest.err conftest.$ac_objext \ |
| 14114 | conftest$ac_exeext conftest.$ac_ext |
| 14115 | LIBS=$ac_check_lib_save_LIBS |
| 14116 | fi |
| 14117 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 14118 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 14119 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14120 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14121 | fi |
| 14122 | |
| 14123 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14124 | echo "$as_me:$LINENO: checking how to create tags" >&5 |
| 14125 | echo $ECHO_N "checking how to create tags... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14126 | test -f tags && mv tags tags.save |
| 14127 | if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 14128 | TAGPRG="ctags -I INIT+ --fields=+S" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14129 | else |
| 14130 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 14131 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 14132 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 14133 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 14134 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 14135 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 14136 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 14137 | fi |
| 14138 | test -f tags.save && mv tags.save tags |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14139 | echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
| 14140 | echo "${ECHO_T}$TAGPRG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14141 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14142 | echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
| 14143 | 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] | 14144 | MANDEF="man" |
| 14145 | (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] | 14146 | echo "$as_me:$LINENO: result: $MANDEF" >&5 |
| 14147 | echo "${ECHO_T}$MANDEF" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14148 | if test "$MANDEF" = "man -s"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14149 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14150 | #define USEMAN_S 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14151 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14152 | |
| 14153 | fi |
| 14154 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14155 | echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
| 14156 | echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14157 | # Check whether --enable-nls or --disable-nls was given. |
| 14158 | if test "${enable_nls+set}" = set; then |
| 14159 | enableval="$enable_nls" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14160 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14161 | else |
| 14162 | enable_nls="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14163 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14164 | |
| 14165 | if test "$enable_nls" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14166 | echo "$as_me:$LINENO: result: no" >&5 |
| 14167 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 14168 | |
| 14169 | INSTALL_LANGS=install-languages |
| 14170 | |
| 14171 | INSTALL_TOOL_LANGS=install-tool-languages |
| 14172 | |
| 14173 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14174 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 14175 | set dummy msgfmt; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14176 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14177 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14178 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
| 14179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14180 | else |
| 14181 | if test -n "$MSGFMT"; then |
| 14182 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 14183 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14185 | for as_dir in $PATH |
| 14186 | do |
| 14187 | IFS=$as_save_IFS |
| 14188 | test -z "$as_dir" && as_dir=. |
| 14189 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14190 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14191 | ac_cv_prog_MSGFMT="msgfmt" |
| 14192 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14193 | break 2 |
| 14194 | fi |
| 14195 | done |
| 14196 | done |
| 14197 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14198 | fi |
| 14199 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14200 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14201 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14202 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 14203 | echo "${ECHO_T}$MSGFMT" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14204 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14205 | echo "$as_me:$LINENO: result: no" >&5 |
| 14206 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14207 | fi |
| 14208 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14209 | echo "$as_me:$LINENO: checking for NLS" >&5 |
| 14210 | echo $ECHO_N "checking for NLS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14211 | if test -f po/Makefile; then |
| 14212 | have_gettext="no" |
| 14213 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14214 | cat >conftest.$ac_ext <<_ACEOF |
| 14215 | /* confdefs.h. */ |
| 14216 | _ACEOF |
| 14217 | cat confdefs.h >>conftest.$ac_ext |
| 14218 | cat >>conftest.$ac_ext <<_ACEOF |
| 14219 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14220 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14221 | int |
| 14222 | main () |
| 14223 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14224 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14225 | ; |
| 14226 | return 0; |
| 14227 | } |
| 14228 | _ACEOF |
| 14229 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14231 | (eval $ac_link) 2>conftest.er1 |
| 14232 | ac_status=$? |
| 14233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14234 | rm -f conftest.er1 |
| 14235 | cat conftest.err >&5 |
| 14236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14237 | (exit $ac_status); } && |
| 14238 | { ac_try='test -z "$ac_c_werror_flag" |
| 14239 | || test ! -s conftest.err' |
| 14240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14241 | (eval $ac_try) 2>&5 |
| 14242 | ac_status=$? |
| 14243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14244 | (exit $ac_status); }; } && |
| 14245 | { ac_try='test -s conftest$ac_exeext' |
| 14246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14247 | (eval $ac_try) 2>&5 |
| 14248 | ac_status=$? |
| 14249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14250 | (exit $ac_status); }; }; then |
| 14251 | echo "$as_me:$LINENO: result: gettext() works" >&5 |
| 14252 | echo "${ECHO_T}gettext() works" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14253 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14254 | echo "$as_me: failed program was:" >&5 |
| 14255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14256 | |
| 14257 | olibs=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14258 | LIBS="$LIBS -lintl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14259 | cat >conftest.$ac_ext <<_ACEOF |
| 14260 | /* confdefs.h. */ |
| 14261 | _ACEOF |
| 14262 | cat confdefs.h >>conftest.$ac_ext |
| 14263 | cat >>conftest.$ac_ext <<_ACEOF |
| 14264 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14265 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14266 | int |
| 14267 | main () |
| 14268 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14269 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14270 | ; |
| 14271 | return 0; |
| 14272 | } |
| 14273 | _ACEOF |
| 14274 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14276 | (eval $ac_link) 2>conftest.er1 |
| 14277 | ac_status=$? |
| 14278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14279 | rm -f conftest.er1 |
| 14280 | cat conftest.err >&5 |
| 14281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14282 | (exit $ac_status); } && |
| 14283 | { ac_try='test -z "$ac_c_werror_flag" |
| 14284 | || test ! -s conftest.err' |
| 14285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14286 | (eval $ac_try) 2>&5 |
| 14287 | ac_status=$? |
| 14288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14289 | (exit $ac_status); }; } && |
| 14290 | { ac_try='test -s conftest$ac_exeext' |
| 14291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14292 | (eval $ac_try) 2>&5 |
| 14293 | ac_status=$? |
| 14294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14295 | (exit $ac_status); }; }; then |
| 14296 | echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 |
| 14297 | echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14298 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14299 | echo "$as_me: failed program was:" >&5 |
| 14300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14301 | |
| 14302 | echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 |
| 14303 | echo "${ECHO_T}gettext() doesn't work" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14304 | LIBS=$olibs |
| 14305 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14306 | rm -f conftest.err conftest.$ac_objext \ |
| 14307 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14308 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14309 | rm -f conftest.err conftest.$ac_objext \ |
| 14310 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14311 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14312 | echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
| 14313 | echo "${ECHO_T}msgfmt not found - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14314 | fi |
| 14315 | if test $have_gettext = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14316 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14317 | #define HAVE_GETTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14318 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14319 | |
| 14320 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14321 | |
| 14322 | |
| 14323 | for ac_func in bind_textdomain_codeset |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14324 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14325 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14326 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14327 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14328 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14330 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14331 | cat >conftest.$ac_ext <<_ACEOF |
| 14332 | /* confdefs.h. */ |
| 14333 | _ACEOF |
| 14334 | cat confdefs.h >>conftest.$ac_ext |
| 14335 | cat >>conftest.$ac_ext <<_ACEOF |
| 14336 | /* end confdefs.h. */ |
| 14337 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14338 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14339 | #define $ac_func innocuous_$ac_func |
| 14340 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14341 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14342 | which can conflict with char $ac_func (); below. |
| 14343 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14344 | <limits.h> exists even on freestanding compilers. */ |
| 14345 | |
| 14346 | #ifdef __STDC__ |
| 14347 | # include <limits.h> |
| 14348 | #else |
| 14349 | # include <assert.h> |
| 14350 | #endif |
| 14351 | |
| 14352 | #undef $ac_func |
| 14353 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14354 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14355 | #ifdef __cplusplus |
| 14356 | extern "C" |
| 14357 | { |
| 14358 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14359 | /* 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] | 14360 | builtin and then its argument prototype would still apply. */ |
| 14361 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14362 | /* The GNU C library defines this for functions which it implements |
| 14363 | to always fail with ENOSYS. Some functions are actually named |
| 14364 | something starting with __ and the normal name is an alias. */ |
| 14365 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14366 | choke me |
| 14367 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14368 | char (*f) () = $ac_func; |
| 14369 | #endif |
| 14370 | #ifdef __cplusplus |
| 14371 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14372 | #endif |
| 14373 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14374 | int |
| 14375 | main () |
| 14376 | { |
| 14377 | return f != $ac_func; |
| 14378 | ; |
| 14379 | return 0; |
| 14380 | } |
| 14381 | _ACEOF |
| 14382 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14384 | (eval $ac_link) 2>conftest.er1 |
| 14385 | ac_status=$? |
| 14386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14387 | rm -f conftest.er1 |
| 14388 | cat conftest.err >&5 |
| 14389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14390 | (exit $ac_status); } && |
| 14391 | { ac_try='test -z "$ac_c_werror_flag" |
| 14392 | || test ! -s conftest.err' |
| 14393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14394 | (eval $ac_try) 2>&5 |
| 14395 | ac_status=$? |
| 14396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14397 | (exit $ac_status); }; } && |
| 14398 | { ac_try='test -s conftest$ac_exeext' |
| 14399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14400 | (eval $ac_try) 2>&5 |
| 14401 | ac_status=$? |
| 14402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14403 | (exit $ac_status); }; }; then |
| 14404 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14405 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14406 | echo "$as_me: failed program was:" >&5 |
| 14407 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14408 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14409 | eval "$as_ac_var=no" |
| 14410 | fi |
| 14411 | rm -f conftest.err conftest.$ac_objext \ |
| 14412 | conftest$ac_exeext conftest.$ac_ext |
| 14413 | fi |
| 14414 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14415 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14416 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14417 | cat >>confdefs.h <<_ACEOF |
| 14418 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14419 | _ACEOF |
| 14420 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14421 | fi |
| 14422 | done |
| 14423 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14424 | echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
| 14425 | echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6 |
| 14426 | cat >conftest.$ac_ext <<_ACEOF |
| 14427 | /* confdefs.h. */ |
| 14428 | _ACEOF |
| 14429 | cat confdefs.h >>conftest.$ac_ext |
| 14430 | cat >>conftest.$ac_ext <<_ACEOF |
| 14431 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14432 | #include <libintl.h> |
| 14433 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14434 | int |
| 14435 | main () |
| 14436 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14437 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14438 | ; |
| 14439 | return 0; |
| 14440 | } |
| 14441 | _ACEOF |
| 14442 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14444 | (eval $ac_link) 2>conftest.er1 |
| 14445 | ac_status=$? |
| 14446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14447 | rm -f conftest.er1 |
| 14448 | cat conftest.err >&5 |
| 14449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14450 | (exit $ac_status); } && |
| 14451 | { ac_try='test -z "$ac_c_werror_flag" |
| 14452 | || test ! -s conftest.err' |
| 14453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14454 | (eval $ac_try) 2>&5 |
| 14455 | ac_status=$? |
| 14456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14457 | (exit $ac_status); }; } && |
| 14458 | { ac_try='test -s conftest$ac_exeext' |
| 14459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14460 | (eval $ac_try) 2>&5 |
| 14461 | ac_status=$? |
| 14462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14463 | (exit $ac_status); }; }; then |
| 14464 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14465 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14466 | #define HAVE_NL_MSG_CAT_CNTR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14467 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14468 | |
| 14469 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14470 | echo "$as_me: failed program was:" >&5 |
| 14471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14472 | |
| 14473 | echo "$as_me:$LINENO: result: no" >&5 |
| 14474 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14475 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14476 | rm -f conftest.err conftest.$ac_objext \ |
| 14477 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14478 | fi |
| 14479 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14480 | echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
| 14481 | echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14482 | fi |
| 14483 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14484 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14485 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14486 | fi |
| 14487 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14488 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14489 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 14490 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 14491 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14493 | fi |
| 14494 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 14495 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14496 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14497 | # Is the header compilable? |
| 14498 | echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 14499 | echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 |
| 14500 | cat >conftest.$ac_ext <<_ACEOF |
| 14501 | /* confdefs.h. */ |
| 14502 | _ACEOF |
| 14503 | cat confdefs.h >>conftest.$ac_ext |
| 14504 | cat >>conftest.$ac_ext <<_ACEOF |
| 14505 | /* end confdefs.h. */ |
| 14506 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14507 | #include <dlfcn.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14508 | _ACEOF |
| 14509 | rm -f conftest.$ac_objext |
| 14510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14511 | (eval $ac_compile) 2>conftest.er1 |
| 14512 | ac_status=$? |
| 14513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14514 | rm -f conftest.er1 |
| 14515 | cat conftest.err >&5 |
| 14516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14517 | (exit $ac_status); } && |
| 14518 | { ac_try='test -z "$ac_c_werror_flag" |
| 14519 | || test ! -s conftest.err' |
| 14520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14521 | (eval $ac_try) 2>&5 |
| 14522 | ac_status=$? |
| 14523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14524 | (exit $ac_status); }; } && |
| 14525 | { ac_try='test -s conftest.$ac_objext' |
| 14526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14527 | (eval $ac_try) 2>&5 |
| 14528 | ac_status=$? |
| 14529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14530 | (exit $ac_status); }; }; then |
| 14531 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14532 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14533 | echo "$as_me: failed program was:" >&5 |
| 14534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14535 | |
| 14536 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14537 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14539 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14540 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14541 | |
| 14542 | # Is the header present? |
| 14543 | echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 14544 | echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 |
| 14545 | cat >conftest.$ac_ext <<_ACEOF |
| 14546 | /* confdefs.h. */ |
| 14547 | _ACEOF |
| 14548 | cat confdefs.h >>conftest.$ac_ext |
| 14549 | cat >>conftest.$ac_ext <<_ACEOF |
| 14550 | /* end confdefs.h. */ |
| 14551 | #include <dlfcn.h> |
| 14552 | _ACEOF |
| 14553 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14554 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14555 | ac_status=$? |
| 14556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14557 | rm -f conftest.er1 |
| 14558 | cat conftest.err >&5 |
| 14559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14560 | (exit $ac_status); } >/dev/null; then |
| 14561 | if test -s conftest.err; then |
| 14562 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14563 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14564 | else |
| 14565 | ac_cpp_err= |
| 14566 | fi |
| 14567 | else |
| 14568 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14569 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14570 | if test -z "$ac_cpp_err"; then |
| 14571 | ac_header_preproc=yes |
| 14572 | else |
| 14573 | echo "$as_me: failed program was:" >&5 |
| 14574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14575 | |
| 14576 | ac_header_preproc=no |
| 14577 | fi |
| 14578 | rm -f conftest.err conftest.$ac_ext |
| 14579 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14580 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14581 | |
| 14582 | # So? What about this header? |
| 14583 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14584 | yes:no: ) |
| 14585 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14586 | echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14587 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 14588 | echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} |
| 14589 | ac_header_preproc=yes |
| 14590 | ;; |
| 14591 | no:yes:* ) |
| 14592 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 14593 | echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 14594 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 14595 | echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 14596 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 14597 | echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 14598 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14599 | echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14600 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 14601 | echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 14602 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 14603 | echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 14604 | ( |
| 14605 | cat <<\_ASBOX |
| 14606 | ## ------------------------------------------ ## |
| 14607 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14608 | ## ------------------------------------------ ## |
| 14609 | _ASBOX |
| 14610 | ) | |
| 14611 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14612 | ;; |
| 14613 | esac |
| 14614 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 14615 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 14616 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14618 | else |
| 14619 | ac_cv_header_dlfcn_h=$ac_header_preproc |
| 14620 | fi |
| 14621 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 14622 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
| 14623 | |
| 14624 | fi |
| 14625 | if test $ac_cv_header_dlfcn_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14626 | DLL=dlfcn.h |
| 14627 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14628 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14629 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 14630 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 14631 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14633 | fi |
| 14634 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 14635 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14636 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14637 | # Is the header compilable? |
| 14638 | echo "$as_me:$LINENO: checking dl.h usability" >&5 |
| 14639 | echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6 |
| 14640 | cat >conftest.$ac_ext <<_ACEOF |
| 14641 | /* confdefs.h. */ |
| 14642 | _ACEOF |
| 14643 | cat confdefs.h >>conftest.$ac_ext |
| 14644 | cat >>conftest.$ac_ext <<_ACEOF |
| 14645 | /* end confdefs.h. */ |
| 14646 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14647 | #include <dl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14648 | _ACEOF |
| 14649 | rm -f conftest.$ac_objext |
| 14650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14651 | (eval $ac_compile) 2>conftest.er1 |
| 14652 | ac_status=$? |
| 14653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14654 | rm -f conftest.er1 |
| 14655 | cat conftest.err >&5 |
| 14656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14657 | (exit $ac_status); } && |
| 14658 | { ac_try='test -z "$ac_c_werror_flag" |
| 14659 | || test ! -s conftest.err' |
| 14660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14661 | (eval $ac_try) 2>&5 |
| 14662 | ac_status=$? |
| 14663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14664 | (exit $ac_status); }; } && |
| 14665 | { ac_try='test -s conftest.$ac_objext' |
| 14666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14667 | (eval $ac_try) 2>&5 |
| 14668 | ac_status=$? |
| 14669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14670 | (exit $ac_status); }; }; then |
| 14671 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14672 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14673 | echo "$as_me: failed program was:" >&5 |
| 14674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14675 | |
| 14676 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14677 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14679 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14680 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14681 | |
| 14682 | # Is the header present? |
| 14683 | echo "$as_me:$LINENO: checking dl.h presence" >&5 |
| 14684 | echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6 |
| 14685 | cat >conftest.$ac_ext <<_ACEOF |
| 14686 | /* confdefs.h. */ |
| 14687 | _ACEOF |
| 14688 | cat confdefs.h >>conftest.$ac_ext |
| 14689 | cat >>conftest.$ac_ext <<_ACEOF |
| 14690 | /* end confdefs.h. */ |
| 14691 | #include <dl.h> |
| 14692 | _ACEOF |
| 14693 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14694 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14695 | ac_status=$? |
| 14696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14697 | rm -f conftest.er1 |
| 14698 | cat conftest.err >&5 |
| 14699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14700 | (exit $ac_status); } >/dev/null; then |
| 14701 | if test -s conftest.err; then |
| 14702 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14703 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14704 | else |
| 14705 | ac_cpp_err= |
| 14706 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14707 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14708 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14709 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14710 | if test -z "$ac_cpp_err"; then |
| 14711 | ac_header_preproc=yes |
| 14712 | else |
| 14713 | echo "$as_me: failed program was:" >&5 |
| 14714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14715 | |
| 14716 | ac_header_preproc=no |
| 14717 | fi |
| 14718 | rm -f conftest.err conftest.$ac_ext |
| 14719 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14720 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14721 | |
| 14722 | # So? What about this header? |
| 14723 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14724 | yes:no: ) |
| 14725 | { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14726 | echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14727 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 |
| 14728 | echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;} |
| 14729 | ac_header_preproc=yes |
| 14730 | ;; |
| 14731 | no:yes:* ) |
| 14732 | { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 |
| 14733 | echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} |
| 14734 | { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 |
| 14735 | echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} |
| 14736 | { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 |
| 14737 | echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} |
| 14738 | { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14739 | echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14740 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 |
| 14741 | echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} |
| 14742 | { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 |
| 14743 | echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} |
| 14744 | ( |
| 14745 | cat <<\_ASBOX |
| 14746 | ## ------------------------------------------ ## |
| 14747 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14748 | ## ------------------------------------------ ## |
| 14749 | _ASBOX |
| 14750 | ) | |
| 14751 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14752 | ;; |
| 14753 | esac |
| 14754 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 14755 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 14756 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14758 | else |
| 14759 | ac_cv_header_dl_h=$ac_header_preproc |
| 14760 | fi |
| 14761 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 14762 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14763 | |
| 14764 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14765 | if test $ac_cv_header_dl_h = yes; then |
| 14766 | DLL=dl.h |
| 14767 | fi |
| 14768 | |
| 14769 | |
| 14770 | fi |
| 14771 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14772 | |
| 14773 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14774 | |
| 14775 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14776 | #define HAVE_DLFCN_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14777 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14778 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14779 | echo "$as_me:$LINENO: checking for dlopen()" >&5 |
| 14780 | echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6 |
| 14781 | cat >conftest.$ac_ext <<_ACEOF |
| 14782 | /* confdefs.h. */ |
| 14783 | _ACEOF |
| 14784 | cat confdefs.h >>conftest.$ac_ext |
| 14785 | cat >>conftest.$ac_ext <<_ACEOF |
| 14786 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14787 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14788 | int |
| 14789 | main () |
| 14790 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14791 | |
| 14792 | extern void* dlopen(); |
| 14793 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14794 | |
| 14795 | ; |
| 14796 | return 0; |
| 14797 | } |
| 14798 | _ACEOF |
| 14799 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14801 | (eval $ac_link) 2>conftest.er1 |
| 14802 | ac_status=$? |
| 14803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14804 | rm -f conftest.er1 |
| 14805 | cat conftest.err >&5 |
| 14806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14807 | (exit $ac_status); } && |
| 14808 | { ac_try='test -z "$ac_c_werror_flag" |
| 14809 | || test ! -s conftest.err' |
| 14810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14811 | (eval $ac_try) 2>&5 |
| 14812 | ac_status=$? |
| 14813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14814 | (exit $ac_status); }; } && |
| 14815 | { ac_try='test -s conftest$ac_exeext' |
| 14816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14817 | (eval $ac_try) 2>&5 |
| 14818 | ac_status=$? |
| 14819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14820 | (exit $ac_status); }; }; then |
| 14821 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14822 | echo "${ECHO_T}yes" >&6; |
| 14823 | |
| 14824 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14825 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14826 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14827 | |
| 14828 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14829 | echo "$as_me: failed program was:" >&5 |
| 14830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14831 | |
| 14832 | echo "$as_me:$LINENO: result: no" >&5 |
| 14833 | echo "${ECHO_T}no" >&6; |
| 14834 | echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
| 14835 | echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14836 | olibs=$LIBS |
| 14837 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14838 | cat >conftest.$ac_ext <<_ACEOF |
| 14839 | /* confdefs.h. */ |
| 14840 | _ACEOF |
| 14841 | cat confdefs.h >>conftest.$ac_ext |
| 14842 | cat >>conftest.$ac_ext <<_ACEOF |
| 14843 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14844 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14845 | int |
| 14846 | main () |
| 14847 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14848 | |
| 14849 | extern void* dlopen(); |
| 14850 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14851 | |
| 14852 | ; |
| 14853 | return 0; |
| 14854 | } |
| 14855 | _ACEOF |
| 14856 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14858 | (eval $ac_link) 2>conftest.er1 |
| 14859 | ac_status=$? |
| 14860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14861 | rm -f conftest.er1 |
| 14862 | cat conftest.err >&5 |
| 14863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14864 | (exit $ac_status); } && |
| 14865 | { ac_try='test -z "$ac_c_werror_flag" |
| 14866 | || test ! -s conftest.err' |
| 14867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14868 | (eval $ac_try) 2>&5 |
| 14869 | ac_status=$? |
| 14870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14871 | (exit $ac_status); }; } && |
| 14872 | { ac_try='test -s conftest$ac_exeext' |
| 14873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14874 | (eval $ac_try) 2>&5 |
| 14875 | ac_status=$? |
| 14876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14877 | (exit $ac_status); }; }; then |
| 14878 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14879 | echo "${ECHO_T}yes" >&6; |
| 14880 | |
| 14881 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14882 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14883 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14884 | |
| 14885 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14886 | echo "$as_me: failed program was:" >&5 |
| 14887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14888 | |
| 14889 | echo "$as_me:$LINENO: result: no" >&5 |
| 14890 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14891 | LIBS=$olibs |
| 14892 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14893 | rm -f conftest.err conftest.$ac_objext \ |
| 14894 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14895 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14896 | rm -f conftest.err conftest.$ac_objext \ |
| 14897 | conftest$ac_exeext conftest.$ac_ext |
| 14898 | echo "$as_me:$LINENO: checking for dlsym()" >&5 |
| 14899 | echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6 |
| 14900 | cat >conftest.$ac_ext <<_ACEOF |
| 14901 | /* confdefs.h. */ |
| 14902 | _ACEOF |
| 14903 | cat confdefs.h >>conftest.$ac_ext |
| 14904 | cat >>conftest.$ac_ext <<_ACEOF |
| 14905 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14906 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14907 | int |
| 14908 | main () |
| 14909 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14910 | |
| 14911 | extern void* dlsym(); |
| 14912 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14913 | |
| 14914 | ; |
| 14915 | return 0; |
| 14916 | } |
| 14917 | _ACEOF |
| 14918 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14920 | (eval $ac_link) 2>conftest.er1 |
| 14921 | ac_status=$? |
| 14922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14923 | rm -f conftest.er1 |
| 14924 | cat conftest.err >&5 |
| 14925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14926 | (exit $ac_status); } && |
| 14927 | { ac_try='test -z "$ac_c_werror_flag" |
| 14928 | || test ! -s conftest.err' |
| 14929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14930 | (eval $ac_try) 2>&5 |
| 14931 | ac_status=$? |
| 14932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14933 | (exit $ac_status); }; } && |
| 14934 | { ac_try='test -s conftest$ac_exeext' |
| 14935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14936 | (eval $ac_try) 2>&5 |
| 14937 | ac_status=$? |
| 14938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14939 | (exit $ac_status); }; }; then |
| 14940 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14941 | echo "${ECHO_T}yes" >&6; |
| 14942 | |
| 14943 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14944 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14945 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14946 | |
| 14947 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14948 | echo "$as_me: failed program was:" >&5 |
| 14949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14950 | |
| 14951 | echo "$as_me:$LINENO: result: no" >&5 |
| 14952 | echo "${ECHO_T}no" >&6; |
| 14953 | echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
| 14954 | echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14955 | olibs=$LIBS |
| 14956 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14957 | cat >conftest.$ac_ext <<_ACEOF |
| 14958 | /* confdefs.h. */ |
| 14959 | _ACEOF |
| 14960 | cat confdefs.h >>conftest.$ac_ext |
| 14961 | cat >>conftest.$ac_ext <<_ACEOF |
| 14962 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14963 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14964 | int |
| 14965 | main () |
| 14966 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14967 | |
| 14968 | extern void* dlsym(); |
| 14969 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14970 | |
| 14971 | ; |
| 14972 | return 0; |
| 14973 | } |
| 14974 | _ACEOF |
| 14975 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14977 | (eval $ac_link) 2>conftest.er1 |
| 14978 | ac_status=$? |
| 14979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14980 | rm -f conftest.er1 |
| 14981 | cat conftest.err >&5 |
| 14982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14983 | (exit $ac_status); } && |
| 14984 | { ac_try='test -z "$ac_c_werror_flag" |
| 14985 | || test ! -s conftest.err' |
| 14986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14987 | (eval $ac_try) 2>&5 |
| 14988 | ac_status=$? |
| 14989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14990 | (exit $ac_status); }; } && |
| 14991 | { ac_try='test -s conftest$ac_exeext' |
| 14992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14993 | (eval $ac_try) 2>&5 |
| 14994 | ac_status=$? |
| 14995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14996 | (exit $ac_status); }; }; then |
| 14997 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14998 | echo "${ECHO_T}yes" >&6; |
| 14999 | |
| 15000 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15001 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15002 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15003 | |
| 15004 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15005 | echo "$as_me: failed program was:" >&5 |
| 15006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15007 | |
| 15008 | echo "$as_me:$LINENO: result: no" >&5 |
| 15009 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15010 | LIBS=$olibs |
| 15011 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15012 | rm -f conftest.err conftest.$ac_objext \ |
| 15013 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15014 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15015 | rm -f conftest.err conftest.$ac_objext \ |
| 15016 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15017 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15018 | |
| 15019 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15020 | #define HAVE_DL_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15021 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15022 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15023 | echo "$as_me:$LINENO: checking for shl_load()" >&5 |
| 15024 | echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6 |
| 15025 | cat >conftest.$ac_ext <<_ACEOF |
| 15026 | /* confdefs.h. */ |
| 15027 | _ACEOF |
| 15028 | cat confdefs.h >>conftest.$ac_ext |
| 15029 | cat >>conftest.$ac_ext <<_ACEOF |
| 15030 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15031 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15032 | int |
| 15033 | main () |
| 15034 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15035 | |
| 15036 | extern void* shl_load(); |
| 15037 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15038 | |
| 15039 | ; |
| 15040 | return 0; |
| 15041 | } |
| 15042 | _ACEOF |
| 15043 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15045 | (eval $ac_link) 2>conftest.er1 |
| 15046 | ac_status=$? |
| 15047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15048 | rm -f conftest.er1 |
| 15049 | cat conftest.err >&5 |
| 15050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15051 | (exit $ac_status); } && |
| 15052 | { ac_try='test -z "$ac_c_werror_flag" |
| 15053 | || test ! -s conftest.err' |
| 15054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15055 | (eval $ac_try) 2>&5 |
| 15056 | ac_status=$? |
| 15057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15058 | (exit $ac_status); }; } && |
| 15059 | { ac_try='test -s conftest$ac_exeext' |
| 15060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15061 | (eval $ac_try) 2>&5 |
| 15062 | ac_status=$? |
| 15063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15064 | (exit $ac_status); }; }; then |
| 15065 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15066 | echo "${ECHO_T}yes" >&6; |
| 15067 | |
| 15068 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15069 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15070 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15071 | |
| 15072 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15073 | echo "$as_me: failed program was:" >&5 |
| 15074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15075 | |
| 15076 | echo "$as_me:$LINENO: result: no" >&5 |
| 15077 | echo "${ECHO_T}no" >&6; |
| 15078 | echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
| 15079 | echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15080 | olibs=$LIBS |
| 15081 | LIBS="$LIBS -ldld" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15082 | cat >conftest.$ac_ext <<_ACEOF |
| 15083 | /* confdefs.h. */ |
| 15084 | _ACEOF |
| 15085 | cat confdefs.h >>conftest.$ac_ext |
| 15086 | cat >>conftest.$ac_ext <<_ACEOF |
| 15087 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15088 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15089 | int |
| 15090 | main () |
| 15091 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15092 | |
| 15093 | extern void* shl_load(); |
| 15094 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15095 | |
| 15096 | ; |
| 15097 | return 0; |
| 15098 | } |
| 15099 | _ACEOF |
| 15100 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15102 | (eval $ac_link) 2>conftest.er1 |
| 15103 | ac_status=$? |
| 15104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15105 | rm -f conftest.er1 |
| 15106 | cat conftest.err >&5 |
| 15107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15108 | (exit $ac_status); } && |
| 15109 | { ac_try='test -z "$ac_c_werror_flag" |
| 15110 | || test ! -s conftest.err' |
| 15111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15112 | (eval $ac_try) 2>&5 |
| 15113 | ac_status=$? |
| 15114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15115 | (exit $ac_status); }; } && |
| 15116 | { ac_try='test -s conftest$ac_exeext' |
| 15117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15118 | (eval $ac_try) 2>&5 |
| 15119 | ac_status=$? |
| 15120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15121 | (exit $ac_status); }; }; then |
| 15122 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15123 | echo "${ECHO_T}yes" >&6; |
| 15124 | |
| 15125 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15126 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15127 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15128 | |
| 15129 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15130 | echo "$as_me: failed program was:" >&5 |
| 15131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15132 | |
| 15133 | echo "$as_me:$LINENO: result: no" >&5 |
| 15134 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15135 | LIBS=$olibs |
| 15136 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15137 | rm -f conftest.err conftest.$ac_objext \ |
| 15138 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15139 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15140 | rm -f conftest.err conftest.$ac_objext \ |
| 15141 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15142 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15143 | |
| 15144 | for ac_header in setjmp.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15145 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15146 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15147 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15148 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15152 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15154 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15155 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15156 | # Is the header compilable? |
| 15157 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15158 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15159 | cat >conftest.$ac_ext <<_ACEOF |
| 15160 | /* confdefs.h. */ |
| 15161 | _ACEOF |
| 15162 | cat confdefs.h >>conftest.$ac_ext |
| 15163 | cat >>conftest.$ac_ext <<_ACEOF |
| 15164 | /* end confdefs.h. */ |
| 15165 | $ac_includes_default |
| 15166 | #include <$ac_header> |
| 15167 | _ACEOF |
| 15168 | rm -f conftest.$ac_objext |
| 15169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15170 | (eval $ac_compile) 2>conftest.er1 |
| 15171 | ac_status=$? |
| 15172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15173 | rm -f conftest.er1 |
| 15174 | cat conftest.err >&5 |
| 15175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15176 | (exit $ac_status); } && |
| 15177 | { ac_try='test -z "$ac_c_werror_flag" |
| 15178 | || test ! -s conftest.err' |
| 15179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15180 | (eval $ac_try) 2>&5 |
| 15181 | ac_status=$? |
| 15182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15183 | (exit $ac_status); }; } && |
| 15184 | { ac_try='test -s conftest.$ac_objext' |
| 15185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15186 | (eval $ac_try) 2>&5 |
| 15187 | ac_status=$? |
| 15188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15189 | (exit $ac_status); }; }; then |
| 15190 | ac_header_compiler=yes |
| 15191 | else |
| 15192 | echo "$as_me: failed program was:" >&5 |
| 15193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15194 | |
| 15195 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15196 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15198 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15199 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15200 | |
| 15201 | # Is the header present? |
| 15202 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15203 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15204 | cat >conftest.$ac_ext <<_ACEOF |
| 15205 | /* confdefs.h. */ |
| 15206 | _ACEOF |
| 15207 | cat confdefs.h >>conftest.$ac_ext |
| 15208 | cat >>conftest.$ac_ext <<_ACEOF |
| 15209 | /* end confdefs.h. */ |
| 15210 | #include <$ac_header> |
| 15211 | _ACEOF |
| 15212 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15213 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15214 | ac_status=$? |
| 15215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15216 | rm -f conftest.er1 |
| 15217 | cat conftest.err >&5 |
| 15218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15219 | (exit $ac_status); } >/dev/null; then |
| 15220 | if test -s conftest.err; then |
| 15221 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15222 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15223 | else |
| 15224 | ac_cpp_err= |
| 15225 | fi |
| 15226 | else |
| 15227 | ac_cpp_err=yes |
| 15228 | fi |
| 15229 | if test -z "$ac_cpp_err"; then |
| 15230 | ac_header_preproc=yes |
| 15231 | else |
| 15232 | echo "$as_me: failed program was:" >&5 |
| 15233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15234 | |
| 15235 | ac_header_preproc=no |
| 15236 | fi |
| 15237 | rm -f conftest.err conftest.$ac_ext |
| 15238 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15239 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15240 | |
| 15241 | # So? What about this header? |
| 15242 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15243 | yes:no: ) |
| 15244 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15245 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15246 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15247 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15248 | ac_header_preproc=yes |
| 15249 | ;; |
| 15250 | no:yes:* ) |
| 15251 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15252 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15253 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15254 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15255 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15256 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15257 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15258 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15259 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15260 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15261 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15262 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15263 | ( |
| 15264 | cat <<\_ASBOX |
| 15265 | ## ------------------------------------------ ## |
| 15266 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15267 | ## ------------------------------------------ ## |
| 15268 | _ASBOX |
| 15269 | ) | |
| 15270 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15271 | ;; |
| 15272 | esac |
| 15273 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15274 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15275 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15277 | else |
| 15278 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15279 | fi |
| 15280 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15281 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15282 | |
| 15283 | fi |
| 15284 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15285 | cat >>confdefs.h <<_ACEOF |
| 15286 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15287 | _ACEOF |
| 15288 | |
| 15289 | fi |
| 15290 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15291 | done |
| 15292 | |
| 15293 | |
| 15294 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 15295 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 15296 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 15297 | PERL_LIBS="$PERL_LIBS -ldl" |
| 15298 | fi |
| 15299 | fi |
| 15300 | |
| 15301 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 15302 | && test "x$GUITYPE" != "xCARBONGUI"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15303 | echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
| 15304 | echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15305 | if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \ |
| 15306 | || test "x$features" = "xhuge"; then |
| 15307 | LIBS="$LIBS -framework Carbon" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15308 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15309 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15310 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15311 | echo "$as_me:$LINENO: result: no" >&5 |
| 15312 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15313 | fi |
| 15314 | fi |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 15315 | if test "x$MACARCH" = "xboth"; then |
| 15316 | LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 15317 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15318 | |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 15319 | echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 |
| 15320 | echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6 |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15321 | DEPEND_CFLAGS_FILTER= |
| 15322 | if test "$GCC" = yes; then |
Bram Moolenaar | 2217cae | 2006-03-25 21:55:52 +0000 | [diff] [blame] | 15323 | gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` |
Bram Moolenaar | f740b29 | 2006-02-16 22:11:02 +0000 | [diff] [blame] | 15324 | if test "$gccmajor" -gt "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15325 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
| 15326 | fi |
| 15327 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 15328 | if test "$DEPEND_CFLAGS_FILTER" = ""; then |
| 15329 | echo "$as_me:$LINENO: result: no" >&5 |
| 15330 | echo "${ECHO_T}no" >&6 |
| 15331 | else |
| 15332 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15333 | echo "${ECHO_T}yes" >&6 |
| 15334 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15335 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15336 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15337 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 15338 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15339 | # This file is a shell script that caches the results of configure |
| 15340 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15341 | # scripts and configure runs, see configure's option --config-cache. |
| 15342 | # It is not useful on other systems. If it contains results you don't |
| 15343 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15344 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15345 | # config.status only pays attention to the cache file if you give it |
| 15346 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15347 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15348 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15349 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15350 | # following values. |
| 15351 | |
| 15352 | _ACEOF |
| 15353 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15354 | # The following way of writing the cache mishandles newlines in values, |
| 15355 | # but we know of no workaround that is simple, portable, and efficient. |
| 15356 | # So, don't put newlines in cache variables' values. |
| 15357 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15358 | # 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] | 15359 | { |
| 15360 | (set) 2>&1 | |
| 15361 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15362 | *ac_space=\ *) |
| 15363 | # `set' does not quote correctly, so add quotes (double-quote |
| 15364 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15365 | sed -n \ |
| 15366 | "s/'/'\\\\''/g; |
| 15367 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15368 | ;; |
| 15369 | *) |
| 15370 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15371 | sed -n \ |
| 15372 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15373 | ;; |
| 15374 | esac; |
| 15375 | } | |
| 15376 | sed ' |
| 15377 | t clear |
| 15378 | : clear |
| 15379 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15380 | t end |
| 15381 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15382 | : end' >>confcache |
| 15383 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15384 | if test -w $cache_file; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15385 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15386 | cat confcache >$cache_file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15387 | else |
| 15388 | echo "not updating unwritable cache $cache_file" |
| 15389 | fi |
| 15390 | fi |
| 15391 | rm -f confcache |
| 15392 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15393 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15394 | # Let make expand exec_prefix. |
| 15395 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15396 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15397 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15398 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15399 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15400 | # (actually we leave an empty line to preserve line numbers). |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15401 | if test "x$srcdir" = x.; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15402 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15403 | s/:*\$(srcdir):*/:/; |
| 15404 | s/:*\${srcdir}:*/:/; |
| 15405 | s/:*@srcdir@:*/:/; |
| 15406 | s/^\([^=]*=[ ]*\):*/\1/; |
| 15407 | s/:*$//; |
| 15408 | s/^[^=]*=[ ]*$//; |
| 15409 | }' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15410 | fi |
| 15411 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15412 | DEFS=-DHAVE_CONFIG_H |
| 15413 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15414 | ac_libobjs= |
| 15415 | ac_ltlibobjs= |
| 15416 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15417 | # 1. Remove the extension, and $U if already installed. |
| 15418 | ac_i=`echo "$ac_i" | |
| 15419 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 15420 | # 2. Add them. |
| 15421 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 15422 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 15423 | done |
| 15424 | LIBOBJS=$ac_libobjs |
| 15425 | |
| 15426 | LTLIBOBJS=$ac_ltlibobjs |
| 15427 | |
| 15428 | |
| 15429 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15430 | : ${CONFIG_STATUS=./config.status} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15431 | ac_clean_files_save=$ac_clean_files |
| 15432 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15433 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15434 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15435 | cat >$CONFIG_STATUS <<_ACEOF |
| 15436 | #! $SHELL |
| 15437 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15438 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15439 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15440 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15441 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15442 | debug=false |
| 15443 | ac_cs_recheck=false |
| 15444 | ac_cs_silent=false |
| 15445 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15446 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15447 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15448 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15449 | ## --------------------- ## |
| 15450 | ## M4sh Initialization. ## |
| 15451 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15452 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15453 | # Be Bourne compatible |
| 15454 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15455 | emulate sh |
| 15456 | NULLCMD=: |
| 15457 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15458 | # is contrary to our usage. Disable this feature. |
| 15459 | alias -g '${1+"$@"}'='"$@"' |
| 15460 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 15461 | set -o posix |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15462 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15463 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15464 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15465 | # Support unset when possible. |
| 15466 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15467 | as_unset=unset |
| 15468 | else |
| 15469 | as_unset=false |
| 15470 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15471 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15472 | |
| 15473 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15474 | $as_unset ENV MAIL MAILPATH |
| 15475 | PS1='$ ' |
| 15476 | PS2='> ' |
| 15477 | PS4='+ ' |
| 15478 | |
| 15479 | # NLS nuisances. |
| 15480 | for as_var in \ |
| 15481 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15482 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15483 | LC_TELEPHONE LC_TIME |
| 15484 | do |
| 15485 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15486 | eval $as_var=C; export $as_var |
| 15487 | else |
| 15488 | $as_unset $as_var |
| 15489 | fi |
| 15490 | done |
| 15491 | |
| 15492 | # Required to use basename. |
| 15493 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15494 | as_expr=expr |
| 15495 | else |
| 15496 | as_expr=false |
| 15497 | fi |
| 15498 | |
| 15499 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 15500 | as_basename=basename |
| 15501 | else |
| 15502 | as_basename=false |
| 15503 | fi |
| 15504 | |
| 15505 | |
| 15506 | # Name of the executable. |
| 15507 | as_me=`$as_basename "$0" || |
| 15508 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15509 | X"$0" : 'X\(//\)$' \| \ |
| 15510 | X"$0" : 'X\(/\)$' \| \ |
| 15511 | . : '\(.\)' 2>/dev/null || |
| 15512 | echo X/"$0" | |
| 15513 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 15514 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 15515 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 15516 | s/.*/./; q'` |
| 15517 | |
| 15518 | |
| 15519 | # PATH needs CR, and LINENO needs CR and PATH. |
| 15520 | # Avoid depending upon Character Ranges. |
| 15521 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15522 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15523 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15524 | as_cr_digits='0123456789' |
| 15525 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15526 | |
| 15527 | # The user is always right. |
| 15528 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15529 | echo "#! /bin/sh" >conf$$.sh |
| 15530 | echo "exit 0" >>conf$$.sh |
| 15531 | chmod +x conf$$.sh |
| 15532 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15533 | PATH_SEPARATOR=';' |
| 15534 | else |
| 15535 | PATH_SEPARATOR=: |
| 15536 | fi |
| 15537 | rm -f conf$$.sh |
| 15538 | fi |
| 15539 | |
| 15540 | |
| 15541 | as_lineno_1=$LINENO |
| 15542 | as_lineno_2=$LINENO |
| 15543 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15544 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15545 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 15546 | # Find who we are. Look in the path if we contain no path at all |
| 15547 | # relative or not. |
| 15548 | case $0 in |
| 15549 | *[\\/]* ) as_myself=$0 ;; |
| 15550 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15551 | for as_dir in $PATH |
| 15552 | do |
| 15553 | IFS=$as_save_IFS |
| 15554 | test -z "$as_dir" && as_dir=. |
| 15555 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15556 | done |
| 15557 | |
| 15558 | ;; |
| 15559 | esac |
| 15560 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15561 | # in which case we are not to be found in the path. |
| 15562 | if test "x$as_myself" = x; then |
| 15563 | as_myself=$0 |
| 15564 | fi |
| 15565 | if test ! -f "$as_myself"; then |
| 15566 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 15567 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 15568 | { (exit 1); exit 1; }; } |
| 15569 | fi |
| 15570 | case $CONFIG_SHELL in |
| 15571 | '') |
| 15572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15573 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 15574 | do |
| 15575 | IFS=$as_save_IFS |
| 15576 | test -z "$as_dir" && as_dir=. |
| 15577 | for as_base in sh bash ksh sh5; do |
| 15578 | case $as_dir in |
| 15579 | /*) |
| 15580 | if ("$as_dir/$as_base" -c ' |
| 15581 | as_lineno_1=$LINENO |
| 15582 | as_lineno_2=$LINENO |
| 15583 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15584 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15585 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 15586 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 15587 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 15588 | CONFIG_SHELL=$as_dir/$as_base |
| 15589 | export CONFIG_SHELL |
| 15590 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 15591 | fi;; |
| 15592 | esac |
| 15593 | done |
| 15594 | done |
| 15595 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15596 | esac |
| 15597 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15598 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15599 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 15600 | # line-number line before each line; the second 'sed' does the real |
| 15601 | # work. The second script uses 'N' to pair each line-number line |
| 15602 | # with the numbered line, and appends trailing '-' during |
| 15603 | # substitution so that $LINENO is not a special case at line end. |
| 15604 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 15605 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 15606 | sed '=' <$as_myself | |
| 15607 | sed ' |
| 15608 | N |
| 15609 | s,$,-, |
| 15610 | : loop |
| 15611 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 15612 | t loop |
| 15613 | s,-$,, |
| 15614 | s,^['$as_cr_digits']*\n,, |
| 15615 | ' >$as_me.lineno && |
| 15616 | chmod +x $as_me.lineno || |
| 15617 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 15618 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 15619 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15620 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15621 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15622 | # (the dirname of $[0] is not the place where we might find the |
| 15623 | # original and so on. Autoconf is especially sensible to this). |
| 15624 | . ./$as_me.lineno |
| 15625 | # Exit status is that of the last command. |
| 15626 | exit |
| 15627 | } |
| 15628 | |
| 15629 | |
| 15630 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 15631 | *c*,-n*) ECHO_N= ECHO_C=' |
| 15632 | ' ECHO_T=' ' ;; |
| 15633 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 15634 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 15635 | esac |
| 15636 | |
| 15637 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15638 | as_expr=expr |
| 15639 | else |
| 15640 | as_expr=false |
| 15641 | fi |
| 15642 | |
| 15643 | rm -f conf$$ conf$$.exe conf$$.file |
| 15644 | echo >conf$$.file |
| 15645 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15646 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 15647 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 15648 | if test -f conf$$.exe; then |
| 15649 | # Don't use ln at all; we don't have any links |
| 15650 | as_ln_s='cp -p' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15651 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15652 | as_ln_s='ln -s' |
| 15653 | fi |
| 15654 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15655 | as_ln_s=ln |
| 15656 | else |
| 15657 | as_ln_s='cp -p' |
| 15658 | fi |
| 15659 | rm -f conf$$ conf$$.exe conf$$.file |
| 15660 | |
| 15661 | if mkdir -p . 2>/dev/null; then |
| 15662 | as_mkdir_p=: |
| 15663 | else |
| 15664 | test -d ./-p && rmdir ./-p |
| 15665 | as_mkdir_p=false |
| 15666 | fi |
| 15667 | |
| 15668 | as_executable_p="test -f" |
| 15669 | |
| 15670 | # Sed expression to map a string onto a valid CPP name. |
| 15671 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15672 | |
| 15673 | # Sed expression to map a string onto a valid variable name. |
| 15674 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15675 | |
| 15676 | |
| 15677 | # IFS |
| 15678 | # We need space, tab and new line, in precisely that order. |
| 15679 | as_nl=' |
| 15680 | ' |
| 15681 | IFS=" $as_nl" |
| 15682 | |
| 15683 | # CDPATH. |
| 15684 | $as_unset CDPATH |
| 15685 | |
| 15686 | exec 6>&1 |
| 15687 | |
| 15688 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 15689 | # report actual input values of CONFIG_FILES etc. instead of their |
| 15690 | # values after options handling. Logging --version etc. is OK. |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 15691 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15692 | { |
| 15693 | echo |
| 15694 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15695 | ## Running $as_me. ## |
| 15696 | _ASBOX |
| 15697 | } >&5 |
| 15698 | cat >&5 <<_CSEOF |
| 15699 | |
| 15700 | This file was extended by $as_me, which was |
| 15701 | generated by GNU Autoconf 2.59. Invocation command line was |
| 15702 | |
| 15703 | CONFIG_FILES = $CONFIG_FILES |
| 15704 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15705 | CONFIG_LINKS = $CONFIG_LINKS |
| 15706 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15707 | $ $0 $@ |
| 15708 | |
| 15709 | _CSEOF |
| 15710 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 15711 | echo >&5 |
| 15712 | _ACEOF |
| 15713 | |
| 15714 | # Files that config.status was made for. |
| 15715 | if test -n "$ac_config_files"; then |
| 15716 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 15717 | fi |
| 15718 | |
| 15719 | if test -n "$ac_config_headers"; then |
| 15720 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 15721 | fi |
| 15722 | |
| 15723 | if test -n "$ac_config_links"; then |
| 15724 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 15725 | fi |
| 15726 | |
| 15727 | if test -n "$ac_config_commands"; then |
| 15728 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 15729 | fi |
| 15730 | |
| 15731 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15732 | |
| 15733 | ac_cs_usage="\ |
| 15734 | \`$as_me' instantiates files from templates according to the |
| 15735 | current configuration. |
| 15736 | |
| 15737 | Usage: $0 [OPTIONS] [FILE]... |
| 15738 | |
| 15739 | -h, --help print this help, then exit |
| 15740 | -V, --version print version number, then exit |
| 15741 | -q, --quiet do not print progress messages |
| 15742 | -d, --debug don't remove temporary files |
| 15743 | --recheck update $as_me by reconfiguring in the same conditions |
| 15744 | --file=FILE[:TEMPLATE] |
| 15745 | instantiate the configuration file FILE |
| 15746 | --header=FILE[:TEMPLATE] |
| 15747 | instantiate the configuration header FILE |
| 15748 | |
| 15749 | Configuration files: |
| 15750 | $config_files |
| 15751 | |
| 15752 | Configuration headers: |
| 15753 | $config_headers |
| 15754 | |
| 15755 | Report bugs to <bug-autoconf@gnu.org>." |
| 15756 | _ACEOF |
| 15757 | |
| 15758 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15759 | ac_cs_version="\\ |
| 15760 | config.status |
| 15761 | configured by $0, generated by GNU Autoconf 2.59, |
| 15762 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 15763 | |
| 15764 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 15765 | This config.status script is free software; the Free Software Foundation |
| 15766 | gives unlimited permission to copy, distribute and modify it." |
| 15767 | srcdir=$srcdir |
| 15768 | _ACEOF |
| 15769 | |
| 15770 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15771 | # If no file are specified by the user, then we need to provide default |
| 15772 | # value. By we need to know if files were specified by the user. |
| 15773 | ac_need_defaults=: |
| 15774 | while test $# != 0 |
| 15775 | do |
| 15776 | case $1 in |
| 15777 | --*=*) |
| 15778 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 15779 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 15780 | ac_shift=: |
| 15781 | ;; |
| 15782 | -*) |
| 15783 | ac_option=$1 |
| 15784 | ac_optarg=$2 |
| 15785 | ac_shift=shift |
| 15786 | ;; |
| 15787 | *) # This is not an option, so the user has probably given explicit |
| 15788 | # arguments. |
| 15789 | ac_option=$1 |
| 15790 | ac_need_defaults=false;; |
| 15791 | esac |
| 15792 | |
| 15793 | case $ac_option in |
| 15794 | # Handling of the options. |
| 15795 | _ACEOF |
| 15796 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15797 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15798 | ac_cs_recheck=: ;; |
| 15799 | --version | --vers* | -V ) |
| 15800 | echo "$ac_cs_version"; exit 0 ;; |
| 15801 | --he | --h) |
| 15802 | # Conflict between --help and --header |
| 15803 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 15804 | Try \`$0 --help' for more information." >&5 |
| 15805 | echo "$as_me: error: ambiguous option: $1 |
| 15806 | Try \`$0 --help' for more information." >&2;} |
| 15807 | { (exit 1); exit 1; }; };; |
| 15808 | --help | --hel | -h ) |
| 15809 | echo "$ac_cs_usage"; exit 0 ;; |
| 15810 | --debug | --d* | -d ) |
| 15811 | debug=: ;; |
| 15812 | --file | --fil | --fi | --f ) |
| 15813 | $ac_shift |
| 15814 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15815 | ac_need_defaults=false;; |
| 15816 | --header | --heade | --head | --hea ) |
| 15817 | $ac_shift |
| 15818 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 15819 | ac_need_defaults=false;; |
| 15820 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15821 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15822 | ac_cs_silent=: ;; |
| 15823 | |
| 15824 | # This is an error. |
| 15825 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 15826 | Try \`$0 --help' for more information." >&5 |
| 15827 | echo "$as_me: error: unrecognized option: $1 |
| 15828 | Try \`$0 --help' for more information." >&2;} |
| 15829 | { (exit 1); exit 1; }; } ;; |
| 15830 | |
| 15831 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 15832 | |
| 15833 | esac |
| 15834 | shift |
| 15835 | done |
| 15836 | |
| 15837 | ac_configure_extra_args= |
| 15838 | |
| 15839 | if $ac_cs_silent; then |
| 15840 | exec 6>/dev/null |
| 15841 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15842 | fi |
| 15843 | |
| 15844 | _ACEOF |
| 15845 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15846 | if \$ac_cs_recheck; then |
| 15847 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15848 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 15849 | fi |
| 15850 | |
| 15851 | _ACEOF |
| 15852 | |
| 15853 | |
| 15854 | |
| 15855 | |
| 15856 | |
| 15857 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15858 | for ac_config_target in $ac_config_targets |
| 15859 | do |
| 15860 | case "$ac_config_target" in |
| 15861 | # Handling of arguments. |
| 15862 | "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 15863 | "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 15864 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15865 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15866 | { (exit 1); exit 1; }; };; |
| 15867 | esac |
| 15868 | done |
| 15869 | |
| 15870 | # If the user did not use the arguments to specify the items to instantiate, |
| 15871 | # then the envvar interface is used. Set only those that are not. |
| 15872 | # We use the long form for the default assignment because of an extremely |
| 15873 | # bizarre bug on SunOS 4.1.3. |
| 15874 | if $ac_need_defaults; then |
| 15875 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15876 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 15877 | fi |
| 15878 | |
| 15879 | # Have a temporary directory for convenience. Make it in the build tree |
| 15880 | # simply because there is no reason to put it here, and in addition, |
| 15881 | # creating and moving files from /tmp can sometimes cause problems. |
| 15882 | # Create a temporary directory, and hook for its removal unless debugging. |
| 15883 | $debug || |
| 15884 | { |
| 15885 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 15886 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15887 | } |
| 15888 | |
| 15889 | # Create a (secure) tmp directory for tmp files. |
| 15890 | |
| 15891 | { |
| 15892 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 15893 | test -n "$tmp" && test -d "$tmp" |
| 15894 | } || |
| 15895 | { |
| 15896 | tmp=./confstat$$-$RANDOM |
| 15897 | (umask 077 && mkdir $tmp) |
| 15898 | } || |
| 15899 | { |
| 15900 | echo "$me: cannot create a temporary directory in ." >&2 |
| 15901 | { (exit 1); exit 1; } |
| 15902 | } |
| 15903 | |
| 15904 | _ACEOF |
| 15905 | |
| 15906 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15907 | |
| 15908 | # |
| 15909 | # CONFIG_FILES section. |
| 15910 | # |
| 15911 | |
| 15912 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 15913 | # This happens for instance when ./config.status config.h |
| 15914 | if test -n "\$CONFIG_FILES"; then |
| 15915 | # Protect against being on the right side of a sed subst in config.status. |
| 15916 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 15917 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 15918 | s,@SHELL@,$SHELL,;t t |
| 15919 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 15920 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 15921 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 15922 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 15923 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 15924 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 15925 | s,@exec_prefix@,$exec_prefix,;t t |
| 15926 | s,@prefix@,$prefix,;t t |
| 15927 | s,@program_transform_name@,$program_transform_name,;t t |
| 15928 | s,@bindir@,$bindir,;t t |
| 15929 | s,@sbindir@,$sbindir,;t t |
| 15930 | s,@libexecdir@,$libexecdir,;t t |
| 15931 | s,@datadir@,$datadir,;t t |
| 15932 | s,@sysconfdir@,$sysconfdir,;t t |
| 15933 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 15934 | s,@localstatedir@,$localstatedir,;t t |
| 15935 | s,@libdir@,$libdir,;t t |
| 15936 | s,@includedir@,$includedir,;t t |
| 15937 | s,@oldincludedir@,$oldincludedir,;t t |
| 15938 | s,@infodir@,$infodir,;t t |
| 15939 | s,@mandir@,$mandir,;t t |
| 15940 | s,@build_alias@,$build_alias,;t t |
| 15941 | s,@host_alias@,$host_alias,;t t |
| 15942 | s,@target_alias@,$target_alias,;t t |
| 15943 | s,@DEFS@,$DEFS,;t t |
| 15944 | s,@ECHO_C@,$ECHO_C,;t t |
| 15945 | s,@ECHO_N@,$ECHO_N,;t t |
| 15946 | s,@ECHO_T@,$ECHO_T,;t t |
| 15947 | s,@LIBS@,$LIBS,;t t |
| 15948 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 15949 | s,@CC@,$CC,;t t |
| 15950 | s,@CFLAGS@,$CFLAGS,;t t |
| 15951 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 15952 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 15953 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 15954 | s,@EXEEXT@,$EXEEXT,;t t |
| 15955 | s,@OBJEXT@,$OBJEXT,;t t |
| 15956 | s,@CPP@,$CPP,;t t |
| 15957 | s,@EGREP@,$EGREP,;t t |
| 15958 | s,@AWK@,$AWK,;t t |
| 15959 | s,@STRIP@,$STRIP,;t t |
| 15960 | s,@CPP_MM@,$CPP_MM,;t t |
| 15961 | s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t |
| 15962 | s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t |
| 15963 | s,@VIMNAME@,$VIMNAME,;t t |
| 15964 | s,@EXNAME@,$EXNAME,;t t |
| 15965 | s,@VIEWNAME@,$VIEWNAME,;t t |
| 15966 | s,@line_break@,$line_break,;t t |
| 15967 | s,@dovimdiff@,$dovimdiff,;t t |
| 15968 | s,@dogvimdiff@,$dogvimdiff,;t t |
| 15969 | s,@compiledby@,$compiledby,;t t |
| 15970 | s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t |
| 15971 | s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t |
| 15972 | s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t |
| 15973 | s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t |
| 15974 | s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t |
| 15975 | s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t |
| 15976 | s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t |
| 15977 | s,@vi_cv_perllib@,$vi_cv_perllib,;t t |
| 15978 | s,@shrpenv@,$shrpenv,;t t |
| 15979 | s,@PERL_SRC@,$PERL_SRC,;t t |
| 15980 | s,@PERL_OBJ@,$PERL_OBJ,;t t |
| 15981 | s,@PERL_PRO@,$PERL_PRO,;t t |
| 15982 | s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t |
| 15983 | s,@PERL_LIBS@,$PERL_LIBS,;t t |
| 15984 | s,@vi_cv_path_python@,$vi_cv_path_python,;t t |
| 15985 | s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t |
| 15986 | s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t |
| 15987 | s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t |
| 15988 | s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t |
| 15989 | s,@PYTHON_SRC@,$PYTHON_SRC,;t t |
| 15990 | s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t |
| 15991 | s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t |
| 15992 | s,@TCL_SRC@,$TCL_SRC,;t t |
| 15993 | s,@TCL_OBJ@,$TCL_OBJ,;t t |
| 15994 | s,@TCL_PRO@,$TCL_PRO,;t t |
| 15995 | s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t |
| 15996 | s,@TCL_LIBS@,$TCL_LIBS,;t t |
| 15997 | s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t |
| 15998 | s,@RUBY_SRC@,$RUBY_SRC,;t t |
| 15999 | s,@RUBY_OBJ@,$RUBY_OBJ,;t t |
| 16000 | s,@RUBY_PRO@,$RUBY_PRO,;t t |
| 16001 | s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t |
| 16002 | s,@RUBY_LIBS@,$RUBY_LIBS,;t t |
| 16003 | s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t |
| 16004 | s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t |
| 16005 | s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t |
| 16006 | s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t |
| 16007 | s,@SNIFF_SRC@,$SNIFF_SRC,;t t |
| 16008 | s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t |
| 16009 | s,@xmkmfpath@,$xmkmfpath,;t t |
| 16010 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 16011 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 16012 | s,@X_LIBS@,$X_LIBS,;t t |
| 16013 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 16014 | s,@X_LIB@,$X_LIB,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16015 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t |
| 16016 | s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t |
| 16017 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
| 16018 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t |
| 16019 | s,@GTK_LIBS@,$GTK_LIBS,;t t |
| 16020 | s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t |
| 16021 | s,@GNOME_LIBS@,$GNOME_LIBS,;t t |
| 16022 | s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t |
| 16023 | s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t |
| 16024 | s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t |
| 16025 | s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t |
| 16026 | s,@NARROW_PROTO@,$NARROW_PROTO,;t t |
| 16027 | s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t |
| 16028 | s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t |
| 16029 | s,@GUITYPE@,$GUITYPE,;t t |
| 16030 | s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t |
| 16031 | s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t |
| 16032 | s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t |
| 16033 | s,@TAGPRG@,$TAGPRG,;t t |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 16034 | s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t |
| 16035 | s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16036 | s,@MSGFMT@,$MSGFMT,;t t |
| 16037 | s,@MAKEMO@,$MAKEMO,;t t |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16038 | s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16039 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16040 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 16041 | CEOF |
| 16042 | |
| 16043 | _ACEOF |
| 16044 | |
| 16045 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16046 | # Split the substitutions into bite-sized pieces for seds with |
| 16047 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16048 | ac_max_sed_lines=48 |
| 16049 | ac_sed_frag=1 # Number of current file. |
| 16050 | ac_beg=1 # First line for current file. |
| 16051 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16052 | ac_more_lines=: |
| 16053 | ac_sed_cmds= |
| 16054 | while $ac_more_lines; do |
| 16055 | if test $ac_beg -gt 1; then |
| 16056 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16057 | else |
| 16058 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16059 | fi |
| 16060 | if test ! -s $tmp/subs.frag; then |
| 16061 | ac_more_lines=false |
| 16062 | else |
| 16063 | # The purpose of the label and of the branching condition is to |
| 16064 | # speed up the sed processing (if there are no `@' at all, there |
| 16065 | # is no need to browse any of the substitutions). |
| 16066 | # These are the two extra sed commands mentioned above. |
| 16067 | (echo ':t |
| 16068 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 16069 | if test -z "$ac_sed_cmds"; then |
| 16070 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16071 | else |
| 16072 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16073 | fi |
| 16074 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 16075 | ac_beg=$ac_end |
| 16076 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 16077 | fi |
| 16078 | done |
| 16079 | if test -z "$ac_sed_cmds"; then |
| 16080 | ac_sed_cmds=cat |
| 16081 | fi |
| 16082 | fi # test -n "$CONFIG_FILES" |
| 16083 | |
| 16084 | _ACEOF |
| 16085 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16086 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16087 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16088 | case $ac_file in |
| 16089 | - | *:- | *:-:* ) # input from stdin |
| 16090 | cat >$tmp/stdin |
| 16091 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16092 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16093 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16094 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16095 | * ) ac_file_in=$ac_file.in ;; |
| 16096 | esac |
| 16097 | |
| 16098 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16099 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16100 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16101 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16102 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16103 | X"$ac_file" : 'X\(/\)' \| \ |
| 16104 | . : '\(.\)' 2>/dev/null || |
| 16105 | echo X"$ac_file" | |
| 16106 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16107 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16108 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16109 | /^X\(\/\).*/{ s//\1/; q; } |
| 16110 | s/.*/./; q'` |
| 16111 | { if $as_mkdir_p; then |
| 16112 | mkdir -p "$ac_dir" |
| 16113 | else |
| 16114 | as_dir="$ac_dir" |
| 16115 | as_dirs= |
| 16116 | while test ! -d "$as_dir"; do |
| 16117 | as_dirs="$as_dir $as_dirs" |
| 16118 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16119 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16120 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16121 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16122 | X"$as_dir" : 'X\(/\)' \| \ |
| 16123 | . : '\(.\)' 2>/dev/null || |
| 16124 | echo X"$as_dir" | |
| 16125 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16126 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16127 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16128 | /^X\(\/\).*/{ s//\1/; q; } |
| 16129 | s/.*/./; q'` |
| 16130 | done |
| 16131 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16132 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16133 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16134 | { (exit 1); exit 1; }; }; } |
| 16135 | |
| 16136 | ac_builddir=. |
| 16137 | |
| 16138 | if test "$ac_dir" != .; then |
| 16139 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16140 | # A "../" for each directory in $ac_dir_suffix. |
| 16141 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16142 | else |
| 16143 | ac_dir_suffix= ac_top_builddir= |
| 16144 | fi |
| 16145 | |
| 16146 | case $srcdir in |
| 16147 | .) # No --srcdir option. We are building in place. |
| 16148 | ac_srcdir=. |
| 16149 | if test -z "$ac_top_builddir"; then |
| 16150 | ac_top_srcdir=. |
| 16151 | else |
| 16152 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16153 | fi ;; |
| 16154 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16155 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16156 | ac_top_srcdir=$srcdir ;; |
| 16157 | *) # Relative path. |
| 16158 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16159 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16160 | esac |
| 16161 | |
| 16162 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 16163 | # the directories may not exist. |
| 16164 | case `pwd` in |
| 16165 | .) ac_abs_builddir="$ac_dir";; |
| 16166 | *) |
| 16167 | case "$ac_dir" in |
| 16168 | .) ac_abs_builddir=`pwd`;; |
| 16169 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 16170 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 16171 | esac;; |
| 16172 | esac |
| 16173 | case $ac_abs_builddir in |
| 16174 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16175 | *) |
| 16176 | case ${ac_top_builddir}. in |
| 16177 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 16178 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16179 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 16180 | esac;; |
| 16181 | esac |
| 16182 | case $ac_abs_builddir in |
| 16183 | .) ac_abs_srcdir=$ac_srcdir;; |
| 16184 | *) |
| 16185 | case $ac_srcdir in |
| 16186 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 16187 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 16188 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 16189 | esac;; |
| 16190 | esac |
| 16191 | case $ac_abs_builddir in |
| 16192 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16193 | *) |
| 16194 | case $ac_top_srcdir in |
| 16195 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 16196 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16197 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 16198 | esac;; |
| 16199 | esac |
| 16200 | |
| 16201 | |
| 16202 | |
| 16203 | if test x"$ac_file" != x-; then |
| 16204 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16205 | echo "$as_me: creating $ac_file" >&6;} |
| 16206 | rm -f "$ac_file" |
| 16207 | fi |
| 16208 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16209 | # use $as_me), people would be surprised to read: |
| 16210 | # /* config.h. Generated by config.status. */ |
| 16211 | if test x"$ac_file" = x-; then |
| 16212 | configure_input= |
| 16213 | else |
| 16214 | configure_input="$ac_file. " |
| 16215 | fi |
| 16216 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16217 | sed 's,.*/,,'` by configure." |
| 16218 | |
| 16219 | # First look for the input files in the build tree, otherwise in the |
| 16220 | # src tree. |
| 16221 | ac_file_inputs=`IFS=: |
| 16222 | for f in $ac_file_in; do |
| 16223 | case $f in |
| 16224 | -) echo $tmp/stdin ;; |
| 16225 | [\\/$]*) |
| 16226 | # Absolute (can't be DOS-style, as IFS=:) |
| 16227 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16228 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16229 | { (exit 1); exit 1; }; } |
| 16230 | echo "$f";; |
| 16231 | *) # Relative |
| 16232 | if test -f "$f"; then |
| 16233 | # Build tree |
| 16234 | echo "$f" |
| 16235 | elif test -f "$srcdir/$f"; then |
| 16236 | # Source tree |
| 16237 | echo "$srcdir/$f" |
| 16238 | else |
| 16239 | # /dev/null tree |
| 16240 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16241 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16242 | { (exit 1); exit 1; }; } |
| 16243 | fi;; |
| 16244 | esac |
| 16245 | done` || { (exit 1); exit 1; } |
| 16246 | _ACEOF |
| 16247 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16248 | sed "$ac_vpsub |
| 16249 | $extrasub |
| 16250 | _ACEOF |
| 16251 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16252 | :t |
| 16253 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16254 | s,@configure_input@,$configure_input,;t t |
| 16255 | s,@srcdir@,$ac_srcdir,;t t |
| 16256 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16257 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16258 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16259 | s,@builddir@,$ac_builddir,;t t |
| 16260 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16261 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16262 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16263 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16264 | rm -f $tmp/stdin |
| 16265 | if test x"$ac_file" != x-; then |
| 16266 | mv $tmp/out $ac_file |
| 16267 | else |
| 16268 | cat $tmp/out |
| 16269 | rm -f $tmp/out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16270 | fi |
| 16271 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16272 | done |
| 16273 | _ACEOF |
| 16274 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16275 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16276 | # |
| 16277 | # CONFIG_HEADER section. |
| 16278 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16279 | |
| 16280 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16281 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 16282 | # |
| 16283 | # ac_d sets the value in "#define NAME VALUE" lines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16284 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16285 | ac_dB='[ ].*$,\1#\2' |
| 16286 | ac_dC=' ' |
| 16287 | ac_dD=',;t' |
| 16288 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16289 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16290 | ac_uB='$,\1#\2define\3' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16291 | ac_uC=' ' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16292 | ac_uD=',;t' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16293 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16294 | 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] | 16295 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16296 | case $ac_file in |
| 16297 | - | *:- | *:-:* ) # input from stdin |
| 16298 | cat >$tmp/stdin |
| 16299 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16300 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16301 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16302 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16303 | * ) ac_file_in=$ac_file.in ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16304 | esac |
| 16305 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16306 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16307 | echo "$as_me: creating $ac_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16308 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16309 | # First look for the input files in the build tree, otherwise in the |
| 16310 | # src tree. |
| 16311 | ac_file_inputs=`IFS=: |
| 16312 | for f in $ac_file_in; do |
| 16313 | case $f in |
| 16314 | -) echo $tmp/stdin ;; |
| 16315 | [\\/$]*) |
| 16316 | # Absolute (can't be DOS-style, as IFS=:) |
| 16317 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16318 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16319 | { (exit 1); exit 1; }; } |
| 16320 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 16321 | echo "$f";; |
| 16322 | *) # Relative |
| 16323 | if test -f "$f"; then |
| 16324 | # Build tree |
| 16325 | echo "$f" |
| 16326 | elif test -f "$srcdir/$f"; then |
| 16327 | # Source tree |
| 16328 | echo "$srcdir/$f" |
| 16329 | else |
| 16330 | # /dev/null tree |
| 16331 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16332 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16333 | { (exit 1); exit 1; }; } |
| 16334 | fi;; |
| 16335 | esac |
| 16336 | done` || { (exit 1); exit 1; } |
| 16337 | # Remove the trailing spaces. |
| 16338 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16339 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16340 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16341 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16342 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16343 | # `conftest.undefs', that substitutes the proper values into |
| 16344 | # config.h.in to produce config.h. The first handles `#define' |
| 16345 | # templates, and the second `#undef' templates. |
| 16346 | # And first: Protect against being on the right side of a sed subst in |
| 16347 | # config.status. Protect against being in an unquoted here document |
| 16348 | # in config.status. |
| 16349 | rm -f conftest.defines conftest.undefs |
| 16350 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16351 | # Putting comments in sed scripts is not portable. |
| 16352 | # |
| 16353 | # `end' is used to avoid that the second main sed command (meant for |
| 16354 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16355 | # See the Autoconf documentation for `clear'. |
| 16356 | cat >confdef2sed.sed <<\_ACEOF |
| 16357 | s/[\\&,]/\\&/g |
| 16358 | s,[\\$`],\\&,g |
| 16359 | t clear |
| 16360 | : clear |
| 16361 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16362 | t end |
| 16363 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16364 | : end |
| 16365 | _ACEOF |
| 16366 | # If some macros were called several times there might be several times |
| 16367 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16368 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16369 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16370 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16371 | rm -f confdef2sed.sed |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16372 | |
| 16373 | # This sed command replaces #undef with comments. This is necessary, for |
| 16374 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16375 | # on some systems where configure will not decide to define it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16376 | cat >>conftest.undefs <<\_ACEOF |
| 16377 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16378 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16379 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16380 | # Break up conftest.defines because some shells have a limit on the size |
| 16381 | # of here documents, and old seds have small limits too (100 cmds). |
| 16382 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16383 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16384 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16385 | echo ' :' >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16386 | rm -f conftest.tail |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16387 | while grep . conftest.defines >/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16388 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16389 | # Write a limited-size here document to $tmp/defines.sed. |
| 16390 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16391 | # Speed up: don't consider the non `#define' lines. |
| 16392 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16393 | # Work around the forget-to-reset-the-flag bug. |
| 16394 | echo 't clr' >>$CONFIG_STATUS |
| 16395 | echo ': clr' >>$CONFIG_STATUS |
| 16396 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16397 | echo 'CEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16398 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16399 | rm -f $tmp/in |
| 16400 | mv $tmp/out $tmp/in |
| 16401 | ' >>$CONFIG_STATUS |
| 16402 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16403 | rm -f conftest.defines |
| 16404 | mv conftest.tail conftest.defines |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16405 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16406 | rm -f conftest.defines |
| 16407 | echo ' fi # grep' >>$CONFIG_STATUS |
| 16408 | echo >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16409 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16410 | # Break up conftest.undefs because some shells have a limit on the size |
| 16411 | # of here documents, and old seds have small limits too (100 cmds). |
| 16412 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16413 | rm -f conftest.tail |
| 16414 | while grep . conftest.undefs >/dev/null |
| 16415 | do |
| 16416 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16417 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16418 | # Speed up: don't consider the non `#undef' |
| 16419 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16420 | # Work around the forget-to-reset-the-flag bug. |
| 16421 | echo 't clr' >>$CONFIG_STATUS |
| 16422 | echo ': clr' >>$CONFIG_STATUS |
| 16423 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16424 | echo 'CEOF |
| 16425 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16426 | rm -f $tmp/in |
| 16427 | mv $tmp/out $tmp/in |
| 16428 | ' >>$CONFIG_STATUS |
| 16429 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16430 | rm -f conftest.undefs |
| 16431 | mv conftest.tail conftest.undefs |
| 16432 | done |
| 16433 | rm -f conftest.undefs |
| 16434 | |
| 16435 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16436 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16437 | # use $as_me), people would be surprised to read: |
| 16438 | # /* config.h. Generated by config.status. */ |
| 16439 | if test x"$ac_file" = x-; then |
| 16440 | echo "/* Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16441 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16442 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16443 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16444 | cat $tmp/in >>$tmp/config.h |
| 16445 | rm -f $tmp/in |
| 16446 | if test x"$ac_file" != x-; then |
| 16447 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 16448 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16449 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16450 | else |
| 16451 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16452 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16453 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16454 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16455 | X"$ac_file" : 'X\(/\)' \| \ |
| 16456 | . : '\(.\)' 2>/dev/null || |
| 16457 | echo X"$ac_file" | |
| 16458 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16459 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16460 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16461 | /^X\(\/\).*/{ s//\1/; q; } |
| 16462 | s/.*/./; q'` |
| 16463 | { if $as_mkdir_p; then |
| 16464 | mkdir -p "$ac_dir" |
| 16465 | else |
| 16466 | as_dir="$ac_dir" |
| 16467 | as_dirs= |
| 16468 | while test ! -d "$as_dir"; do |
| 16469 | as_dirs="$as_dir $as_dirs" |
| 16470 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16471 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16472 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16473 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16474 | X"$as_dir" : 'X\(/\)' \| \ |
| 16475 | . : '\(.\)' 2>/dev/null || |
| 16476 | echo X"$as_dir" | |
| 16477 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16478 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16479 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16480 | /^X\(\/\).*/{ s//\1/; q; } |
| 16481 | s/.*/./; q'` |
| 16482 | done |
| 16483 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16484 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16485 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16486 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16487 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16488 | rm -f $ac_file |
| 16489 | mv $tmp/config.h $ac_file |
| 16490 | fi |
| 16491 | else |
| 16492 | cat $tmp/config.h |
| 16493 | rm -f $tmp/config.h |
| 16494 | fi |
| 16495 | done |
| 16496 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16497 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16498 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16499 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16500 | { (exit 0); exit 0; } |
| 16501 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16502 | chmod +x $CONFIG_STATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16503 | ac_clean_files=$ac_clean_files_save |
| 16504 | |
| 16505 | |
| 16506 | # configure is writing to config.log, and then calls config.status. |
| 16507 | # config.status does its own redirection, appending to config.log. |
| 16508 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16509 | # by configure, so config.status won't be able to write to it; its |
| 16510 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16511 | # effectively closing config.log, so it can be properly (re)opened and |
| 16512 | # appended to by config.status. When coming back to configure, we |
| 16513 | # need to make the FD available again. |
| 16514 | if test "$no_create" != yes; then |
| 16515 | ac_cs_success=: |
| 16516 | ac_config_status_args= |
| 16517 | test "$silent" = yes && |
| 16518 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16519 | exec 5>/dev/null |
| 16520 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 16521 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16522 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16523 | # would make configure fail if this is the last instruction. |
| 16524 | $ac_cs_success || { (exit 1); exit 1; } |
| 16525 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16526 | |
| 16527 | |