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 | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.62. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4 | # |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13 | # Be more Bourne compatible |
| 14 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 21 | setopt NO_GLOB_SUBST |
| 22 | else |
| 23 | case `(set -o) 2>/dev/null` in |
| 24 | *posix*) set -o posix ;; |
| 25 | esac |
| 26 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 27 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | # PATH needs CR |
| 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
| 40 | as_nl=' |
| 41 | ' |
| 42 | export as_nl |
| 43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
| 58 | case $arg in |
| 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
| 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
| 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
| 79 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 80 | |
| 81 | # Support unset when possible. |
| 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 83 | as_unset=unset |
| 84 | else |
| 85 | as_unset=false |
| 86 | fi |
| 87 | |
| 88 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 89 | # IFS |
| 90 | # We need space, tab and new line, in precisely that order. Quoting is |
| 91 | # there to prevent editors from complaining about space-tab. |
| 92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 93 | # splitting by setting IFS to empty value.) |
| 94 | IFS=" "" $as_nl" |
| 95 | |
| 96 | # Find who we are. Look in the path if we contain no directory separator. |
| 97 | case $0 in |
| 98 | *[\\/]* ) as_myself=$0 ;; |
| 99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 100 | for as_dir in $PATH |
| 101 | do |
| 102 | IFS=$as_save_IFS |
| 103 | test -z "$as_dir" && as_dir=. |
| 104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 105 | done |
| 106 | IFS=$as_save_IFS |
| 107 | |
| 108 | ;; |
| 109 | esac |
| 110 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 111 | # in which case we are not to be found in the path. |
| 112 | if test "x$as_myself" = x; then |
| 113 | as_myself=$0 |
| 114 | fi |
| 115 | if test ! -f "$as_myself"; then |
| 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 117 | { (exit 1); exit 1; } |
| 118 | fi |
| 119 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 121 | for as_var in ENV MAIL MAILPATH |
| 122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 123 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 133 | |
| 134 | # Required to use basename. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 137 | as_expr=expr |
| 138 | else |
| 139 | as_expr=false |
| 140 | fi |
| 141 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 143 | as_basename=basename |
| 144 | else |
| 145 | as_basename=false |
| 146 | fi |
| 147 | |
| 148 | |
| 149 | # Name of the executable. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 150 | as_me=`$as_basename -- "$0" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 152 | X"$0" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 154 | $as_echo X/"$0" | |
| 155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 156 | s//\1/ |
| 157 | q |
| 158 | } |
| 159 | /^X\/\(\/\/\)$/{ |
| 160 | s//\1/ |
| 161 | q |
| 162 | } |
| 163 | /^X\/\(\/\).*/{ |
| 164 | s//\1/ |
| 165 | q |
| 166 | } |
| 167 | s/.*/./; q'` |
| 168 | |
| 169 | # CDPATH. |
| 170 | $as_unset CDPATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 171 | |
| 172 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 173 | if test "x$CONFIG_SHELL" = x; then |
| 174 | if (eval ":") 2>/dev/null; then |
| 175 | as_have_required=yes |
| 176 | else |
| 177 | as_have_required=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 178 | fi |
| 179 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 180 | if test $as_have_required = yes && (eval ": |
| 181 | (as_func_return () { |
| 182 | (exit \$1) |
| 183 | } |
| 184 | as_func_success () { |
| 185 | as_func_return 0 |
| 186 | } |
| 187 | as_func_failure () { |
| 188 | as_func_return 1 |
| 189 | } |
| 190 | as_func_ret_success () { |
| 191 | return 0 |
| 192 | } |
| 193 | as_func_ret_failure () { |
| 194 | return 1 |
| 195 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 196 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 197 | exitcode=0 |
| 198 | if as_func_success; then |
| 199 | : |
| 200 | else |
| 201 | exitcode=1 |
| 202 | echo as_func_success failed. |
| 203 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 204 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 205 | if as_func_failure; then |
| 206 | exitcode=1 |
| 207 | echo as_func_failure succeeded. |
| 208 | fi |
| 209 | |
| 210 | if as_func_ret_success; then |
| 211 | : |
| 212 | else |
| 213 | exitcode=1 |
| 214 | echo as_func_ret_success failed. |
| 215 | fi |
| 216 | |
| 217 | if as_func_ret_failure; then |
| 218 | exitcode=1 |
| 219 | echo as_func_ret_failure succeeded. |
| 220 | fi |
| 221 | |
| 222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 223 | : |
| 224 | else |
| 225 | exitcode=1 |
| 226 | echo positional parameters were not saved. |
| 227 | fi |
| 228 | |
| 229 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 230 | |
| 231 | ( |
| 232 | as_lineno_1=\$LINENO |
| 233 | as_lineno_2=\$LINENO |
| 234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 236 | ") 2> /dev/null; then |
| 237 | : |
| 238 | else |
| 239 | as_candidate_shells= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 242 | do |
| 243 | IFS=$as_save_IFS |
| 244 | test -z "$as_dir" && as_dir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 245 | case $as_dir in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 246 | /*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 247 | for as_base in sh bash ksh sh5; do |
| 248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 249 | done;; |
| 250 | esac |
| 251 | done |
| 252 | IFS=$as_save_IFS |
| 253 | |
| 254 | |
| 255 | for as_shell in $as_candidate_shells $SHELL; do |
| 256 | # Try only shells that exist, to save several forks. |
| 257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 258 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 260 | emulate sh |
| 261 | NULLCMD=: |
| 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 263 | # is contrary to our usage. Disable this feature. |
| 264 | alias -g '${1+"$@"}'='"$@"' |
| 265 | setopt NO_GLOB_SUBST |
| 266 | else |
| 267 | case `(set -o) 2>/dev/null` in |
| 268 | *posix*) set -o posix ;; |
| 269 | esac |
| 270 | |
| 271 | fi |
| 272 | |
| 273 | |
| 274 | : |
| 275 | _ASEOF |
| 276 | }; then |
| 277 | CONFIG_SHELL=$as_shell |
| 278 | as_have_required=yes |
| 279 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 281 | emulate sh |
| 282 | NULLCMD=: |
| 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 284 | # is contrary to our usage. Disable this feature. |
| 285 | alias -g '${1+"$@"}'='"$@"' |
| 286 | setopt NO_GLOB_SUBST |
| 287 | else |
| 288 | case `(set -o) 2>/dev/null` in |
| 289 | *posix*) set -o posix ;; |
| 290 | esac |
| 291 | |
| 292 | fi |
| 293 | |
| 294 | |
| 295 | : |
| 296 | (as_func_return () { |
| 297 | (exit $1) |
| 298 | } |
| 299 | as_func_success () { |
| 300 | as_func_return 0 |
| 301 | } |
| 302 | as_func_failure () { |
| 303 | as_func_return 1 |
| 304 | } |
| 305 | as_func_ret_success () { |
| 306 | return 0 |
| 307 | } |
| 308 | as_func_ret_failure () { |
| 309 | return 1 |
| 310 | } |
| 311 | |
| 312 | exitcode=0 |
| 313 | if as_func_success; then |
| 314 | : |
| 315 | else |
| 316 | exitcode=1 |
| 317 | echo as_func_success failed. |
| 318 | fi |
| 319 | |
| 320 | if as_func_failure; then |
| 321 | exitcode=1 |
| 322 | echo as_func_failure succeeded. |
| 323 | fi |
| 324 | |
| 325 | if as_func_ret_success; then |
| 326 | : |
| 327 | else |
| 328 | exitcode=1 |
| 329 | echo as_func_ret_success failed. |
| 330 | fi |
| 331 | |
| 332 | if as_func_ret_failure; then |
| 333 | exitcode=1 |
| 334 | echo as_func_ret_failure succeeded. |
| 335 | fi |
| 336 | |
| 337 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 338 | : |
| 339 | else |
| 340 | exitcode=1 |
| 341 | echo positional parameters were not saved. |
| 342 | fi |
| 343 | |
| 344 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 345 | |
| 346 | ( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 347 | as_lineno_1=$LINENO |
| 348 | as_lineno_2=$LINENO |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 351 | |
| 352 | _ASEOF |
| 353 | }; then |
| 354 | break |
| 355 | fi |
| 356 | |
| 357 | fi |
| 358 | |
| 359 | done |
| 360 | |
| 361 | if test "x$CONFIG_SHELL" != x; then |
| 362 | for as_var in BASH_ENV ENV |
| 363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 364 | done |
| 365 | export CONFIG_SHELL |
| 366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 367 | fi |
| 368 | |
| 369 | |
| 370 | if test $as_have_required = no; then |
| 371 | echo This script requires a shell more modern than all the |
| 372 | echo shells that I found on your system. Please install a |
| 373 | echo modern shell, or manually run the script under such a |
| 374 | echo shell if you do have one. |
| 375 | { (exit 1); exit 1; } |
| 376 | fi |
| 377 | |
| 378 | |
| 379 | fi |
| 380 | |
| 381 | fi |
| 382 | |
| 383 | |
| 384 | |
| 385 | (eval "as_func_return () { |
| 386 | (exit \$1) |
| 387 | } |
| 388 | as_func_success () { |
| 389 | as_func_return 0 |
| 390 | } |
| 391 | as_func_failure () { |
| 392 | as_func_return 1 |
| 393 | } |
| 394 | as_func_ret_success () { |
| 395 | return 0 |
| 396 | } |
| 397 | as_func_ret_failure () { |
| 398 | return 1 |
| 399 | } |
| 400 | |
| 401 | exitcode=0 |
| 402 | if as_func_success; then |
| 403 | : |
| 404 | else |
| 405 | exitcode=1 |
| 406 | echo as_func_success failed. |
| 407 | fi |
| 408 | |
| 409 | if as_func_failure; then |
| 410 | exitcode=1 |
| 411 | echo as_func_failure succeeded. |
| 412 | fi |
| 413 | |
| 414 | if as_func_ret_success; then |
| 415 | : |
| 416 | else |
| 417 | exitcode=1 |
| 418 | echo as_func_ret_success failed. |
| 419 | fi |
| 420 | |
| 421 | if as_func_ret_failure; then |
| 422 | exitcode=1 |
| 423 | echo as_func_ret_failure succeeded. |
| 424 | fi |
| 425 | |
| 426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 427 | : |
| 428 | else |
| 429 | exitcode=1 |
| 430 | echo positional parameters were not saved. |
| 431 | fi |
| 432 | |
| 433 | test \$exitcode = 0") || { |
| 434 | echo No shell found that supports shell functions. |
| 435 | echo Please tell bug-autoconf@gnu.org about your system, |
| 436 | echo including any error possibly output before this message. |
| 437 | echo This can help us improve future autoconf versions. |
| 438 | echo Configuration will now proceed without shell functions. |
| 439 | } |
| 440 | |
| 441 | |
| 442 | |
| 443 | as_lineno_1=$LINENO |
| 444 | as_lineno_2=$LINENO |
| 445 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 447 | |
| 448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 449 | # uniformly replaced by the line number. The first 'sed' inserts a |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 450 | # line-number line after each line using $LINENO; the second 'sed' |
| 451 | # does the real work. The second script uses 'N' to pair each |
| 452 | # line-number line with the line containing $LINENO, and appends |
| 453 | # trailing '-' during substitution so that $LINENO is not a special |
| 454 | # case at line end. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 457 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 458 | sed -n ' |
| 459 | p |
| 460 | /[$]LINENO/= |
| 461 | ' <$as_myself | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 462 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 463 | s/[$]LINENO.*/&-/ |
| 464 | t lineno |
| 465 | b |
| 466 | :lineno |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 467 | N |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 468 | :loop |
| 469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 470 | t loop |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 471 | s/-\n.*// |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 472 | ' >$as_me.lineno && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 473 | chmod +x "$as_me.lineno" || |
| 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 475 | { (exit 1); exit 1; }; } |
| 476 | |
| 477 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 478 | # (the dirname of $[0] is not the place where we might find the |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 479 | # original and so on. Autoconf is especially sensitive to this). |
| 480 | . "./$as_me.lineno" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 481 | # Exit status is that of the last command. |
| 482 | exit |
| 483 | } |
| 484 | |
| 485 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 487 | as_dirname=dirname |
| 488 | else |
| 489 | as_dirname=false |
| 490 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 491 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 492 | ECHO_C= ECHO_N= ECHO_T= |
| 493 | case `echo -n x` in |
| 494 | -n*) |
| 495 | case `echo 'x\c'` in |
| 496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 497 | *) ECHO_C='\c';; |
| 498 | esac;; |
| 499 | *) |
| 500 | ECHO_N='-n';; |
| 501 | esac |
| 502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 504 | as_expr=expr |
| 505 | else |
| 506 | as_expr=false |
| 507 | fi |
| 508 | |
| 509 | rm -f conf$$ conf$$.exe conf$$.file |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 510 | if test -d conf$$.dir; then |
| 511 | rm -f conf$$.dir/conf$$.file |
| 512 | else |
| 513 | rm -f conf$$.dir |
| 514 | mkdir conf$$.dir 2>/dev/null |
| 515 | fi |
| 516 | if (echo >conf$$.file) 2>/dev/null; then |
| 517 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 518 | as_ln_s='ln -s' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 519 | # ... but there are two gotchas: |
| 520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 522 | # In both cases, we have to default to `cp -p'. |
| 523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 524 | as_ln_s='cp -p' |
| 525 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 526 | as_ln_s=ln |
| 527 | else |
| 528 | as_ln_s='cp -p' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 529 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 530 | else |
| 531 | as_ln_s='cp -p' |
| 532 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 534 | rmdir conf$$.dir 2>/dev/null |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 535 | |
| 536 | if mkdir -p . 2>/dev/null; then |
| 537 | as_mkdir_p=: |
| 538 | else |
| 539 | test -d ./-p && rmdir ./-p |
| 540 | as_mkdir_p=false |
| 541 | fi |
| 542 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 543 | if test -x / >/dev/null 2>&1; then |
| 544 | as_test_x='test -x' |
| 545 | else |
| 546 | if ls -dL / >/dev/null 2>&1; then |
| 547 | as_ls_L_option=L |
| 548 | else |
| 549 | as_ls_L_option= |
| 550 | fi |
| 551 | as_test_x=' |
| 552 | eval sh -c '\'' |
| 553 | if test -d "$1"; then |
| 554 | test -d "$1/."; |
| 555 | else |
| 556 | case $1 in |
| 557 | -*)set "./$1";; |
| 558 | esac; |
| 559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 560 | ???[sx]*):;;*)false;;esac;fi |
| 561 | '\'' sh |
| 562 | ' |
| 563 | fi |
| 564 | as_executable_p=$as_test_x |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 565 | |
| 566 | # Sed expression to map a string onto a valid CPP name. |
| 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 568 | |
| 569 | # Sed expression to map a string onto a valid variable name. |
| 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 571 | |
| 572 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 573 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 574 | exec 7<&0 </dev/null 6>&1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 575 | |
| 576 | # Name of the host. |
| 577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 578 | # so uname gets run too. |
| 579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 580 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 581 | # |
| 582 | # Initializations. |
| 583 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 584 | ac_default_prefix=/usr/local |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 585 | ac_clean_files= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 586 | ac_config_libobj_dir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 587 | LIBOBJS= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 588 | cross_compiling=no |
| 589 | subdirs= |
| 590 | MFLAGS= |
| 591 | MAKEFLAGS= |
| 592 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 593 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 594 | # Identity of this package. |
| 595 | PACKAGE_NAME= |
| 596 | PACKAGE_TARNAME= |
| 597 | PACKAGE_VERSION= |
| 598 | PACKAGE_STRING= |
| 599 | PACKAGE_BUGREPORT= |
| 600 | |
| 601 | ac_unique_file="vim.h" |
| 602 | # Factoring default headers for most tests. |
| 603 | ac_includes_default="\ |
| 604 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 605 | #ifdef HAVE_SYS_TYPES_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 606 | # include <sys/types.h> |
| 607 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 608 | #ifdef HAVE_SYS_STAT_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 609 | # include <sys/stat.h> |
| 610 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 611 | #ifdef STDC_HEADERS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 612 | # include <stdlib.h> |
| 613 | # include <stddef.h> |
| 614 | #else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 615 | # ifdef HAVE_STDLIB_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 616 | # include <stdlib.h> |
| 617 | # endif |
| 618 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 619 | #ifdef HAVE_STRING_H |
| 620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 621 | # include <memory.h> |
| 622 | # endif |
| 623 | # include <string.h> |
| 624 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 625 | #ifdef HAVE_STRINGS_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 626 | # include <strings.h> |
| 627 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 628 | #ifdef HAVE_INTTYPES_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 629 | # include <inttypes.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 630 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 631 | #ifdef HAVE_STDINT_H |
| 632 | # include <stdint.h> |
| 633 | #endif |
| 634 | #ifdef HAVE_UNISTD_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 635 | # include <unistd.h> |
| 636 | #endif" |
| 637 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 638 | ac_subst_vars='SHELL |
| 639 | PATH_SEPARATOR |
| 640 | PACKAGE_NAME |
| 641 | PACKAGE_TARNAME |
| 642 | PACKAGE_VERSION |
| 643 | PACKAGE_STRING |
| 644 | PACKAGE_BUGREPORT |
| 645 | exec_prefix |
| 646 | prefix |
| 647 | program_transform_name |
| 648 | bindir |
| 649 | sbindir |
| 650 | libexecdir |
| 651 | datarootdir |
| 652 | datadir |
| 653 | sysconfdir |
| 654 | sharedstatedir |
| 655 | localstatedir |
| 656 | includedir |
| 657 | oldincludedir |
| 658 | docdir |
| 659 | infodir |
| 660 | htmldir |
| 661 | dvidir |
| 662 | pdfdir |
| 663 | psdir |
| 664 | libdir |
| 665 | localedir |
| 666 | mandir |
| 667 | DEFS |
| 668 | ECHO_C |
| 669 | ECHO_N |
| 670 | ECHO_T |
| 671 | LIBS |
| 672 | build_alias |
| 673 | host_alias |
| 674 | target_alias |
| 675 | SET_MAKE |
| 676 | CC |
| 677 | CFLAGS |
| 678 | LDFLAGS |
| 679 | CPPFLAGS |
| 680 | ac_ct_CC |
| 681 | EXEEXT |
| 682 | OBJEXT |
| 683 | CPP |
| 684 | GREP |
| 685 | EGREP |
| 686 | AWK |
| 687 | STRIP |
| 688 | CPP_MM |
| 689 | OS_EXTRA_SRC |
| 690 | OS_EXTRA_OBJ |
| 691 | VIMNAME |
| 692 | EXNAME |
| 693 | VIEWNAME |
| 694 | line_break |
| 695 | dovimdiff |
| 696 | dogvimdiff |
| 697 | compiledby |
| 698 | vi_cv_path_mzscheme |
| 699 | MZSCHEME_SRC |
| 700 | MZSCHEME_OBJ |
| 701 | MZSCHEME_PRO |
| 702 | MZSCHEME_LIBS |
| 703 | MZSCHEME_CFLAGS |
| 704 | vi_cv_path_perl |
| 705 | vi_cv_perllib |
| 706 | shrpenv |
| 707 | PERL_SRC |
| 708 | PERL_OBJ |
| 709 | PERL_PRO |
| 710 | PERL_CFLAGS |
| 711 | PERL_LIBS |
| 712 | vi_cv_path_python |
| 713 | PYTHON_CONFDIR |
| 714 | PYTHON_LIBS |
| 715 | PYTHON_GETPATH_CFLAGS |
| 716 | PYTHON_CFLAGS |
| 717 | PYTHON_SRC |
| 718 | PYTHON_OBJ |
| 719 | vi_cv_path_tcl |
| 720 | TCL_SRC |
| 721 | TCL_OBJ |
| 722 | TCL_PRO |
| 723 | TCL_CFLAGS |
| 724 | TCL_LIBS |
| 725 | vi_cv_path_ruby |
| 726 | RUBY_SRC |
| 727 | RUBY_OBJ |
| 728 | RUBY_PRO |
| 729 | RUBY_CFLAGS |
| 730 | RUBY_LIBS |
| 731 | WORKSHOP_SRC |
| 732 | WORKSHOP_OBJ |
| 733 | NETBEANS_SRC |
| 734 | NETBEANS_OBJ |
| 735 | SNIFF_SRC |
| 736 | SNIFF_OBJ |
| 737 | xmkmfpath |
| 738 | XMKMF |
| 739 | X_CFLAGS |
| 740 | X_PRE_LIBS |
| 741 | X_LIBS |
| 742 | X_EXTRA_LIBS |
| 743 | X_LIB |
| 744 | GTK_CONFIG |
| 745 | GTK12_CONFIG |
| 746 | PKG_CONFIG |
| 747 | GTK_CFLAGS |
| 748 | GTK_LIBS |
| 749 | GTK_LIBNAME |
| 750 | GNOME_LIBS |
| 751 | GNOME_LIBDIR |
| 752 | GNOME_INCLUDEDIR |
| 753 | GNOME_CONFIG |
| 754 | MOTIF_LIBNAME |
| 755 | NARROW_PROTO |
| 756 | GUI_INC_LOC |
| 757 | GUI_LIB_LOC |
| 758 | GUITYPE |
| 759 | GUI_X_LIBS |
| 760 | HANGULIN_SRC |
| 761 | HANGULIN_OBJ |
| 762 | TAGPRG |
| 763 | INSTALL_LANGS |
| 764 | INSTALL_TOOL_LANGS |
| 765 | MSGFMT |
| 766 | MAKEMO |
| 767 | DEPEND_CFLAGS_FILTER |
| 768 | LIBOBJS |
| 769 | LTLIBOBJS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 770 | ac_subst_files='' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 771 | ac_user_opts=' |
| 772 | enable_option_checking |
| 773 | enable_darwin |
| 774 | with_mac_arch |
| 775 | with_vim_name |
| 776 | with_ex_name |
| 777 | with_view_name |
| 778 | with_global_runtime |
| 779 | with_modified_by |
| 780 | enable_selinux |
| 781 | with_features |
| 782 | with_compiledby |
| 783 | enable_xsmp |
| 784 | enable_xsmp_interact |
| 785 | enable_mzschemeinterp |
| 786 | with_plthome |
| 787 | enable_perlinterp |
| 788 | enable_pythoninterp |
| 789 | with_python_config_dir |
| 790 | enable_tclinterp |
| 791 | with_tclsh |
| 792 | enable_rubyinterp |
| 793 | enable_cscope |
| 794 | enable_workshop |
| 795 | enable_netbeans |
| 796 | enable_sniff |
| 797 | enable_multibyte |
| 798 | enable_hangulinput |
| 799 | enable_xim |
| 800 | enable_fontset |
| 801 | with_x |
| 802 | enable_gui |
| 803 | enable_gtk_check |
| 804 | enable_gtk2_check |
| 805 | enable_gnome_check |
| 806 | enable_motif_check |
| 807 | enable_athena_check |
| 808 | enable_nextaw_check |
| 809 | enable_carbon_check |
| 810 | with_gtk_prefix |
| 811 | with_gtk_exec_prefix |
| 812 | enable_gtktest |
| 813 | with_gnome_includes |
| 814 | with_gnome_libs |
| 815 | with_gnome |
| 816 | with_motif_lib |
| 817 | with_tlib |
| 818 | enable_acl |
| 819 | enable_gpm |
| 820 | enable_sysmouse |
| 821 | enable_nls |
| 822 | ' |
| 823 | ac_precious_vars='build_alias |
| 824 | host_alias |
| 825 | target_alias |
| 826 | CC |
| 827 | CFLAGS |
| 828 | LDFLAGS |
| 829 | LIBS |
| 830 | CPPFLAGS |
| 831 | CPP |
| 832 | XMKMF' |
| 833 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 834 | |
| 835 | # Initialize some variables set by options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 836 | ac_init_help= |
| 837 | ac_init_version=false |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 838 | ac_unrecognized_opts= |
| 839 | ac_unrecognized_sep= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 840 | # The variables have the same names as the options, with |
| 841 | # dashes changed to underlines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 842 | cache_file=/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 843 | exec_prefix=NONE |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 844 | no_create= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 845 | no_recursion= |
| 846 | prefix=NONE |
| 847 | program_prefix=NONE |
| 848 | program_suffix=NONE |
| 849 | program_transform_name=s,x,x, |
| 850 | silent= |
| 851 | site= |
| 852 | srcdir= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 853 | verbose= |
| 854 | x_includes=NONE |
| 855 | x_libraries=NONE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 856 | |
| 857 | # Installation directory options. |
| 858 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 859 | # and all the variables that are supposed to be based on exec_prefix |
| 860 | # by default will actually change. |
| 861 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 862 | # (The list follows the same order as the GNU Coding Standards.) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 863 | bindir='${exec_prefix}/bin' |
| 864 | sbindir='${exec_prefix}/sbin' |
| 865 | libexecdir='${exec_prefix}/libexec' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 866 | datarootdir='${prefix}/share' |
| 867 | datadir='${datarootdir}' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 868 | sysconfdir='${prefix}/etc' |
| 869 | sharedstatedir='${prefix}/com' |
| 870 | localstatedir='${prefix}/var' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 871 | includedir='${prefix}/include' |
| 872 | oldincludedir='/usr/include' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 873 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 874 | infodir='${datarootdir}/info' |
| 875 | htmldir='${docdir}' |
| 876 | dvidir='${docdir}' |
| 877 | pdfdir='${docdir}' |
| 878 | psdir='${docdir}' |
| 879 | libdir='${exec_prefix}/lib' |
| 880 | localedir='${datarootdir}/locale' |
| 881 | mandir='${datarootdir}/man' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 882 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 883 | ac_prev= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 884 | ac_dashdash= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 885 | for ac_option |
| 886 | do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 887 | # If the previous option needs an argument, assign it. |
| 888 | if test -n "$ac_prev"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 889 | eval $ac_prev=\$ac_option |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 890 | ac_prev= |
| 891 | continue |
| 892 | fi |
| 893 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 894 | case $ac_option in |
| 895 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 896 | *) ac_optarg=yes ;; |
| 897 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 898 | |
| 899 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 900 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 901 | case $ac_dashdash$ac_option in |
| 902 | --) |
| 903 | ac_dashdash=yes ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 904 | |
| 905 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 906 | ac_prev=bindir ;; |
| 907 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 908 | bindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 909 | |
| 910 | -build | --build | --buil | --bui | --bu) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 911 | ac_prev=build_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 912 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 913 | build_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 914 | |
| 915 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 916 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 917 | ac_prev=cache_file ;; |
| 918 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 919 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 920 | cache_file=$ac_optarg ;; |
| 921 | |
| 922 | --config-cache | -C) |
| 923 | cache_file=config.cache ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 924 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 925 | -datadir | --datadir | --datadi | --datad) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 926 | ac_prev=datadir ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 927 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 928 | datadir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 929 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 930 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 931 | | --dataroo | --dataro | --datar) |
| 932 | ac_prev=datarootdir ;; |
| 933 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 934 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 935 | datarootdir=$ac_optarg ;; |
| 936 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 937 | -disable-* | --disable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 938 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 939 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 940 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 941 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 942 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 943 | ac_useropt_orig=$ac_useropt |
| 944 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 945 | case $ac_user_opts in |
| 946 | *" |
| 947 | "enable_$ac_useropt" |
| 948 | "*) ;; |
| 949 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 950 | ac_unrecognized_sep=', ';; |
| 951 | esac |
| 952 | eval enable_$ac_useropt=no ;; |
| 953 | |
| 954 | -docdir | --docdir | --docdi | --doc | --do) |
| 955 | ac_prev=docdir ;; |
| 956 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 957 | docdir=$ac_optarg ;; |
| 958 | |
| 959 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 960 | ac_prev=dvidir ;; |
| 961 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 962 | dvidir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 963 | |
| 964 | -enable-* | --enable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 965 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 966 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 967 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 968 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 969 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 970 | ac_useropt_orig=$ac_useropt |
| 971 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 972 | case $ac_user_opts in |
| 973 | *" |
| 974 | "enable_$ac_useropt" |
| 975 | "*) ;; |
| 976 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 977 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 978 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 979 | eval enable_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 980 | |
| 981 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 982 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 983 | | --exec | --exe | --ex) |
| 984 | ac_prev=exec_prefix ;; |
| 985 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 986 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 987 | | --exec=* | --exe=* | --ex=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 988 | exec_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 989 | |
| 990 | -gas | --gas | --ga | --g) |
| 991 | # Obsolete; use --with-gas. |
| 992 | with_gas=yes ;; |
| 993 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 994 | -help | --help | --hel | --he | -h) |
| 995 | ac_init_help=long ;; |
| 996 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 997 | ac_init_help=recursive ;; |
| 998 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 999 | ac_init_help=short ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1000 | |
| 1001 | -host | --host | --hos | --ho) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1002 | ac_prev=host_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1003 | -host=* | --host=* | --hos=* | --ho=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1004 | host_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1005 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1006 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1007 | ac_prev=htmldir ;; |
| 1008 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1009 | | --ht=*) |
| 1010 | htmldir=$ac_optarg ;; |
| 1011 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1012 | -includedir | --includedir | --includedi | --included | --include \ |
| 1013 | | --includ | --inclu | --incl | --inc) |
| 1014 | ac_prev=includedir ;; |
| 1015 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1016 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1017 | includedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1018 | |
| 1019 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1020 | ac_prev=infodir ;; |
| 1021 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1022 | infodir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1023 | |
| 1024 | -libdir | --libdir | --libdi | --libd) |
| 1025 | ac_prev=libdir ;; |
| 1026 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1027 | libdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1028 | |
| 1029 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1030 | | --libexe | --libex | --libe) |
| 1031 | ac_prev=libexecdir ;; |
| 1032 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1033 | | --libexe=* | --libex=* | --libe=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1034 | libexecdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1035 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1036 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1037 | ac_prev=localedir ;; |
| 1038 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1039 | localedir=$ac_optarg ;; |
| 1040 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1041 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1042 | | --localstate | --localstat | --localsta | --localst | --locals) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1043 | ac_prev=localstatedir ;; |
| 1044 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1045 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1046 | localstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1047 | |
| 1048 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1049 | ac_prev=mandir ;; |
| 1050 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1051 | mandir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1052 | |
| 1053 | -nfp | --nfp | --nf) |
| 1054 | # Obsolete; use --without-fp. |
| 1055 | with_fp=no ;; |
| 1056 | |
| 1057 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1058 | | --no-cr | --no-c | -n) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1059 | no_create=yes ;; |
| 1060 | |
| 1061 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1062 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1063 | no_recursion=yes ;; |
| 1064 | |
| 1065 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1066 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1067 | | --oldin | --oldi | --old | --ol | --o) |
| 1068 | ac_prev=oldincludedir ;; |
| 1069 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1070 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1071 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1072 | oldincludedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1073 | |
| 1074 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1075 | ac_prev=prefix ;; |
| 1076 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1077 | prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1078 | |
| 1079 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1080 | | --program-pre | --program-pr | --program-p) |
| 1081 | ac_prev=program_prefix ;; |
| 1082 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1083 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1084 | program_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1085 | |
| 1086 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1087 | | --program-suf | --program-su | --program-s) |
| 1088 | ac_prev=program_suffix ;; |
| 1089 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1090 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1091 | program_suffix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1092 | |
| 1093 | -program-transform-name | --program-transform-name \ |
| 1094 | | --program-transform-nam | --program-transform-na \ |
| 1095 | | --program-transform-n | --program-transform- \ |
| 1096 | | --program-transform | --program-transfor \ |
| 1097 | | --program-transfo | --program-transf \ |
| 1098 | | --program-trans | --program-tran \ |
| 1099 | | --progr-tra | --program-tr | --program-t) |
| 1100 | ac_prev=program_transform_name ;; |
| 1101 | -program-transform-name=* | --program-transform-name=* \ |
| 1102 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1103 | | --program-transform-n=* | --program-transform-=* \ |
| 1104 | | --program-transform=* | --program-transfor=* \ |
| 1105 | | --program-transfo=* | --program-transf=* \ |
| 1106 | | --program-trans=* | --program-tran=* \ |
| 1107 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1108 | program_transform_name=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1109 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1110 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1111 | ac_prev=pdfdir ;; |
| 1112 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1113 | pdfdir=$ac_optarg ;; |
| 1114 | |
| 1115 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1116 | ac_prev=psdir ;; |
| 1117 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1118 | psdir=$ac_optarg ;; |
| 1119 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1120 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1121 | | -silent | --silent | --silen | --sile | --sil) |
| 1122 | silent=yes ;; |
| 1123 | |
| 1124 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1125 | ac_prev=sbindir ;; |
| 1126 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1127 | | --sbi=* | --sb=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1128 | sbindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1129 | |
| 1130 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1131 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1132 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1133 | | --sha | --sh) |
| 1134 | ac_prev=sharedstatedir ;; |
| 1135 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1136 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1137 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1138 | | --sha=* | --sh=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1139 | sharedstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1140 | |
| 1141 | -site | --site | --sit) |
| 1142 | ac_prev=site ;; |
| 1143 | -site=* | --site=* | --sit=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1144 | site=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1145 | |
| 1146 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1147 | ac_prev=srcdir ;; |
| 1148 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1149 | srcdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1150 | |
| 1151 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1152 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1153 | ac_prev=sysconfdir ;; |
| 1154 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1155 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1156 | sysconfdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1157 | |
| 1158 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1159 | ac_prev=target_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1160 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1161 | target_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1162 | |
| 1163 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1164 | verbose=yes ;; |
| 1165 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1166 | -version | --version | --versio | --versi | --vers | -V) |
| 1167 | ac_init_version=: ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1168 | |
| 1169 | -with-* | --with-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1170 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1171 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1172 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1173 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1174 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1175 | ac_useropt_orig=$ac_useropt |
| 1176 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1177 | case $ac_user_opts in |
| 1178 | *" |
| 1179 | "with_$ac_useropt" |
| 1180 | "*) ;; |
| 1181 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1182 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1183 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1184 | eval with_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1185 | |
| 1186 | -without-* | --without-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1187 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1188 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1189 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1190 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1191 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1192 | ac_useropt_orig=$ac_useropt |
| 1193 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1194 | case $ac_user_opts in |
| 1195 | *" |
| 1196 | "with_$ac_useropt" |
| 1197 | "*) ;; |
| 1198 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1199 | ac_unrecognized_sep=', ';; |
| 1200 | esac |
| 1201 | eval with_$ac_useropt=no ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1202 | |
| 1203 | --x) |
| 1204 | # Obsolete; use --with-x. |
| 1205 | with_x=yes ;; |
| 1206 | |
| 1207 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1208 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1209 | ac_prev=x_includes ;; |
| 1210 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1211 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1212 | x_includes=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1213 | |
| 1214 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1215 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1216 | ac_prev=x_libraries ;; |
| 1217 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1218 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1219 | x_libraries=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1220 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1221 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1222 | Try \`$0 --help' for more information." >&2 |
| 1223 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1224 | ;; |
| 1225 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1226 | *=*) |
| 1227 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1228 | # Reject names that are not valid shell variable names. |
| 1229 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1230 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1231 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1232 | eval $ac_envvar=\$ac_optarg |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1233 | export $ac_envvar ;; |
| 1234 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1235 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1236 | # FIXME: should be removed in autoconf 3.0. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1237 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1238 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1239 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1240 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1241 | ;; |
| 1242 | |
| 1243 | esac |
| 1244 | done |
| 1245 | |
| 1246 | if test -n "$ac_prev"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1247 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1248 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1249 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1250 | fi |
| 1251 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1252 | if test -n "$ac_unrecognized_opts"; then |
| 1253 | case $enable_option_checking in |
| 1254 | no) ;; |
| 1255 | fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 |
| 1256 | { (exit 1); exit 1; }; } ;; |
| 1257 | *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1258 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1259 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1260 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1261 | # Check all directory arguments for consistency. |
| 1262 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1263 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1264 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1265 | libdir localedir mandir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1266 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1267 | eval ac_val=\$$ac_var |
| 1268 | # Remove trailing slashes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1269 | case $ac_val in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1270 | */ ) |
| 1271 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1272 | eval $ac_var=\$ac_val;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1273 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1274 | # Be sure to have absolute directory names. |
| 1275 | case $ac_val in |
| 1276 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1277 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1278 | esac |
| 1279 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1280 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1281 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1282 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1283 | # There might be people who depend on the old broken behavior: `$host' |
| 1284 | # used to hold the argument of --host etc. |
| 1285 | # FIXME: To remove some day. |
| 1286 | build=$build_alias |
| 1287 | host=$host_alias |
| 1288 | target=$target_alias |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1289 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1290 | # FIXME: To remove some day. |
| 1291 | if test "x$host_alias" != x; then |
| 1292 | if test "x$build_alias" = x; then |
| 1293 | cross_compiling=maybe |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1294 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1295 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1296 | elif test "x$build_alias" != "x$host_alias"; then |
| 1297 | cross_compiling=yes |
| 1298 | fi |
| 1299 | fi |
| 1300 | |
| 1301 | ac_tool_prefix= |
| 1302 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1303 | |
| 1304 | test "$silent" = yes && exec 6>/dev/null |
| 1305 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1306 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1307 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1308 | ac_ls_di=`ls -di .` && |
| 1309 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1310 | { $as_echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1311 | { (exit 1); exit 1; }; } |
| 1312 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1313 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1314 | { (exit 1); exit 1; }; } |
| 1315 | |
| 1316 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1317 | # Find the source files, if location was not specified. |
| 1318 | if test -z "$srcdir"; then |
| 1319 | ac_srcdir_defaulted=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1320 | # Try the directory containing this script, then the parent directory. |
| 1321 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1322 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1323 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1324 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1325 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1326 | $as_echo X"$as_myself" | |
| 1327 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1328 | s//\1/ |
| 1329 | q |
| 1330 | } |
| 1331 | /^X\(\/\/\)[^/].*/{ |
| 1332 | s//\1/ |
| 1333 | q |
| 1334 | } |
| 1335 | /^X\(\/\/\)$/{ |
| 1336 | s//\1/ |
| 1337 | q |
| 1338 | } |
| 1339 | /^X\(\/\).*/{ |
| 1340 | s//\1/ |
| 1341 | q |
| 1342 | } |
| 1343 | s/.*/./; q'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1344 | srcdir=$ac_confdir |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1345 | if test ! -r "$srcdir/$ac_unique_file"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1346 | srcdir=.. |
| 1347 | fi |
| 1348 | else |
| 1349 | ac_srcdir_defaulted=no |
| 1350 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1351 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1352 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1353 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1354 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1355 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1356 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1357 | ac_abs_confdir=`( |
| 1358 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1359 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1360 | pwd)` |
| 1361 | # When building in place, set srcdir=. |
| 1362 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1363 | srcdir=. |
| 1364 | fi |
| 1365 | # Remove unnecessary trailing slashes from srcdir. |
| 1366 | # Double slashes in file names in object file debugging info |
| 1367 | # mess up M-x gdb in Emacs. |
| 1368 | case $srcdir in |
| 1369 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1370 | esac |
| 1371 | for ac_var in $ac_precious_vars; do |
| 1372 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1373 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1374 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1375 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1376 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1377 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1378 | # |
| 1379 | # Report the --help message. |
| 1380 | # |
| 1381 | if test "$ac_init_help" = "long"; then |
| 1382 | # Omit some internal or obsolete options to make the list less imposing. |
| 1383 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1384 | cat <<_ACEOF |
| 1385 | \`configure' configures this package to adapt to many kinds of systems. |
| 1386 | |
| 1387 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1388 | |
| 1389 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1390 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1391 | |
| 1392 | Defaults for the options are specified in brackets. |
| 1393 | |
| 1394 | Configuration: |
| 1395 | -h, --help display this help and exit |
| 1396 | --help=short display options specific to this package |
| 1397 | --help=recursive display the short help of all the included packages |
| 1398 | -V, --version display version information and exit |
| 1399 | -q, --quiet, --silent do not print \`checking...' messages |
| 1400 | --cache-file=FILE cache test results in FILE [disabled] |
| 1401 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1402 | -n, --no-create do not create output files |
| 1403 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1404 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1405 | Installation directories: |
| 1406 | --prefix=PREFIX install architecture-independent files in PREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1407 | [$ac_default_prefix] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1408 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1409 | [PREFIX] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1410 | |
| 1411 | By default, \`make install' will install all the files in |
| 1412 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1413 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1414 | for instance \`--prefix=\$HOME'. |
| 1415 | |
| 1416 | For better control, use the options below. |
| 1417 | |
| 1418 | Fine tuning of the installation directories: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1419 | --bindir=DIR user executables [EPREFIX/bin] |
| 1420 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1421 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1422 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1423 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1424 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1425 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1426 | --includedir=DIR C header files [PREFIX/include] |
| 1427 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1428 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1429 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1430 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1431 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1432 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1433 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1434 | --htmldir=DIR html documentation [DOCDIR] |
| 1435 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1436 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1437 | --psdir=DIR ps documentation [DOCDIR] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1438 | _ACEOF |
| 1439 | |
| 1440 | cat <<\_ACEOF |
| 1441 | |
| 1442 | X features: |
| 1443 | --x-includes=DIR X include files are in DIR |
| 1444 | --x-libraries=DIR X library files are in DIR |
| 1445 | _ACEOF |
| 1446 | fi |
| 1447 | |
| 1448 | if test -n "$ac_init_help"; then |
| 1449 | |
| 1450 | cat <<\_ACEOF |
| 1451 | |
| 1452 | Optional Features: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1453 | --disable-option-checking ignore unrecognized --enable/--with options |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1454 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1455 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1456 | --disable-darwin Disable Darwin (Mac OS X) support. |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 1457 | --disable-selinux Don't check for SELinux support. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1458 | --disable-xsmp Disable XSMP session management |
| 1459 | --disable-xsmp-interact Disable XSMP interaction |
| 1460 | --enable-mzschemeinterp Include MzScheme interpreter. |
| 1461 | --enable-perlinterp Include Perl interpreter. |
| 1462 | --enable-pythoninterp Include Python interpreter. |
| 1463 | --enable-tclinterp Include Tcl interpreter. |
| 1464 | --enable-rubyinterp Include Ruby interpreter. |
| 1465 | --enable-cscope Include cscope interface. |
| 1466 | --enable-workshop Include Sun Visual Workshop support. |
| 1467 | --disable-netbeans Disable NetBeans integration support. |
| 1468 | --enable-sniff Include Sniff interface. |
| 1469 | --enable-multibyte Include multibyte editing support. |
| 1470 | --enable-hangulinput Include Hangul input support. |
| 1471 | --enable-xim Include XIM input support. |
| 1472 | --enable-fontset Include X fontset output support. |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 1473 | --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] | 1474 | --enable-gtk-check If auto-select GUI, check for GTK default=yes |
| 1475 | --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes |
| 1476 | --enable-gnome-check If GTK GUI, check for GNOME default=no |
| 1477 | --enable-motif-check If auto-select GUI, check for Motif default=yes |
| 1478 | --enable-athena-check If auto-select GUI, check for Athena default=yes |
| 1479 | --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes |
| 1480 | --enable-carbon-check If auto-select GUI, check for Carbon default=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1481 | --disable-gtktest Do not try to compile and run a test GTK program |
| 1482 | --disable-acl Don't check for ACL support. |
| 1483 | --disable-gpm Don't use gpm (Linux mouse daemon). |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1484 | --disable-sysmouse Don't use sysmouse (mouse in *BSD console). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1485 | --disable-nls Don't support NLS (gettext()). |
| 1486 | |
| 1487 | Optional Packages: |
| 1488 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1489 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Bram Moolenaar | 899dddf | 2006-03-26 21:06:50 +0000 | [diff] [blame] | 1490 | --with-mac-arch=ARCH current, intel, ppc or both |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1491 | --with-vim-name=NAME what to call the Vim executable |
| 1492 | --with-ex-name=NAME what to call the Ex executable |
| 1493 | --with-view-name=NAME what to call the View executable |
| 1494 | --with-global-runtime=DIR global runtime directory in 'runtimepath' |
| 1495 | --with-modified-by=NAME name of who modified a release version |
| 1496 | --with-features=TYPE tiny, small, normal, big or huge (default: normal) |
| 1497 | --with-compiledby=NAME name to show in :version message |
| 1498 | --with-plthome=PLTHOME Use PLTHOME. |
| 1499 | --with-python-config-dir=PATH Python's config directory |
| 1500 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
| 1501 | --with-x use the X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1502 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
| 1503 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
| 1504 | --with-gnome-includes=DIR Specify location of GNOME headers |
| 1505 | --with-gnome-libs=DIR Specify location of GNOME libs |
| 1506 | --with-gnome Specify prefix for GNOME files |
| 1507 | --with-motif-lib=STRING Library for Motif |
| 1508 | --with-tlib=library terminal library to be used |
| 1509 | |
| 1510 | Some influential environment variables: |
| 1511 | CC C compiler command |
| 1512 | CFLAGS C compiler flags |
| 1513 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1514 | nonstandard directory <lib dir> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1515 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1516 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1517 | you have headers in a nonstandard directory <include dir> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1518 | CPP C preprocessor |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1519 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1520 | |
| 1521 | Use these variables to override the choices made by `configure' or to help |
| 1522 | it to find libraries and programs with nonstandard names/locations. |
| 1523 | |
| 1524 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1525 | ac_status=$? |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1526 | fi |
| 1527 | |
| 1528 | if test "$ac_init_help" = "recursive"; then |
| 1529 | # If there are subdirs, report their specific --help. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1530 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1531 | test -d "$ac_dir" || |
| 1532 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1533 | continue |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1534 | ac_builddir=. |
| 1535 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1536 | case "$ac_dir" in |
| 1537 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1538 | *) |
| 1539 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1540 | # A ".." for each directory in $ac_dir_suffix. |
| 1541 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1542 | case $ac_top_builddir_sub in |
| 1543 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1544 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1545 | esac ;; |
| 1546 | esac |
| 1547 | ac_abs_top_builddir=$ac_pwd |
| 1548 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1549 | # for backward compatibility: |
| 1550 | ac_top_builddir=$ac_top_build_prefix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1551 | |
| 1552 | case $srcdir in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1553 | .) # We are building in place. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1554 | ac_srcdir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1555 | ac_top_srcdir=$ac_top_builddir_sub |
| 1556 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1557 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1558 | ac_srcdir=$srcdir$ac_dir_suffix; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1559 | ac_top_srcdir=$srcdir |
| 1560 | ac_abs_top_srcdir=$srcdir ;; |
| 1561 | *) # Relative name. |
| 1562 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1563 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1564 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1565 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1566 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1567 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1568 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1569 | # Check for guested configure. |
| 1570 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1571 | echo && |
| 1572 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1573 | elif test -f "$ac_srcdir/configure"; then |
| 1574 | echo && |
| 1575 | $SHELL "$ac_srcdir/configure" --help=recursive |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1576 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1577 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1578 | fi || ac_status=$? |
| 1579 | cd "$ac_pwd" || { ac_status=$?; break; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1580 | done |
| 1581 | fi |
| 1582 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1583 | test -n "$ac_init_help" && exit $ac_status |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1584 | if $ac_init_version; then |
| 1585 | cat <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1586 | configure |
| 1587 | generated by GNU Autoconf 2.62 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1588 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1589 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1590 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1591 | This configure script is free software; the Free Software Foundation |
| 1592 | gives unlimited permission to copy, distribute and modify it. |
| 1593 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1594 | exit |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1595 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1596 | cat >auto/config.log <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1597 | This file contains any messages produced by compilers while |
| 1598 | running configure, to aid debugging if configure makes a mistake. |
| 1599 | |
| 1600 | It was created by $as_me, which was |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1601 | generated by GNU Autoconf 2.62. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1602 | |
| 1603 | $ $0 $@ |
| 1604 | |
| 1605 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1606 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1607 | { |
| 1608 | cat <<_ASUNAME |
| 1609 | ## --------- ## |
| 1610 | ## Platform. ## |
| 1611 | ## --------- ## |
| 1612 | |
| 1613 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1614 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1615 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1616 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1617 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1618 | |
| 1619 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1620 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1621 | |
| 1622 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1623 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1624 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1625 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1626 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1627 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1628 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1629 | |
| 1630 | _ASUNAME |
| 1631 | |
| 1632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1633 | for as_dir in $PATH |
| 1634 | do |
| 1635 | IFS=$as_save_IFS |
| 1636 | test -z "$as_dir" && as_dir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1637 | $as_echo "PATH: $as_dir" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1638 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1639 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1640 | |
| 1641 | } >&5 |
| 1642 | |
| 1643 | cat >&5 <<_ACEOF |
| 1644 | |
| 1645 | |
| 1646 | ## ----------- ## |
| 1647 | ## Core tests. ## |
| 1648 | ## ----------- ## |
| 1649 | |
| 1650 | _ACEOF |
| 1651 | |
| 1652 | |
| 1653 | # Keep a trace of the command line. |
| 1654 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1655 | # Strip out --silent because we don't want to record it for future runs. |
| 1656 | # Also quote any args containing shell meta-characters. |
| 1657 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1658 | ac_configure_args= |
| 1659 | ac_configure_args0= |
| 1660 | ac_configure_args1= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1661 | ac_must_keep_next=false |
| 1662 | for ac_pass in 1 2 |
| 1663 | do |
| 1664 | for ac_arg |
| 1665 | do |
| 1666 | case $ac_arg in |
| 1667 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1668 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1669 | | -silent | --silent | --silen | --sile | --sil) |
| 1670 | continue ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1671 | *\'*) |
| 1672 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1673 | esac |
| 1674 | case $ac_pass in |
| 1675 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1676 | 2) |
| 1677 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1678 | if test $ac_must_keep_next = true; then |
| 1679 | ac_must_keep_next=false # Got value, back to normal. |
| 1680 | else |
| 1681 | case $ac_arg in |
| 1682 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1683 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1684 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1685 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1686 | case "$ac_configure_args0 " in |
| 1687 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1688 | esac |
| 1689 | ;; |
| 1690 | -* ) ac_must_keep_next=true ;; |
| 1691 | esac |
| 1692 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1693 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1694 | ;; |
| 1695 | esac |
| 1696 | done |
| 1697 | done |
| 1698 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1699 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1700 | |
| 1701 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1702 | # config.log. We remove comments because anyway the quotes in there |
| 1703 | # would cause problems or look ugly. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1704 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1705 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1706 | trap 'exit_status=$? |
| 1707 | # Save into config.log some information that might help in debugging. |
| 1708 | { |
| 1709 | echo |
| 1710 | |
| 1711 | cat <<\_ASBOX |
| 1712 | ## ---------------- ## |
| 1713 | ## Cache variables. ## |
| 1714 | ## ---------------- ## |
| 1715 | _ASBOX |
| 1716 | echo |
| 1717 | # The following way of writing the cache mishandles newlines in values, |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1718 | ( |
| 1719 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1720 | eval ac_val=\$$ac_var |
| 1721 | case $ac_val in #( |
| 1722 | *${as_nl}*) |
| 1723 | case $ac_var in #( |
| 1724 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1725 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1726 | esac |
| 1727 | case $ac_var in #( |
| 1728 | _ | IFS | as_nl) ;; #( |
| 1729 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1730 | *) $as_unset $ac_var ;; |
| 1731 | esac ;; |
| 1732 | esac |
| 1733 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1734 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1735 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1736 | *${as_nl}ac_space=\ *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1737 | sed -n \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1738 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1739 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1740 | ;; #( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1741 | *) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1742 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1743 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1744 | esac | |
| 1745 | sort |
| 1746 | ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1747 | echo |
| 1748 | |
| 1749 | cat <<\_ASBOX |
| 1750 | ## ----------------- ## |
| 1751 | ## Output variables. ## |
| 1752 | ## ----------------- ## |
| 1753 | _ASBOX |
| 1754 | echo |
| 1755 | for ac_var in $ac_subst_vars |
| 1756 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1757 | eval ac_val=\$$ac_var |
| 1758 | case $ac_val in |
| 1759 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1760 | esac |
| 1761 | $as_echo "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1762 | done | sort |
| 1763 | echo |
| 1764 | |
| 1765 | if test -n "$ac_subst_files"; then |
| 1766 | cat <<\_ASBOX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1767 | ## ------------------- ## |
| 1768 | ## File substitutions. ## |
| 1769 | ## ------------------- ## |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1770 | _ASBOX |
| 1771 | echo |
| 1772 | for ac_var in $ac_subst_files |
| 1773 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1774 | eval ac_val=\$$ac_var |
| 1775 | case $ac_val in |
| 1776 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1777 | esac |
| 1778 | $as_echo "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1779 | done | sort |
| 1780 | echo |
| 1781 | fi |
| 1782 | |
| 1783 | if test -s confdefs.h; then |
| 1784 | cat <<\_ASBOX |
| 1785 | ## ----------- ## |
| 1786 | ## confdefs.h. ## |
| 1787 | ## ----------- ## |
| 1788 | _ASBOX |
| 1789 | echo |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1790 | cat confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1791 | echo |
| 1792 | fi |
| 1793 | test "$ac_signal" != 0 && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1794 | $as_echo "$as_me: caught signal $ac_signal" |
| 1795 | $as_echo "$as_me: exit $exit_status" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1796 | } >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1797 | rm -f core *.core core.conftest.* && |
| 1798 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1799 | exit $exit_status |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1800 | ' 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1801 | for ac_signal in 1 2 13 15; do |
| 1802 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1803 | done |
| 1804 | ac_signal=0 |
| 1805 | |
| 1806 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1807 | rm -f -r conftest* confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1808 | |
| 1809 | # Predefined preprocessor variables. |
| 1810 | |
| 1811 | cat >>confdefs.h <<_ACEOF |
| 1812 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1813 | _ACEOF |
| 1814 | |
| 1815 | |
| 1816 | cat >>confdefs.h <<_ACEOF |
| 1817 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1818 | _ACEOF |
| 1819 | |
| 1820 | |
| 1821 | cat >>confdefs.h <<_ACEOF |
| 1822 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1823 | _ACEOF |
| 1824 | |
| 1825 | |
| 1826 | cat >>confdefs.h <<_ACEOF |
| 1827 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1828 | _ACEOF |
| 1829 | |
| 1830 | |
| 1831 | cat >>confdefs.h <<_ACEOF |
| 1832 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1833 | _ACEOF |
| 1834 | |
| 1835 | |
| 1836 | # Let the site file select an alternate cache file if it wants to. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1837 | # Prefer an explicitly selected file to automatically selected ones. |
| 1838 | ac_site_file1=NONE |
| 1839 | ac_site_file2=NONE |
| 1840 | if test -n "$CONFIG_SITE"; then |
| 1841 | ac_site_file1=$CONFIG_SITE |
| 1842 | elif test "x$prefix" != xNONE; then |
| 1843 | ac_site_file1=$prefix/share/config.site |
| 1844 | ac_site_file2=$prefix/etc/config.site |
| 1845 | else |
| 1846 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1847 | ac_site_file2=$ac_default_prefix/etc/config.site |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1848 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1849 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1850 | do |
| 1851 | test "x$ac_site_file" = xNONE && continue |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1852 | if test -r "$ac_site_file"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1853 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1854 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1855 | sed 's/^/| /' "$ac_site_file" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1856 | . "$ac_site_file" |
| 1857 | fi |
| 1858 | done |
| 1859 | |
| 1860 | if test -r "$cache_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1861 | # Some versions of bash will fail to source /dev/null (special |
| 1862 | # files actually), so we avoid doing that. |
| 1863 | if test -f "$cache_file"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1864 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1865 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1866 | case $cache_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1867 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1868 | *) . "./$cache_file";; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1869 | esac |
| 1870 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1871 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1872 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1873 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1874 | >$cache_file |
| 1875 | fi |
| 1876 | |
| 1877 | # Check that the precious variables saved in the cache have kept the same |
| 1878 | # value. |
| 1879 | ac_cache_corrupted=false |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1880 | for ac_var in $ac_precious_vars; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1881 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1882 | eval ac_new_set=\$ac_env_${ac_var}_set |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1883 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1884 | eval ac_new_val=\$ac_env_${ac_var}_value |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1885 | case $ac_old_set,$ac_new_set in |
| 1886 | set,) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1887 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1888 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1889 | ac_cache_corrupted=: ;; |
| 1890 | ,set) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1891 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1892 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1893 | ac_cache_corrupted=: ;; |
| 1894 | ,);; |
| 1895 | *) |
| 1896 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1897 | # differences in whitespace do not lead to failure. |
| 1898 | ac_old_val_w=`echo x $ac_old_val` |
| 1899 | ac_new_val_w=`echo x $ac_new_val` |
| 1900 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1901 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1902 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1903 | ac_cache_corrupted=: |
| 1904 | else |
| 1905 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1906 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1907 | eval $ac_var=\$ac_old_val |
| 1908 | fi |
| 1909 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1910 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1911 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1912 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1913 | fi;; |
| 1914 | esac |
| 1915 | # Pass precious variables to config.status. |
| 1916 | if test "$ac_new_set" = set; then |
| 1917 | case $ac_new_val in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1918 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1919 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1920 | esac |
| 1921 | case " $ac_configure_args " in |
| 1922 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1923 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1924 | esac |
| 1925 | fi |
| 1926 | done |
| 1927 | if $ac_cache_corrupted; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1928 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1929 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1930 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1931 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1932 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1933 | fi |
| 1934 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1935 | |
| 1936 | |
| 1937 | |
| 1938 | |
| 1939 | |
| 1940 | |
| 1941 | |
| 1942 | |
| 1943 | |
| 1944 | |
| 1945 | |
| 1946 | |
| 1947 | |
| 1948 | |
| 1949 | |
| 1950 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1951 | ac_ext=c |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1952 | ac_cpp='$CPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1956 | |
| 1957 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1958 | ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1959 | |
| 1960 | |
| 1961 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1962 | #define UNIX 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1963 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1964 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1965 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1966 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 1967 | set x ${MAKE-make} |
| 1968 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 1969 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 1970 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1971 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1972 | cat >conftest.make <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1973 | SHELL = /bin/sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1974 | all: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1975 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1976 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1977 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1978 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 1979 | *@@@%%%=?*=@@@%%%*) |
| 1980 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 1981 | *) |
| 1982 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 1983 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1984 | rm -f conftest.make |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1985 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1986 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 1987 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 1988 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1989 | SET_MAKE= |
| 1990 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1991 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 1992 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1993 | SET_MAKE="MAKE=${MAKE-make}" |
| 1994 | fi |
| 1995 | |
| 1996 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1997 | ac_ext=c |
| 1998 | ac_cpp='$CPP $CPPFLAGS' |
| 1999 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2000 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2001 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2002 | if test -n "$ac_tool_prefix"; then |
| 2003 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2004 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2005 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2006 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2007 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2008 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2009 | else |
| 2010 | if test -n "$CC"; then |
| 2011 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2012 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2014 | for as_dir in $PATH |
| 2015 | do |
| 2016 | IFS=$as_save_IFS |
| 2017 | test -z "$as_dir" && as_dir=. |
| 2018 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2019 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2020 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2021 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2022 | break 2 |
| 2023 | fi |
| 2024 | done |
| 2025 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2026 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2027 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2028 | fi |
| 2029 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2030 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2031 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2032 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2033 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2034 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2035 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2036 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2037 | fi |
| 2038 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2039 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2040 | fi |
| 2041 | if test -z "$ac_cv_prog_CC"; then |
| 2042 | ac_ct_CC=$CC |
| 2043 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2044 | set dummy gcc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2045 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2046 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2047 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2048 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2049 | else |
| 2050 | if test -n "$ac_ct_CC"; then |
| 2051 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2052 | else |
| 2053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2054 | for as_dir in $PATH |
| 2055 | do |
| 2056 | IFS=$as_save_IFS |
| 2057 | test -z "$as_dir" && as_dir=. |
| 2058 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2060 | ac_cv_prog_ac_ct_CC="gcc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2061 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2062 | break 2 |
| 2063 | fi |
| 2064 | done |
| 2065 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2066 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2067 | |
| 2068 | fi |
| 2069 | fi |
| 2070 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2071 | if test -n "$ac_ct_CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2072 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2073 | $as_echo "$ac_ct_CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2074 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2075 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2076 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2077 | fi |
| 2078 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2079 | if test "x$ac_ct_CC" = x; then |
| 2080 | CC="" |
| 2081 | else |
| 2082 | case $cross_compiling:$ac_tool_warned in |
| 2083 | yes:) |
| 2084 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2085 | whose name does not start with the host triplet. If you think this |
| 2086 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2087 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2088 | whose name does not start with the host triplet. If you think this |
| 2089 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2090 | ac_tool_warned=yes ;; |
| 2091 | esac |
| 2092 | CC=$ac_ct_CC |
| 2093 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2094 | else |
| 2095 | CC="$ac_cv_prog_CC" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2096 | fi |
| 2097 | |
| 2098 | if test -z "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2099 | if test -n "$ac_tool_prefix"; then |
| 2100 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2101 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2102 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2103 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2104 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2105 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2106 | else |
| 2107 | if test -n "$CC"; then |
| 2108 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2109 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2111 | for as_dir in $PATH |
| 2112 | do |
| 2113 | IFS=$as_save_IFS |
| 2114 | test -z "$as_dir" && as_dir=. |
| 2115 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2117 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2118 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2119 | break 2 |
| 2120 | fi |
| 2121 | done |
| 2122 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2123 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2124 | |
| 2125 | fi |
| 2126 | fi |
| 2127 | CC=$ac_cv_prog_CC |
| 2128 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2129 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2130 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2131 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2132 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2133 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2134 | fi |
| 2135 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2136 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2137 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2138 | fi |
| 2139 | if test -z "$CC"; then |
| 2140 | # Extract the first word of "cc", so it can be a program name with args. |
| 2141 | set dummy cc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2142 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2143 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2144 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2145 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2146 | else |
| 2147 | if test -n "$CC"; then |
| 2148 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2149 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2150 | ac_prog_rejected=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2152 | for as_dir in $PATH |
| 2153 | do |
| 2154 | IFS=$as_save_IFS |
| 2155 | test -z "$as_dir" && as_dir=. |
| 2156 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2157 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2158 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2159 | ac_prog_rejected=yes |
| 2160 | continue |
| 2161 | fi |
| 2162 | ac_cv_prog_CC="cc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2163 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2164 | break 2 |
| 2165 | fi |
| 2166 | done |
| 2167 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2168 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2169 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2170 | if test $ac_prog_rejected = yes; then |
| 2171 | # We found a bogon in the path, so make sure we never use it. |
| 2172 | set dummy $ac_cv_prog_CC |
| 2173 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2174 | if test $# != 0; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2175 | # We chose a different compiler from the bogus one. |
| 2176 | # However, it has the same basename, so the bogon will be chosen |
| 2177 | # first if we set CC to just the basename; use the full file name. |
| 2178 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2179 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2180 | fi |
| 2181 | fi |
| 2182 | fi |
| 2183 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2184 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2185 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2186 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2187 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2188 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2189 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2190 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2191 | fi |
| 2192 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2193 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2194 | fi |
| 2195 | if test -z "$CC"; then |
| 2196 | if test -n "$ac_tool_prefix"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2197 | for ac_prog in cl.exe |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2198 | do |
| 2199 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2200 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2201 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2202 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2203 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2204 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2205 | else |
| 2206 | if test -n "$CC"; then |
| 2207 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2208 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2210 | for as_dir in $PATH |
| 2211 | do |
| 2212 | IFS=$as_save_IFS |
| 2213 | test -z "$as_dir" && as_dir=. |
| 2214 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2216 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2217 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2218 | break 2 |
| 2219 | fi |
| 2220 | done |
| 2221 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2222 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2223 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2224 | fi |
| 2225 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2226 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2227 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2228 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2229 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2230 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2231 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2232 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2233 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2234 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2235 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2236 | test -n "$CC" && break |
| 2237 | done |
| 2238 | fi |
| 2239 | if test -z "$CC"; then |
| 2240 | ac_ct_CC=$CC |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2241 | for ac_prog in cl.exe |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2242 | do |
| 2243 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2244 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2245 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2246 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2247 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2248 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2249 | else |
| 2250 | if test -n "$ac_ct_CC"; then |
| 2251 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2252 | else |
| 2253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2254 | for as_dir in $PATH |
| 2255 | do |
| 2256 | IFS=$as_save_IFS |
| 2257 | test -z "$as_dir" && as_dir=. |
| 2258 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2260 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2261 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2262 | break 2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2263 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2264 | done |
| 2265 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2266 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2267 | |
| 2268 | fi |
| 2269 | fi |
| 2270 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2271 | if test -n "$ac_ct_CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2272 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2273 | $as_echo "$ac_ct_CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2274 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2275 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2276 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2277 | fi |
| 2278 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2279 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2280 | test -n "$ac_ct_CC" && break |
| 2281 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2282 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2283 | if test "x$ac_ct_CC" = x; then |
| 2284 | CC="" |
| 2285 | else |
| 2286 | case $cross_compiling:$ac_tool_warned in |
| 2287 | yes:) |
| 2288 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2289 | whose name does not start with the host triplet. If you think this |
| 2290 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2291 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2292 | whose name does not start with the host triplet. If you think this |
| 2293 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2294 | ac_tool_warned=yes ;; |
| 2295 | esac |
| 2296 | CC=$ac_ct_CC |
| 2297 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2298 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2299 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2300 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2301 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2302 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2303 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2304 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2305 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2306 | See \`config.log' for more details." >&2;} |
| 2307 | { (exit 1); exit 1; }; } |
| 2308 | |
| 2309 | # Provide some information about the compiler. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2310 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2311 | set X $ac_compile |
| 2312 | ac_compiler=$2 |
| 2313 | { (ac_try="$ac_compiler --version >&5" |
| 2314 | case "(($ac_try" in |
| 2315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2316 | *) ac_try_echo=$ac_try;; |
| 2317 | esac |
| 2318 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2319 | $as_echo "$ac_try_echo") >&5 |
| 2320 | (eval "$ac_compiler --version >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2321 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2322 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2323 | (exit $ac_status); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2324 | { (ac_try="$ac_compiler -v >&5" |
| 2325 | case "(($ac_try" in |
| 2326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2327 | *) ac_try_echo=$ac_try;; |
| 2328 | esac |
| 2329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2330 | $as_echo "$ac_try_echo") >&5 |
| 2331 | (eval "$ac_compiler -v >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2332 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2334 | (exit $ac_status); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2335 | { (ac_try="$ac_compiler -V >&5" |
| 2336 | case "(($ac_try" in |
| 2337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2338 | *) ac_try_echo=$ac_try;; |
| 2339 | esac |
| 2340 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2341 | $as_echo "$ac_try_echo") >&5 |
| 2342 | (eval "$ac_compiler -V >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2343 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2345 | (exit $ac_status); } |
| 2346 | |
| 2347 | cat >conftest.$ac_ext <<_ACEOF |
| 2348 | /* confdefs.h. */ |
| 2349 | _ACEOF |
| 2350 | cat confdefs.h >>conftest.$ac_ext |
| 2351 | cat >>conftest.$ac_ext <<_ACEOF |
| 2352 | /* end confdefs.h. */ |
| 2353 | |
| 2354 | int |
| 2355 | main () |
| 2356 | { |
| 2357 | |
| 2358 | ; |
| 2359 | return 0; |
| 2360 | } |
| 2361 | _ACEOF |
| 2362 | ac_clean_files_save=$ac_clean_files |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2363 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2364 | # Try to create an executable without -o first, disregard a.out. |
| 2365 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2366 | # of exeext. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2367 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2368 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2369 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2370 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2371 | # The possible output files: |
| 2372 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2373 | |
| 2374 | ac_rmfiles= |
| 2375 | for ac_file in $ac_files |
| 2376 | do |
| 2377 | case $ac_file in |
| 2378 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2379 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2380 | esac |
| 2381 | done |
| 2382 | rm -f $ac_rmfiles |
| 2383 | |
| 2384 | if { (ac_try="$ac_link_default" |
| 2385 | case "(($ac_try" in |
| 2386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2387 | *) ac_try_echo=$ac_try;; |
| 2388 | esac |
| 2389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2390 | $as_echo "$ac_try_echo") >&5 |
| 2391 | (eval "$ac_link_default") 2>&5 |
| 2392 | ac_status=$? |
| 2393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2394 | (exit $ac_status); }; then |
| 2395 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2396 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2397 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2398 | # so that the user can short-circuit this test for compilers unknown to |
| 2399 | # Autoconf. |
| 2400 | for ac_file in $ac_files '' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2401 | do |
| 2402 | test -f "$ac_file" || continue |
| 2403 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2404 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2405 | ;; |
| 2406 | [ab].out ) |
| 2407 | # We found the default executable, but exeext='' is most |
| 2408 | # certainly right. |
| 2409 | break;; |
| 2410 | *.* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2411 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2412 | then :; else |
| 2413 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2414 | fi |
| 2415 | # We set ac_cv_exeext here because the later test for it is not |
| 2416 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2417 | # argument, so we may need to know it at that point already. |
| 2418 | # Even if this section looks crufty: it has the advantage of |
| 2419 | # actually working. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2420 | break;; |
| 2421 | * ) |
| 2422 | break;; |
| 2423 | esac |
| 2424 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2425 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2426 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2427 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2428 | ac_file='' |
| 2429 | fi |
| 2430 | |
| 2431 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2432 | $as_echo "$ac_file" >&6; } |
| 2433 | if test -z "$ac_file"; then |
| 2434 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2436 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2437 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2438 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2439 | $as_echo "$as_me: error: C compiler cannot create executables |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2440 | See \`config.log' for more details." >&2;} |
| 2441 | { (exit 77); exit 77; }; } |
| 2442 | fi |
| 2443 | |
| 2444 | ac_exeext=$ac_cv_exeext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2445 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2446 | # Check that the compiler produces executables we can run. If not, either |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2447 | # the compiler is broken, or we cross compile. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2448 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2449 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2450 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2451 | # If not cross compiling, check that we can run a simple program. |
| 2452 | if test "$cross_compiling" != yes; then |
| 2453 | if { ac_try='./$ac_file' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2454 | { (case "(($ac_try" in |
| 2455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2456 | *) ac_try_echo=$ac_try;; |
| 2457 | esac |
| 2458 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2459 | $as_echo "$ac_try_echo") >&5 |
| 2460 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2461 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2463 | (exit $ac_status); }; }; then |
| 2464 | cross_compiling=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2465 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2466 | if test "$cross_compiling" = maybe; then |
| 2467 | cross_compiling=yes |
| 2468 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2469 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2470 | If you meant to cross compile, use \`--host'. |
| 2471 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2472 | $as_echo "$as_me: error: cannot run C compiled programs. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2473 | If you meant to cross compile, use \`--host'. |
| 2474 | See \`config.log' for more details." >&2;} |
| 2475 | { (exit 1); exit 1; }; } |
| 2476 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2477 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2478 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2479 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2480 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2481 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2482 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2483 | ac_clean_files=$ac_clean_files_save |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2484 | # Check that the compiler produces executables we can run. If not, either |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2485 | # the compiler is broken, or we cross compile. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2486 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2487 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2488 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2489 | $as_echo "$cross_compiling" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2490 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2491 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2492 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2493 | if { (ac_try="$ac_link" |
| 2494 | case "(($ac_try" in |
| 2495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2496 | *) ac_try_echo=$ac_try;; |
| 2497 | esac |
| 2498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2499 | $as_echo "$ac_try_echo") >&5 |
| 2500 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2501 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2503 | (exit $ac_status); }; then |
| 2504 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2505 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2506 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2507 | # `rm'. |
| 2508 | for ac_file in conftest.exe conftest conftest.*; do |
| 2509 | test -f "$ac_file" || continue |
| 2510 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2511 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2512 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2513 | break;; |
| 2514 | * ) break;; |
| 2515 | esac |
| 2516 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2517 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2518 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2519 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2520 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2521 | See \`config.log' for more details." >&2;} |
| 2522 | { (exit 1); exit 1; }; } |
| 2523 | fi |
| 2524 | |
| 2525 | rm -f conftest$ac_cv_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2526 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2527 | $as_echo "$ac_cv_exeext" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2528 | |
| 2529 | rm -f conftest.$ac_ext |
| 2530 | EXEEXT=$ac_cv_exeext |
| 2531 | ac_exeext=$EXEEXT |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2532 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2533 | $as_echo_n "checking for suffix of object files... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2534 | if test "${ac_cv_objext+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2535 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2536 | else |
| 2537 | cat >conftest.$ac_ext <<_ACEOF |
| 2538 | /* confdefs.h. */ |
| 2539 | _ACEOF |
| 2540 | cat confdefs.h >>conftest.$ac_ext |
| 2541 | cat >>conftest.$ac_ext <<_ACEOF |
| 2542 | /* end confdefs.h. */ |
| 2543 | |
| 2544 | int |
| 2545 | main () |
| 2546 | { |
| 2547 | |
| 2548 | ; |
| 2549 | return 0; |
| 2550 | } |
| 2551 | _ACEOF |
| 2552 | rm -f conftest.o conftest.obj |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2553 | if { (ac_try="$ac_compile" |
| 2554 | case "(($ac_try" in |
| 2555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2556 | *) ac_try_echo=$ac_try;; |
| 2557 | esac |
| 2558 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2559 | $as_echo "$ac_try_echo") >&5 |
| 2560 | (eval "$ac_compile") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2561 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2563 | (exit $ac_status); }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2564 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2565 | test -f "$ac_file" || continue; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2566 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2567 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2568 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2569 | break;; |
| 2570 | esac |
| 2571 | done |
| 2572 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2573 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2575 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2576 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2577 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2578 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2579 | See \`config.log' for more details." >&2;} |
| 2580 | { (exit 1); exit 1; }; } |
| 2581 | fi |
| 2582 | |
| 2583 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2584 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2585 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2586 | $as_echo "$ac_cv_objext" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2587 | OBJEXT=$ac_cv_objext |
| 2588 | ac_objext=$OBJEXT |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2589 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2590 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2591 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2592 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2593 | else |
| 2594 | cat >conftest.$ac_ext <<_ACEOF |
| 2595 | /* confdefs.h. */ |
| 2596 | _ACEOF |
| 2597 | cat confdefs.h >>conftest.$ac_ext |
| 2598 | cat >>conftest.$ac_ext <<_ACEOF |
| 2599 | /* end confdefs.h. */ |
| 2600 | |
| 2601 | int |
| 2602 | main () |
| 2603 | { |
| 2604 | #ifndef __GNUC__ |
| 2605 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2606 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2607 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2608 | ; |
| 2609 | return 0; |
| 2610 | } |
| 2611 | _ACEOF |
| 2612 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2613 | if { (ac_try="$ac_compile" |
| 2614 | case "(($ac_try" in |
| 2615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2616 | *) ac_try_echo=$ac_try;; |
| 2617 | esac |
| 2618 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2619 | $as_echo "$ac_try_echo") >&5 |
| 2620 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2621 | ac_status=$? |
| 2622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2623 | rm -f conftest.er1 |
| 2624 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2626 | (exit $ac_status); } && { |
| 2627 | test -z "$ac_c_werror_flag" || |
| 2628 | test ! -s conftest.err |
| 2629 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2630 | ac_compiler_gnu=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2631 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2632 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2634 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2635 | ac_compiler_gnu=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2636 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2637 | |
| 2638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2639 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2640 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2641 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2642 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2643 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2644 | if test $ac_compiler_gnu = yes; then |
| 2645 | GCC=yes |
| 2646 | else |
| 2647 | GCC= |
| 2648 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2649 | ac_test_CFLAGS=${CFLAGS+set} |
| 2650 | ac_save_CFLAGS=$CFLAGS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2651 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2652 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2653 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2654 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2655 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2656 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2657 | ac_c_werror_flag=yes |
| 2658 | ac_cv_prog_cc_g=no |
| 2659 | CFLAGS="-g" |
| 2660 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2661 | /* confdefs.h. */ |
| 2662 | _ACEOF |
| 2663 | cat confdefs.h >>conftest.$ac_ext |
| 2664 | cat >>conftest.$ac_ext <<_ACEOF |
| 2665 | /* end confdefs.h. */ |
| 2666 | |
| 2667 | int |
| 2668 | main () |
| 2669 | { |
| 2670 | |
| 2671 | ; |
| 2672 | return 0; |
| 2673 | } |
| 2674 | _ACEOF |
| 2675 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2676 | if { (ac_try="$ac_compile" |
| 2677 | case "(($ac_try" in |
| 2678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2679 | *) ac_try_echo=$ac_try;; |
| 2680 | esac |
| 2681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2682 | $as_echo "$ac_try_echo") >&5 |
| 2683 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2684 | ac_status=$? |
| 2685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2686 | rm -f conftest.er1 |
| 2687 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2689 | (exit $ac_status); } && { |
| 2690 | test -z "$ac_c_werror_flag" || |
| 2691 | test ! -s conftest.err |
| 2692 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2693 | ac_cv_prog_cc_g=yes |
| 2694 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2695 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2696 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2697 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2698 | CFLAGS="" |
| 2699 | cat >conftest.$ac_ext <<_ACEOF |
| 2700 | /* confdefs.h. */ |
| 2701 | _ACEOF |
| 2702 | cat confdefs.h >>conftest.$ac_ext |
| 2703 | cat >>conftest.$ac_ext <<_ACEOF |
| 2704 | /* end confdefs.h. */ |
| 2705 | |
| 2706 | int |
| 2707 | main () |
| 2708 | { |
| 2709 | |
| 2710 | ; |
| 2711 | return 0; |
| 2712 | } |
| 2713 | _ACEOF |
| 2714 | rm -f conftest.$ac_objext |
| 2715 | if { (ac_try="$ac_compile" |
| 2716 | case "(($ac_try" in |
| 2717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2718 | *) ac_try_echo=$ac_try;; |
| 2719 | esac |
| 2720 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2721 | $as_echo "$ac_try_echo") >&5 |
| 2722 | (eval "$ac_compile") 2>conftest.er1 |
| 2723 | ac_status=$? |
| 2724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2725 | rm -f conftest.er1 |
| 2726 | cat conftest.err >&5 |
| 2727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2728 | (exit $ac_status); } && { |
| 2729 | test -z "$ac_c_werror_flag" || |
| 2730 | test ! -s conftest.err |
| 2731 | } && test -s conftest.$ac_objext; then |
| 2732 | : |
| 2733 | else |
| 2734 | $as_echo "$as_me: failed program was:" >&5 |
| 2735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2736 | |
| 2737 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2738 | CFLAGS="-g" |
| 2739 | cat >conftest.$ac_ext <<_ACEOF |
| 2740 | /* confdefs.h. */ |
| 2741 | _ACEOF |
| 2742 | cat confdefs.h >>conftest.$ac_ext |
| 2743 | cat >>conftest.$ac_ext <<_ACEOF |
| 2744 | /* end confdefs.h. */ |
| 2745 | |
| 2746 | int |
| 2747 | main () |
| 2748 | { |
| 2749 | |
| 2750 | ; |
| 2751 | return 0; |
| 2752 | } |
| 2753 | _ACEOF |
| 2754 | rm -f conftest.$ac_objext |
| 2755 | if { (ac_try="$ac_compile" |
| 2756 | case "(($ac_try" in |
| 2757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2758 | *) ac_try_echo=$ac_try;; |
| 2759 | esac |
| 2760 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2761 | $as_echo "$ac_try_echo") >&5 |
| 2762 | (eval "$ac_compile") 2>conftest.er1 |
| 2763 | ac_status=$? |
| 2764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2765 | rm -f conftest.er1 |
| 2766 | cat conftest.err >&5 |
| 2767 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2768 | (exit $ac_status); } && { |
| 2769 | test -z "$ac_c_werror_flag" || |
| 2770 | test ! -s conftest.err |
| 2771 | } && test -s conftest.$ac_objext; then |
| 2772 | ac_cv_prog_cc_g=yes |
| 2773 | else |
| 2774 | $as_echo "$as_me: failed program was:" >&5 |
| 2775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2776 | |
| 2777 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2778 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2779 | |
| 2780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2781 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2782 | |
| 2783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2784 | fi |
| 2785 | |
| 2786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2787 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2788 | fi |
| 2789 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2790 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2791 | if test "$ac_test_CFLAGS" = set; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2792 | CFLAGS=$ac_save_CFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2793 | elif test $ac_cv_prog_cc_g = yes; then |
| 2794 | if test "$GCC" = yes; then |
| 2795 | CFLAGS="-g -O2" |
| 2796 | else |
| 2797 | CFLAGS="-g" |
| 2798 | fi |
| 2799 | else |
| 2800 | if test "$GCC" = yes; then |
| 2801 | CFLAGS="-O2" |
| 2802 | else |
| 2803 | CFLAGS= |
| 2804 | fi |
| 2805 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2806 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2807 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 2808 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2809 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2810 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2811 | ac_cv_prog_cc_c89=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2812 | ac_save_CC=$CC |
| 2813 | cat >conftest.$ac_ext <<_ACEOF |
| 2814 | /* confdefs.h. */ |
| 2815 | _ACEOF |
| 2816 | cat confdefs.h >>conftest.$ac_ext |
| 2817 | cat >>conftest.$ac_ext <<_ACEOF |
| 2818 | /* end confdefs.h. */ |
| 2819 | #include <stdarg.h> |
| 2820 | #include <stdio.h> |
| 2821 | #include <sys/types.h> |
| 2822 | #include <sys/stat.h> |
| 2823 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2824 | struct buf { int x; }; |
| 2825 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2826 | static char *e (p, i) |
| 2827 | char **p; |
| 2828 | int i; |
| 2829 | { |
| 2830 | return p[i]; |
| 2831 | } |
| 2832 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2833 | { |
| 2834 | char *s; |
| 2835 | va_list v; |
| 2836 | va_start (v,p); |
| 2837 | s = g (p, va_arg (v,int)); |
| 2838 | va_end (v); |
| 2839 | return s; |
| 2840 | } |
| 2841 | |
| 2842 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2843 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2844 | These don't provoke an error unfortunately, instead are silently treated |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2845 | as 'x'. The following induces an error, until -std is added to get |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2846 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2847 | array size at least. It's necessary to write '\x00'==0 to get something |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2848 | that's true only with -std. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2849 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2850 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2851 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2852 | inside strings and character constants. */ |
| 2853 | #define FOO(x) 'x' |
| 2854 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2855 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2856 | int test (int i, double x); |
| 2857 | struct s1 {int (*f) (int a);}; |
| 2858 | struct s2 {int (*f) (double a);}; |
| 2859 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2860 | int argc; |
| 2861 | char **argv; |
| 2862 | int |
| 2863 | main () |
| 2864 | { |
| 2865 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2866 | ; |
| 2867 | return 0; |
| 2868 | } |
| 2869 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2870 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2871 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2872 | do |
| 2873 | CC="$ac_save_CC $ac_arg" |
| 2874 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2875 | if { (ac_try="$ac_compile" |
| 2876 | case "(($ac_try" in |
| 2877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2878 | *) ac_try_echo=$ac_try;; |
| 2879 | esac |
| 2880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2881 | $as_echo "$ac_try_echo") >&5 |
| 2882 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2883 | ac_status=$? |
| 2884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2885 | rm -f conftest.er1 |
| 2886 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2887 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2888 | (exit $ac_status); } && { |
| 2889 | test -z "$ac_c_werror_flag" || |
| 2890 | test ! -s conftest.err |
| 2891 | } && test -s conftest.$ac_objext; then |
| 2892 | ac_cv_prog_cc_c89=$ac_arg |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2893 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2894 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2896 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2897 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2898 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2899 | |
| 2900 | rm -f core conftest.err conftest.$ac_objext |
| 2901 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2902 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2903 | rm -f conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2904 | CC=$ac_save_CC |
| 2905 | |
| 2906 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2907 | # AC_CACHE_VAL |
| 2908 | case "x$ac_cv_prog_cc_c89" in |
| 2909 | x) |
| 2910 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 2911 | $as_echo "none needed" >&6; } ;; |
| 2912 | xno) |
| 2913 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2914 | $as_echo "unsupported" >&6; } ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2915 | *) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2916 | CC="$CC $ac_cv_prog_cc_c89" |
| 2917 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2918 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2919 | esac |
| 2920 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2921 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2922 | ac_ext=c |
| 2923 | ac_cpp='$CPP $CPPFLAGS' |
| 2924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2927 | ac_ext=c |
| 2928 | ac_cpp='$CPP $CPPFLAGS' |
| 2929 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2930 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2931 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2932 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2933 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2934 | # On Suns, sometimes $CPP names a directory. |
| 2935 | if test -n "$CPP" && test -d "$CPP"; then |
| 2936 | CPP= |
| 2937 | fi |
| 2938 | if test -z "$CPP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2939 | if test "${ac_cv_prog_CPP+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2940 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2941 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2942 | # Double quotes because CPP needs to be expanded |
| 2943 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2944 | do |
| 2945 | ac_preproc_ok=false |
| 2946 | for ac_c_preproc_warn_flag in '' yes |
| 2947 | do |
| 2948 | # Use a header file that comes with gcc, so configuring glibc |
| 2949 | # with a fresh cross-compiler works. |
| 2950 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2951 | # <limits.h> exists even on freestanding compilers. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2952 | # 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] | 2953 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2954 | cat >conftest.$ac_ext <<_ACEOF |
| 2955 | /* confdefs.h. */ |
| 2956 | _ACEOF |
| 2957 | cat confdefs.h >>conftest.$ac_ext |
| 2958 | cat >>conftest.$ac_ext <<_ACEOF |
| 2959 | /* end confdefs.h. */ |
| 2960 | #ifdef __STDC__ |
| 2961 | # include <limits.h> |
| 2962 | #else |
| 2963 | # include <assert.h> |
| 2964 | #endif |
| 2965 | Syntax error |
| 2966 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2967 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2968 | case "(($ac_try" in |
| 2969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2970 | *) ac_try_echo=$ac_try;; |
| 2971 | esac |
| 2972 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2973 | $as_echo "$ac_try_echo") >&5 |
| 2974 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2975 | ac_status=$? |
| 2976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2977 | rm -f conftest.er1 |
| 2978 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2979 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2980 | (exit $ac_status); } >/dev/null && { |
| 2981 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2982 | test ! -s conftest.err |
| 2983 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2984 | : |
| 2985 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2986 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2988 | |
| 2989 | # Broken: fails on valid input. |
| 2990 | continue |
| 2991 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2992 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2993 | rm -f conftest.err conftest.$ac_ext |
| 2994 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2995 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2996 | # can be detected and how. |
| 2997 | cat >conftest.$ac_ext <<_ACEOF |
| 2998 | /* confdefs.h. */ |
| 2999 | _ACEOF |
| 3000 | cat confdefs.h >>conftest.$ac_ext |
| 3001 | cat >>conftest.$ac_ext <<_ACEOF |
| 3002 | /* end confdefs.h. */ |
| 3003 | #include <ac_nonexistent.h> |
| 3004 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3005 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3006 | case "(($ac_try" in |
| 3007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3008 | *) ac_try_echo=$ac_try;; |
| 3009 | esac |
| 3010 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3011 | $as_echo "$ac_try_echo") >&5 |
| 3012 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3013 | ac_status=$? |
| 3014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3015 | rm -f conftest.er1 |
| 3016 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3017 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3018 | (exit $ac_status); } >/dev/null && { |
| 3019 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3020 | test ! -s conftest.err |
| 3021 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3022 | # Broken: success on invalid input. |
| 3023 | continue |
| 3024 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3025 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3027 | |
| 3028 | # Passes both tests. |
| 3029 | ac_preproc_ok=: |
| 3030 | break |
| 3031 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3032 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3033 | rm -f conftest.err conftest.$ac_ext |
| 3034 | |
| 3035 | done |
| 3036 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3037 | rm -f conftest.err conftest.$ac_ext |
| 3038 | if $ac_preproc_ok; then |
| 3039 | break |
| 3040 | fi |
| 3041 | |
| 3042 | done |
| 3043 | ac_cv_prog_CPP=$CPP |
| 3044 | |
| 3045 | fi |
| 3046 | CPP=$ac_cv_prog_CPP |
| 3047 | else |
| 3048 | ac_cv_prog_CPP=$CPP |
| 3049 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3050 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3051 | $as_echo "$CPP" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3052 | ac_preproc_ok=false |
| 3053 | for ac_c_preproc_warn_flag in '' yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3054 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3055 | # Use a header file that comes with gcc, so configuring glibc |
| 3056 | # with a fresh cross-compiler works. |
| 3057 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3058 | # <limits.h> exists even on freestanding compilers. |
| 3059 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3060 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3061 | cat >conftest.$ac_ext <<_ACEOF |
| 3062 | /* confdefs.h. */ |
| 3063 | _ACEOF |
| 3064 | cat confdefs.h >>conftest.$ac_ext |
| 3065 | cat >>conftest.$ac_ext <<_ACEOF |
| 3066 | /* end confdefs.h. */ |
| 3067 | #ifdef __STDC__ |
| 3068 | # include <limits.h> |
| 3069 | #else |
| 3070 | # include <assert.h> |
| 3071 | #endif |
| 3072 | Syntax error |
| 3073 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3074 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3075 | case "(($ac_try" in |
| 3076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3077 | *) ac_try_echo=$ac_try;; |
| 3078 | esac |
| 3079 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3080 | $as_echo "$ac_try_echo") >&5 |
| 3081 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3082 | ac_status=$? |
| 3083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3084 | rm -f conftest.er1 |
| 3085 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3086 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3087 | (exit $ac_status); } >/dev/null && { |
| 3088 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3089 | test ! -s conftest.err |
| 3090 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3091 | : |
| 3092 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3093 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3095 | |
| 3096 | # Broken: fails on valid input. |
| 3097 | continue |
| 3098 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3099 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3100 | rm -f conftest.err conftest.$ac_ext |
| 3101 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3102 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3103 | # can be detected and how. |
| 3104 | cat >conftest.$ac_ext <<_ACEOF |
| 3105 | /* confdefs.h. */ |
| 3106 | _ACEOF |
| 3107 | cat confdefs.h >>conftest.$ac_ext |
| 3108 | cat >>conftest.$ac_ext <<_ACEOF |
| 3109 | /* end confdefs.h. */ |
| 3110 | #include <ac_nonexistent.h> |
| 3111 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3112 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3113 | case "(($ac_try" in |
| 3114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3115 | *) ac_try_echo=$ac_try;; |
| 3116 | esac |
| 3117 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3118 | $as_echo "$ac_try_echo") >&5 |
| 3119 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3120 | ac_status=$? |
| 3121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3122 | rm -f conftest.er1 |
| 3123 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3124 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3125 | (exit $ac_status); } >/dev/null && { |
| 3126 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3127 | test ! -s conftest.err |
| 3128 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3129 | # Broken: success on invalid input. |
| 3130 | continue |
| 3131 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3132 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3134 | |
| 3135 | # Passes both tests. |
| 3136 | ac_preproc_ok=: |
| 3137 | break |
| 3138 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3139 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3140 | rm -f conftest.err conftest.$ac_ext |
| 3141 | |
| 3142 | done |
| 3143 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3144 | rm -f conftest.err conftest.$ac_ext |
| 3145 | if $ac_preproc_ok; then |
| 3146 | : |
| 3147 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3148 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3149 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3150 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3151 | See \`config.log' for more details." >&2;} |
| 3152 | { (exit 1); exit 1; }; } |
| 3153 | fi |
| 3154 | |
| 3155 | ac_ext=c |
| 3156 | ac_cpp='$CPP $CPPFLAGS' |
| 3157 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3158 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3159 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3160 | |
| 3161 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3162 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3163 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3164 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3165 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3166 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3167 | if test -z "$GREP"; then |
| 3168 | ac_path_GREP_found=false |
| 3169 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3171 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3172 | do |
| 3173 | IFS=$as_save_IFS |
| 3174 | test -z "$as_dir" && as_dir=. |
| 3175 | for ac_prog in grep ggrep; do |
| 3176 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3177 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3178 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3179 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3180 | # Check for GNU $ac_path_GREP |
| 3181 | case `"$ac_path_GREP" --version 2>&1` in |
| 3182 | *GNU*) |
| 3183 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3184 | *) |
| 3185 | ac_count=0 |
| 3186 | $as_echo_n 0123456789 >"conftest.in" |
| 3187 | while : |
| 3188 | do |
| 3189 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3190 | mv "conftest.tmp" "conftest.in" |
| 3191 | cp "conftest.in" "conftest.nl" |
| 3192 | $as_echo 'GREP' >> "conftest.nl" |
| 3193 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3194 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3195 | ac_count=`expr $ac_count + 1` |
| 3196 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3197 | # Best one so far, save it but keep looking for a better one |
| 3198 | ac_cv_path_GREP="$ac_path_GREP" |
| 3199 | ac_path_GREP_max=$ac_count |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3200 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3201 | # 10*(2^10) chars as input seems more than enough |
| 3202 | test $ac_count -gt 10 && break |
| 3203 | done |
| 3204 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3205 | esac |
| 3206 | |
| 3207 | $ac_path_GREP_found && break 3 |
| 3208 | done |
| 3209 | done |
| 3210 | done |
| 3211 | IFS=$as_save_IFS |
| 3212 | if test -z "$ac_cv_path_GREP"; then |
| 3213 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3214 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3215 | { (exit 1); exit 1; }; } |
| 3216 | fi |
| 3217 | else |
| 3218 | ac_cv_path_GREP=$GREP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3219 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3220 | |
| 3221 | fi |
| 3222 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3223 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3224 | GREP="$ac_cv_path_GREP" |
| 3225 | |
| 3226 | |
| 3227 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3228 | $as_echo_n "checking for egrep... " >&6; } |
| 3229 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3230 | $as_echo_n "(cached) " >&6 |
| 3231 | else |
| 3232 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3233 | then ac_cv_path_EGREP="$GREP -E" |
| 3234 | else |
| 3235 | if test -z "$EGREP"; then |
| 3236 | ac_path_EGREP_found=false |
| 3237 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3239 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3240 | do |
| 3241 | IFS=$as_save_IFS |
| 3242 | test -z "$as_dir" && as_dir=. |
| 3243 | for ac_prog in egrep; do |
| 3244 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3245 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3246 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3247 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3248 | # Check for GNU $ac_path_EGREP |
| 3249 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3250 | *GNU*) |
| 3251 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3252 | *) |
| 3253 | ac_count=0 |
| 3254 | $as_echo_n 0123456789 >"conftest.in" |
| 3255 | while : |
| 3256 | do |
| 3257 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3258 | mv "conftest.tmp" "conftest.in" |
| 3259 | cp "conftest.in" "conftest.nl" |
| 3260 | $as_echo 'EGREP' >> "conftest.nl" |
| 3261 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3262 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3263 | ac_count=`expr $ac_count + 1` |
| 3264 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3265 | # Best one so far, save it but keep looking for a better one |
| 3266 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3267 | ac_path_EGREP_max=$ac_count |
| 3268 | fi |
| 3269 | # 10*(2^10) chars as input seems more than enough |
| 3270 | test $ac_count -gt 10 && break |
| 3271 | done |
| 3272 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3273 | esac |
| 3274 | |
| 3275 | $ac_path_EGREP_found && break 3 |
| 3276 | done |
| 3277 | done |
| 3278 | done |
| 3279 | IFS=$as_save_IFS |
| 3280 | if test -z "$ac_cv_path_EGREP"; then |
| 3281 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3282 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3283 | { (exit 1); exit 1; }; } |
| 3284 | fi |
| 3285 | else |
| 3286 | ac_cv_path_EGREP=$EGREP |
| 3287 | fi |
| 3288 | |
| 3289 | fi |
| 3290 | fi |
| 3291 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3292 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3293 | EGREP="$ac_cv_path_EGREP" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3294 | |
| 3295 | |
| 3296 | cat >conftest.$ac_ext <<_ACEOF |
| 3297 | /* confdefs.h. */ |
| 3298 | _ACEOF |
| 3299 | cat confdefs.h >>conftest.$ac_ext |
| 3300 | cat >>conftest.$ac_ext <<_ACEOF |
| 3301 | /* end confdefs.h. */ |
| 3302 | |
| 3303 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3304 | rm -f conftest* |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3305 | { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 3306 | $as_echo_n "checking for library containing strerror... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3307 | if test "${ac_cv_search_strerror+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3308 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3309 | else |
| 3310 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3311 | cat >conftest.$ac_ext <<_ACEOF |
| 3312 | /* confdefs.h. */ |
| 3313 | _ACEOF |
| 3314 | cat confdefs.h >>conftest.$ac_ext |
| 3315 | cat >>conftest.$ac_ext <<_ACEOF |
| 3316 | /* end confdefs.h. */ |
| 3317 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3318 | /* Override any GCC internal prototype to avoid an error. |
| 3319 | Use char because int might match the return type of a GCC |
| 3320 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3321 | #ifdef __cplusplus |
| 3322 | extern "C" |
| 3323 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3324 | char strerror (); |
| 3325 | int |
| 3326 | main () |
| 3327 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3328 | return strerror (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3329 | ; |
| 3330 | return 0; |
| 3331 | } |
| 3332 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3333 | for ac_lib in '' cposix; do |
| 3334 | if test -z "$ac_lib"; then |
| 3335 | ac_res="none required" |
| 3336 | else |
| 3337 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3338 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3339 | fi |
| 3340 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3341 | if { (ac_try="$ac_link" |
| 3342 | case "(($ac_try" in |
| 3343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3344 | *) ac_try_echo=$ac_try;; |
| 3345 | esac |
| 3346 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3347 | $as_echo "$ac_try_echo") >&5 |
| 3348 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3349 | ac_status=$? |
| 3350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3351 | rm -f conftest.er1 |
| 3352 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3353 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3354 | (exit $ac_status); } && { |
| 3355 | test -z "$ac_c_werror_flag" || |
| 3356 | test ! -s conftest.err |
| 3357 | } && test -s conftest$ac_exeext && { |
| 3358 | test "$cross_compiling" = yes || |
| 3359 | $as_test_x conftest$ac_exeext |
| 3360 | }; then |
| 3361 | ac_cv_search_strerror=$ac_res |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3362 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3363 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3365 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3366 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3367 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3368 | |
| 3369 | rm -rf conftest.dSYM |
| 3370 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3371 | conftest$ac_exeext |
| 3372 | if test "${ac_cv_search_strerror+set}" = set; then |
| 3373 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3374 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3375 | done |
| 3376 | if test "${ac_cv_search_strerror+set}" = set; then |
| 3377 | : |
| 3378 | else |
| 3379 | ac_cv_search_strerror=no |
| 3380 | fi |
| 3381 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3382 | LIBS=$ac_func_search_save_LIBS |
| 3383 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3384 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 3385 | $as_echo "$ac_cv_search_strerror" >&6; } |
| 3386 | ac_res=$ac_cv_search_strerror |
| 3387 | if test "$ac_res" != no; then |
| 3388 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3389 | |
| 3390 | fi |
| 3391 | for ac_prog in gawk mawk nawk awk |
| 3392 | do |
| 3393 | # 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] | 3394 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3395 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3396 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3397 | if test "${ac_cv_prog_AWK+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3398 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3399 | else |
| 3400 | if test -n "$AWK"; then |
| 3401 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3402 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3404 | for as_dir in $PATH |
| 3405 | do |
| 3406 | IFS=$as_save_IFS |
| 3407 | test -z "$as_dir" && as_dir=. |
| 3408 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3409 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3410 | ac_cv_prog_AWK="$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3411 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3412 | break 2 |
| 3413 | fi |
| 3414 | done |
| 3415 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3416 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3417 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3418 | fi |
| 3419 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3420 | AWK=$ac_cv_prog_AWK |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3421 | if test -n "$AWK"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3422 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
| 3423 | $as_echo "$AWK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3424 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3425 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3426 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3427 | fi |
| 3428 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3429 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3430 | test -n "$AWK" && break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3431 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3432 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3433 | # Extract the first word of "strip", so it can be a program name with args. |
| 3434 | set dummy strip; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3435 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3436 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3437 | if test "${ac_cv_prog_STRIP+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3438 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3439 | else |
| 3440 | if test -n "$STRIP"; then |
| 3441 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3442 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3444 | for as_dir in $PATH |
| 3445 | do |
| 3446 | IFS=$as_save_IFS |
| 3447 | test -z "$as_dir" && as_dir=. |
| 3448 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3450 | ac_cv_prog_STRIP="strip" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3451 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3452 | break 2 |
| 3453 | fi |
| 3454 | done |
| 3455 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3456 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3457 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3458 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 3459 | fi |
| 3460 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3461 | STRIP=$ac_cv_prog_STRIP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3462 | if test -n "$STRIP"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3463 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 3464 | $as_echo "$STRIP" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3465 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3466 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3467 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3468 | fi |
| 3469 | |
| 3470 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3471 | |
| 3472 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3473 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3474 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3475 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3476 | if test "${ac_cv_header_stdc+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3477 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3478 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3479 | cat >conftest.$ac_ext <<_ACEOF |
| 3480 | /* confdefs.h. */ |
| 3481 | _ACEOF |
| 3482 | cat confdefs.h >>conftest.$ac_ext |
| 3483 | cat >>conftest.$ac_ext <<_ACEOF |
| 3484 | /* end confdefs.h. */ |
| 3485 | #include <stdlib.h> |
| 3486 | #include <stdarg.h> |
| 3487 | #include <string.h> |
| 3488 | #include <float.h> |
| 3489 | |
| 3490 | int |
| 3491 | main () |
| 3492 | { |
| 3493 | |
| 3494 | ; |
| 3495 | return 0; |
| 3496 | } |
| 3497 | _ACEOF |
| 3498 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3499 | if { (ac_try="$ac_compile" |
| 3500 | case "(($ac_try" in |
| 3501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3502 | *) ac_try_echo=$ac_try;; |
| 3503 | esac |
| 3504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3505 | $as_echo "$ac_try_echo") >&5 |
| 3506 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3507 | ac_status=$? |
| 3508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3509 | rm -f conftest.er1 |
| 3510 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3512 | (exit $ac_status); } && { |
| 3513 | test -z "$ac_c_werror_flag" || |
| 3514 | test ! -s conftest.err |
| 3515 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3516 | ac_cv_header_stdc=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3517 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3518 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3520 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3521 | ac_cv_header_stdc=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3522 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3523 | |
| 3524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3525 | |
| 3526 | if test $ac_cv_header_stdc = yes; then |
| 3527 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3528 | cat >conftest.$ac_ext <<_ACEOF |
| 3529 | /* confdefs.h. */ |
| 3530 | _ACEOF |
| 3531 | cat confdefs.h >>conftest.$ac_ext |
| 3532 | cat >>conftest.$ac_ext <<_ACEOF |
| 3533 | /* end confdefs.h. */ |
| 3534 | #include <string.h> |
| 3535 | |
| 3536 | _ACEOF |
| 3537 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3538 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3539 | : |
| 3540 | else |
| 3541 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3542 | fi |
| 3543 | rm -f conftest* |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3544 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3545 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3546 | |
| 3547 | if test $ac_cv_header_stdc = yes; then |
| 3548 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3549 | cat >conftest.$ac_ext <<_ACEOF |
| 3550 | /* confdefs.h. */ |
| 3551 | _ACEOF |
| 3552 | cat confdefs.h >>conftest.$ac_ext |
| 3553 | cat >>conftest.$ac_ext <<_ACEOF |
| 3554 | /* end confdefs.h. */ |
| 3555 | #include <stdlib.h> |
| 3556 | |
| 3557 | _ACEOF |
| 3558 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3559 | $EGREP "free" >/dev/null 2>&1; then |
| 3560 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3561 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3562 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3563 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3564 | rm -f conftest* |
| 3565 | |
| 3566 | fi |
| 3567 | |
| 3568 | if test $ac_cv_header_stdc = yes; then |
| 3569 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3570 | if test "$cross_compiling" = yes; then |
| 3571 | : |
| 3572 | else |
| 3573 | cat >conftest.$ac_ext <<_ACEOF |
| 3574 | /* confdefs.h. */ |
| 3575 | _ACEOF |
| 3576 | cat confdefs.h >>conftest.$ac_ext |
| 3577 | cat >>conftest.$ac_ext <<_ACEOF |
| 3578 | /* end confdefs.h. */ |
| 3579 | #include <ctype.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3580 | #include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3581 | #if ((' ' & 0x0FF) == 0x020) |
| 3582 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3583 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3584 | #else |
| 3585 | # define ISLOWER(c) \ |
| 3586 | (('a' <= (c) && (c) <= 'i') \ |
| 3587 | || ('j' <= (c) && (c) <= 'r') \ |
| 3588 | || ('s' <= (c) && (c) <= 'z')) |
| 3589 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3590 | #endif |
| 3591 | |
| 3592 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3593 | int |
| 3594 | main () |
| 3595 | { |
| 3596 | int i; |
| 3597 | for (i = 0; i < 256; i++) |
| 3598 | if (XOR (islower (i), ISLOWER (i)) |
| 3599 | || toupper (i) != TOUPPER (i)) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3600 | return 2; |
| 3601 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3602 | } |
| 3603 | _ACEOF |
| 3604 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3605 | if { (ac_try="$ac_link" |
| 3606 | case "(($ac_try" in |
| 3607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3608 | *) ac_try_echo=$ac_try;; |
| 3609 | esac |
| 3610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3611 | $as_echo "$ac_try_echo") >&5 |
| 3612 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3613 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3615 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3616 | { (case "(($ac_try" in |
| 3617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3618 | *) ac_try_echo=$ac_try;; |
| 3619 | esac |
| 3620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3621 | $as_echo "$ac_try_echo") >&5 |
| 3622 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3623 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3625 | (exit $ac_status); }; }; then |
| 3626 | : |
| 3627 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3628 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 3629 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3631 | |
| 3632 | ( exit $ac_status ) |
| 3633 | ac_cv_header_stdc=no |
| 3634 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3635 | rm -rf conftest.dSYM |
| 3636 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3637 | fi |
| 3638 | |
| 3639 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3640 | fi |
| 3641 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3642 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3643 | $as_echo "$ac_cv_header_stdc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3644 | if test $ac_cv_header_stdc = yes; then |
| 3645 | |
| 3646 | cat >>confdefs.h <<\_ACEOF |
| 3647 | #define STDC_HEADERS 1 |
| 3648 | _ACEOF |
| 3649 | |
| 3650 | fi |
| 3651 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3652 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 3653 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 3654 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 3655 | $as_echo_n "(cached) " >&6 |
| 3656 | else |
| 3657 | cat >conftest.$ac_ext <<_ACEOF |
| 3658 | /* confdefs.h. */ |
| 3659 | _ACEOF |
| 3660 | cat confdefs.h >>conftest.$ac_ext |
| 3661 | cat >>conftest.$ac_ext <<_ACEOF |
| 3662 | /* end confdefs.h. */ |
| 3663 | #include <sys/types.h> |
| 3664 | #include <sys/wait.h> |
| 3665 | #ifndef WEXITSTATUS |
| 3666 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 3667 | #endif |
| 3668 | #ifndef WIFEXITED |
| 3669 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 3670 | #endif |
| 3671 | |
| 3672 | int |
| 3673 | main () |
| 3674 | { |
| 3675 | int s; |
| 3676 | wait (&s); |
| 3677 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 3678 | ; |
| 3679 | return 0; |
| 3680 | } |
| 3681 | _ACEOF |
| 3682 | rm -f conftest.$ac_objext |
| 3683 | if { (ac_try="$ac_compile" |
| 3684 | case "(($ac_try" in |
| 3685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3686 | *) ac_try_echo=$ac_try;; |
| 3687 | esac |
| 3688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3689 | $as_echo "$ac_try_echo") >&5 |
| 3690 | (eval "$ac_compile") 2>conftest.er1 |
| 3691 | ac_status=$? |
| 3692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3693 | rm -f conftest.er1 |
| 3694 | cat conftest.err >&5 |
| 3695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3696 | (exit $ac_status); } && { |
| 3697 | test -z "$ac_c_werror_flag" || |
| 3698 | test ! -s conftest.err |
| 3699 | } && test -s conftest.$ac_objext; then |
| 3700 | ac_cv_header_sys_wait_h=yes |
| 3701 | else |
| 3702 | $as_echo "$as_me: failed program was:" >&5 |
| 3703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3704 | |
| 3705 | ac_cv_header_sys_wait_h=no |
| 3706 | fi |
| 3707 | |
| 3708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3709 | fi |
| 3710 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 3711 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
| 3712 | if test $ac_cv_header_sys_wait_h = yes; then |
| 3713 | |
| 3714 | cat >>confdefs.h <<\_ACEOF |
| 3715 | #define HAVE_SYS_WAIT_H 1 |
| 3716 | _ACEOF |
| 3717 | |
| 3718 | fi |
| 3719 | |
| 3720 | |
| 3721 | if test -z "$CFLAGS"; then |
| 3722 | CFLAGS="-O" |
| 3723 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 3724 | fi |
| 3725 | if test "$GCC" = yes; then |
| 3726 | gccversion=`"$CC" -dumpversion` |
| 3727 | if test "x$gccversion" = "x"; then |
| 3728 | gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
| 3729 | fi |
| 3730 | if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then |
| 3731 | echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' |
| 3732 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 3733 | else |
| 3734 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 3735 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 3736 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 3737 | fi |
| 3738 | fi |
| 3739 | fi |
| 3740 | |
| 3741 | if test "$cross_compiling" = yes; then |
| 3742 | { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 |
| 3743 | $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } |
| 3744 | fi |
| 3745 | |
| 3746 | test "$GCC" = yes && CPP_MM=M; |
| 3747 | |
| 3748 | if test -f ./toolcheck; then |
| 3749 | { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
| 3750 | $as_echo "$as_me: checking for buggy tools..." >&6;} |
| 3751 | sh ./toolcheck 1>&6 |
| 3752 | fi |
| 3753 | |
| 3754 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 3755 | |
| 3756 | { $as_echo "$as_me:$LINENO: checking for BeOS" >&5 |
| 3757 | $as_echo_n "checking for BeOS... " >&6; } |
| 3758 | case `uname` in |
| 3759 | BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o |
| 3760 | BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3761 | $as_echo "yes" >&6; };; |
| 3762 | *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3763 | $as_echo "no" >&6; };; |
| 3764 | esac |
| 3765 | |
| 3766 | { $as_echo "$as_me:$LINENO: checking for QNX" >&5 |
| 3767 | $as_echo_n "checking for QNX... " >&6; } |
| 3768 | case `uname` in |
| 3769 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 3770 | test -z "$with_x" && with_x=no |
| 3771 | QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3772 | $as_echo "yes" >&6; };; |
| 3773 | *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3774 | $as_echo "no" >&6; };; |
| 3775 | esac |
| 3776 | |
| 3777 | { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
| 3778 | $as_echo_n "checking for Darwin (Mac OS X)... " >&6; } |
| 3779 | if test "`(uname) 2>/dev/null`" = Darwin; then |
| 3780 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3781 | $as_echo "yes" >&6; } |
| 3782 | |
| 3783 | { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
| 3784 | $as_echo_n "checking --disable-darwin argument... " >&6; } |
| 3785 | # Check whether --enable-darwin was given. |
| 3786 | if test "${enable_darwin+set}" = set; then |
| 3787 | enableval=$enable_darwin; |
| 3788 | else |
| 3789 | enable_darwin="yes" |
| 3790 | fi |
| 3791 | |
| 3792 | if test "$enable_darwin" = "yes"; then |
| 3793 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3794 | $as_echo "no" >&6; } |
| 3795 | { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
| 3796 | $as_echo_n "checking if Darwin files are there... " >&6; } |
| 3797 | if test -f os_macosx.c; then |
| 3798 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3799 | $as_echo "yes" >&6; } |
| 3800 | else |
| 3801 | { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
| 3802 | $as_echo "no, Darwin support disabled" >&6; } |
| 3803 | enable_darwin=no |
| 3804 | fi |
| 3805 | else |
| 3806 | { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
| 3807 | $as_echo "yes, Darwin support excluded" >&6; } |
| 3808 | fi |
| 3809 | |
| 3810 | { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5 |
| 3811 | $as_echo_n "checking --with-mac-arch argument... " >&6; } |
| 3812 | |
| 3813 | # Check whether --with-mac-arch was given. |
| 3814 | if test "${with_mac_arch+set}" = set; then |
| 3815 | withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5 |
| 3816 | $as_echo "$MACARCH" >&6; } |
| 3817 | else |
| 3818 | MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5 |
| 3819 | $as_echo "defaulting to $MACARCH" >&6; } |
| 3820 | fi |
| 3821 | |
| 3822 | |
| 3823 | if test "x$MACARCH" = "xboth"; then |
| 3824 | { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5 |
| 3825 | $as_echo_n "checking for 10.4 universal SDK... " >&6; } |
| 3826 | save_cppflags="$CPPFLAGS" |
| 3827 | save_cflags="$CFLAGS" |
| 3828 | save_ldflags="$LDFLAGS" |
| 3829 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 3830 | cat >conftest.$ac_ext <<_ACEOF |
| 3831 | /* confdefs.h. */ |
| 3832 | _ACEOF |
| 3833 | cat confdefs.h >>conftest.$ac_ext |
| 3834 | cat >>conftest.$ac_ext <<_ACEOF |
| 3835 | /* end confdefs.h. */ |
| 3836 | |
| 3837 | int |
| 3838 | main () |
| 3839 | { |
| 3840 | |
| 3841 | ; |
| 3842 | return 0; |
| 3843 | } |
| 3844 | _ACEOF |
| 3845 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3846 | if { (ac_try="$ac_link" |
| 3847 | case "(($ac_try" in |
| 3848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3849 | *) ac_try_echo=$ac_try;; |
| 3850 | esac |
| 3851 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3852 | $as_echo "$ac_try_echo") >&5 |
| 3853 | (eval "$ac_link") 2>conftest.er1 |
| 3854 | ac_status=$? |
| 3855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3856 | rm -f conftest.er1 |
| 3857 | cat conftest.err >&5 |
| 3858 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3859 | (exit $ac_status); } && { |
| 3860 | test -z "$ac_c_werror_flag" || |
| 3861 | test ! -s conftest.err |
| 3862 | } && test -s conftest$ac_exeext && { |
| 3863 | test "$cross_compiling" = yes || |
| 3864 | $as_test_x conftest$ac_exeext |
| 3865 | }; then |
| 3866 | { $as_echo "$as_me:$LINENO: result: found" >&5 |
| 3867 | $as_echo "found" >&6; } |
| 3868 | else |
| 3869 | $as_echo "$as_me: failed program was:" >&5 |
| 3870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3871 | |
| 3872 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 3873 | $as_echo "not found" >&6; } |
| 3874 | CFLAGS="$save_cflags" |
| 3875 | { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5 |
| 3876 | $as_echo_n "checking if Intel architecture is supported... " >&6; } |
| 3877 | CPPFLAGS="$CPPFLAGS -arch i386" |
| 3878 | LDFLAGS="$save_ldflags -arch i386" |
| 3879 | cat >conftest.$ac_ext <<_ACEOF |
| 3880 | /* confdefs.h. */ |
| 3881 | _ACEOF |
| 3882 | cat confdefs.h >>conftest.$ac_ext |
| 3883 | cat >>conftest.$ac_ext <<_ACEOF |
| 3884 | /* end confdefs.h. */ |
| 3885 | |
| 3886 | int |
| 3887 | main () |
| 3888 | { |
| 3889 | |
| 3890 | ; |
| 3891 | return 0; |
| 3892 | } |
| 3893 | _ACEOF |
| 3894 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3895 | if { (ac_try="$ac_link" |
| 3896 | case "(($ac_try" in |
| 3897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3898 | *) ac_try_echo=$ac_try;; |
| 3899 | esac |
| 3900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3901 | $as_echo "$ac_try_echo") >&5 |
| 3902 | (eval "$ac_link") 2>conftest.er1 |
| 3903 | ac_status=$? |
| 3904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3905 | rm -f conftest.er1 |
| 3906 | cat conftest.err >&5 |
| 3907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3908 | (exit $ac_status); } && { |
| 3909 | test -z "$ac_c_werror_flag" || |
| 3910 | test ! -s conftest.err |
| 3911 | } && test -s conftest$ac_exeext && { |
| 3912 | test "$cross_compiling" = yes || |
| 3913 | $as_test_x conftest$ac_exeext |
| 3914 | }; then |
| 3915 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3916 | $as_echo "yes" >&6; }; MACARCH="intel" |
| 3917 | else |
| 3918 | $as_echo "$as_me: failed program was:" >&5 |
| 3919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3920 | |
| 3921 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3922 | $as_echo "no" >&6; } |
| 3923 | MACARCH="ppc" |
| 3924 | CPPFLAGS="$save_cppflags -arch ppc" |
| 3925 | LDFLAGS="$save_ldflags -arch ppc" |
| 3926 | fi |
| 3927 | |
| 3928 | rm -rf conftest.dSYM |
| 3929 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3930 | conftest$ac_exeext conftest.$ac_ext |
| 3931 | fi |
| 3932 | |
| 3933 | rm -rf conftest.dSYM |
| 3934 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3935 | conftest$ac_exeext conftest.$ac_ext |
| 3936 | elif test "x$MACARCH" = "xintel"; then |
| 3937 | CPPFLAGS="$CPPFLAGS -arch intel" |
| 3938 | LDFLAGS="$LDFLAGS -arch intel" |
| 3939 | elif test "x$MACARCH" = "xppc"; then |
| 3940 | CPPFLAGS="$CPPFLAGS -arch ppc" |
| 3941 | LDFLAGS="$LDFLAGS -arch ppc" |
| 3942 | fi |
| 3943 | |
| 3944 | if test "$enable_darwin" = "yes"; then |
| 3945 | MACOSX=yes |
| 3946 | OS_EXTRA_SCR="os_macosx.c os_mac_conv.c"; |
| 3947 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
| 3948 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" |
| 3949 | if test "x$MACARCH" = "xboth"; then |
| 3950 | CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" |
| 3951 | else |
| 3952 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon" |
| 3953 | fi |
| 3954 | |
| 3955 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3956 | |
| 3957 | |
| 3958 | |
| 3959 | |
| 3960 | |
| 3961 | |
| 3962 | |
| 3963 | |
| 3964 | |
| 3965 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3966 | inttypes.h stdint.h unistd.h |
| 3967 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3968 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3969 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3970 | $as_echo_n "checking for $ac_header... " >&6; } |
| 3971 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3972 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3973 | else |
| 3974 | cat >conftest.$ac_ext <<_ACEOF |
| 3975 | /* confdefs.h. */ |
| 3976 | _ACEOF |
| 3977 | cat confdefs.h >>conftest.$ac_ext |
| 3978 | cat >>conftest.$ac_ext <<_ACEOF |
| 3979 | /* end confdefs.h. */ |
| 3980 | $ac_includes_default |
| 3981 | |
| 3982 | #include <$ac_header> |
| 3983 | _ACEOF |
| 3984 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3985 | if { (ac_try="$ac_compile" |
| 3986 | case "(($ac_try" in |
| 3987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3988 | *) ac_try_echo=$ac_try;; |
| 3989 | esac |
| 3990 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3991 | $as_echo "$ac_try_echo") >&5 |
| 3992 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3993 | ac_status=$? |
| 3994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3995 | rm -f conftest.er1 |
| 3996 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3997 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3998 | (exit $ac_status); } && { |
| 3999 | test -z "$ac_c_werror_flag" || |
| 4000 | test ! -s conftest.err |
| 4001 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4002 | eval "$as_ac_Header=yes" |
| 4003 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4004 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4006 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4007 | eval "$as_ac_Header=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4008 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4009 | |
| 4010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4011 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4012 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 4013 | $as_echo "$as_val"'` |
| 4014 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4015 | $as_echo "$ac_res" >&6; } |
| 4016 | if test `eval 'as_val=${'$as_ac_Header'} |
| 4017 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4018 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4019 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4020 | _ACEOF |
| 4021 | |
| 4022 | fi |
| 4023 | |
| 4024 | done |
| 4025 | |
| 4026 | |
| 4027 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4028 | { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 4029 | $as_echo_n "checking for Carbon/Carbon.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4030 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4031 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4032 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4033 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 4034 | $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4035 | else |
| 4036 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4037 | { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 4038 | $as_echo_n "checking Carbon/Carbon.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4039 | cat >conftest.$ac_ext <<_ACEOF |
| 4040 | /* confdefs.h. */ |
| 4041 | _ACEOF |
| 4042 | cat confdefs.h >>conftest.$ac_ext |
| 4043 | cat >>conftest.$ac_ext <<_ACEOF |
| 4044 | /* end confdefs.h. */ |
| 4045 | $ac_includes_default |
| 4046 | #include <Carbon/Carbon.h> |
| 4047 | _ACEOF |
| 4048 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4049 | if { (ac_try="$ac_compile" |
| 4050 | case "(($ac_try" in |
| 4051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4052 | *) ac_try_echo=$ac_try;; |
| 4053 | esac |
| 4054 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4055 | $as_echo "$ac_try_echo") >&5 |
| 4056 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4057 | ac_status=$? |
| 4058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4059 | rm -f conftest.er1 |
| 4060 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4062 | (exit $ac_status); } && { |
| 4063 | test -z "$ac_c_werror_flag" || |
| 4064 | test ! -s conftest.err |
| 4065 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4066 | ac_header_compiler=yes |
| 4067 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4068 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4070 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4071 | ac_header_compiler=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4072 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4073 | |
| 4074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4075 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4076 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4077 | |
| 4078 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4079 | { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 4080 | $as_echo_n "checking Carbon/Carbon.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4081 | cat >conftest.$ac_ext <<_ACEOF |
| 4082 | /* confdefs.h. */ |
| 4083 | _ACEOF |
| 4084 | cat confdefs.h >>conftest.$ac_ext |
| 4085 | cat >>conftest.$ac_ext <<_ACEOF |
| 4086 | /* end confdefs.h. */ |
| 4087 | #include <Carbon/Carbon.h> |
| 4088 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4089 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4090 | case "(($ac_try" in |
| 4091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4092 | *) ac_try_echo=$ac_try;; |
| 4093 | esac |
| 4094 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4095 | $as_echo "$ac_try_echo") >&5 |
| 4096 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4097 | ac_status=$? |
| 4098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4099 | rm -f conftest.er1 |
| 4100 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4101 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4102 | (exit $ac_status); } >/dev/null && { |
| 4103 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4104 | test ! -s conftest.err |
| 4105 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4106 | ac_header_preproc=yes |
| 4107 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4108 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4110 | |
| 4111 | ac_header_preproc=no |
| 4112 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4113 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4114 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4115 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4116 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4117 | |
| 4118 | # So? What about this header? |
| 4119 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4120 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4121 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4122 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4123 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 4124 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4125 | ac_header_preproc=yes |
| 4126 | ;; |
| 4127 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4128 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 4129 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 4130 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 4131 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 4132 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 4133 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 4134 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4135 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4136 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 4137 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 4138 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 4139 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 4140 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4141 | ;; |
| 4142 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4143 | { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 4144 | $as_echo_n "checking for Carbon/Carbon.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4145 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4146 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4147 | else |
| 4148 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 4149 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4150 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 4151 | $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4152 | |
| 4153 | fi |
| 4154 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
| 4155 | CARBON=yes |
| 4156 | fi |
| 4157 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4158 | |
| 4159 | if test "x$CARBON" = "xyes"; then |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 4160 | 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] | 4161 | with_x=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4162 | fi |
| 4163 | fi |
| 4164 | fi |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 4165 | |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 4166 | if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 4167 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` |
| 4168 | fi |
| 4169 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4170 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4171 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4172 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4173 | fi |
| 4174 | |
| 4175 | |
| 4176 | |
| 4177 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4178 | if test "$cross_compiling" = no; then |
| 4179 | have_local_include='' |
| 4180 | have_local_lib='' |
| 4181 | if test "$GCC" = yes; then |
| 4182 | echo 'void f(){}' > conftest.c |
| 4183 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'` |
| 4184 | have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'` |
| 4185 | rm -f conftest.c conftest.o |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4186 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4187 | if test -z "$have_local_lib" -a -d /usr/local/lib; then |
| 4188 | tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'` |
| 4189 | if test "$tt" = "$LDFLAGS"; then |
| 4190 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
| 4191 | fi |
| 4192 | fi |
| 4193 | if test -z "$have_local_include" -a -d /usr/local/include; then |
| 4194 | tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'` |
| 4195 | if test "$tt" = "$CPPFLAGS"; then |
| 4196 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 4197 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4198 | fi |
| 4199 | fi |
| 4200 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4201 | { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 |
| 4202 | $as_echo_n "checking --with-vim-name argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4203 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4204 | # Check whether --with-vim-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4205 | if test "${with_vim_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4206 | withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5 |
| 4207 | $as_echo "$VIMNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4208 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4209 | VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 |
| 4210 | $as_echo "Defaulting to $VIMNAME" >&6; } |
| 4211 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4212 | |
| 4213 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4214 | { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 |
| 4215 | $as_echo_n "checking --with-ex-name argument... " >&6; } |
| 4216 | |
| 4217 | # Check whether --with-ex-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4218 | if test "${with_ex_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4219 | withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5 |
| 4220 | $as_echo "$EXNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4221 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4222 | EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5 |
| 4223 | $as_echo "Defaulting to ex" >&6; } |
| 4224 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4225 | |
| 4226 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4227 | { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5 |
| 4228 | $as_echo_n "checking --with-view-name argument... " >&6; } |
| 4229 | |
| 4230 | # Check whether --with-view-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4231 | if test "${with_view_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4232 | withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5 |
| 4233 | $as_echo "$VIEWNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4234 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4235 | VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5 |
| 4236 | $as_echo "Defaulting to view" >&6; } |
| 4237 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4238 | |
| 4239 | |
| 4240 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4241 | { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 |
| 4242 | $as_echo_n "checking --with-global-runtime argument... " >&6; } |
| 4243 | |
| 4244 | # Check whether --with-global-runtime was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4245 | if test "${with_global_runtime+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4246 | withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4247 | $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4248 | #define RUNTIME_GLOBAL "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4249 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4250 | |
| 4251 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4252 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4253 | $as_echo "no" >&6; } |
| 4254 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4255 | |
| 4256 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4257 | { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 |
| 4258 | $as_echo_n "checking --with-modified-by argument... " >&6; } |
| 4259 | |
| 4260 | # Check whether --with-modified-by was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4261 | if test "${with_modified_by+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4262 | withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4263 | $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4264 | #define MODIFIED_BY "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4265 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4266 | |
| 4267 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4268 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4269 | $as_echo "no" >&6; } |
| 4270 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4271 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4272 | |
| 4273 | { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 |
| 4274 | $as_echo_n "checking if character set is EBCDIC... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4275 | cat >conftest.$ac_ext <<_ACEOF |
| 4276 | /* confdefs.h. */ |
| 4277 | _ACEOF |
| 4278 | cat confdefs.h >>conftest.$ac_ext |
| 4279 | cat >>conftest.$ac_ext <<_ACEOF |
| 4280 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4281 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4282 | int |
| 4283 | main () |
| 4284 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4285 | /* TryCompile function for CharSet. |
| 4286 | Treat any failure as ASCII for compatibility with existing art. |
| 4287 | Use compile-time rather than run-time tests for cross-compiler |
| 4288 | tolerance. */ |
| 4289 | #if '0'!=240 |
| 4290 | make an error "Character set is not EBCDIC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4291 | #endif |
| 4292 | ; |
| 4293 | return 0; |
| 4294 | } |
| 4295 | _ACEOF |
| 4296 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4297 | if { (ac_try="$ac_compile" |
| 4298 | case "(($ac_try" in |
| 4299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4300 | *) ac_try_echo=$ac_try;; |
| 4301 | esac |
| 4302 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4303 | $as_echo "$ac_try_echo") >&5 |
| 4304 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4305 | ac_status=$? |
| 4306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4307 | rm -f conftest.er1 |
| 4308 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4309 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4310 | (exit $ac_status); } && { |
| 4311 | test -z "$ac_c_werror_flag" || |
| 4312 | test ! -s conftest.err |
| 4313 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4314 | # TryCompile action if true |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4315 | cf_cv_ebcdic=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4316 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4317 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4319 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4320 | # TryCompile action if false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4321 | cf_cv_ebcdic=no |
| 4322 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4323 | |
| 4324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4325 | # end of TryCompile ]) |
| 4326 | # end of CacheVal CvEbcdic |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4327 | { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 |
| 4328 | $as_echo "$cf_cv_ebcdic" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4329 | case "$cf_cv_ebcdic" in #(vi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4330 | yes) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4331 | #define EBCDIC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4332 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4333 | |
| 4334 | line_break='"\\n"' |
| 4335 | ;; |
| 4336 | *) line_break='"\\012"';; |
| 4337 | esac |
| 4338 | |
| 4339 | |
| 4340 | if test "$cf_cv_ebcdic" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4341 | { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 |
| 4342 | $as_echo_n "checking for OS/390 Unix... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4343 | case `uname` in |
| 4344 | OS/390) OS390Unix="yes"; |
| 4345 | if test "$CC" = "cc"; then |
| 4346 | ccm="$_CC_CCMODE" |
| 4347 | ccn="CC" |
| 4348 | else |
| 4349 | if test "$CC" = "c89"; then |
| 4350 | ccm="$_CC_C89MODE" |
| 4351 | ccn="C89" |
| 4352 | else |
| 4353 | ccm=1 |
| 4354 | fi |
| 4355 | fi |
| 4356 | if test "$ccm" != "1"; then |
| 4357 | echo "" |
| 4358 | echo "------------------------------------------" |
| 4359 | echo " On OS/390 Unix, the environment variable" |
| 4360 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 4361 | echo " Do:" |
| 4362 | echo " export _CC_${ccn}MODE=1" |
| 4363 | echo " and then call configure again." |
| 4364 | echo "------------------------------------------" |
| 4365 | exit 1 |
| 4366 | fi |
| 4367 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4368 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4369 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4370 | ;; |
| 4371 | *) OS390Unix="no"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4372 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4373 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4374 | ;; |
| 4375 | esac |
| 4376 | fi |
| 4377 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4378 | { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5 |
| 4379 | $as_echo_n "checking --disable-selinux argument... " >&6; } |
| 4380 | # Check whether --enable-selinux was given. |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4381 | if test "${enable_selinux+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4382 | enableval=$enable_selinux; |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4383 | else |
| 4384 | enable_selinux="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4385 | fi |
| 4386 | |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4387 | if test "$enable_selinux" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4388 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4389 | $as_echo "no" >&6; } |
| 4390 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
| 4391 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4392 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4393 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4394 | else |
| 4395 | ac_check_lib_save_LIBS=$LIBS |
| 4396 | LIBS="-lselinux $LIBS" |
| 4397 | cat >conftest.$ac_ext <<_ACEOF |
| 4398 | /* confdefs.h. */ |
| 4399 | _ACEOF |
| 4400 | cat confdefs.h >>conftest.$ac_ext |
| 4401 | cat >>conftest.$ac_ext <<_ACEOF |
| 4402 | /* end confdefs.h. */ |
| 4403 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4404 | /* Override any GCC internal prototype to avoid an error. |
| 4405 | Use char because int might match the return type of a GCC |
| 4406 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4407 | #ifdef __cplusplus |
| 4408 | extern "C" |
| 4409 | #endif |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4410 | char is_selinux_enabled (); |
| 4411 | int |
| 4412 | main () |
| 4413 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4414 | return is_selinux_enabled (); |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4415 | ; |
| 4416 | return 0; |
| 4417 | } |
| 4418 | _ACEOF |
| 4419 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4420 | if { (ac_try="$ac_link" |
| 4421 | case "(($ac_try" in |
| 4422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4423 | *) ac_try_echo=$ac_try;; |
| 4424 | esac |
| 4425 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4426 | $as_echo "$ac_try_echo") >&5 |
| 4427 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4428 | ac_status=$? |
| 4429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4430 | rm -f conftest.er1 |
| 4431 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4432 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4433 | (exit $ac_status); } && { |
| 4434 | test -z "$ac_c_werror_flag" || |
| 4435 | test ! -s conftest.err |
| 4436 | } && test -s conftest$ac_exeext && { |
| 4437 | test "$cross_compiling" = yes || |
| 4438 | $as_test_x conftest$ac_exeext |
| 4439 | }; then |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4440 | ac_cv_lib_selinux_is_selinux_enabled=yes |
| 4441 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4442 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4444 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4445 | ac_cv_lib_selinux_is_selinux_enabled=no |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4446 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4447 | |
| 4448 | rm -rf conftest.dSYM |
| 4449 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4450 | conftest$ac_exeext conftest.$ac_ext |
| 4451 | LIBS=$ac_check_lib_save_LIBS |
| 4452 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4453 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
| 4454 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4455 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
| 4456 | LIBS="$LIBS -lselinux" |
| 4457 | cat >>confdefs.h <<\_ACEOF |
| 4458 | #define HAVE_SELINUX 1 |
| 4459 | _ACEOF |
| 4460 | |
| 4461 | fi |
| 4462 | |
| 4463 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4464 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4465 | $as_echo "yes" >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4466 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4467 | |
| 4468 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4469 | { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5 |
| 4470 | $as_echo_n "checking --with-features argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4471 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4472 | # Check whether --with-features was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4473 | if test "${with_features+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4474 | withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5 |
| 4475 | $as_echo "$features" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4476 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4477 | features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5 |
| 4478 | $as_echo "Defaulting to normal" >&6; } |
| 4479 | fi |
| 4480 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4481 | |
| 4482 | dovimdiff="" |
| 4483 | dogvimdiff="" |
| 4484 | case "$features" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4485 | tiny) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4486 | #define FEAT_TINY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4487 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4488 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4489 | small) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4490 | #define FEAT_SMALL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4491 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4492 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4493 | normal) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4494 | #define FEAT_NORMAL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4495 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4496 | dovimdiff="installvimdiff"; |
| 4497 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4498 | big) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4499 | #define FEAT_BIG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4500 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4501 | dovimdiff="installvimdiff"; |
| 4502 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4503 | huge) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4504 | #define FEAT_HUGE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4505 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4506 | dovimdiff="installvimdiff"; |
| 4507 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4508 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 |
| 4509 | $as_echo "Sorry, $features is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4510 | esac |
| 4511 | |
| 4512 | |
| 4513 | |
| 4514 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4515 | { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 |
| 4516 | $as_echo_n "checking --with-compiledby argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4517 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4518 | # Check whether --with-compiledby was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4519 | if test "${with_compiledby+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4520 | withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4521 | $as_echo "$withval" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4522 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4523 | compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4524 | $as_echo "no" >&6; } |
| 4525 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4526 | |
| 4527 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4528 | |
| 4529 | { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 |
| 4530 | $as_echo_n "checking --disable-xsmp argument... " >&6; } |
| 4531 | # Check whether --enable-xsmp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4532 | if test "${enable_xsmp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4533 | enableval=$enable_xsmp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4534 | else |
| 4535 | enable_xsmp="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4536 | fi |
| 4537 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4538 | |
| 4539 | if test "$enable_xsmp" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4540 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4541 | $as_echo "no" >&6; } |
| 4542 | { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 |
| 4543 | $as_echo_n "checking --disable-xsmp-interact argument... " >&6; } |
| 4544 | # Check whether --enable-xsmp-interact was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4545 | if test "${enable_xsmp_interact+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4546 | enableval=$enable_xsmp_interact; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4547 | else |
| 4548 | enable_xsmp_interact="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4549 | fi |
| 4550 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4551 | if test "$enable_xsmp_interact" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4552 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4553 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4554 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4555 | #define USE_XSMP_INTERACT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4556 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4557 | |
| 4558 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4559 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4560 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4561 | fi |
| 4562 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4563 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4564 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4565 | fi |
| 4566 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4567 | { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 |
| 4568 | $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } |
| 4569 | # Check whether --enable-mzschemeinterp was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4570 | if test "${enable_mzschemeinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4571 | enableval=$enable_mzschemeinterp; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4572 | else |
| 4573 | enable_mzschemeinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4574 | fi |
| 4575 | |
| 4576 | { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 |
| 4577 | $as_echo "$enable_mzschemeinterp" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4578 | |
| 4579 | if test "$enable_mzschemeinterp" = "yes"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4580 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4581 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4582 | { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5 |
| 4583 | $as_echo_n "checking --with-plthome argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4584 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4585 | # Check whether --with-plthome was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4586 | if test "${with_plthome+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4587 | withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5 |
| 4588 | $as_echo "$with_plthome" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4589 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4590 | with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 4591 | $as_echo "\"no\"" >&6; } |
| 4592 | fi |
| 4593 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4594 | |
| 4595 | if test "X$with_plthome" != "X"; then |
| 4596 | vi_cv_path_mzscheme_pfx="$with_plthome" |
| 4597 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4598 | { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 |
| 4599 | $as_echo_n "checking PLTHOME environment var... " >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4600 | if test "X$PLTHOME" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4601 | { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 |
| 4602 | $as_echo "\"$PLTHOME\"" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4603 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4604 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4605 | { $as_echo "$as_me:$LINENO: result: \"not set\"" >&5 |
| 4606 | $as_echo "\"not set\"" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4607 | # 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] | 4608 | set dummy mzscheme; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4609 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4610 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4611 | if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4612 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4613 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4614 | case $vi_cv_path_mzscheme in |
| 4615 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4616 | ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 4617 | ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4618 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4620 | for as_dir in $PATH |
| 4621 | do |
| 4622 | IFS=$as_save_IFS |
| 4623 | test -z "$as_dir" && as_dir=. |
| 4624 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4626 | ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4627 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4628 | break 2 |
| 4629 | fi |
| 4630 | done |
| 4631 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4632 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4633 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4634 | ;; |
| 4635 | esac |
| 4636 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4637 | vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4638 | if test -n "$vi_cv_path_mzscheme"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4639 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 |
| 4640 | $as_echo "$vi_cv_path_mzscheme" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4641 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4642 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4643 | $as_echo "no" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4644 | fi |
| 4645 | |
| 4646 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4647 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4648 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4649 | lsout=`ls -l $vi_cv_path_mzscheme` |
| 4650 | if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 4651 | vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 4652 | fi |
| 4653 | fi |
| 4654 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4655 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4656 | { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
| 4657 | $as_echo_n "checking MzScheme install prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4658 | if test "${vi_cv_path_mzscheme_pfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4659 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4660 | else |
| 4661 | vi_cv_path_mzscheme_pfx=` |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4662 | ${vi_cv_path_mzscheme} -evm \ |
| 4663 | "(display (simplify-path \ |
| 4664 | (build-path (call-with-values \ |
| 4665 | (lambda () (split-path (find-system-path (quote exec-file)))) \ |
| 4666 | (lambda (base name must-be-dir?) base)) (quote up))))"` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4667 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4668 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 4669 | $as_echo "$vi_cv_path_mzscheme_pfx" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4670 | 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] | 4671 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4672 | fi |
| 4673 | fi |
| 4674 | |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4675 | SCHEME_INC= |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4676 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4677 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 4678 | $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4679 | if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4680 | { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 4681 | $as_echo "\"yes\"" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4682 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4683 | { $as_echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 4684 | $as_echo "\"no\"" >&6; } |
| 4685 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5 |
| 4686 | $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... " >&6; } |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4687 | if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4688 | { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 4689 | $as_echo "\"yes\"" >&6; } |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4690 | SCHEME_INC=/plt |
| 4691 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4692 | { $as_echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 4693 | $as_echo "\"no\"" >&6; } |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4694 | vi_cv_path_mzscheme_pfx= |
| 4695 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4696 | fi |
| 4697 | fi |
| 4698 | |
| 4699 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | f15f943 | 2007-06-28 11:07:21 +0000 | [diff] [blame] | 4700 | if test "x$MACOSX" = "xyes"; then |
| 4701 | MZSCHEME_LIBS="-framework PLT_MzScheme" |
| 4702 | elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then |
Bram Moolenaar | e0d7b3c | 2007-05-12 14:23:41 +0000 | [diff] [blame] | 4703 | MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4704 | else |
Bram Moolenaar | e0d7b3c | 2007-05-12 14:23:41 +0000 | [diff] [blame] | 4705 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 4706 | if test "$GCC" = yes; then |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4707 | 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] | 4708 | elif test "`(uname) 2>/dev/null`" = SunOS && |
| 4709 | uname -r | grep '^5' >/dev/null; then |
| 4710 | MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 4711 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4712 | fi |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4713 | if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then |
| 4714 | SCHEME_COLLECTS=lib/plt/ |
| 4715 | fi |
| 4716 | MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \ |
| 4717 | -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4718 | MZSCHEME_SRC="if_mzsch.c" |
| 4719 | MZSCHEME_OBJ="objects/if_mzsch.o" |
| 4720 | MZSCHEME_PRO="if_mzsch.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4721 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4722 | #define FEAT_MZSCHEME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4723 | _ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4724 | |
| 4725 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4726 | |
| 4727 | |
| 4728 | |
| 4729 | |
| 4730 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4731 | fi |
| 4732 | |
| 4733 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4734 | { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 |
| 4735 | $as_echo_n "checking --enable-perlinterp argument... " >&6; } |
| 4736 | # Check whether --enable-perlinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4737 | if test "${enable_perlinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4738 | enableval=$enable_perlinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4739 | else |
| 4740 | enable_perlinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4741 | fi |
| 4742 | |
| 4743 | { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 |
| 4744 | $as_echo "$enable_perlinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4745 | if test "$enable_perlinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4746 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4747 | # Extract the first word of "perl", so it can be a program name with args. |
| 4748 | set dummy perl; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4749 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4750 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4751 | if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4752 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4753 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4754 | case $vi_cv_path_perl in |
| 4755 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4756 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 4757 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4758 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4760 | for as_dir in $PATH |
| 4761 | do |
| 4762 | IFS=$as_save_IFS |
| 4763 | test -z "$as_dir" && as_dir=. |
| 4764 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4766 | ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4767 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4768 | break 2 |
| 4769 | fi |
| 4770 | done |
| 4771 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4772 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4773 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4774 | ;; |
| 4775 | esac |
| 4776 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4777 | vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4778 | if test -n "$vi_cv_path_perl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4779 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 |
| 4780 | $as_echo "$vi_cv_path_perl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4781 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4782 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4783 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4784 | fi |
| 4785 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4786 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4787 | if test "X$vi_cv_path_perl" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4788 | { $as_echo "$as_me:$LINENO: checking Perl version" >&5 |
| 4789 | $as_echo_n "checking Perl version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4790 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 4791 | eval `$vi_cv_path_perl -V:usethreads` |
| 4792 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 4793 | badthreads=no |
| 4794 | else |
| 4795 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 4796 | eval `$vi_cv_path_perl -V:use5005threads` |
| 4797 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 4798 | badthreads=no |
| 4799 | else |
| 4800 | badthreads=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4801 | { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 4802 | $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4803 | fi |
| 4804 | else |
| 4805 | badthreads=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4806 | { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 4807 | $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4808 | fi |
| 4809 | fi |
| 4810 | if test $badthreads = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4811 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 4812 | $as_echo "OK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4813 | eval `$vi_cv_path_perl -V:shrpenv` |
| 4814 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 4815 | shrpenv="" |
| 4816 | fi |
| 4817 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4818 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4819 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 4820 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 4821 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 4822 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 4823 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 4824 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 4825 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 4826 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4827 | { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 |
| 4828 | $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4829 | cflags_save=$CFLAGS |
| 4830 | libs_save=$LIBS |
| 4831 | ldflags_save=$LDFLAGS |
| 4832 | CFLAGS="$CFLAGS $perlcppflags" |
| 4833 | LIBS="$LIBS $perllibs" |
| 4834 | LDFLAGS="$perlldflags $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4835 | cat >conftest.$ac_ext <<_ACEOF |
| 4836 | /* confdefs.h. */ |
| 4837 | _ACEOF |
| 4838 | cat confdefs.h >>conftest.$ac_ext |
| 4839 | cat >>conftest.$ac_ext <<_ACEOF |
| 4840 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4841 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4842 | int |
| 4843 | main () |
| 4844 | { |
| 4845 | |
| 4846 | ; |
| 4847 | return 0; |
| 4848 | } |
| 4849 | _ACEOF |
| 4850 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4851 | if { (ac_try="$ac_link" |
| 4852 | case "(($ac_try" in |
| 4853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4854 | *) ac_try_echo=$ac_try;; |
| 4855 | esac |
| 4856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4857 | $as_echo "$ac_try_echo") >&5 |
| 4858 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4859 | ac_status=$? |
| 4860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4861 | rm -f conftest.er1 |
| 4862 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4864 | (exit $ac_status); } && { |
| 4865 | test -z "$ac_c_werror_flag" || |
| 4866 | test ! -s conftest.err |
| 4867 | } && test -s conftest$ac_exeext && { |
| 4868 | test "$cross_compiling" = yes || |
| 4869 | $as_test_x conftest$ac_exeext |
| 4870 | }; then |
| 4871 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4872 | $as_echo "yes" >&6; }; perl_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4873 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4874 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4876 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4877 | { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 |
| 4878 | $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4879 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4880 | |
| 4881 | rm -rf conftest.dSYM |
| 4882 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4883 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4884 | CFLAGS=$cflags_save |
| 4885 | LIBS=$libs_save |
| 4886 | LDFLAGS=$ldflags_save |
| 4887 | if test $perl_ok = yes; then |
| 4888 | if test "X$perlcppflags" != "X"; then |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4889 | PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4890 | fi |
| 4891 | if test "X$perlldflags" != "X"; then |
| 4892 | LDFLAGS="$perlldflags $LDFLAGS" |
| 4893 | fi |
| 4894 | PERL_LIBS=$perllibs |
| 4895 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 4896 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 4897 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4898 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4899 | #define FEAT_PERL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4900 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4901 | |
| 4902 | fi |
| 4903 | fi |
| 4904 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4905 | { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 4906 | $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4907 | fi |
| 4908 | fi |
| 4909 | |
| 4910 | if test "x$MACOSX" = "xyes"; then |
| 4911 | dir=/System/Library/Perl |
| 4912 | darwindir=$dir/darwin |
| 4913 | if test -d $darwindir; then |
| 4914 | PERL=/usr/bin/perl |
| 4915 | else |
| 4916 | dir=/System/Library/Perl/5.8.1 |
| 4917 | darwindir=$dir/darwin-thread-multi-2level |
| 4918 | if test -d $darwindir; then |
| 4919 | PERL=/usr/bin/perl |
| 4920 | fi |
| 4921 | fi |
| 4922 | if test -n "$PERL"; then |
| 4923 | PERL_DIR="$dir" |
| 4924 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 4925 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 4926 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 4927 | fi |
| 4928 | fi |
| 4929 | fi |
| 4930 | |
| 4931 | |
| 4932 | |
| 4933 | |
| 4934 | |
| 4935 | |
| 4936 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4937 | { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 |
| 4938 | $as_echo_n "checking --enable-pythoninterp argument... " >&6; } |
| 4939 | # Check whether --enable-pythoninterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4940 | if test "${enable_pythoninterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4941 | enableval=$enable_pythoninterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4942 | else |
| 4943 | enable_pythoninterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4944 | fi |
| 4945 | |
| 4946 | { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 |
| 4947 | $as_echo "$enable_pythoninterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4948 | if test "$enable_pythoninterp" = "yes"; then |
| 4949 | # Extract the first word of "python", so it can be a program name with args. |
| 4950 | set dummy python; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4951 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4952 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4953 | if test "${ac_cv_path_vi_cv_path_python+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4954 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4955 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4956 | case $vi_cv_path_python in |
| 4957 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4958 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 4959 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4960 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4962 | for as_dir in $PATH |
| 4963 | do |
| 4964 | IFS=$as_save_IFS |
| 4965 | test -z "$as_dir" && as_dir=. |
| 4966 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4968 | ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4969 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4970 | break 2 |
| 4971 | fi |
| 4972 | done |
| 4973 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4974 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4975 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4976 | ;; |
| 4977 | esac |
| 4978 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4979 | vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4980 | if test -n "$vi_cv_path_python"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4981 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 |
| 4982 | $as_echo "$vi_cv_path_python" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4983 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4984 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4985 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4986 | fi |
| 4987 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4988 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4989 | if test "X$vi_cv_path_python" != "X"; then |
| 4990 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4991 | { $as_echo "$as_me:$LINENO: checking Python version" >&5 |
| 4992 | $as_echo_n "checking Python version... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4993 | if test "${vi_cv_var_python_version+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4994 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4995 | else |
| 4996 | vi_cv_var_python_version=` |
| 4997 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4998 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4999 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5000 | { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 |
| 5001 | $as_echo "$vi_cv_var_python_version" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5002 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5003 | { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 |
| 5004 | $as_echo_n "checking Python is 1.4 or better... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5005 | if ${vi_cv_path_python} -c \ |
| 5006 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 5007 | then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5008 | { $as_echo "$as_me:$LINENO: result: yep" >&5 |
| 5009 | $as_echo "yep" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5010 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5011 | { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5 |
| 5012 | $as_echo_n "checking Python's install prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5013 | if test "${vi_cv_path_python_pfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5014 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5015 | else |
| 5016 | vi_cv_path_python_pfx=` |
| 5017 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5018 | "import sys; print sys.prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5019 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5020 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 |
| 5021 | $as_echo "$vi_cv_path_python_pfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5022 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5023 | { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5 |
| 5024 | $as_echo_n "checking Python's execution prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5025 | if test "${vi_cv_path_python_epfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5026 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5027 | else |
| 5028 | vi_cv_path_python_epfx=` |
| 5029 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5030 | "import sys; print sys.exec_prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5031 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5032 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 |
| 5033 | $as_echo "$vi_cv_path_python_epfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5034 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5035 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5036 | if test "${vi_cv_path_pythonpath+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5037 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5038 | else |
| 5039 | vi_cv_path_pythonpath=` |
| 5040 | unset PYTHONPATH; |
| 5041 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5042 | "import sys, string; print string.join(sys.path,':')"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5043 | fi |
| 5044 | |
| 5045 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5046 | |
| 5047 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5048 | # Check whether --with-python-config-dir was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5049 | if test "${with_python_config_dir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5050 | withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" |
| 5051 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5052 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5053 | |
| 5054 | { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5 |
| 5055 | $as_echo_n "checking Python's configuration directory... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5056 | if test "${vi_cv_path_python_conf+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5057 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5058 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5059 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5060 | vi_cv_path_python_conf= |
| 5061 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 5062 | for subdir in lib share; do |
| 5063 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 5064 | if test -d "$d" && test -f "$d/config.c"; then |
| 5065 | vi_cv_path_python_conf="$d" |
| 5066 | fi |
| 5067 | done |
| 5068 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5069 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5070 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5071 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 |
| 5072 | $as_echo "$vi_cv_path_python_conf" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5073 | |
| 5074 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 5075 | |
| 5076 | if test "X$PYTHON_CONFDIR" = "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5077 | { $as_echo "$as_me:$LINENO: result: can't find it!" >&5 |
| 5078 | $as_echo "can't find it!" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5079 | else |
| 5080 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5081 | if test "${vi_cv_path_python_plibs+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5082 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5083 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5084 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5085 | tmp_mkf="/tmp/Makefile-conf$$" |
| 5086 | cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} |
| 5087 | __: |
| 5088 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 5089 | @echo "python_LIBS='$(LIBS)'" |
| 5090 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 5091 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 5092 | eof |
| 5093 | eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" |
| 5094 | rm -f ${tmp_mkf} |
| 5095 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 5096 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 5097 | vi_cv_path_python_plibs="-framework Python" |
| 5098 | else |
| 5099 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 5100 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 5101 | else |
| 5102 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 5103 | fi |
| 5104 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 5105 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 5106 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5107 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5108 | fi |
| 5109 | |
| 5110 | |
| 5111 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 5112 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 5113 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 5114 | else |
| 5115 | 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}" |
| 5116 | fi |
| 5117 | PYTHON_SRC="if_python.c" |
| 5118 | if test "x$MACOSX" = "xyes"; then |
| 5119 | PYTHON_OBJ="objects/if_python.o" |
| 5120 | else |
| 5121 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 5122 | fi |
| 5123 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 5124 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 5125 | fi |
| 5126 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 5127 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5128 | { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5 |
| 5129 | $as_echo_n "checking if -pthread should be used... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5130 | threadsafe_flag= |
| 5131 | thread_lib= |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 5132 | if test "`(uname) 2>/dev/null`" != Darwin; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5133 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 5134 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 5135 | threadsafe_flag="-D_THREAD_SAFE" |
| 5136 | thread_lib="-pthread" |
| 5137 | fi |
| 5138 | fi |
| 5139 | libs_save_old=$LIBS |
| 5140 | if test -n "$threadsafe_flag"; then |
| 5141 | cflags_save=$CFLAGS |
| 5142 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 5143 | LIBS="$LIBS $thread_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5144 | cat >conftest.$ac_ext <<_ACEOF |
| 5145 | /* confdefs.h. */ |
| 5146 | _ACEOF |
| 5147 | cat confdefs.h >>conftest.$ac_ext |
| 5148 | cat >>conftest.$ac_ext <<_ACEOF |
| 5149 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5150 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5151 | int |
| 5152 | main () |
| 5153 | { |
| 5154 | |
| 5155 | ; |
| 5156 | return 0; |
| 5157 | } |
| 5158 | _ACEOF |
| 5159 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5160 | if { (ac_try="$ac_link" |
| 5161 | case "(($ac_try" in |
| 5162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5163 | *) ac_try_echo=$ac_try;; |
| 5164 | esac |
| 5165 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5166 | $as_echo "$ac_try_echo") >&5 |
| 5167 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5168 | ac_status=$? |
| 5169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5170 | rm -f conftest.er1 |
| 5171 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5172 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5173 | (exit $ac_status); } && { |
| 5174 | test -z "$ac_c_werror_flag" || |
| 5175 | test ! -s conftest.err |
| 5176 | } && test -s conftest$ac_exeext && { |
| 5177 | test "$cross_compiling" = yes || |
| 5178 | $as_test_x conftest$ac_exeext |
| 5179 | }; then |
| 5180 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5181 | $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5182 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5183 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5185 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5186 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5187 | $as_echo "no" >&6; }; LIBS=$libs_save_old |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5188 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5189 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5190 | |
| 5191 | rm -rf conftest.dSYM |
| 5192 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5193 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5194 | CFLAGS=$cflags_save |
| 5195 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5196 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5197 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5198 | fi |
| 5199 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5200 | { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 |
| 5201 | $as_echo_n "checking if compile and link flags for Python are sane... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5202 | cflags_save=$CFLAGS |
| 5203 | libs_save=$LIBS |
| 5204 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 5205 | LIBS="$LIBS $PYTHON_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5206 | cat >conftest.$ac_ext <<_ACEOF |
| 5207 | /* confdefs.h. */ |
| 5208 | _ACEOF |
| 5209 | cat confdefs.h >>conftest.$ac_ext |
| 5210 | cat >>conftest.$ac_ext <<_ACEOF |
| 5211 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5212 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5213 | int |
| 5214 | main () |
| 5215 | { |
| 5216 | |
| 5217 | ; |
| 5218 | return 0; |
| 5219 | } |
| 5220 | _ACEOF |
| 5221 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5222 | if { (ac_try="$ac_link" |
| 5223 | case "(($ac_try" in |
| 5224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5225 | *) ac_try_echo=$ac_try;; |
| 5226 | esac |
| 5227 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5228 | $as_echo "$ac_try_echo") >&5 |
| 5229 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5230 | ac_status=$? |
| 5231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5232 | rm -f conftest.er1 |
| 5233 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5234 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5235 | (exit $ac_status); } && { |
| 5236 | test -z "$ac_c_werror_flag" || |
| 5237 | test ! -s conftest.err |
| 5238 | } && test -s conftest$ac_exeext && { |
| 5239 | test "$cross_compiling" = yes || |
| 5240 | $as_test_x conftest$ac_exeext |
| 5241 | }; then |
| 5242 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5243 | $as_echo "yes" >&6; }; python_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5244 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5245 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5247 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5248 | { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 |
| 5249 | $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5250 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5251 | |
| 5252 | rm -rf conftest.dSYM |
| 5253 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5254 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5255 | CFLAGS=$cflags_save |
| 5256 | LIBS=$libs_save |
| 5257 | if test $python_ok = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5258 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5259 | #define FEAT_PYTHON 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5260 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5261 | |
| 5262 | else |
| 5263 | LIBS=$libs_save_old |
| 5264 | PYTHON_SRC= |
| 5265 | PYTHON_OBJ= |
| 5266 | PYTHON_LIBS= |
| 5267 | PYTHON_CFLAGS= |
| 5268 | fi |
| 5269 | |
| 5270 | fi |
| 5271 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5272 | { $as_echo "$as_me:$LINENO: result: too old" >&5 |
| 5273 | $as_echo "too old" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5274 | fi |
| 5275 | fi |
| 5276 | fi |
| 5277 | |
| 5278 | |
| 5279 | |
| 5280 | |
| 5281 | |
| 5282 | |
| 5283 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5284 | { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 |
| 5285 | $as_echo_n "checking --enable-tclinterp argument... " >&6; } |
| 5286 | # Check whether --enable-tclinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5287 | if test "${enable_tclinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5288 | enableval=$enable_tclinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5289 | else |
| 5290 | enable_tclinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5291 | fi |
| 5292 | |
| 5293 | { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 |
| 5294 | $as_echo "$enable_tclinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5295 | |
| 5296 | if test "$enable_tclinterp" = "yes"; then |
| 5297 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5298 | { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 |
| 5299 | $as_echo_n "checking --with-tclsh argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5300 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5301 | # Check whether --with-tclsh was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5302 | if test "${with_tclsh+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5303 | withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5 |
| 5304 | $as_echo "$tclsh_name" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5305 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5306 | tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5307 | $as_echo "no" >&6; } |
| 5308 | fi |
| 5309 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5310 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5311 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5312 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5313 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5314 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5315 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5316 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5317 | case $vi_cv_path_tcl in |
| 5318 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5319 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5320 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5321 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5323 | for as_dir in $PATH |
| 5324 | do |
| 5325 | IFS=$as_save_IFS |
| 5326 | test -z "$as_dir" && as_dir=. |
| 5327 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5329 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5330 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5331 | break 2 |
| 5332 | fi |
| 5333 | done |
| 5334 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5335 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5336 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5337 | ;; |
| 5338 | esac |
| 5339 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5340 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5341 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5342 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5343 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5344 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5345 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5346 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5347 | fi |
| 5348 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5349 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5350 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5351 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5352 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then |
| 5353 | tclsh_name="tclsh8.4" |
| 5354 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5355 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5356 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5357 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5358 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5359 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5360 | else |
| 5361 | case $vi_cv_path_tcl in |
| 5362 | [\\/]* | ?:[\\/]*) |
| 5363 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5364 | ;; |
| 5365 | *) |
| 5366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5367 | for as_dir in $PATH |
| 5368 | do |
| 5369 | IFS=$as_save_IFS |
| 5370 | test -z "$as_dir" && as_dir=. |
| 5371 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5373 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5374 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5375 | break 2 |
| 5376 | fi |
| 5377 | done |
| 5378 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5379 | IFS=$as_save_IFS |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5380 | |
| 5381 | ;; |
| 5382 | esac |
| 5383 | fi |
| 5384 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5385 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5386 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5387 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5388 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5389 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5390 | $as_echo "no" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5391 | fi |
| 5392 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5393 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5394 | fi |
| 5395 | 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] | 5396 | tclsh_name="tclsh8.2" |
| 5397 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5398 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5399 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5400 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5401 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5402 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5403 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5404 | case $vi_cv_path_tcl in |
| 5405 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5406 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5407 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5408 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5410 | for as_dir in $PATH |
| 5411 | do |
| 5412 | IFS=$as_save_IFS |
| 5413 | test -z "$as_dir" && as_dir=. |
| 5414 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5416 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5417 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5418 | break 2 |
| 5419 | fi |
| 5420 | done |
| 5421 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5422 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5423 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5424 | ;; |
| 5425 | esac |
| 5426 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5427 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5428 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5429 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5430 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5431 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5432 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5433 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5434 | fi |
| 5435 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5436 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5437 | fi |
| 5438 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 5439 | tclsh_name="tclsh8.0" |
| 5440 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5441 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5442 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5443 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5444 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5445 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5446 | else |
| 5447 | case $vi_cv_path_tcl in |
| 5448 | [\\/]* | ?:[\\/]*) |
| 5449 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5450 | ;; |
| 5451 | *) |
| 5452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5453 | for as_dir in $PATH |
| 5454 | do |
| 5455 | IFS=$as_save_IFS |
| 5456 | test -z "$as_dir" && as_dir=. |
| 5457 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5458 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5459 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5460 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5461 | break 2 |
| 5462 | fi |
| 5463 | done |
| 5464 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5465 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5466 | |
| 5467 | ;; |
| 5468 | esac |
| 5469 | fi |
| 5470 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5471 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5472 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5473 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5474 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5475 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5476 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5477 | fi |
| 5478 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5479 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5480 | fi |
| 5481 | if test "X$vi_cv_path_tcl" = "X"; then |
| 5482 | tclsh_name="tclsh" |
| 5483 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5484 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5485 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5486 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5487 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5488 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5489 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5490 | case $vi_cv_path_tcl in |
| 5491 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5492 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5493 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5494 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5496 | for as_dir in $PATH |
| 5497 | do |
| 5498 | IFS=$as_save_IFS |
| 5499 | test -z "$as_dir" && as_dir=. |
| 5500 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5501 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5502 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5503 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5504 | break 2 |
| 5505 | fi |
| 5506 | done |
| 5507 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5508 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5509 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5510 | ;; |
| 5511 | esac |
| 5512 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5513 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5514 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5515 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5516 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5517 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5518 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5519 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5520 | fi |
| 5521 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5522 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5523 | fi |
| 5524 | if test "X$vi_cv_path_tcl" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5525 | { $as_echo "$as_me:$LINENO: checking Tcl version" >&5 |
| 5526 | $as_echo_n "checking Tcl version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5527 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 5528 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5529 | { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5 |
| 5530 | $as_echo "$tclver - OK" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5531 | 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 -` |
| 5532 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5533 | { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5 |
| 5534 | $as_echo_n "checking for location of Tcl include... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5535 | if test "x$MACOSX" != "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5536 | tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5537 | else |
| 5538 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 5539 | fi |
Bram Moolenaar | 0ff8f60 | 2008-02-20 11:44:03 +0000 | [diff] [blame] | 5540 | TCL_INC= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5541 | for try in $tclinc; do |
| 5542 | if test -f "$try/tcl.h"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5543 | { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5 |
| 5544 | $as_echo "$try/tcl.h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5545 | TCL_INC=$try |
| 5546 | break |
| 5547 | fi |
| 5548 | done |
| 5549 | if test -z "$TCL_INC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5550 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5551 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5552 | SKIP_TCL=YES |
| 5553 | fi |
| 5554 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5555 | { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 |
| 5556 | $as_echo_n "checking for location of tclConfig.sh script... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5557 | if test "x$MACOSX" != "xyes"; then |
| 5558 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5559 | tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5560 | else |
| 5561 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 5562 | fi |
| 5563 | for try in $tclcnf; do |
| 5564 | if test -f $try/tclConfig.sh; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5565 | { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 |
| 5566 | $as_echo "$try/tclConfig.sh" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5567 | . $try/tclConfig.sh |
| 5568 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 5569 | 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] | 5570 | break |
| 5571 | fi |
| 5572 | done |
| 5573 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5574 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5575 | $as_echo "<not found>" >&6; } |
| 5576 | { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 |
| 5577 | $as_echo_n "checking for Tcl library by myself... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5578 | tcllib=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5579 | tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5580 | for ext in .so .a ; do |
| 5581 | for ver in "" $tclver ; do |
| 5582 | for try in $tcllib ; do |
| 5583 | trylib=tcl$ver$ext |
| 5584 | if test -f $try/lib$trylib ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5585 | { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 |
| 5586 | $as_echo "$try/lib$trylib" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5587 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 5588 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 5589 | uname -r | grep '^5' >/dev/null; then |
| 5590 | TCL_LIBS="$TCL_LIBS -R $try" |
| 5591 | fi |
| 5592 | break 3 |
| 5593 | fi |
| 5594 | done |
| 5595 | done |
| 5596 | done |
| 5597 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5598 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5599 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5600 | SKIP_TCL=YES |
| 5601 | fi |
| 5602 | fi |
| 5603 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5604 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5605 | #define FEAT_TCL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5606 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5607 | |
| 5608 | TCL_SRC=if_tcl.c |
| 5609 | TCL_OBJ=objects/if_tcl.o |
| 5610 | TCL_PRO=if_tcl.pro |
| 5611 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 5612 | fi |
| 5613 | fi |
| 5614 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5615 | { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 |
| 5616 | $as_echo "too old; need Tcl version 8.0 or later" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5617 | fi |
| 5618 | fi |
| 5619 | fi |
| 5620 | |
| 5621 | |
| 5622 | |
| 5623 | |
| 5624 | |
| 5625 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5626 | { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 |
| 5627 | $as_echo_n "checking --enable-rubyinterp argument... " >&6; } |
| 5628 | # Check whether --enable-rubyinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5629 | if test "${enable_rubyinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5630 | enableval=$enable_rubyinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5631 | else |
| 5632 | enable_rubyinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5633 | fi |
| 5634 | |
| 5635 | { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 |
| 5636 | $as_echo "$enable_rubyinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5637 | if test "$enable_rubyinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5638 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5639 | # Extract the first word of "ruby", so it can be a program name with args. |
| 5640 | set dummy ruby; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5641 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5642 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5643 | if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5644 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5645 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5646 | case $vi_cv_path_ruby in |
| 5647 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5648 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 5649 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5650 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5652 | for as_dir in $PATH |
| 5653 | do |
| 5654 | IFS=$as_save_IFS |
| 5655 | test -z "$as_dir" && as_dir=. |
| 5656 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5658 | ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5659 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5660 | break 2 |
| 5661 | fi |
| 5662 | done |
| 5663 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5664 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5665 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5666 | ;; |
| 5667 | esac |
| 5668 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5669 | vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5670 | if test -n "$vi_cv_path_ruby"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5671 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 |
| 5672 | $as_echo "$vi_cv_path_ruby" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5673 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5674 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5675 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5676 | fi |
| 5677 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5678 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5679 | if test "X$vi_cv_path_ruby" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5680 | { $as_echo "$as_me:$LINENO: checking Ruby version" >&5 |
| 5681 | $as_echo_n "checking Ruby version... " >&6; } |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 5682 | if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5683 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 5684 | $as_echo "OK" >&6; } |
| 5685 | { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5 |
| 5686 | $as_echo_n "checking Ruby header files... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5687 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
| 5688 | if test "X$rubyhdrdir" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5689 | { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 |
| 5690 | $as_echo "$rubyhdrdir" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5691 | RUBY_CFLAGS="-I$rubyhdrdir" |
| 5692 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 5693 | if test "X$rubylibs" != "X"; then |
| 5694 | RUBY_LIBS="$rubylibs" |
| 5695 | fi |
| 5696 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 5697 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 5698 | librubyarg="$rubyhdrdir/$librubyarg" |
| 5699 | else |
| 5700 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 5701 | if test -f "$rubylibdir/$librubyarg"; then |
| 5702 | librubyarg="$rubylibdir/$librubyarg" |
| 5703 | elif test "$librubyarg" = "libruby.a"; then |
| 5704 | librubyarg="-lruby" |
| 5705 | else |
| 5706 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 5707 | fi |
| 5708 | fi |
| 5709 | |
| 5710 | if test "X$librubyarg" != "X"; then |
| 5711 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 5712 | fi |
| 5713 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 5714 | if test "X$rubyldflags" != "X"; then |
| 5715 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 5716 | fi |
| 5717 | RUBY_SRC="if_ruby.c" |
| 5718 | RUBY_OBJ="objects/if_ruby.o" |
| 5719 | RUBY_PRO="if_ruby.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5720 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5721 | #define FEAT_RUBY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5722 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5723 | |
| 5724 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5725 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 5726 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5727 | fi |
| 5728 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5729 | { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 |
| 5730 | $as_echo "too old; need Ruby version 1.6.0 or later" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5731 | fi |
| 5732 | fi |
| 5733 | fi |
| 5734 | |
| 5735 | |
| 5736 | |
| 5737 | |
| 5738 | |
| 5739 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5740 | { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 |
| 5741 | $as_echo_n "checking --enable-cscope argument... " >&6; } |
| 5742 | # Check whether --enable-cscope was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5743 | if test "${enable_cscope+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5744 | enableval=$enable_cscope; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5745 | else |
| 5746 | enable_cscope="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5747 | fi |
| 5748 | |
| 5749 | { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5 |
| 5750 | $as_echo "$enable_cscope" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5751 | if test "$enable_cscope" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5752 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5753 | #define FEAT_CSCOPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5754 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5755 | |
| 5756 | fi |
| 5757 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5758 | { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 |
| 5759 | $as_echo_n "checking --enable-workshop argument... " >&6; } |
| 5760 | # Check whether --enable-workshop was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5761 | if test "${enable_workshop+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5762 | enableval=$enable_workshop; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5763 | else |
| 5764 | enable_workshop="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5765 | fi |
| 5766 | |
| 5767 | { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5 |
| 5768 | $as_echo "$enable_workshop" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5769 | if test "$enable_workshop" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5770 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5771 | #define FEAT_SUN_WORKSHOP 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5772 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5773 | |
| 5774 | WORKSHOP_SRC="workshop.c integration.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5775 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5776 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5777 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5778 | if test "${enable_gui-xxx}" = xxx; then |
| 5779 | enable_gui=motif |
| 5780 | fi |
| 5781 | fi |
| 5782 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5783 | { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 |
| 5784 | $as_echo_n "checking --disable-netbeans argument... " >&6; } |
| 5785 | # Check whether --enable-netbeans was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5786 | if test "${enable_netbeans+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5787 | enableval=$enable_netbeans; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5788 | else |
| 5789 | enable_netbeans="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5790 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5791 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5792 | if test "$enable_netbeans" = "yes"; then |
| 5793 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5794 | $as_echo "no" >&6; } |
| 5795 | |
| 5796 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 5797 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5798 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5799 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5800 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5801 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5802 | LIBS="-lsocket $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5803 | cat >conftest.$ac_ext <<_ACEOF |
| 5804 | /* confdefs.h. */ |
| 5805 | _ACEOF |
| 5806 | cat confdefs.h >>conftest.$ac_ext |
| 5807 | cat >>conftest.$ac_ext <<_ACEOF |
| 5808 | /* end confdefs.h. */ |
| 5809 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5810 | /* Override any GCC internal prototype to avoid an error. |
| 5811 | Use char because int might match the return type of a GCC |
| 5812 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5813 | #ifdef __cplusplus |
| 5814 | extern "C" |
| 5815 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5816 | char socket (); |
| 5817 | int |
| 5818 | main () |
| 5819 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5820 | return socket (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5821 | ; |
| 5822 | return 0; |
| 5823 | } |
| 5824 | _ACEOF |
| 5825 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5826 | if { (ac_try="$ac_link" |
| 5827 | case "(($ac_try" in |
| 5828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5829 | *) ac_try_echo=$ac_try;; |
| 5830 | esac |
| 5831 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5832 | $as_echo "$ac_try_echo") >&5 |
| 5833 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5834 | ac_status=$? |
| 5835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5836 | rm -f conftest.er1 |
| 5837 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5838 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5839 | (exit $ac_status); } && { |
| 5840 | test -z "$ac_c_werror_flag" || |
| 5841 | test ! -s conftest.err |
| 5842 | } && test -s conftest$ac_exeext && { |
| 5843 | test "$cross_compiling" = yes || |
| 5844 | $as_test_x conftest$ac_exeext |
| 5845 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5846 | ac_cv_lib_socket_socket=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5847 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5848 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5849 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5850 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5851 | ac_cv_lib_socket_socket=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5852 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5853 | |
| 5854 | rm -rf conftest.dSYM |
| 5855 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5856 | conftest$ac_exeext conftest.$ac_ext |
| 5857 | LIBS=$ac_check_lib_save_LIBS |
| 5858 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5859 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 5860 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5861 | if test $ac_cv_lib_socket_socket = yes; then |
| 5862 | cat >>confdefs.h <<_ACEOF |
| 5863 | #define HAVE_LIBSOCKET 1 |
| 5864 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5865 | |
| 5866 | LIBS="-lsocket $LIBS" |
| 5867 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5868 | fi |
| 5869 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5870 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5871 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 5872 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5873 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5874 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5875 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5876 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5877 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5878 | cat >conftest.$ac_ext <<_ACEOF |
| 5879 | /* confdefs.h. */ |
| 5880 | _ACEOF |
| 5881 | cat confdefs.h >>conftest.$ac_ext |
| 5882 | cat >>conftest.$ac_ext <<_ACEOF |
| 5883 | /* end confdefs.h. */ |
| 5884 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5885 | /* Override any GCC internal prototype to avoid an error. |
| 5886 | Use char because int might match the return type of a GCC |
| 5887 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5888 | #ifdef __cplusplus |
| 5889 | extern "C" |
| 5890 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5891 | char gethostbyname (); |
| 5892 | int |
| 5893 | main () |
| 5894 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5895 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5896 | ; |
| 5897 | return 0; |
| 5898 | } |
| 5899 | _ACEOF |
| 5900 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5901 | if { (ac_try="$ac_link" |
| 5902 | case "(($ac_try" in |
| 5903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5904 | *) ac_try_echo=$ac_try;; |
| 5905 | esac |
| 5906 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5907 | $as_echo "$ac_try_echo") >&5 |
| 5908 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5909 | ac_status=$? |
| 5910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5911 | rm -f conftest.er1 |
| 5912 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5913 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5914 | (exit $ac_status); } && { |
| 5915 | test -z "$ac_c_werror_flag" || |
| 5916 | test ! -s conftest.err |
| 5917 | } && test -s conftest$ac_exeext && { |
| 5918 | test "$cross_compiling" = yes || |
| 5919 | $as_test_x conftest$ac_exeext |
| 5920 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5921 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5922 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5923 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5924 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5925 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5926 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5927 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5928 | |
| 5929 | rm -rf conftest.dSYM |
| 5930 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5931 | conftest$ac_exeext conftest.$ac_ext |
| 5932 | LIBS=$ac_check_lib_save_LIBS |
| 5933 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5934 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 5935 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5936 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 5937 | cat >>confdefs.h <<_ACEOF |
| 5938 | #define HAVE_LIBNSL 1 |
| 5939 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5940 | |
| 5941 | LIBS="-lnsl $LIBS" |
| 5942 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5943 | fi |
| 5944 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5945 | { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 |
| 5946 | $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5947 | cat >conftest.$ac_ext <<_ACEOF |
| 5948 | /* confdefs.h. */ |
| 5949 | _ACEOF |
| 5950 | cat confdefs.h >>conftest.$ac_ext |
| 5951 | cat >>conftest.$ac_ext <<_ACEOF |
| 5952 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5953 | |
| 5954 | #include <stdio.h> |
| 5955 | #include <stdlib.h> |
| 5956 | #include <stdarg.h> |
| 5957 | #include <fcntl.h> |
| 5958 | #include <netdb.h> |
| 5959 | #include <netinet/in.h> |
| 5960 | #include <errno.h> |
| 5961 | #include <sys/types.h> |
| 5962 | #include <sys/socket.h> |
| 5963 | /* Check bitfields */ |
| 5964 | struct nbbuf { |
| 5965 | unsigned int initDone:1; |
| 5966 | ushort signmaplen; |
| 5967 | }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5968 | |
| 5969 | int |
| 5970 | main () |
| 5971 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5972 | |
| 5973 | /* Check creating a socket. */ |
| 5974 | struct sockaddr_in server; |
| 5975 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 5976 | (void)htons(100); |
| 5977 | (void)gethostbyname("microsoft.com"); |
| 5978 | if (errno == ECONNREFUSED) |
| 5979 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5980 | |
| 5981 | ; |
| 5982 | return 0; |
| 5983 | } |
| 5984 | _ACEOF |
| 5985 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5986 | if { (ac_try="$ac_link" |
| 5987 | case "(($ac_try" in |
| 5988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5989 | *) ac_try_echo=$ac_try;; |
| 5990 | esac |
| 5991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5992 | $as_echo "$ac_try_echo") >&5 |
| 5993 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5994 | ac_status=$? |
| 5995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5996 | rm -f conftest.er1 |
| 5997 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5999 | (exit $ac_status); } && { |
| 6000 | test -z "$ac_c_werror_flag" || |
| 6001 | test ! -s conftest.err |
| 6002 | } && test -s conftest$ac_exeext && { |
| 6003 | test "$cross_compiling" = yes || |
| 6004 | $as_test_x conftest$ac_exeext |
| 6005 | }; then |
| 6006 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6007 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6008 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6009 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6011 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6012 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6013 | $as_echo "no" >&6; }; enable_netbeans="no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6014 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6015 | |
| 6016 | rm -rf conftest.dSYM |
| 6017 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6018 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6019 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6020 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6021 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6022 | fi |
| 6023 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6024 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6025 | #define FEAT_NETBEANS_INTG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6026 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6027 | |
| 6028 | NETBEANS_SRC="netbeans.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6029 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6030 | NETBEANS_OBJ="objects/netbeans.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6031 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6032 | fi |
| 6033 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6034 | { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 |
| 6035 | $as_echo_n "checking --enable-sniff argument... " >&6; } |
| 6036 | # Check whether --enable-sniff was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6037 | if test "${enable_sniff+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6038 | enableval=$enable_sniff; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6039 | else |
| 6040 | enable_sniff="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6041 | fi |
| 6042 | |
| 6043 | { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5 |
| 6044 | $as_echo "$enable_sniff" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6045 | if test "$enable_sniff" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6046 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6047 | #define FEAT_SNIFF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6048 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6049 | |
| 6050 | SNIFF_SRC="if_sniff.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6051 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6052 | SNIFF_OBJ="objects/if_sniff.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6053 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6054 | fi |
| 6055 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6056 | { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 |
| 6057 | $as_echo_n "checking --enable-multibyte argument... " >&6; } |
| 6058 | # Check whether --enable-multibyte was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6059 | if test "${enable_multibyte+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6060 | enableval=$enable_multibyte; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6061 | else |
| 6062 | enable_multibyte="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6063 | fi |
| 6064 | |
| 6065 | { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5 |
| 6066 | $as_echo "$enable_multibyte" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6067 | if test "$enable_multibyte" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6068 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6069 | #define FEAT_MBYTE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6070 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6071 | |
| 6072 | fi |
| 6073 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6074 | { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 |
| 6075 | $as_echo_n "checking --enable-hangulinput argument... " >&6; } |
| 6076 | # Check whether --enable-hangulinput was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6077 | if test "${enable_hangulinput+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6078 | enableval=$enable_hangulinput; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6079 | else |
| 6080 | enable_hangulinput="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6081 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6082 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6083 | { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 |
| 6084 | $as_echo "$enable_hangulinput" >&6; } |
| 6085 | |
| 6086 | { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5 |
| 6087 | $as_echo_n "checking --enable-xim argument... " >&6; } |
| 6088 | # Check whether --enable-xim was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6089 | if test "${enable_xim+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6090 | enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5 |
| 6091 | $as_echo "$enable_xim" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6092 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6093 | enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5 |
| 6094 | $as_echo "defaulting to auto" >&6; } |
| 6095 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6096 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6097 | |
| 6098 | { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 |
| 6099 | $as_echo_n "checking --enable-fontset argument... " >&6; } |
| 6100 | # Check whether --enable-fontset was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6101 | if test "${enable_fontset+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6102 | enableval=$enable_fontset; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6103 | else |
| 6104 | enable_fontset="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6105 | fi |
| 6106 | |
| 6107 | { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5 |
| 6108 | $as_echo "$enable_fontset" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6109 | |
| 6110 | test -z "$with_x" && with_x=yes |
| 6111 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 6112 | if test "$with_x" = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6113 | { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 |
| 6114 | $as_echo "defaulting to: don't HAVE_X11" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6115 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6116 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6117 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 6118 | set dummy xmkmf; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6119 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6120 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6121 | if test "${ac_cv_path_xmkmfpath+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6122 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6123 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6124 | case $xmkmfpath in |
| 6125 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6126 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 6127 | ;; |
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 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6130 | for as_dir in $PATH |
| 6131 | do |
| 6132 | IFS=$as_save_IFS |
| 6133 | test -z "$as_dir" && as_dir=. |
| 6134 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6136 | ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6137 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6138 | break 2 |
| 6139 | fi |
| 6140 | done |
| 6141 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6142 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6143 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6144 | ;; |
| 6145 | esac |
| 6146 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6147 | xmkmfpath=$ac_cv_path_xmkmfpath |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6148 | if test -n "$xmkmfpath"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6149 | { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5 |
| 6150 | $as_echo "$xmkmfpath" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6151 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6152 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6153 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6154 | fi |
| 6155 | |
| 6156 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6157 | |
| 6158 | { $as_echo "$as_me:$LINENO: checking for X" >&5 |
| 6159 | $as_echo_n "checking for X... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6160 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6161 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6162 | # Check whether --with-x was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6163 | if test "${with_x+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6164 | withval=$with_x; |
| 6165 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6166 | |
| 6167 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 6168 | if test "x$with_x" = xno; then |
| 6169 | # The user explicitly disabled X. |
| 6170 | have_x=disabled |
| 6171 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6172 | case $x_includes,$x_libraries in #( |
| 6173 | *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
| 6174 | $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
| 6175 | { (exit 1); exit 1; }; };; #( |
| 6176 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
| 6177 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6178 | else |
| 6179 | # 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] | 6180 | ac_x_includes=no ac_x_libraries=no |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6181 | rm -f -r conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6182 | if mkdir conftest.dir; then |
| 6183 | cd conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6184 | cat >Imakefile <<'_ACEOF' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6185 | incroot: |
| 6186 | @echo incroot='${INCROOT}' |
| 6187 | usrlibdir: |
| 6188 | @echo usrlibdir='${USRLIBDIR}' |
| 6189 | libdir: |
| 6190 | @echo libdir='${LIBDIR}' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6191 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6192 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6193 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6194 | for ac_var in incroot usrlibdir libdir; do |
| 6195 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 6196 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6197 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6198 | for ac_extension in a so sl dylib la dll; do |
| 6199 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 6200 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6201 | ac_im_usrlibdir=$ac_im_libdir; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6202 | fi |
| 6203 | done |
| 6204 | # Screen out bogus values from the imake configuration. They are |
| 6205 | # bogus both because they are the default anyway, and because |
| 6206 | # using them would break gcc on systems where it needs fixed includes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6207 | case $ac_im_incroot in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6208 | /usr/include) ac_x_includes= ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6209 | *) 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] | 6210 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6211 | case $ac_im_usrlibdir in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6212 | /usr/lib | /lib) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6213 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6214 | esac |
| 6215 | fi |
| 6216 | cd .. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6217 | rm -f -r conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6218 | fi |
| 6219 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6220 | # Standard set of common directories for X headers. |
| 6221 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 6222 | ac_x_header_dirs=' |
| 6223 | /usr/X11/include |
| 6224 | /usr/X11R6/include |
| 6225 | /usr/X11R5/include |
| 6226 | /usr/X11R4/include |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6227 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6228 | /usr/include/X11 |
| 6229 | /usr/include/X11R6 |
| 6230 | /usr/include/X11R5 |
| 6231 | /usr/include/X11R4 |
| 6232 | |
| 6233 | /usr/local/X11/include |
| 6234 | /usr/local/X11R6/include |
| 6235 | /usr/local/X11R5/include |
| 6236 | /usr/local/X11R4/include |
| 6237 | |
| 6238 | /usr/local/include/X11 |
| 6239 | /usr/local/include/X11R6 |
| 6240 | /usr/local/include/X11R5 |
| 6241 | /usr/local/include/X11R4 |
| 6242 | |
| 6243 | /usr/X386/include |
| 6244 | /usr/x386/include |
| 6245 | /usr/XFree86/include/X11 |
| 6246 | |
| 6247 | /usr/include |
| 6248 | /usr/local/include |
| 6249 | /usr/unsupported/include |
| 6250 | /usr/athena/include |
| 6251 | /usr/local/x11r5/include |
| 6252 | /usr/lpp/Xamples/include |
| 6253 | |
| 6254 | /usr/openwin/include |
| 6255 | /usr/openwin/share/include' |
| 6256 | |
| 6257 | if test "$ac_x_includes" = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6258 | # Guess where to find include files, by looking for Xlib.h. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6259 | # First, try using that file with no special directory specified. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6260 | cat >conftest.$ac_ext <<_ACEOF |
| 6261 | /* confdefs.h. */ |
| 6262 | _ACEOF |
| 6263 | cat confdefs.h >>conftest.$ac_ext |
| 6264 | cat >>conftest.$ac_ext <<_ACEOF |
| 6265 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6266 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6267 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6268 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6269 | case "(($ac_try" in |
| 6270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6271 | *) ac_try_echo=$ac_try;; |
| 6272 | esac |
| 6273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6274 | $as_echo "$ac_try_echo") >&5 |
| 6275 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6276 | ac_status=$? |
| 6277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6278 | rm -f conftest.er1 |
| 6279 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6281 | (exit $ac_status); } >/dev/null && { |
| 6282 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6283 | test ! -s conftest.err |
| 6284 | }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6285 | # We can compile using X headers with no special include directory. |
| 6286 | ac_x_includes= |
| 6287 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6288 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6290 | |
| 6291 | for ac_dir in $ac_x_header_dirs; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6292 | if test -r "$ac_dir/X11/Xlib.h"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6293 | ac_x_includes=$ac_dir |
| 6294 | break |
| 6295 | fi |
| 6296 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6297 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6298 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6299 | rm -f conftest.err conftest.$ac_ext |
| 6300 | fi # $ac_x_includes = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6301 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6302 | if test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6303 | # Check for the libraries. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6304 | # See if we find them without any special options. |
| 6305 | # Don't add to $LIBS permanently. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6306 | ac_save_LIBS=$LIBS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6307 | LIBS="-lX11 $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. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6314 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6315 | int |
| 6316 | main () |
| 6317 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6318 | XrmInitialize () |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6319 | ; |
| 6320 | return 0; |
| 6321 | } |
| 6322 | _ACEOF |
| 6323 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6324 | if { (ac_try="$ac_link" |
| 6325 | case "(($ac_try" in |
| 6326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6327 | *) ac_try_echo=$ac_try;; |
| 6328 | esac |
| 6329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6330 | $as_echo "$ac_try_echo") >&5 |
| 6331 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6332 | ac_status=$? |
| 6333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6334 | rm -f conftest.er1 |
| 6335 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6337 | (exit $ac_status); } && { |
| 6338 | test -z "$ac_c_werror_flag" || |
| 6339 | test ! -s conftest.err |
| 6340 | } && test -s conftest$ac_exeext && { |
| 6341 | test "$cross_compiling" = yes || |
| 6342 | $as_test_x conftest$ac_exeext |
| 6343 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6344 | LIBS=$ac_save_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6345 | # We can link X programs with no special library path. |
| 6346 | ac_x_libraries= |
| 6347 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6348 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6350 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6351 | LIBS=$ac_save_LIBS |
| 6352 | for ac_dir in `$as_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] | 6353 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6354 | # Don't even attempt the hair of trying to link an X program! |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6355 | for ac_extension in a so sl dylib la dll; do |
| 6356 | if test -r "$ac_dir/libX11.$ac_extension"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6357 | ac_x_libraries=$ac_dir |
| 6358 | break 2 |
| 6359 | fi |
| 6360 | done |
| 6361 | done |
| 6362 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6363 | |
| 6364 | rm -rf conftest.dSYM |
| 6365 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6366 | conftest$ac_exeext conftest.$ac_ext |
| 6367 | fi # $ac_x_libraries = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6368 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6369 | case $ac_x_includes,$ac_x_libraries in #( |
| 6370 | no,* | *,no | *\'*) |
| 6371 | # Didn't find X, or a directory has "'" in its name. |
| 6372 | ac_cv_have_x="have_x=no";; #( |
| 6373 | *) |
| 6374 | # Record where we found X for the cache. |
| 6375 | ac_cv_have_x="have_x=yes\ |
| 6376 | ac_x_includes='$ac_x_includes'\ |
| 6377 | ac_x_libraries='$ac_x_libraries'" |
| 6378 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6379 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6380 | ;; #( |
| 6381 | *) have_x=yes;; |
| 6382 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6383 | eval "$ac_cv_have_x" |
| 6384 | fi # $with_x != no |
| 6385 | |
| 6386 | if test "$have_x" != yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6387 | { $as_echo "$as_me:$LINENO: result: $have_x" >&5 |
| 6388 | $as_echo "$have_x" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6389 | no_x=yes |
| 6390 | else |
| 6391 | # If each of the values was on the command line, it overrides each guess. |
| 6392 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 6393 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 6394 | # Update the cache value to reflect the command line values. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6395 | ac_cv_have_x="have_x=yes\ |
| 6396 | ac_x_includes='$x_includes'\ |
| 6397 | ac_x_libraries='$x_libraries'" |
| 6398 | { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 6399 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6400 | fi |
| 6401 | |
| 6402 | if test "$no_x" = yes; then |
| 6403 | # 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] | 6404 | |
| 6405 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6406 | #define X_DISPLAY_MISSING 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6407 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6408 | |
| 6409 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 6410 | else |
| 6411 | if test -n "$x_includes"; then |
| 6412 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6413 | fi |
| 6414 | |
| 6415 | # It would also be nice to do this for all -L options, not just this one. |
| 6416 | if test -n "$x_libraries"; then |
| 6417 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6418 | # For Solaris; some versions of Sun CC require a space after -R and |
| 6419 | # others require no space. Words are not sufficient . . . . |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6420 | { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 6421 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 6422 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 6423 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 6424 | ac_c_werror_flag=yes |
| 6425 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6426 | /* confdefs.h. */ |
| 6427 | _ACEOF |
| 6428 | cat confdefs.h >>conftest.$ac_ext |
| 6429 | cat >>conftest.$ac_ext <<_ACEOF |
| 6430 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6431 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6432 | int |
| 6433 | main () |
| 6434 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6435 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6436 | ; |
| 6437 | return 0; |
| 6438 | } |
| 6439 | _ACEOF |
| 6440 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6441 | if { (ac_try="$ac_link" |
| 6442 | case "(($ac_try" in |
| 6443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6444 | *) ac_try_echo=$ac_try;; |
| 6445 | esac |
| 6446 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6447 | $as_echo "$ac_try_echo") >&5 |
| 6448 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6449 | ac_status=$? |
| 6450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6451 | rm -f conftest.er1 |
| 6452 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6454 | (exit $ac_status); } && { |
| 6455 | test -z "$ac_c_werror_flag" || |
| 6456 | test ! -s conftest.err |
| 6457 | } && test -s conftest$ac_exeext && { |
| 6458 | test "$cross_compiling" = yes || |
| 6459 | $as_test_x conftest$ac_exeext |
| 6460 | }; then |
| 6461 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6462 | $as_echo "no" >&6; } |
| 6463 | X_LIBS="$X_LIBS -R$x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6464 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6465 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6467 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6468 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6469 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6470 | /* confdefs.h. */ |
| 6471 | _ACEOF |
| 6472 | cat confdefs.h >>conftest.$ac_ext |
| 6473 | cat >>conftest.$ac_ext <<_ACEOF |
| 6474 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6475 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6476 | int |
| 6477 | main () |
| 6478 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6479 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6480 | ; |
| 6481 | return 0; |
| 6482 | } |
| 6483 | _ACEOF |
| 6484 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6485 | if { (ac_try="$ac_link" |
| 6486 | case "(($ac_try" in |
| 6487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6488 | *) ac_try_echo=$ac_try;; |
| 6489 | esac |
| 6490 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6491 | $as_echo "$ac_try_echo") >&5 |
| 6492 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6493 | ac_status=$? |
| 6494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6495 | rm -f conftest.er1 |
| 6496 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6497 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6498 | (exit $ac_status); } && { |
| 6499 | test -z "$ac_c_werror_flag" || |
| 6500 | test ! -s conftest.err |
| 6501 | } && test -s conftest$ac_exeext && { |
| 6502 | test "$cross_compiling" = yes || |
| 6503 | $as_test_x conftest$ac_exeext |
| 6504 | }; then |
| 6505 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6506 | $as_echo "yes" >&6; } |
| 6507 | X_LIBS="$X_LIBS -R $x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6508 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6509 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6511 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6512 | { $as_echo "$as_me:$LINENO: result: neither works" >&5 |
| 6513 | $as_echo "neither works" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6514 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6515 | |
| 6516 | rm -rf conftest.dSYM |
| 6517 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6518 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6519 | fi |
| 6520 | |
| 6521 | rm -rf conftest.dSYM |
| 6522 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6523 | conftest$ac_exeext conftest.$ac_ext |
| 6524 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 6525 | LIBS=$ac_xsave_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6526 | fi |
| 6527 | |
| 6528 | # Check for system-dependent libraries X programs must link with. |
| 6529 | # Do this before checking for the system-independent R6 libraries |
| 6530 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 6531 | |
| 6532 | if test "$ISC" = yes; then |
| 6533 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 6534 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6535 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 6536 | # libraries were built with DECnet support. And Karl Berry says |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6537 | # the Alpha needs dnet_stub (dnet does not exist). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6538 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 6539 | cat >conftest.$ac_ext <<_ACEOF |
| 6540 | /* confdefs.h. */ |
| 6541 | _ACEOF |
| 6542 | cat confdefs.h >>conftest.$ac_ext |
| 6543 | cat >>conftest.$ac_ext <<_ACEOF |
| 6544 | /* end confdefs.h. */ |
| 6545 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6546 | /* Override any GCC internal prototype to avoid an error. |
| 6547 | Use char because int might match the return type of a GCC |
| 6548 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6549 | #ifdef __cplusplus |
| 6550 | extern "C" |
| 6551 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6552 | char XOpenDisplay (); |
| 6553 | int |
| 6554 | main () |
| 6555 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6556 | return XOpenDisplay (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6557 | ; |
| 6558 | return 0; |
| 6559 | } |
| 6560 | _ACEOF |
| 6561 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6562 | if { (ac_try="$ac_link" |
| 6563 | case "(($ac_try" in |
| 6564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6565 | *) ac_try_echo=$ac_try;; |
| 6566 | esac |
| 6567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6568 | $as_echo "$ac_try_echo") >&5 |
| 6569 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6570 | ac_status=$? |
| 6571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6572 | rm -f conftest.er1 |
| 6573 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6575 | (exit $ac_status); } && { |
| 6576 | test -z "$ac_c_werror_flag" || |
| 6577 | test ! -s conftest.err |
| 6578 | } && test -s conftest$ac_exeext && { |
| 6579 | test "$cross_compiling" = yes || |
| 6580 | $as_test_x conftest$ac_exeext |
| 6581 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6582 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6583 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6584 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6585 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6586 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6587 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 6588 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6589 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6590 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6591 | else |
| 6592 | ac_check_lib_save_LIBS=$LIBS |
| 6593 | LIBS="-ldnet $LIBS" |
| 6594 | cat >conftest.$ac_ext <<_ACEOF |
| 6595 | /* confdefs.h. */ |
| 6596 | _ACEOF |
| 6597 | cat confdefs.h >>conftest.$ac_ext |
| 6598 | cat >>conftest.$ac_ext <<_ACEOF |
| 6599 | /* end confdefs.h. */ |
| 6600 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6601 | /* Override any GCC internal prototype to avoid an error. |
| 6602 | Use char because int might match the return type of a GCC |
| 6603 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6604 | #ifdef __cplusplus |
| 6605 | extern "C" |
| 6606 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6607 | char dnet_ntoa (); |
| 6608 | int |
| 6609 | main () |
| 6610 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6611 | return dnet_ntoa (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6612 | ; |
| 6613 | return 0; |
| 6614 | } |
| 6615 | _ACEOF |
| 6616 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6617 | if { (ac_try="$ac_link" |
| 6618 | case "(($ac_try" in |
| 6619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6620 | *) ac_try_echo=$ac_try;; |
| 6621 | esac |
| 6622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6623 | $as_echo "$ac_try_echo") >&5 |
| 6624 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6625 | ac_status=$? |
| 6626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6627 | rm -f conftest.er1 |
| 6628 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6630 | (exit $ac_status); } && { |
| 6631 | test -z "$ac_c_werror_flag" || |
| 6632 | test ! -s conftest.err |
| 6633 | } && test -s conftest$ac_exeext && { |
| 6634 | test "$cross_compiling" = yes || |
| 6635 | $as_test_x conftest$ac_exeext |
| 6636 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6637 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 6638 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6639 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6641 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6642 | ac_cv_lib_dnet_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6643 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6644 | |
| 6645 | rm -rf conftest.dSYM |
| 6646 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6647 | conftest$ac_exeext conftest.$ac_ext |
| 6648 | LIBS=$ac_check_lib_save_LIBS |
| 6649 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6650 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 6651 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6652 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6653 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6654 | fi |
| 6655 | |
| 6656 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6657 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 6658 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6659 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6660 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6661 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6662 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6663 | LIBS="-ldnet_stub $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6664 | cat >conftest.$ac_ext <<_ACEOF |
| 6665 | /* confdefs.h. */ |
| 6666 | _ACEOF |
| 6667 | cat confdefs.h >>conftest.$ac_ext |
| 6668 | cat >>conftest.$ac_ext <<_ACEOF |
| 6669 | /* end confdefs.h. */ |
| 6670 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6671 | /* Override any GCC internal prototype to avoid an error. |
| 6672 | Use char because int might match the return type of a GCC |
| 6673 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6674 | #ifdef __cplusplus |
| 6675 | extern "C" |
| 6676 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6677 | char dnet_ntoa (); |
| 6678 | int |
| 6679 | main () |
| 6680 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6681 | return dnet_ntoa (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6682 | ; |
| 6683 | return 0; |
| 6684 | } |
| 6685 | _ACEOF |
| 6686 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6687 | if { (ac_try="$ac_link" |
| 6688 | case "(($ac_try" in |
| 6689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6690 | *) ac_try_echo=$ac_try;; |
| 6691 | esac |
| 6692 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6693 | $as_echo "$ac_try_echo") >&5 |
| 6694 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6695 | ac_status=$? |
| 6696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6697 | rm -f conftest.er1 |
| 6698 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6699 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6700 | (exit $ac_status); } && { |
| 6701 | test -z "$ac_c_werror_flag" || |
| 6702 | test ! -s conftest.err |
| 6703 | } && test -s conftest$ac_exeext && { |
| 6704 | test "$cross_compiling" = yes || |
| 6705 | $as_test_x conftest$ac_exeext |
| 6706 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6707 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6708 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6709 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6710 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6711 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6712 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6713 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6714 | |
| 6715 | rm -rf conftest.dSYM |
| 6716 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6717 | conftest$ac_exeext conftest.$ac_ext |
| 6718 | LIBS=$ac_check_lib_save_LIBS |
| 6719 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6720 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 6721 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6722 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6723 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6724 | fi |
| 6725 | |
| 6726 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6727 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6728 | |
| 6729 | rm -rf conftest.dSYM |
| 6730 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6731 | conftest$ac_exeext conftest.$ac_ext |
| 6732 | LIBS="$ac_xsave_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6733 | |
| 6734 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 6735 | # to get the SysV transport functions. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6736 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6737 | # needs -lnsl. |
| 6738 | # The nsl library prevents programs from opening the X display |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6739 | # on Irix 5.2, according to T.E. Dickey. |
| 6740 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 6741 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6742 | { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 6743 | $as_echo_n "checking for gethostbyname... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6744 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6745 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6746 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6747 | cat >conftest.$ac_ext <<_ACEOF |
| 6748 | /* confdefs.h. */ |
| 6749 | _ACEOF |
| 6750 | cat confdefs.h >>conftest.$ac_ext |
| 6751 | cat >>conftest.$ac_ext <<_ACEOF |
| 6752 | /* end confdefs.h. */ |
| 6753 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 6754 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6755 | #define gethostbyname innocuous_gethostbyname |
| 6756 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6757 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6758 | which can conflict with char gethostbyname (); below. |
| 6759 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6760 | <limits.h> exists even on freestanding compilers. */ |
| 6761 | |
| 6762 | #ifdef __STDC__ |
| 6763 | # include <limits.h> |
| 6764 | #else |
| 6765 | # include <assert.h> |
| 6766 | #endif |
| 6767 | |
| 6768 | #undef gethostbyname |
| 6769 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6770 | /* Override any GCC internal prototype to avoid an error. |
| 6771 | Use char because int might match the return type of a GCC |
| 6772 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6773 | #ifdef __cplusplus |
| 6774 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6775 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6776 | char gethostbyname (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6777 | /* The GNU C library defines this for functions which it implements |
| 6778 | to always fail with ENOSYS. Some functions are actually named |
| 6779 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6780 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6781 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6782 | #endif |
| 6783 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6784 | int |
| 6785 | main () |
| 6786 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6787 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6788 | ; |
| 6789 | return 0; |
| 6790 | } |
| 6791 | _ACEOF |
| 6792 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6793 | if { (ac_try="$ac_link" |
| 6794 | case "(($ac_try" in |
| 6795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6796 | *) ac_try_echo=$ac_try;; |
| 6797 | esac |
| 6798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6799 | $as_echo "$ac_try_echo") >&5 |
| 6800 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6801 | ac_status=$? |
| 6802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6803 | rm -f conftest.er1 |
| 6804 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6806 | (exit $ac_status); } && { |
| 6807 | test -z "$ac_c_werror_flag" || |
| 6808 | test ! -s conftest.err |
| 6809 | } && test -s conftest$ac_exeext && { |
| 6810 | test "$cross_compiling" = yes || |
| 6811 | $as_test_x conftest$ac_exeext |
| 6812 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6813 | ac_cv_func_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6814 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6815 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6816 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6817 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6818 | ac_cv_func_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6819 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6820 | |
| 6821 | rm -rf conftest.dSYM |
| 6822 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6823 | conftest$ac_exeext conftest.$ac_ext |
| 6824 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6825 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 6826 | $as_echo "$ac_cv_func_gethostbyname" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6827 | |
| 6828 | if test $ac_cv_func_gethostbyname = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6829 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 6830 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6831 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6832 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6833 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6834 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6835 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6836 | cat >conftest.$ac_ext <<_ACEOF |
| 6837 | /* confdefs.h. */ |
| 6838 | _ACEOF |
| 6839 | cat confdefs.h >>conftest.$ac_ext |
| 6840 | cat >>conftest.$ac_ext <<_ACEOF |
| 6841 | /* end confdefs.h. */ |
| 6842 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6843 | /* Override any GCC internal prototype to avoid an error. |
| 6844 | Use char because int might match the return type of a GCC |
| 6845 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6846 | #ifdef __cplusplus |
| 6847 | extern "C" |
| 6848 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6849 | char gethostbyname (); |
| 6850 | int |
| 6851 | main () |
| 6852 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6853 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6854 | ; |
| 6855 | return 0; |
| 6856 | } |
| 6857 | _ACEOF |
| 6858 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6859 | if { (ac_try="$ac_link" |
| 6860 | case "(($ac_try" in |
| 6861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6862 | *) ac_try_echo=$ac_try;; |
| 6863 | esac |
| 6864 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6865 | $as_echo "$ac_try_echo") >&5 |
| 6866 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6867 | ac_status=$? |
| 6868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6869 | rm -f conftest.er1 |
| 6870 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6872 | (exit $ac_status); } && { |
| 6873 | test -z "$ac_c_werror_flag" || |
| 6874 | test ! -s conftest.err |
| 6875 | } && test -s conftest$ac_exeext && { |
| 6876 | test "$cross_compiling" = yes || |
| 6877 | $as_test_x conftest$ac_exeext |
| 6878 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6879 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6880 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6881 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6882 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6883 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6884 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6885 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6886 | |
| 6887 | rm -rf conftest.dSYM |
| 6888 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6889 | conftest$ac_exeext conftest.$ac_ext |
| 6890 | LIBS=$ac_check_lib_save_LIBS |
| 6891 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6892 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 6893 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6894 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6895 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6896 | fi |
| 6897 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6898 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6899 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 6900 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6901 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6902 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6903 | else |
| 6904 | ac_check_lib_save_LIBS=$LIBS |
| 6905 | LIBS="-lbsd $LIBS" |
| 6906 | cat >conftest.$ac_ext <<_ACEOF |
| 6907 | /* confdefs.h. */ |
| 6908 | _ACEOF |
| 6909 | cat confdefs.h >>conftest.$ac_ext |
| 6910 | cat >>conftest.$ac_ext <<_ACEOF |
| 6911 | /* end confdefs.h. */ |
| 6912 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6913 | /* Override any GCC internal prototype to avoid an error. |
| 6914 | Use char because int might match the return type of a GCC |
| 6915 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6916 | #ifdef __cplusplus |
| 6917 | extern "C" |
| 6918 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6919 | char gethostbyname (); |
| 6920 | int |
| 6921 | main () |
| 6922 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6923 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6924 | ; |
| 6925 | return 0; |
| 6926 | } |
| 6927 | _ACEOF |
| 6928 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6929 | if { (ac_try="$ac_link" |
| 6930 | case "(($ac_try" in |
| 6931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6932 | *) ac_try_echo=$ac_try;; |
| 6933 | esac |
| 6934 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6935 | $as_echo "$ac_try_echo") >&5 |
| 6936 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6937 | ac_status=$? |
| 6938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6939 | rm -f conftest.er1 |
| 6940 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6941 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6942 | (exit $ac_status); } && { |
| 6943 | test -z "$ac_c_werror_flag" || |
| 6944 | test ! -s conftest.err |
| 6945 | } && test -s conftest$ac_exeext && { |
| 6946 | test "$cross_compiling" = yes || |
| 6947 | $as_test_x conftest$ac_exeext |
| 6948 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6949 | ac_cv_lib_bsd_gethostbyname=yes |
| 6950 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6951 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6953 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6954 | ac_cv_lib_bsd_gethostbyname=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6955 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6956 | |
| 6957 | rm -rf conftest.dSYM |
| 6958 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6959 | conftest$ac_exeext conftest.$ac_ext |
| 6960 | LIBS=$ac_check_lib_save_LIBS |
| 6961 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6962 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 6963 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6964 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 6965 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 6966 | fi |
| 6967 | |
| 6968 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6969 | fi |
| 6970 | |
| 6971 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 6972 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 6973 | # 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] | 6974 | # on later versions), says Simon Leinen: it contains gethostby* |
| 6975 | # variants that don't use the name server (or something). -lsocket |
| 6976 | # must be given before -lnsl if both are needed. We assume that |
| 6977 | # if connect needs -lnsl, so does gethostbyname. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6978 | { $as_echo "$as_me:$LINENO: checking for connect" >&5 |
| 6979 | $as_echo_n "checking for connect... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6980 | if test "${ac_cv_func_connect+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6981 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6982 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6983 | cat >conftest.$ac_ext <<_ACEOF |
| 6984 | /* confdefs.h. */ |
| 6985 | _ACEOF |
| 6986 | cat confdefs.h >>conftest.$ac_ext |
| 6987 | cat >>conftest.$ac_ext <<_ACEOF |
| 6988 | /* end confdefs.h. */ |
| 6989 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 6990 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6991 | #define connect innocuous_connect |
| 6992 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6993 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6994 | which can conflict with char connect (); below. |
| 6995 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6996 | <limits.h> exists even on freestanding compilers. */ |
| 6997 | |
| 6998 | #ifdef __STDC__ |
| 6999 | # include <limits.h> |
| 7000 | #else |
| 7001 | # include <assert.h> |
| 7002 | #endif |
| 7003 | |
| 7004 | #undef connect |
| 7005 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7006 | /* Override any GCC internal prototype to avoid an error. |
| 7007 | Use char because int might match the return type of a GCC |
| 7008 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7009 | #ifdef __cplusplus |
| 7010 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7011 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7012 | char connect (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7013 | /* The GNU C library defines this for functions which it implements |
| 7014 | to always fail with ENOSYS. Some functions are actually named |
| 7015 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7016 | #if defined __stub_connect || defined __stub___connect |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7017 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7018 | #endif |
| 7019 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7020 | int |
| 7021 | main () |
| 7022 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7023 | return connect (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7024 | ; |
| 7025 | return 0; |
| 7026 | } |
| 7027 | _ACEOF |
| 7028 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7029 | if { (ac_try="$ac_link" |
| 7030 | case "(($ac_try" in |
| 7031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7032 | *) ac_try_echo=$ac_try;; |
| 7033 | esac |
| 7034 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7035 | $as_echo "$ac_try_echo") >&5 |
| 7036 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7037 | ac_status=$? |
| 7038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7039 | rm -f conftest.er1 |
| 7040 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7042 | (exit $ac_status); } && { |
| 7043 | test -z "$ac_c_werror_flag" || |
| 7044 | test ! -s conftest.err |
| 7045 | } && test -s conftest$ac_exeext && { |
| 7046 | test "$cross_compiling" = yes || |
| 7047 | $as_test_x conftest$ac_exeext |
| 7048 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7049 | ac_cv_func_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7050 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7051 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7052 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7053 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7054 | ac_cv_func_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7055 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7056 | |
| 7057 | rm -rf conftest.dSYM |
| 7058 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7059 | conftest$ac_exeext conftest.$ac_ext |
| 7060 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7061 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 7062 | $as_echo "$ac_cv_func_connect" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7063 | |
| 7064 | if test $ac_cv_func_connect = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7065 | { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 7066 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7067 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7068 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7069 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7070 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7071 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7072 | cat >conftest.$ac_ext <<_ACEOF |
| 7073 | /* confdefs.h. */ |
| 7074 | _ACEOF |
| 7075 | cat confdefs.h >>conftest.$ac_ext |
| 7076 | cat >>conftest.$ac_ext <<_ACEOF |
| 7077 | /* end confdefs.h. */ |
| 7078 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7079 | /* Override any GCC internal prototype to avoid an error. |
| 7080 | Use char because int might match the return type of a GCC |
| 7081 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7082 | #ifdef __cplusplus |
| 7083 | extern "C" |
| 7084 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7085 | char connect (); |
| 7086 | int |
| 7087 | main () |
| 7088 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7089 | return connect (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7090 | ; |
| 7091 | return 0; |
| 7092 | } |
| 7093 | _ACEOF |
| 7094 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7095 | if { (ac_try="$ac_link" |
| 7096 | case "(($ac_try" in |
| 7097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7098 | *) ac_try_echo=$ac_try;; |
| 7099 | esac |
| 7100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7101 | $as_echo "$ac_try_echo") >&5 |
| 7102 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7103 | ac_status=$? |
| 7104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7105 | rm -f conftest.er1 |
| 7106 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7108 | (exit $ac_status); } && { |
| 7109 | test -z "$ac_c_werror_flag" || |
| 7110 | test ! -s conftest.err |
| 7111 | } && test -s conftest$ac_exeext && { |
| 7112 | test "$cross_compiling" = yes || |
| 7113 | $as_test_x conftest$ac_exeext |
| 7114 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7115 | ac_cv_lib_socket_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7116 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7117 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7118 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7119 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7120 | ac_cv_lib_socket_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7121 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7122 | |
| 7123 | rm -rf conftest.dSYM |
| 7124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7125 | conftest$ac_exeext conftest.$ac_ext |
| 7126 | LIBS=$ac_check_lib_save_LIBS |
| 7127 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7128 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 7129 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7130 | if test $ac_cv_lib_socket_connect = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7131 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7132 | fi |
| 7133 | |
| 7134 | fi |
| 7135 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7136 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7137 | { $as_echo "$as_me:$LINENO: checking for remove" >&5 |
| 7138 | $as_echo_n "checking for remove... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7139 | if test "${ac_cv_func_remove+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7140 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7141 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7142 | cat >conftest.$ac_ext <<_ACEOF |
| 7143 | /* confdefs.h. */ |
| 7144 | _ACEOF |
| 7145 | cat confdefs.h >>conftest.$ac_ext |
| 7146 | cat >>conftest.$ac_ext <<_ACEOF |
| 7147 | /* end confdefs.h. */ |
| 7148 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 7149 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7150 | #define remove innocuous_remove |
| 7151 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7152 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7153 | which can conflict with char remove (); below. |
| 7154 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7155 | <limits.h> exists even on freestanding compilers. */ |
| 7156 | |
| 7157 | #ifdef __STDC__ |
| 7158 | # include <limits.h> |
| 7159 | #else |
| 7160 | # include <assert.h> |
| 7161 | #endif |
| 7162 | |
| 7163 | #undef remove |
| 7164 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7165 | /* Override any GCC internal prototype to avoid an error. |
| 7166 | Use char because int might match the return type of a GCC |
| 7167 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7168 | #ifdef __cplusplus |
| 7169 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7170 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7171 | char remove (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7172 | /* The GNU C library defines this for functions which it implements |
| 7173 | to always fail with ENOSYS. Some functions are actually named |
| 7174 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7175 | #if defined __stub_remove || defined __stub___remove |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7176 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7177 | #endif |
| 7178 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7179 | int |
| 7180 | main () |
| 7181 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7182 | return remove (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7183 | ; |
| 7184 | return 0; |
| 7185 | } |
| 7186 | _ACEOF |
| 7187 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7188 | if { (ac_try="$ac_link" |
| 7189 | case "(($ac_try" in |
| 7190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7191 | *) ac_try_echo=$ac_try;; |
| 7192 | esac |
| 7193 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7194 | $as_echo "$ac_try_echo") >&5 |
| 7195 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7196 | ac_status=$? |
| 7197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7198 | rm -f conftest.er1 |
| 7199 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7200 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7201 | (exit $ac_status); } && { |
| 7202 | test -z "$ac_c_werror_flag" || |
| 7203 | test ! -s conftest.err |
| 7204 | } && test -s conftest$ac_exeext && { |
| 7205 | test "$cross_compiling" = yes || |
| 7206 | $as_test_x conftest$ac_exeext |
| 7207 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7208 | ac_cv_func_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7209 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7210 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7211 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7212 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7213 | ac_cv_func_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7214 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7215 | |
| 7216 | rm -rf conftest.dSYM |
| 7217 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7218 | conftest$ac_exeext conftest.$ac_ext |
| 7219 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7220 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 7221 | $as_echo "$ac_cv_func_remove" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7222 | |
| 7223 | if test $ac_cv_func_remove = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7224 | { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 7225 | $as_echo_n "checking for remove in -lposix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7226 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7227 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7228 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7229 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7230 | LIBS="-lposix $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7231 | cat >conftest.$ac_ext <<_ACEOF |
| 7232 | /* confdefs.h. */ |
| 7233 | _ACEOF |
| 7234 | cat confdefs.h >>conftest.$ac_ext |
| 7235 | cat >>conftest.$ac_ext <<_ACEOF |
| 7236 | /* end confdefs.h. */ |
| 7237 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7238 | /* Override any GCC internal prototype to avoid an error. |
| 7239 | Use char because int might match the return type of a GCC |
| 7240 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7241 | #ifdef __cplusplus |
| 7242 | extern "C" |
| 7243 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7244 | char remove (); |
| 7245 | int |
| 7246 | main () |
| 7247 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7248 | return remove (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7249 | ; |
| 7250 | return 0; |
| 7251 | } |
| 7252 | _ACEOF |
| 7253 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7254 | if { (ac_try="$ac_link" |
| 7255 | case "(($ac_try" in |
| 7256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7257 | *) ac_try_echo=$ac_try;; |
| 7258 | esac |
| 7259 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7260 | $as_echo "$ac_try_echo") >&5 |
| 7261 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7262 | ac_status=$? |
| 7263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7264 | rm -f conftest.er1 |
| 7265 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7267 | (exit $ac_status); } && { |
| 7268 | test -z "$ac_c_werror_flag" || |
| 7269 | test ! -s conftest.err |
| 7270 | } && test -s conftest$ac_exeext && { |
| 7271 | test "$cross_compiling" = yes || |
| 7272 | $as_test_x conftest$ac_exeext |
| 7273 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7274 | ac_cv_lib_posix_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7275 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7276 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7277 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7278 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7279 | ac_cv_lib_posix_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7280 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7281 | |
| 7282 | rm -rf conftest.dSYM |
| 7283 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7284 | conftest$ac_exeext conftest.$ac_ext |
| 7285 | LIBS=$ac_check_lib_save_LIBS |
| 7286 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7287 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 7288 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7289 | if test $ac_cv_lib_posix_remove = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7290 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7291 | fi |
| 7292 | |
| 7293 | fi |
| 7294 | |
| 7295 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7296 | { $as_echo "$as_me:$LINENO: checking for shmat" >&5 |
| 7297 | $as_echo_n "checking for shmat... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7298 | if test "${ac_cv_func_shmat+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7299 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7300 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7301 | cat >conftest.$ac_ext <<_ACEOF |
| 7302 | /* confdefs.h. */ |
| 7303 | _ACEOF |
| 7304 | cat confdefs.h >>conftest.$ac_ext |
| 7305 | cat >>conftest.$ac_ext <<_ACEOF |
| 7306 | /* end confdefs.h. */ |
| 7307 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 7308 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7309 | #define shmat innocuous_shmat |
| 7310 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7311 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7312 | which can conflict with char shmat (); below. |
| 7313 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7314 | <limits.h> exists even on freestanding compilers. */ |
| 7315 | |
| 7316 | #ifdef __STDC__ |
| 7317 | # include <limits.h> |
| 7318 | #else |
| 7319 | # include <assert.h> |
| 7320 | #endif |
| 7321 | |
| 7322 | #undef shmat |
| 7323 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7324 | /* Override any GCC internal prototype to avoid an error. |
| 7325 | Use char because int might match the return type of a GCC |
| 7326 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7327 | #ifdef __cplusplus |
| 7328 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7329 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7330 | char shmat (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7331 | /* The GNU C library defines this for functions which it implements |
| 7332 | to always fail with ENOSYS. Some functions are actually named |
| 7333 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7334 | #if defined __stub_shmat || defined __stub___shmat |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7335 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7336 | #endif |
| 7337 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7338 | int |
| 7339 | main () |
| 7340 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7341 | return shmat (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7342 | ; |
| 7343 | return 0; |
| 7344 | } |
| 7345 | _ACEOF |
| 7346 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7347 | if { (ac_try="$ac_link" |
| 7348 | case "(($ac_try" in |
| 7349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7350 | *) ac_try_echo=$ac_try;; |
| 7351 | esac |
| 7352 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7353 | $as_echo "$ac_try_echo") >&5 |
| 7354 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7355 | ac_status=$? |
| 7356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7357 | rm -f conftest.er1 |
| 7358 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7359 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7360 | (exit $ac_status); } && { |
| 7361 | test -z "$ac_c_werror_flag" || |
| 7362 | test ! -s conftest.err |
| 7363 | } && test -s conftest$ac_exeext && { |
| 7364 | test "$cross_compiling" = yes || |
| 7365 | $as_test_x conftest$ac_exeext |
| 7366 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7367 | ac_cv_func_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7368 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7369 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7370 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7371 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7372 | ac_cv_func_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7373 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7374 | |
| 7375 | rm -rf conftest.dSYM |
| 7376 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7377 | conftest$ac_exeext conftest.$ac_ext |
| 7378 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7379 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 7380 | $as_echo "$ac_cv_func_shmat" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7381 | |
| 7382 | if test $ac_cv_func_shmat = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7383 | { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 7384 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7385 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7386 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7387 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7388 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7389 | LIBS="-lipc $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7390 | cat >conftest.$ac_ext <<_ACEOF |
| 7391 | /* confdefs.h. */ |
| 7392 | _ACEOF |
| 7393 | cat confdefs.h >>conftest.$ac_ext |
| 7394 | cat >>conftest.$ac_ext <<_ACEOF |
| 7395 | /* end confdefs.h. */ |
| 7396 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7397 | /* Override any GCC internal prototype to avoid an error. |
| 7398 | Use char because int might match the return type of a GCC |
| 7399 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7400 | #ifdef __cplusplus |
| 7401 | extern "C" |
| 7402 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7403 | char shmat (); |
| 7404 | int |
| 7405 | main () |
| 7406 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7407 | return shmat (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7408 | ; |
| 7409 | return 0; |
| 7410 | } |
| 7411 | _ACEOF |
| 7412 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7413 | if { (ac_try="$ac_link" |
| 7414 | case "(($ac_try" in |
| 7415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7416 | *) ac_try_echo=$ac_try;; |
| 7417 | esac |
| 7418 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7419 | $as_echo "$ac_try_echo") >&5 |
| 7420 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7421 | ac_status=$? |
| 7422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7423 | rm -f conftest.er1 |
| 7424 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7425 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7426 | (exit $ac_status); } && { |
| 7427 | test -z "$ac_c_werror_flag" || |
| 7428 | test ! -s conftest.err |
| 7429 | } && test -s conftest$ac_exeext && { |
| 7430 | test "$cross_compiling" = yes || |
| 7431 | $as_test_x conftest$ac_exeext |
| 7432 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7433 | ac_cv_lib_ipc_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7434 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7435 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7436 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7437 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7438 | ac_cv_lib_ipc_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7439 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7440 | |
| 7441 | rm -rf conftest.dSYM |
| 7442 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7443 | conftest$ac_exeext conftest.$ac_ext |
| 7444 | LIBS=$ac_check_lib_save_LIBS |
| 7445 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7446 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 7447 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7448 | if test $ac_cv_lib_ipc_shmat = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7449 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7450 | fi |
| 7451 | |
| 7452 | fi |
| 7453 | fi |
| 7454 | |
| 7455 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7456 | ac_save_LDFLAGS=$LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7457 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 7458 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 7459 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 7460 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 7461 | # These have to be linked with before -lX11, unlike the other |
| 7462 | # libraries we check for below, so use a different variable. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7463 | # John Interrante, Karl Berry |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7464 | { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 7465 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7466 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7467 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7468 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7469 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7470 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7471 | cat >conftest.$ac_ext <<_ACEOF |
| 7472 | /* confdefs.h. */ |
| 7473 | _ACEOF |
| 7474 | cat confdefs.h >>conftest.$ac_ext |
| 7475 | cat >>conftest.$ac_ext <<_ACEOF |
| 7476 | /* end confdefs.h. */ |
| 7477 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7478 | /* Override any GCC internal prototype to avoid an error. |
| 7479 | Use char because int might match the return type of a GCC |
| 7480 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7481 | #ifdef __cplusplus |
| 7482 | extern "C" |
| 7483 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7484 | char IceConnectionNumber (); |
| 7485 | int |
| 7486 | main () |
| 7487 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7488 | return IceConnectionNumber (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7489 | ; |
| 7490 | return 0; |
| 7491 | } |
| 7492 | _ACEOF |
| 7493 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7494 | if { (ac_try="$ac_link" |
| 7495 | case "(($ac_try" in |
| 7496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7497 | *) ac_try_echo=$ac_try;; |
| 7498 | esac |
| 7499 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7500 | $as_echo "$ac_try_echo") >&5 |
| 7501 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7502 | ac_status=$? |
| 7503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7504 | rm -f conftest.er1 |
| 7505 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7506 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7507 | (exit $ac_status); } && { |
| 7508 | test -z "$ac_c_werror_flag" || |
| 7509 | test ! -s conftest.err |
| 7510 | } && test -s conftest$ac_exeext && { |
| 7511 | test "$cross_compiling" = yes || |
| 7512 | $as_test_x conftest$ac_exeext |
| 7513 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7514 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7515 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7516 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7517 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7518 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7519 | ac_cv_lib_ICE_IceConnectionNumber=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7520 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7521 | |
| 7522 | rm -rf conftest.dSYM |
| 7523 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7524 | conftest$ac_exeext conftest.$ac_ext |
| 7525 | LIBS=$ac_check_lib_save_LIBS |
| 7526 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7527 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 7528 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7529 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7530 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7531 | fi |
| 7532 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7533 | LDFLAGS=$ac_save_LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7534 | |
| 7535 | fi |
| 7536 | |
| 7537 | |
| 7538 | if test "$OS390Unix" = "yes"; then |
| 7539 | CFLAGS="$CFLAGS -W c,dll" |
| 7540 | LDFLAGS="$LDFLAGS -W l,dll" |
| 7541 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 7542 | fi |
| 7543 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7544 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7545 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 7546 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7547 | { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 |
| 7548 | $as_echo "Corrected X libraries to $x_libraries" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7549 | X_LIBS="$X_LIBS -L$x_libraries" |
| 7550 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 7551 | uname -r | grep '^5' >/dev/null; then |
| 7552 | X_LIBS="$X_LIBS -R $x_libraries" |
| 7553 | fi |
| 7554 | fi |
| 7555 | |
| 7556 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 7557 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7558 | { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 |
| 7559 | $as_echo "Corrected X includes to $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7560 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 7561 | fi |
| 7562 | |
| 7563 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 7564 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 7565 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 7566 | |
| 7567 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7568 | { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5 |
| 7569 | $as_echo_n "checking if X11 header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7570 | cflags_save=$CFLAGS |
| 7571 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7572 | cat >conftest.$ac_ext <<_ACEOF |
| 7573 | /* confdefs.h. */ |
| 7574 | _ACEOF |
| 7575 | cat confdefs.h >>conftest.$ac_ext |
| 7576 | cat >>conftest.$ac_ext <<_ACEOF |
| 7577 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7578 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7579 | int |
| 7580 | main () |
| 7581 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7582 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7583 | ; |
| 7584 | return 0; |
| 7585 | } |
| 7586 | _ACEOF |
| 7587 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7588 | if { (ac_try="$ac_compile" |
| 7589 | case "(($ac_try" in |
| 7590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7591 | *) ac_try_echo=$ac_try;; |
| 7592 | esac |
| 7593 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7594 | $as_echo "$ac_try_echo") >&5 |
| 7595 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7596 | ac_status=$? |
| 7597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7598 | rm -f conftest.er1 |
| 7599 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7600 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7601 | (exit $ac_status); } && { |
| 7602 | test -z "$ac_c_werror_flag" || |
| 7603 | test ! -s conftest.err |
| 7604 | } && test -s conftest.$ac_objext; then |
| 7605 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 7606 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7607 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7608 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7610 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7611 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7612 | $as_echo "no" >&6; }; no_x=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7613 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7614 | |
| 7615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7616 | CFLAGS=$cflags_save |
| 7617 | |
| 7618 | if test "${no_x-no}" = yes; then |
| 7619 | with_x=no |
| 7620 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7621 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7622 | #define HAVE_X11 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7623 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7624 | |
| 7625 | X_LIB="-lXt -lX11"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7626 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7627 | |
| 7628 | ac_save_LDFLAGS="$LDFLAGS" |
| 7629 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 7630 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7631 | { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 7632 | $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7633 | if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7634 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7635 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7636 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7637 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7638 | cat >conftest.$ac_ext <<_ACEOF |
| 7639 | /* confdefs.h. */ |
| 7640 | _ACEOF |
| 7641 | cat confdefs.h >>conftest.$ac_ext |
| 7642 | cat >>conftest.$ac_ext <<_ACEOF |
| 7643 | /* end confdefs.h. */ |
| 7644 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7645 | /* Override any GCC internal prototype to avoid an error. |
| 7646 | Use char because int might match the return type of a GCC |
| 7647 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7648 | #ifdef __cplusplus |
| 7649 | extern "C" |
| 7650 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7651 | char _XdmcpAuthDoIt (); |
| 7652 | int |
| 7653 | main () |
| 7654 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7655 | return _XdmcpAuthDoIt (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7656 | ; |
| 7657 | return 0; |
| 7658 | } |
| 7659 | _ACEOF |
| 7660 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7661 | if { (ac_try="$ac_link" |
| 7662 | case "(($ac_try" in |
| 7663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7664 | *) ac_try_echo=$ac_try;; |
| 7665 | esac |
| 7666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7667 | $as_echo "$ac_try_echo") >&5 |
| 7668 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7669 | ac_status=$? |
| 7670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7671 | rm -f conftest.er1 |
| 7672 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7674 | (exit $ac_status); } && { |
| 7675 | test -z "$ac_c_werror_flag" || |
| 7676 | test ! -s conftest.err |
| 7677 | } && test -s conftest$ac_exeext && { |
| 7678 | test "$cross_compiling" = yes || |
| 7679 | $as_test_x conftest$ac_exeext |
| 7680 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7681 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7682 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7683 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7684 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7685 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7686 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7687 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7688 | |
| 7689 | rm -rf conftest.dSYM |
| 7690 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7691 | conftest$ac_exeext conftest.$ac_ext |
| 7692 | LIBS=$ac_check_lib_save_LIBS |
| 7693 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7694 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 |
| 7695 | $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7696 | if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7697 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7698 | fi |
| 7699 | |
| 7700 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7701 | { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 |
| 7702 | $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7703 | if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7704 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7705 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7706 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7707 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7708 | cat >conftest.$ac_ext <<_ACEOF |
| 7709 | /* confdefs.h. */ |
| 7710 | _ACEOF |
| 7711 | cat confdefs.h >>conftest.$ac_ext |
| 7712 | cat >>conftest.$ac_ext <<_ACEOF |
| 7713 | /* end confdefs.h. */ |
| 7714 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7715 | /* Override any GCC internal prototype to avoid an error. |
| 7716 | Use char because int might match the return type of a GCC |
| 7717 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7718 | #ifdef __cplusplus |
| 7719 | extern "C" |
| 7720 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7721 | char IceOpenConnection (); |
| 7722 | int |
| 7723 | main () |
| 7724 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7725 | return IceOpenConnection (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7726 | ; |
| 7727 | return 0; |
| 7728 | } |
| 7729 | _ACEOF |
| 7730 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7731 | if { (ac_try="$ac_link" |
| 7732 | case "(($ac_try" in |
| 7733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7734 | *) ac_try_echo=$ac_try;; |
| 7735 | esac |
| 7736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7737 | $as_echo "$ac_try_echo") >&5 |
| 7738 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7739 | ac_status=$? |
| 7740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7741 | rm -f conftest.er1 |
| 7742 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7744 | (exit $ac_status); } && { |
| 7745 | test -z "$ac_c_werror_flag" || |
| 7746 | test ! -s conftest.err |
| 7747 | } && test -s conftest$ac_exeext && { |
| 7748 | test "$cross_compiling" = yes || |
| 7749 | $as_test_x conftest$ac_exeext |
| 7750 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7751 | ac_cv_lib_ICE_IceOpenConnection=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7752 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7753 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7754 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7755 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7756 | ac_cv_lib_ICE_IceOpenConnection=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7757 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7758 | |
| 7759 | rm -rf conftest.dSYM |
| 7760 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7761 | conftest$ac_exeext conftest.$ac_ext |
| 7762 | LIBS=$ac_check_lib_save_LIBS |
| 7763 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7764 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 7765 | $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7766 | if test $ac_cv_lib_ICE_IceOpenConnection = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7767 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7768 | fi |
| 7769 | |
| 7770 | |
| 7771 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7772 | { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 7773 | $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7774 | if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7775 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7776 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7777 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7778 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7779 | cat >conftest.$ac_ext <<_ACEOF |
| 7780 | /* confdefs.h. */ |
| 7781 | _ACEOF |
| 7782 | cat confdefs.h >>conftest.$ac_ext |
| 7783 | cat >>conftest.$ac_ext <<_ACEOF |
| 7784 | /* end confdefs.h. */ |
| 7785 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7786 | /* Override any GCC internal prototype to avoid an error. |
| 7787 | Use char because int might match the return type of a GCC |
| 7788 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7789 | #ifdef __cplusplus |
| 7790 | extern "C" |
| 7791 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7792 | char XpmCreatePixmapFromData (); |
| 7793 | int |
| 7794 | main () |
| 7795 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7796 | return XpmCreatePixmapFromData (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7797 | ; |
| 7798 | return 0; |
| 7799 | } |
| 7800 | _ACEOF |
| 7801 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7802 | if { (ac_try="$ac_link" |
| 7803 | case "(($ac_try" in |
| 7804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7805 | *) ac_try_echo=$ac_try;; |
| 7806 | esac |
| 7807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7808 | $as_echo "$ac_try_echo") >&5 |
| 7809 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7810 | ac_status=$? |
| 7811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7812 | rm -f conftest.er1 |
| 7813 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7815 | (exit $ac_status); } && { |
| 7816 | test -z "$ac_c_werror_flag" || |
| 7817 | test ! -s conftest.err |
| 7818 | } && test -s conftest$ac_exeext && { |
| 7819 | test "$cross_compiling" = yes || |
| 7820 | $as_test_x conftest$ac_exeext |
| 7821 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7822 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7823 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7824 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7825 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7826 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7827 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7828 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7829 | |
| 7830 | rm -rf conftest.dSYM |
| 7831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7832 | conftest$ac_exeext conftest.$ac_ext |
| 7833 | LIBS=$ac_check_lib_save_LIBS |
| 7834 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7835 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 7836 | $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7837 | if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7838 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7839 | fi |
| 7840 | |
| 7841 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7842 | { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 |
| 7843 | $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7844 | cflags_save=$CFLAGS |
| 7845 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7846 | cat >conftest.$ac_ext <<_ACEOF |
| 7847 | /* confdefs.h. */ |
| 7848 | _ACEOF |
| 7849 | cat confdefs.h >>conftest.$ac_ext |
| 7850 | cat >>conftest.$ac_ext <<_ACEOF |
| 7851 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7852 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7853 | int |
| 7854 | main () |
| 7855 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7856 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7857 | ; |
| 7858 | return 0; |
| 7859 | } |
| 7860 | _ACEOF |
| 7861 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7862 | if { (ac_try="$ac_compile" |
| 7863 | case "(($ac_try" in |
| 7864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7865 | *) ac_try_echo=$ac_try;; |
| 7866 | esac |
| 7867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7868 | $as_echo "$ac_try_echo") >&5 |
| 7869 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7870 | ac_status=$? |
| 7871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7872 | rm -f conftest.er1 |
| 7873 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7875 | (exit $ac_status); } && { |
| 7876 | test -z "$ac_c_werror_flag" || |
| 7877 | test ! -s conftest.err |
| 7878 | } && test -s conftest.$ac_objext; then |
| 7879 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7880 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7881 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7882 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7884 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7885 | CFLAGS="$CFLAGS -Wno-implicit-int" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7886 | cat >conftest.$ac_ext <<_ACEOF |
| 7887 | /* confdefs.h. */ |
| 7888 | _ACEOF |
| 7889 | cat confdefs.h >>conftest.$ac_ext |
| 7890 | cat >>conftest.$ac_ext <<_ACEOF |
| 7891 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7892 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7893 | int |
| 7894 | main () |
| 7895 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7896 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7897 | ; |
| 7898 | return 0; |
| 7899 | } |
| 7900 | _ACEOF |
| 7901 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7902 | if { (ac_try="$ac_compile" |
| 7903 | case "(($ac_try" in |
| 7904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7905 | *) ac_try_echo=$ac_try;; |
| 7906 | esac |
| 7907 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7908 | $as_echo "$ac_try_echo") >&5 |
| 7909 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7910 | ac_status=$? |
| 7911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7912 | rm -f conftest.er1 |
| 7913 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7915 | (exit $ac_status); } && { |
| 7916 | test -z "$ac_c_werror_flag" || |
| 7917 | test ! -s conftest.err |
| 7918 | } && test -s conftest.$ac_objext; then |
| 7919 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 7920 | $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7921 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7922 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7924 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7925 | { $as_echo "$as_me:$LINENO: result: test failed" >&5 |
| 7926 | $as_echo "test failed" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7927 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7928 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7929 | |
| 7930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7931 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7932 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7933 | |
| 7934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7935 | CFLAGS=$cflags_save |
| 7936 | |
| 7937 | LDFLAGS="$ac_save_LDFLAGS" |
| 7938 | |
| 7939 | fi |
| 7940 | fi |
| 7941 | |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 7942 | 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] | 7943 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7944 | { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5 |
| 7945 | $as_echo_n "checking --enable-gui argument... " >&6; } |
| 7946 | # Check whether --enable-gui was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7947 | if test "${enable_gui+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7948 | enableval=$enable_gui; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7949 | else |
| 7950 | enable_gui="auto" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7951 | fi |
| 7952 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7953 | |
| 7954 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 7955 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 7956 | |
| 7957 | SKIP_GTK=YES |
| 7958 | SKIP_GTK2=YES |
| 7959 | SKIP_GNOME=YES |
| 7960 | SKIP_MOTIF=YES |
| 7961 | SKIP_ATHENA=YES |
| 7962 | SKIP_NEXTAW=YES |
| 7963 | SKIP_PHOTON=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7964 | SKIP_CARBON=YES |
| 7965 | GUITYPE=NONE |
| 7966 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7967 | if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7968 | SKIP_PHOTON= |
| 7969 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7970 | no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7971 | $as_echo "no GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7972 | SKIP_PHOTON=YES ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7973 | yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 7974 | $as_echo "yes - automatic GUI support" >&6; } ;; |
| 7975 | auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 7976 | $as_echo "auto - automatic GUI support" >&6; } ;; |
| 7977 | photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5 |
| 7978 | $as_echo "Photon GUI support" >&6; } ;; |
| 7979 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7980 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7981 | SKIP_PHOTON=YES ;; |
| 7982 | esac |
| 7983 | |
| 7984 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 7985 | SKIP_CARBON= |
| 7986 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7987 | no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7988 | $as_echo "no GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7989 | SKIP_CARBON=YES ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7990 | yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 7991 | $as_echo "yes - automatic GUI support" >&6; } ;; |
| 7992 | auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 7993 | $as_echo "auto - automatic GUI support" >&6; } ;; |
| 7994 | carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5 |
| 7995 | $as_echo "Carbon GUI support" >&6; } ;; |
| 7996 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7997 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7998 | SKIP_CARBON=YES ;; |
| 7999 | esac |
| 8000 | |
| 8001 | else |
| 8002 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8003 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8004 | no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8005 | $as_echo "no GUI support" >&6; } ;; |
| 8006 | yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 |
| 8007 | $as_echo "yes/auto - automatic GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8008 | SKIP_GTK= |
| 8009 | SKIP_GTK2= |
| 8010 | SKIP_GNOME= |
| 8011 | SKIP_MOTIF= |
| 8012 | SKIP_ATHENA= |
| 8013 | SKIP_NEXTAW= |
| 8014 | SKIP_CARBON=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8015 | gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 |
| 8016 | $as_echo "GTK+ 1.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8017 | SKIP_GTK=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8018 | gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 |
| 8019 | $as_echo "GTK+ 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8020 | SKIP_GTK= |
| 8021 | SKIP_GTK2=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8022 | gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 |
| 8023 | $as_echo "GNOME 1.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8024 | SKIP_GNOME= |
| 8025 | SKIP_GTK=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8026 | gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 |
| 8027 | $as_echo "GNOME 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8028 | SKIP_GNOME= |
| 8029 | SKIP_GTK= |
| 8030 | SKIP_GTK2=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8031 | motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5 |
| 8032 | $as_echo "Motif GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8033 | SKIP_MOTIF=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8034 | athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5 |
| 8035 | $as_echo "Athena GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8036 | SKIP_ATHENA=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8037 | nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 |
| 8038 | $as_echo "neXtaw GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8039 | SKIP_NEXTAW=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8040 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8041 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8042 | esac |
| 8043 | |
| 8044 | fi |
| 8045 | |
| 8046 | if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8047 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 |
| 8048 | $as_echo_n "checking whether or not to look for GTK... " >&6; } |
| 8049 | # Check whether --enable-gtk-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8050 | if test "${enable_gtk_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8051 | enableval=$enable_gtk_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8052 | else |
| 8053 | enable_gtk_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8054 | fi |
| 8055 | |
| 8056 | { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 |
| 8057 | $as_echo "$enable_gtk_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8058 | if test "x$enable_gtk_check" = "xno"; then |
| 8059 | SKIP_GTK=YES |
| 8060 | SKIP_GNOME=YES |
| 8061 | fi |
| 8062 | fi |
| 8063 | |
| 8064 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 8065 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8066 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 |
| 8067 | $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } |
| 8068 | # Check whether --enable-gtk2-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8069 | if test "${enable_gtk2_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8070 | enableval=$enable_gtk2_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8071 | else |
| 8072 | enable_gtk2_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8073 | fi |
| 8074 | |
| 8075 | { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 |
| 8076 | $as_echo "$enable_gtk2_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8077 | if test "x$enable_gtk2_check" = "xno"; then |
| 8078 | SKIP_GTK2=YES |
| 8079 | fi |
| 8080 | fi |
| 8081 | |
| 8082 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 8083 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8084 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 |
| 8085 | $as_echo_n "checking whether or not to look for GNOME... " >&6; } |
| 8086 | # Check whether --enable-gnome-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8087 | if test "${enable_gnome_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8088 | enableval=$enable_gnome_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8089 | else |
| 8090 | enable_gnome_check="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8091 | fi |
| 8092 | |
| 8093 | { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 |
| 8094 | $as_echo "$enable_gnome_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8095 | if test "x$enable_gnome_check" = "xno"; then |
| 8096 | SKIP_GNOME=YES |
| 8097 | fi |
| 8098 | fi |
| 8099 | |
| 8100 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8101 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 |
| 8102 | $as_echo_n "checking whether or not to look for Motif... " >&6; } |
| 8103 | # Check whether --enable-motif-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8104 | if test "${enable_motif_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8105 | enableval=$enable_motif_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8106 | else |
| 8107 | enable_motif_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8108 | fi |
| 8109 | |
| 8110 | { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5 |
| 8111 | $as_echo "$enable_motif_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8112 | if test "x$enable_motif_check" = "xno"; then |
| 8113 | SKIP_MOTIF=YES |
| 8114 | fi |
| 8115 | fi |
| 8116 | |
| 8117 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8118 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 |
| 8119 | $as_echo_n "checking whether or not to look for Athena... " >&6; } |
| 8120 | # Check whether --enable-athena-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8121 | if test "${enable_athena_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8122 | enableval=$enable_athena_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8123 | else |
| 8124 | enable_athena_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8125 | fi |
| 8126 | |
| 8127 | { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5 |
| 8128 | $as_echo "$enable_athena_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8129 | if test "x$enable_athena_check" = "xno"; then |
| 8130 | SKIP_ATHENA=YES |
| 8131 | fi |
| 8132 | fi |
| 8133 | |
| 8134 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8135 | { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 |
| 8136 | $as_echo_n "checking whether or not to look for neXtaw... " >&6; } |
| 8137 | # Check whether --enable-nextaw-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8138 | if test "${enable_nextaw_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8139 | enableval=$enable_nextaw_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8140 | else |
| 8141 | enable_nextaw_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8142 | fi |
| 8143 | |
| 8144 | { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 |
| 8145 | $as_echo "$enable_nextaw_check" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8146 | if test "x$enable_nextaw_check" = "xno"; then |
| 8147 | SKIP_NEXTAW=YES |
| 8148 | fi |
| 8149 | fi |
| 8150 | |
| 8151 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8152 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 |
| 8153 | $as_echo_n "checking whether or not to look for Carbon... " >&6; } |
| 8154 | # Check whether --enable-carbon-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8155 | if test "${enable_carbon_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8156 | enableval=$enable_carbon_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8157 | else |
| 8158 | enable_carbon_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8159 | fi |
| 8160 | |
| 8161 | { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 |
| 8162 | $as_echo "$enable_carbon_check" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8163 | if test "x$enable_carbon_check" = "xno"; then |
| 8164 | SKIP_CARBON=YES |
| 8165 | fi |
| 8166 | fi |
| 8167 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 8168 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8169 | if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8170 | { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5 |
| 8171 | $as_echo_n "checking for Carbon GUI... " >&6; } |
| 8172 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8173 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8174 | GUITYPE=CARBONGUI |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 8175 | if test "$VIMNAME" = "vim"; then |
| 8176 | VIMNAME=Vim |
| 8177 | fi |
Bram Moolenaar | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 8178 | |
| 8179 | if test x$prefix = xNONE; then |
| 8180 | prefix=/Applications |
| 8181 | fi |
| 8182 | |
| 8183 | datadir='${prefix}/Vim.app/Contents/Resources' |
| 8184 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8185 | SKIP_GTK=YES; |
| 8186 | SKIP_GTK2=YES; |
| 8187 | SKIP_GNOME=YES; |
| 8188 | SKIP_MOTIF=YES; |
| 8189 | SKIP_ATHENA=YES; |
| 8190 | SKIP_NEXTAW=YES; |
| 8191 | SKIP_PHOTON=YES; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8192 | SKIP_CARBON=YES |
| 8193 | fi |
| 8194 | |
| 8195 | |
| 8196 | |
| 8197 | |
| 8198 | |
| 8199 | |
| 8200 | |
| 8201 | |
| 8202 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8203 | if test -z "$SKIP_GTK"; then |
| 8204 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8205 | { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
| 8206 | $as_echo_n "checking --with-gtk-prefix argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8207 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8208 | # Check whether --with-gtk-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8209 | if test "${with_gtk_prefix+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8210 | withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8211 | $as_echo "$gtk_config_prefix" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8212 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8213 | gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8214 | $as_echo "no" >&6; } |
| 8215 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8216 | |
| 8217 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8218 | { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
| 8219 | $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; } |
| 8220 | |
| 8221 | # Check whether --with-gtk-exec-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8222 | if test "${with_gtk_exec_prefix+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8223 | withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8224 | $as_echo "$gtk_config_prefix" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8225 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8226 | gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8227 | $as_echo "no" >&6; } |
| 8228 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8229 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8230 | |
| 8231 | { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
| 8232 | $as_echo_n "checking --disable-gtktest argument... " >&6; } |
| 8233 | # Check whether --enable-gtktest was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8234 | if test "${enable_gtktest+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8235 | enableval=$enable_gtktest; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8236 | else |
| 8237 | enable_gtktest=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8238 | fi |
| 8239 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8240 | if test "x$enable_gtktest" = "xyes" ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8241 | { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
| 8242 | $as_echo "gtk test enabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8243 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8244 | { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
| 8245 | $as_echo "gtk test disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8246 | fi |
| 8247 | |
| 8248 | if test "x$gtk_config_prefix" != "x" ; then |
| 8249 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 8250 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 8251 | fi |
| 8252 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 8253 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 8254 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 8255 | fi |
| 8256 | if test "X$GTK_CONFIG" = "X"; then |
| 8257 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 8258 | set dummy gtk-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8259 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8260 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8261 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8262 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8263 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8264 | case $GTK_CONFIG in |
| 8265 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8266 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 8267 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8268 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8270 | for as_dir in $PATH |
| 8271 | do |
| 8272 | IFS=$as_save_IFS |
| 8273 | test -z "$as_dir" && as_dir=. |
| 8274 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8275 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8276 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8277 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8278 | break 2 |
| 8279 | fi |
| 8280 | done |
| 8281 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8282 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8283 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8284 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 8285 | ;; |
| 8286 | esac |
| 8287 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8288 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8289 | if test -n "$GTK_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8290 | { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
| 8291 | $as_echo "$GTK_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8292 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8293 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8294 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8295 | fi |
| 8296 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8297 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8298 | if test "X$GTK_CONFIG" = "Xno"; then |
| 8299 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 8300 | set dummy gtk12-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8301 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8302 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8303 | if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8304 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8305 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8306 | case $GTK12_CONFIG in |
| 8307 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8308 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 8309 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8310 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8312 | for as_dir in $PATH |
| 8313 | do |
| 8314 | IFS=$as_save_IFS |
| 8315 | test -z "$as_dir" && as_dir=. |
| 8316 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8318 | ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8319 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8320 | break 2 |
| 8321 | fi |
| 8322 | done |
| 8323 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8324 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8325 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8326 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 8327 | ;; |
| 8328 | esac |
| 8329 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8330 | GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8331 | if test -n "$GTK12_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8332 | { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
| 8333 | $as_echo "$GTK12_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8334 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8335 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8336 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8337 | fi |
| 8338 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8339 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8340 | GTK_CONFIG="$GTK12_CONFIG" |
| 8341 | fi |
| 8342 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8343 | { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
| 8344 | $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8345 | fi |
| 8346 | if test "X$PKG_CONFIG" = "X"; then |
| 8347 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8348 | set dummy pkg-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8349 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8350 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8351 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8352 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8353 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8354 | case $PKG_CONFIG in |
| 8355 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8356 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8357 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8358 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8360 | for as_dir in $PATH |
| 8361 | do |
| 8362 | IFS=$as_save_IFS |
| 8363 | test -z "$as_dir" && as_dir=. |
| 8364 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8365 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8366 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8367 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8368 | break 2 |
| 8369 | fi |
| 8370 | done |
| 8371 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8372 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8373 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8374 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 8375 | ;; |
| 8376 | esac |
| 8377 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8378 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8379 | if test -n "$PKG_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8380 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 8381 | $as_echo "$PKG_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8382 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8383 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8384 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8385 | fi |
| 8386 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8387 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8388 | fi |
| 8389 | |
| 8390 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 8391 | if test "X$SKIP_GTK2" != "XYES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8392 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8393 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8394 | { |
| 8395 | min_gtk_version=2.2.0 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8396 | { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8397 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8398 | no_gtk="" |
| 8399 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8400 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8401 | { |
| 8402 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8403 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8404 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8405 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8406 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8407 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8408 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8409 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8410 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8411 | } |
| 8412 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8413 | { |
| 8414 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8415 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8416 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8417 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8418 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8419 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8420 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8421 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8422 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8423 | } |
| 8424 | else |
| 8425 | no_gtk=yes |
| 8426 | fi |
| 8427 | |
| 8428 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8429 | { |
| 8430 | ac_save_CFLAGS="$CFLAGS" |
| 8431 | ac_save_LIBS="$LIBS" |
| 8432 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8433 | LIBS="$LIBS $GTK_LIBS" |
| 8434 | |
| 8435 | rm -f conf.gtktest |
| 8436 | if test "$cross_compiling" = yes; then |
| 8437 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8438 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8439 | cat >conftest.$ac_ext <<_ACEOF |
| 8440 | /* confdefs.h. */ |
| 8441 | _ACEOF |
| 8442 | cat confdefs.h >>conftest.$ac_ext |
| 8443 | cat >>conftest.$ac_ext <<_ACEOF |
| 8444 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8445 | |
| 8446 | #include <gtk/gtk.h> |
| 8447 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8448 | #if STDC_HEADERS |
| 8449 | # include <stdlib.h> |
| 8450 | # include <stddef.h> |
| 8451 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8452 | |
| 8453 | int |
| 8454 | main () |
| 8455 | { |
| 8456 | int major, minor, micro; |
| 8457 | char *tmp_version; |
| 8458 | |
| 8459 | system ("touch conf.gtktest"); |
| 8460 | |
| 8461 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8462 | tmp_version = g_strdup("$min_gtk_version"); |
| 8463 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8464 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8465 | exit(1); |
| 8466 | } |
| 8467 | |
| 8468 | if ((gtk_major_version > major) || |
| 8469 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8470 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8471 | (gtk_micro_version >= micro))) |
| 8472 | { |
| 8473 | return 0; |
| 8474 | } |
| 8475 | return 1; |
| 8476 | } |
| 8477 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8478 | _ACEOF |
| 8479 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8480 | if { (ac_try="$ac_link" |
| 8481 | case "(($ac_try" in |
| 8482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8483 | *) ac_try_echo=$ac_try;; |
| 8484 | esac |
| 8485 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8486 | $as_echo "$ac_try_echo") >&5 |
| 8487 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8488 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8489 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8490 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8491 | { (case "(($ac_try" in |
| 8492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8493 | *) ac_try_echo=$ac_try;; |
| 8494 | esac |
| 8495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8496 | $as_echo "$ac_try_echo") >&5 |
| 8497 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8498 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8499 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8500 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8501 | : |
| 8502 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8503 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8504 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8505 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8506 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8507 | ( exit $ac_status ) |
| 8508 | no_gtk=yes |
| 8509 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8510 | rm -rf conftest.dSYM |
| 8511 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8512 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8513 | |
| 8514 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8515 | CFLAGS="$ac_save_CFLAGS" |
| 8516 | LIBS="$ac_save_LIBS" |
| 8517 | } |
| 8518 | fi |
| 8519 | if test "x$no_gtk" = x ; then |
| 8520 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8521 | { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8522 | $as_echo "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] | 8523 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8524 | { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8525 | $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8526 | fi |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8527 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 8528 | GTK_LIBNAME="$GTK_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8529 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8530 | else |
| 8531 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8532 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8533 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8534 | GTK_CFLAGS="" |
| 8535 | GTK_LIBS="" |
| 8536 | : |
| 8537 | } |
| 8538 | fi |
| 8539 | } |
| 8540 | else |
| 8541 | GTK_CFLAGS="" |
| 8542 | GTK_LIBS="" |
| 8543 | : |
| 8544 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8545 | |
| 8546 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8547 | rm -f conf.gtktest |
| 8548 | |
| 8549 | if test "x$GTK_CFLAGS" != "x"; then |
| 8550 | SKIP_ATHENA=YES |
| 8551 | SKIP_NEXTAW=YES |
| 8552 | SKIP_MOTIF=YES |
| 8553 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8554 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8555 | fi |
| 8556 | fi |
| 8557 | |
| 8558 | if test "x$GUITYPE" != "xGTK"; then |
| 8559 | SKIP_GTK2=YES |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8560 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8561 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8562 | { |
| 8563 | min_gtk_version=1.1.16 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8564 | { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8565 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8566 | no_gtk="" |
| 8567 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8568 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8569 | { |
| 8570 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8571 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8572 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8573 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8574 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8575 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8576 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8577 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8578 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8579 | } |
| 8580 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8581 | { |
| 8582 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8583 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8584 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8585 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8586 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8587 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8588 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8589 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8590 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8591 | } |
| 8592 | else |
| 8593 | no_gtk=yes |
| 8594 | fi |
| 8595 | |
| 8596 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8597 | { |
| 8598 | ac_save_CFLAGS="$CFLAGS" |
| 8599 | ac_save_LIBS="$LIBS" |
| 8600 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8601 | LIBS="$LIBS $GTK_LIBS" |
| 8602 | |
| 8603 | rm -f conf.gtktest |
| 8604 | if test "$cross_compiling" = yes; then |
| 8605 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8606 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8607 | cat >conftest.$ac_ext <<_ACEOF |
| 8608 | /* confdefs.h. */ |
| 8609 | _ACEOF |
| 8610 | cat confdefs.h >>conftest.$ac_ext |
| 8611 | cat >>conftest.$ac_ext <<_ACEOF |
| 8612 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8613 | |
| 8614 | #include <gtk/gtk.h> |
| 8615 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8616 | #if STDC_HEADERS |
| 8617 | # include <stdlib.h> |
| 8618 | # include <stddef.h> |
| 8619 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8620 | |
| 8621 | int |
| 8622 | main () |
| 8623 | { |
| 8624 | int major, minor, micro; |
| 8625 | char *tmp_version; |
| 8626 | |
| 8627 | system ("touch conf.gtktest"); |
| 8628 | |
| 8629 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8630 | tmp_version = g_strdup("$min_gtk_version"); |
| 8631 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8632 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8633 | exit(1); |
| 8634 | } |
| 8635 | |
| 8636 | if ((gtk_major_version > major) || |
| 8637 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8638 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8639 | (gtk_micro_version >= micro))) |
| 8640 | { |
| 8641 | return 0; |
| 8642 | } |
| 8643 | return 1; |
| 8644 | } |
| 8645 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8646 | _ACEOF |
| 8647 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8648 | if { (ac_try="$ac_link" |
| 8649 | case "(($ac_try" in |
| 8650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8651 | *) ac_try_echo=$ac_try;; |
| 8652 | esac |
| 8653 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8654 | $as_echo "$ac_try_echo") >&5 |
| 8655 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8656 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8658 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8659 | { (case "(($ac_try" in |
| 8660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8661 | *) ac_try_echo=$ac_try;; |
| 8662 | esac |
| 8663 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8664 | $as_echo "$ac_try_echo") >&5 |
| 8665 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8666 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8667 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8668 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8669 | : |
| 8670 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8671 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8672 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8673 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8674 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8675 | ( exit $ac_status ) |
| 8676 | no_gtk=yes |
| 8677 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8678 | rm -rf conftest.dSYM |
| 8679 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8680 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8681 | |
| 8682 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8683 | CFLAGS="$ac_save_CFLAGS" |
| 8684 | LIBS="$ac_save_LIBS" |
| 8685 | } |
| 8686 | fi |
| 8687 | if test "x$no_gtk" = x ; then |
| 8688 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8689 | { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8690 | $as_echo "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] | 8691 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8692 | { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8693 | $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8694 | fi |
| 8695 | GTK_LIBNAME="$GTK_LIBS" |
| 8696 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8697 | else |
| 8698 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8699 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8700 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8701 | GTK_CFLAGS="" |
| 8702 | GTK_LIBS="" |
| 8703 | : |
| 8704 | } |
| 8705 | fi |
| 8706 | } |
| 8707 | else |
| 8708 | GTK_CFLAGS="" |
| 8709 | GTK_LIBS="" |
| 8710 | : |
| 8711 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8712 | |
| 8713 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8714 | rm -f conf.gtktest |
| 8715 | |
| 8716 | if test "x$GTK_CFLAGS" != "x"; then |
| 8717 | SKIP_ATHENA=YES |
| 8718 | SKIP_NEXTAW=YES |
| 8719 | SKIP_MOTIF=YES |
| 8720 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8721 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8722 | fi |
| 8723 | fi |
| 8724 | fi |
| 8725 | if test "x$GUITYPE" = "xGTK"; then |
| 8726 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 8727 | -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8728 | { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
| 8729 | $as_echo "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] | 8730 | else |
| 8731 | { |
| 8732 | if test "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8733 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8734 | #define HAVE_GTK2 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8735 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8736 | |
| 8737 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 8738 | || test "0$gtk_minor_version" -ge 2 \ |
| 8739 | || test "0$gtk_major_version" -gt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8740 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8741 | #define HAVE_GTK_MULTIHEAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8742 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8743 | |
| 8744 | fi |
| 8745 | fi |
| 8746 | if test -z "$SKIP_GNOME"; then |
| 8747 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8748 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8749 | |
| 8750 | |
| 8751 | |
| 8752 | |
| 8753 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8754 | # Check whether --with-gnome-includes was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8755 | if test "${with_gnome_includes+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8756 | withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8757 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8758 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8759 | |
| 8760 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8761 | |
| 8762 | # Check whether --with-gnome-libs was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8763 | if test "${with_gnome_libs+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8764 | withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8765 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8766 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8767 | |
| 8768 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8769 | |
| 8770 | # Check whether --with-gnome was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8771 | if test "${with_gnome+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8772 | withval=$with_gnome; if test x$withval = xyes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8773 | want_gnome=yes |
| 8774 | have_gnome=yes |
| 8775 | else |
| 8776 | if test "x$withval" = xno; then |
| 8777 | want_gnome=no |
| 8778 | else |
| 8779 | want_gnome=yes |
| 8780 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 8781 | CFLAGS="$CFLAGS -I$withval/include" |
| 8782 | gnome_prefix=$withval/lib |
| 8783 | fi |
| 8784 | fi |
| 8785 | else |
| 8786 | want_gnome=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8787 | fi |
| 8788 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8789 | |
| 8790 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 8791 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8792 | { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
| 8793 | $as_echo_n "checking for libgnomeui-2.0... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8794 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8795 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8796 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8797 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 8798 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 8799 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8800 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8801 | { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5 |
| 8802 | $as_echo_n "checking for FreeBSD... " >&6; } |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8803 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8804 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8805 | $as_echo "yes" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 8806 | GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8807 | GNOME_LIBS="$GNOME_LIBS -pthread" |
| 8808 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8809 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8810 | $as_echo "no" >&6; } |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8811 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8812 | have_gnome=yes |
| 8813 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8814 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 8815 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8816 | if test "x" = xfail; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8817 | { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
| 8818 | $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8819 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8820 | fi |
| 8821 | fi |
| 8822 | } |
| 8823 | elif test "x$want_gnome" = xyes; then |
| 8824 | { |
| 8825 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 8826 | set dummy gnome-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8827 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8828 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8829 | if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8830 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8831 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8832 | case $GNOME_CONFIG in |
| 8833 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8834 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 8835 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8836 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8838 | for as_dir in $PATH |
| 8839 | do |
| 8840 | IFS=$as_save_IFS |
| 8841 | test -z "$as_dir" && as_dir=. |
| 8842 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8844 | ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8845 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8846 | break 2 |
| 8847 | fi |
| 8848 | done |
| 8849 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8850 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8851 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8852 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 8853 | ;; |
| 8854 | esac |
| 8855 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8856 | GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8857 | if test -n "$GNOME_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8858 | { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
| 8859 | $as_echo "$GNOME_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8860 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8861 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8862 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8863 | fi |
| 8864 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8865 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8866 | if test "$GNOME_CONFIG" = "no"; then |
| 8867 | no_gnome_config="yes" |
| 8868 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8869 | { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
| 8870 | $as_echo_n "checking if $GNOME_CONFIG works... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8871 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8872 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8873 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8874 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 8875 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 8876 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 8877 | have_gnome=yes |
| 8878 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8879 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8880 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8881 | no_gnome_config="yes" |
| 8882 | fi |
| 8883 | fi |
| 8884 | |
| 8885 | if test x$exec_prefix = xNONE; then |
| 8886 | if test x$prefix = xNONE; then |
| 8887 | gnome_prefix=$ac_default_prefix/lib |
| 8888 | else |
| 8889 | gnome_prefix=$prefix/lib |
| 8890 | fi |
| 8891 | else |
| 8892 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 8893 | fi |
| 8894 | |
| 8895 | if test "$no_gnome_config" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8896 | { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 8897 | $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8898 | if test -f $gnome_prefix/gnomeConf.sh; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8899 | { $as_echo "$as_me:$LINENO: result: found" >&5 |
| 8900 | $as_echo "found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8901 | echo "loading gnome configuration from" \ |
| 8902 | "$gnome_prefix/gnomeConf.sh" |
| 8903 | . $gnome_prefix/gnomeConf.sh |
| 8904 | have_gnome=yes |
| 8905 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8906 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 8907 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8908 | if test x = xfail; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8909 | { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
| 8910 | $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8911 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8912 | fi |
| 8913 | fi |
| 8914 | fi |
| 8915 | } |
| 8916 | fi |
| 8917 | |
| 8918 | if test x$have_gnome = xyes ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8919 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8920 | #define FEAT_GUI_GNOME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8921 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8922 | |
| 8923 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 8924 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 8925 | fi |
| 8926 | } |
| 8927 | fi |
| 8928 | } |
| 8929 | fi |
| 8930 | fi |
| 8931 | fi |
| 8932 | |
| 8933 | |
| 8934 | if test -z "$SKIP_MOTIF"; then |
| 8935 | 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" |
| 8936 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 8937 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8938 | { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
| 8939 | $as_echo_n "checking for location of Motif GUI includes... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8940 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 8941 | GUI_INC_LOC= |
| 8942 | for try in $gui_includes; do |
| 8943 | if test -f "$try/Xm/Xm.h"; then |
| 8944 | GUI_INC_LOC=$try |
| 8945 | fi |
| 8946 | done |
| 8947 | if test -n "$GUI_INC_LOC"; then |
| 8948 | if test "$GUI_INC_LOC" = /usr/include; then |
| 8949 | GUI_INC_LOC= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8950 | { $as_echo "$as_me:$LINENO: result: in default path" >&5 |
| 8951 | $as_echo "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8952 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8953 | { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
| 8954 | $as_echo "$GUI_INC_LOC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8955 | fi |
| 8956 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8957 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 8958 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8959 | SKIP_MOTIF=YES |
| 8960 | fi |
| 8961 | fi |
| 8962 | |
| 8963 | |
| 8964 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8965 | { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
| 8966 | $as_echo_n "checking --with-motif-lib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8967 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8968 | # Check whether --with-motif-lib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8969 | if test "${with_motif_lib+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8970 | withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" |
| 8971 | fi |
| 8972 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8973 | |
| 8974 | if test -n "$MOTIF_LIBNAME"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8975 | { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
| 8976 | $as_echo "$MOTIF_LIBNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8977 | GUI_LIB_LOC= |
| 8978 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8979 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8980 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8981 | |
| 8982 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 8983 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8984 | { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
| 8985 | $as_echo_n "checking for location of Motif GUI libs... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8986 | 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" |
| 8987 | GUI_LIB_LOC= |
| 8988 | for try in $gui_libs; do |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 8989 | 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] | 8990 | if test -f "$libtry"; then |
| 8991 | GUI_LIB_LOC=$try |
| 8992 | fi |
| 8993 | done |
| 8994 | done |
| 8995 | if test -n "$GUI_LIB_LOC"; then |
| 8996 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 8997 | GUI_LIB_LOC= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8998 | { $as_echo "$as_me:$LINENO: result: in default path" >&5 |
| 8999 | $as_echo "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9000 | else |
| 9001 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9002 | { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
| 9003 | $as_echo "$GUI_LIB_LOC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9004 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 9005 | uname -r | grep '^5' >/dev/null; then |
| 9006 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 9007 | fi |
| 9008 | fi |
| 9009 | fi |
| 9010 | MOTIF_LIBNAME=-lXm |
| 9011 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9012 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 9013 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9014 | SKIP_MOTIF=YES |
| 9015 | fi |
| 9016 | fi |
| 9017 | fi |
| 9018 | |
| 9019 | if test -z "$SKIP_MOTIF"; then |
| 9020 | SKIP_ATHENA=YES |
| 9021 | SKIP_NEXTAW=YES |
| 9022 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9023 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9024 | fi |
| 9025 | |
| 9026 | |
| 9027 | GUI_X_LIBS= |
| 9028 | |
| 9029 | if test -z "$SKIP_ATHENA"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9030 | { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
| 9031 | $as_echo_n "checking if Athena header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9032 | cflags_save=$CFLAGS |
| 9033 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9034 | cat >conftest.$ac_ext <<_ACEOF |
| 9035 | /* confdefs.h. */ |
| 9036 | _ACEOF |
| 9037 | cat confdefs.h >>conftest.$ac_ext |
| 9038 | cat >>conftest.$ac_ext <<_ACEOF |
| 9039 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9040 | |
| 9041 | #include <X11/Intrinsic.h> |
| 9042 | #include <X11/Xaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9043 | int |
| 9044 | main () |
| 9045 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9046 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9047 | ; |
| 9048 | return 0; |
| 9049 | } |
| 9050 | _ACEOF |
| 9051 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9052 | if { (ac_try="$ac_compile" |
| 9053 | case "(($ac_try" in |
| 9054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9055 | *) ac_try_echo=$ac_try;; |
| 9056 | esac |
| 9057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9058 | $as_echo "$ac_try_echo") >&5 |
| 9059 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9060 | ac_status=$? |
| 9061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9062 | rm -f conftest.er1 |
| 9063 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9065 | (exit $ac_status); } && { |
| 9066 | test -z "$ac_c_werror_flag" || |
| 9067 | test ! -s conftest.err |
| 9068 | } && test -s conftest.$ac_objext; then |
| 9069 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9070 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9071 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9072 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9074 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9075 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9076 | $as_echo "no" >&6; }; SKIP_ATHENA=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9077 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9078 | |
| 9079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9080 | CFLAGS=$cflags_save |
| 9081 | fi |
| 9082 | |
| 9083 | if test -z "$SKIP_ATHENA"; then |
| 9084 | GUITYPE=ATHENA |
| 9085 | fi |
| 9086 | |
| 9087 | if test -z "$SKIP_NEXTAW"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9088 | { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
| 9089 | $as_echo_n "checking if neXtaw header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9090 | cflags_save=$CFLAGS |
| 9091 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9092 | cat >conftest.$ac_ext <<_ACEOF |
| 9093 | /* confdefs.h. */ |
| 9094 | _ACEOF |
| 9095 | cat confdefs.h >>conftest.$ac_ext |
| 9096 | cat >>conftest.$ac_ext <<_ACEOF |
| 9097 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9098 | |
| 9099 | #include <X11/Intrinsic.h> |
| 9100 | #include <X11/neXtaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9101 | int |
| 9102 | main () |
| 9103 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9104 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9105 | ; |
| 9106 | return 0; |
| 9107 | } |
| 9108 | _ACEOF |
| 9109 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9110 | if { (ac_try="$ac_compile" |
| 9111 | case "(($ac_try" in |
| 9112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9113 | *) ac_try_echo=$ac_try;; |
| 9114 | esac |
| 9115 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9116 | $as_echo "$ac_try_echo") >&5 |
| 9117 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9118 | ac_status=$? |
| 9119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9120 | rm -f conftest.er1 |
| 9121 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9122 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9123 | (exit $ac_status); } && { |
| 9124 | test -z "$ac_c_werror_flag" || |
| 9125 | test ! -s conftest.err |
| 9126 | } && test -s conftest.$ac_objext; then |
| 9127 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9128 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9129 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9130 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9132 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9133 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9134 | $as_echo "no" >&6; }; SKIP_NEXTAW=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9135 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9136 | |
| 9137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9138 | CFLAGS=$cflags_save |
| 9139 | fi |
| 9140 | |
| 9141 | if test -z "$SKIP_NEXTAW"; then |
| 9142 | GUITYPE=NEXTAW |
| 9143 | fi |
| 9144 | |
| 9145 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 9146 | if test -n "$GUI_INC_LOC"; then |
| 9147 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 9148 | fi |
| 9149 | if test -n "$GUI_LIB_LOC"; then |
| 9150 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 9151 | fi |
| 9152 | |
| 9153 | ldflags_save=$LDFLAGS |
| 9154 | LDFLAGS="$X_LIBS $LDFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9155 | { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 9156 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9157 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9158 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9159 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9160 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9161 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9162 | cat >conftest.$ac_ext <<_ACEOF |
| 9163 | /* confdefs.h. */ |
| 9164 | _ACEOF |
| 9165 | cat confdefs.h >>conftest.$ac_ext |
| 9166 | cat >>conftest.$ac_ext <<_ACEOF |
| 9167 | /* end confdefs.h. */ |
| 9168 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9169 | /* Override any GCC internal prototype to avoid an error. |
| 9170 | Use char because int might match the return type of a GCC |
| 9171 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9172 | #ifdef __cplusplus |
| 9173 | extern "C" |
| 9174 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9175 | char XShapeQueryExtension (); |
| 9176 | int |
| 9177 | main () |
| 9178 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9179 | return XShapeQueryExtension (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9180 | ; |
| 9181 | return 0; |
| 9182 | } |
| 9183 | _ACEOF |
| 9184 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9185 | if { (ac_try="$ac_link" |
| 9186 | case "(($ac_try" in |
| 9187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9188 | *) ac_try_echo=$ac_try;; |
| 9189 | esac |
| 9190 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9191 | $as_echo "$ac_try_echo") >&5 |
| 9192 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9193 | ac_status=$? |
| 9194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9195 | rm -f conftest.er1 |
| 9196 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9198 | (exit $ac_status); } && { |
| 9199 | test -z "$ac_c_werror_flag" || |
| 9200 | test ! -s conftest.err |
| 9201 | } && test -s conftest$ac_exeext && { |
| 9202 | test "$cross_compiling" = yes || |
| 9203 | $as_test_x conftest$ac_exeext |
| 9204 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9205 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9206 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9207 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9208 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9209 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9210 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9211 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9212 | |
| 9213 | rm -rf conftest.dSYM |
| 9214 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9215 | conftest$ac_exeext conftest.$ac_ext |
| 9216 | LIBS=$ac_check_lib_save_LIBS |
| 9217 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9218 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 9219 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9220 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9221 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9222 | fi |
| 9223 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9224 | { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
| 9225 | $as_echo_n "checking for wslen in -lw... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9226 | if test "${ac_cv_lib_w_wslen+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9227 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9228 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9229 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9230 | 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] | 9231 | cat >conftest.$ac_ext <<_ACEOF |
| 9232 | /* confdefs.h. */ |
| 9233 | _ACEOF |
| 9234 | cat confdefs.h >>conftest.$ac_ext |
| 9235 | cat >>conftest.$ac_ext <<_ACEOF |
| 9236 | /* end confdefs.h. */ |
| 9237 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9238 | /* Override any GCC internal prototype to avoid an error. |
| 9239 | Use char because int might match the return type of a GCC |
| 9240 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9241 | #ifdef __cplusplus |
| 9242 | extern "C" |
| 9243 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9244 | char wslen (); |
| 9245 | int |
| 9246 | main () |
| 9247 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9248 | return wslen (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9249 | ; |
| 9250 | return 0; |
| 9251 | } |
| 9252 | _ACEOF |
| 9253 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9254 | if { (ac_try="$ac_link" |
| 9255 | case "(($ac_try" in |
| 9256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9257 | *) ac_try_echo=$ac_try;; |
| 9258 | esac |
| 9259 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9260 | $as_echo "$ac_try_echo") >&5 |
| 9261 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9262 | ac_status=$? |
| 9263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9264 | rm -f conftest.er1 |
| 9265 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9267 | (exit $ac_status); } && { |
| 9268 | test -z "$ac_c_werror_flag" || |
| 9269 | test ! -s conftest.err |
| 9270 | } && test -s conftest$ac_exeext && { |
| 9271 | test "$cross_compiling" = yes || |
| 9272 | $as_test_x conftest$ac_exeext |
| 9273 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9274 | ac_cv_lib_w_wslen=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9275 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9276 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9277 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9278 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9279 | ac_cv_lib_w_wslen=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9280 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9281 | |
| 9282 | rm -rf conftest.dSYM |
| 9283 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9284 | conftest$ac_exeext conftest.$ac_ext |
| 9285 | LIBS=$ac_check_lib_save_LIBS |
| 9286 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9287 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 |
| 9288 | $as_echo "$ac_cv_lib_w_wslen" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9289 | if test $ac_cv_lib_w_wslen = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9290 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9291 | fi |
| 9292 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9293 | { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
| 9294 | $as_echo_n "checking for dlsym in -ldl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9295 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9296 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9297 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9298 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9299 | 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] | 9300 | cat >conftest.$ac_ext <<_ACEOF |
| 9301 | /* confdefs.h. */ |
| 9302 | _ACEOF |
| 9303 | cat confdefs.h >>conftest.$ac_ext |
| 9304 | cat >>conftest.$ac_ext <<_ACEOF |
| 9305 | /* end confdefs.h. */ |
| 9306 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9307 | /* Override any GCC internal prototype to avoid an error. |
| 9308 | Use char because int might match the return type of a GCC |
| 9309 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9310 | #ifdef __cplusplus |
| 9311 | extern "C" |
| 9312 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9313 | char dlsym (); |
| 9314 | int |
| 9315 | main () |
| 9316 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9317 | return dlsym (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9318 | ; |
| 9319 | return 0; |
| 9320 | } |
| 9321 | _ACEOF |
| 9322 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9323 | if { (ac_try="$ac_link" |
| 9324 | case "(($ac_try" in |
| 9325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9326 | *) ac_try_echo=$ac_try;; |
| 9327 | esac |
| 9328 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9329 | $as_echo "$ac_try_echo") >&5 |
| 9330 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9331 | ac_status=$? |
| 9332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9333 | rm -f conftest.er1 |
| 9334 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9336 | (exit $ac_status); } && { |
| 9337 | test -z "$ac_c_werror_flag" || |
| 9338 | test ! -s conftest.err |
| 9339 | } && test -s conftest$ac_exeext && { |
| 9340 | test "$cross_compiling" = yes || |
| 9341 | $as_test_x conftest$ac_exeext |
| 9342 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9343 | ac_cv_lib_dl_dlsym=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9344 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9345 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9346 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9347 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9348 | ac_cv_lib_dl_dlsym=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9349 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9350 | |
| 9351 | rm -rf conftest.dSYM |
| 9352 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9353 | conftest$ac_exeext conftest.$ac_ext |
| 9354 | LIBS=$ac_check_lib_save_LIBS |
| 9355 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9356 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
| 9357 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9358 | if test $ac_cv_lib_dl_dlsym = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9359 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9360 | fi |
| 9361 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9362 | { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 9363 | $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9364 | if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9365 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9366 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9367 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9368 | 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] | 9369 | cat >conftest.$ac_ext <<_ACEOF |
| 9370 | /* confdefs.h. */ |
| 9371 | _ACEOF |
| 9372 | cat confdefs.h >>conftest.$ac_ext |
| 9373 | cat >>conftest.$ac_ext <<_ACEOF |
| 9374 | /* end confdefs.h. */ |
| 9375 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9376 | /* Override any GCC internal prototype to avoid an error. |
| 9377 | Use char because int might match the return type of a GCC |
| 9378 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9379 | #ifdef __cplusplus |
| 9380 | extern "C" |
| 9381 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9382 | char XmuCreateStippledPixmap (); |
| 9383 | int |
| 9384 | main () |
| 9385 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9386 | return XmuCreateStippledPixmap (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9387 | ; |
| 9388 | return 0; |
| 9389 | } |
| 9390 | _ACEOF |
| 9391 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9392 | if { (ac_try="$ac_link" |
| 9393 | case "(($ac_try" in |
| 9394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9395 | *) ac_try_echo=$ac_try;; |
| 9396 | esac |
| 9397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9398 | $as_echo "$ac_try_echo") >&5 |
| 9399 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9400 | ac_status=$? |
| 9401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9402 | rm -f conftest.er1 |
| 9403 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9405 | (exit $ac_status); } && { |
| 9406 | test -z "$ac_c_werror_flag" || |
| 9407 | test ! -s conftest.err |
| 9408 | } && test -s conftest$ac_exeext && { |
| 9409 | test "$cross_compiling" = yes || |
| 9410 | $as_test_x conftest$ac_exeext |
| 9411 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9412 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9413 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9414 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9415 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9416 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9417 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9418 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9419 | |
| 9420 | rm -rf conftest.dSYM |
| 9421 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9422 | conftest$ac_exeext conftest.$ac_ext |
| 9423 | LIBS=$ac_check_lib_save_LIBS |
| 9424 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9425 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 9426 | $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9427 | if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9428 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9429 | fi |
| 9430 | |
| 9431 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9432 | { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
| 9433 | $as_echo_n "checking for XpEndJob in -lXp... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9434 | if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9435 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9436 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9437 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9438 | 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] | 9439 | cat >conftest.$ac_ext <<_ACEOF |
| 9440 | /* confdefs.h. */ |
| 9441 | _ACEOF |
| 9442 | cat confdefs.h >>conftest.$ac_ext |
| 9443 | cat >>conftest.$ac_ext <<_ACEOF |
| 9444 | /* end confdefs.h. */ |
| 9445 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9446 | /* Override any GCC internal prototype to avoid an error. |
| 9447 | Use char because int might match the return type of a GCC |
| 9448 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9449 | #ifdef __cplusplus |
| 9450 | extern "C" |
| 9451 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9452 | char XpEndJob (); |
| 9453 | int |
| 9454 | main () |
| 9455 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9456 | return XpEndJob (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9457 | ; |
| 9458 | return 0; |
| 9459 | } |
| 9460 | _ACEOF |
| 9461 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9462 | if { (ac_try="$ac_link" |
| 9463 | case "(($ac_try" in |
| 9464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9465 | *) ac_try_echo=$ac_try;; |
| 9466 | esac |
| 9467 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9468 | $as_echo "$ac_try_echo") >&5 |
| 9469 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9470 | ac_status=$? |
| 9471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9472 | rm -f conftest.er1 |
| 9473 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9474 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9475 | (exit $ac_status); } && { |
| 9476 | test -z "$ac_c_werror_flag" || |
| 9477 | test ! -s conftest.err |
| 9478 | } && test -s conftest$ac_exeext && { |
| 9479 | test "$cross_compiling" = yes || |
| 9480 | $as_test_x conftest$ac_exeext |
| 9481 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9482 | ac_cv_lib_Xp_XpEndJob=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9483 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9484 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9485 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9486 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9487 | ac_cv_lib_Xp_XpEndJob=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9488 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9489 | |
| 9490 | rm -rf conftest.dSYM |
| 9491 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9492 | conftest$ac_exeext conftest.$ac_ext |
| 9493 | LIBS=$ac_check_lib_save_LIBS |
| 9494 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9495 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 9496 | $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9497 | if test $ac_cv_lib_Xp_XpEndJob = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9498 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9499 | fi |
| 9500 | |
| 9501 | fi |
| 9502 | LDFLAGS=$ldflags_save |
| 9503 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9504 | { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
| 9505 | $as_echo_n "checking for extra X11 defines... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9506 | NARROW_PROTO= |
| 9507 | rm -fr conftestdir |
| 9508 | if mkdir conftestdir; then |
| 9509 | cd conftestdir |
| 9510 | cat > Imakefile <<'EOF' |
| 9511 | acfindx: |
| 9512 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 9513 | EOF |
| 9514 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 9515 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 9516 | fi |
| 9517 | cd .. |
| 9518 | rm -fr conftestdir |
| 9519 | fi |
| 9520 | if test -z "$NARROW_PROTO"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9521 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9522 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9523 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9524 | { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
| 9525 | $as_echo "$NARROW_PROTO" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9526 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9527 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9528 | fi |
| 9529 | |
| 9530 | if test "$enable_xsmp" = "yes"; then |
| 9531 | cppflags_save=$CPPFLAGS |
| 9532 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9533 | |
| 9534 | for ac_header in X11/SM/SMlib.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9535 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9536 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9537 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9538 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9539 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9540 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9541 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9542 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9543 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9544 | $as_echo "$as_val"'` |
| 9545 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9546 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9547 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9548 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9549 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9550 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9551 | cat >conftest.$ac_ext <<_ACEOF |
| 9552 | /* confdefs.h. */ |
| 9553 | _ACEOF |
| 9554 | cat confdefs.h >>conftest.$ac_ext |
| 9555 | cat >>conftest.$ac_ext <<_ACEOF |
| 9556 | /* end confdefs.h. */ |
| 9557 | $ac_includes_default |
| 9558 | #include <$ac_header> |
| 9559 | _ACEOF |
| 9560 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9561 | if { (ac_try="$ac_compile" |
| 9562 | case "(($ac_try" in |
| 9563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9564 | *) ac_try_echo=$ac_try;; |
| 9565 | esac |
| 9566 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9567 | $as_echo "$ac_try_echo") >&5 |
| 9568 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9569 | ac_status=$? |
| 9570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9571 | rm -f conftest.er1 |
| 9572 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9573 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9574 | (exit $ac_status); } && { |
| 9575 | test -z "$ac_c_werror_flag" || |
| 9576 | test ! -s conftest.err |
| 9577 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9578 | ac_header_compiler=yes |
| 9579 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9580 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9582 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9583 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9584 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9585 | |
| 9586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9587 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9588 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9589 | |
| 9590 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9591 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9592 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9593 | cat >conftest.$ac_ext <<_ACEOF |
| 9594 | /* confdefs.h. */ |
| 9595 | _ACEOF |
| 9596 | cat confdefs.h >>conftest.$ac_ext |
| 9597 | cat >>conftest.$ac_ext <<_ACEOF |
| 9598 | /* end confdefs.h. */ |
| 9599 | #include <$ac_header> |
| 9600 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9601 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9602 | case "(($ac_try" in |
| 9603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9604 | *) ac_try_echo=$ac_try;; |
| 9605 | esac |
| 9606 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9607 | $as_echo "$ac_try_echo") >&5 |
| 9608 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9609 | ac_status=$? |
| 9610 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9611 | rm -f conftest.er1 |
| 9612 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9614 | (exit $ac_status); } >/dev/null && { |
| 9615 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9616 | test ! -s conftest.err |
| 9617 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9618 | ac_header_preproc=yes |
| 9619 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9620 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9622 | |
| 9623 | ac_header_preproc=no |
| 9624 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9625 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9626 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9627 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9628 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9629 | |
| 9630 | # So? What about this header? |
| 9631 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9632 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9633 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9634 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9635 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9636 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9637 | ac_header_preproc=yes |
| 9638 | ;; |
| 9639 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9640 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9641 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9642 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9643 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9644 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9645 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9646 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9647 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9648 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9649 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9650 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9651 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9652 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9653 | ;; |
| 9654 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9655 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9656 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9657 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9658 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9659 | else |
| 9660 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9661 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9662 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9663 | $as_echo "$as_val"'` |
| 9664 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9665 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9666 | |
| 9667 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9668 | if test `eval 'as_val=${'$as_ac_Header'} |
| 9669 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9670 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9671 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9672 | _ACEOF |
| 9673 | |
| 9674 | fi |
| 9675 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9676 | done |
| 9677 | |
| 9678 | CPPFLAGS=$cppflags_save |
| 9679 | fi |
| 9680 | |
| 9681 | |
| 9682 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 9683 | cppflags_save=$CPPFLAGS |
| 9684 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9685 | |
| 9686 | |
| 9687 | for ac_header in X11/xpm.h X11/Sunkeysym.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9688 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9689 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9690 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9691 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9692 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9693 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9694 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9695 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9696 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9697 | $as_echo "$as_val"'` |
| 9698 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9699 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9700 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9701 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9702 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9703 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9704 | cat >conftest.$ac_ext <<_ACEOF |
| 9705 | /* confdefs.h. */ |
| 9706 | _ACEOF |
| 9707 | cat confdefs.h >>conftest.$ac_ext |
| 9708 | cat >>conftest.$ac_ext <<_ACEOF |
| 9709 | /* end confdefs.h. */ |
| 9710 | $ac_includes_default |
| 9711 | #include <$ac_header> |
| 9712 | _ACEOF |
| 9713 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9714 | if { (ac_try="$ac_compile" |
| 9715 | case "(($ac_try" in |
| 9716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9717 | *) ac_try_echo=$ac_try;; |
| 9718 | esac |
| 9719 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9720 | $as_echo "$ac_try_echo") >&5 |
| 9721 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9722 | ac_status=$? |
| 9723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9724 | rm -f conftest.er1 |
| 9725 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9727 | (exit $ac_status); } && { |
| 9728 | test -z "$ac_c_werror_flag" || |
| 9729 | test ! -s conftest.err |
| 9730 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9731 | ac_header_compiler=yes |
| 9732 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9733 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9735 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9736 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9737 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9738 | |
| 9739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9740 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9741 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9742 | |
| 9743 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9744 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9745 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9746 | cat >conftest.$ac_ext <<_ACEOF |
| 9747 | /* confdefs.h. */ |
| 9748 | _ACEOF |
| 9749 | cat confdefs.h >>conftest.$ac_ext |
| 9750 | cat >>conftest.$ac_ext <<_ACEOF |
| 9751 | /* end confdefs.h. */ |
| 9752 | #include <$ac_header> |
| 9753 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9754 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9755 | case "(($ac_try" in |
| 9756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9757 | *) ac_try_echo=$ac_try;; |
| 9758 | esac |
| 9759 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9760 | $as_echo "$ac_try_echo") >&5 |
| 9761 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9762 | ac_status=$? |
| 9763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9764 | rm -f conftest.er1 |
| 9765 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9767 | (exit $ac_status); } >/dev/null && { |
| 9768 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9769 | test ! -s conftest.err |
| 9770 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9771 | ac_header_preproc=yes |
| 9772 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9773 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9775 | |
| 9776 | ac_header_preproc=no |
| 9777 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9778 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9779 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9780 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9781 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9782 | |
| 9783 | # So? What about this header? |
| 9784 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9785 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9786 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9787 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9788 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9789 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9790 | ac_header_preproc=yes |
| 9791 | ;; |
| 9792 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9793 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9794 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9795 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9796 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9797 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9798 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9799 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9800 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9801 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9802 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9803 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9804 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9805 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9806 | ;; |
| 9807 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9808 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9809 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9810 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9811 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9812 | else |
| 9813 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9814 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9815 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9816 | $as_echo "$as_val"'` |
| 9817 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9818 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9819 | |
| 9820 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9821 | if test `eval 'as_val=${'$as_ac_Header'} |
| 9822 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9823 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9824 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9825 | _ACEOF |
| 9826 | |
| 9827 | fi |
| 9828 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9829 | done |
| 9830 | |
| 9831 | |
| 9832 | if test ! "$enable_xim" = "no"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9833 | { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
| 9834 | $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9835 | cat >conftest.$ac_ext <<_ACEOF |
| 9836 | /* confdefs.h. */ |
| 9837 | _ACEOF |
| 9838 | cat confdefs.h >>conftest.$ac_ext |
| 9839 | cat >>conftest.$ac_ext <<_ACEOF |
| 9840 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9841 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9842 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9843 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9844 | $EGREP "XIMText" >/dev/null 2>&1; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9845 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9846 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9847 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9848 | { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
| 9849 | $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9850 | fi |
| 9851 | rm -f conftest* |
| 9852 | |
| 9853 | fi |
| 9854 | CPPFLAGS=$cppflags_save |
| 9855 | |
| 9856 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 9857 | -a "x$GUITYPE" != "xNONE" ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9858 | { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
| 9859 | $as_echo "X GUI selected; xim has been enabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9860 | enable_xim="yes" |
| 9861 | fi |
| 9862 | fi |
| 9863 | |
| 9864 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 9865 | cppflags_save=$CPPFLAGS |
| 9866 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9867 | { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 |
| 9868 | $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9869 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9870 | /* confdefs.h. */ |
| 9871 | _ACEOF |
| 9872 | cat confdefs.h >>conftest.$ac_ext |
| 9873 | cat >>conftest.$ac_ext <<_ACEOF |
| 9874 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9875 | |
| 9876 | #include <X11/Intrinsic.h> |
| 9877 | #include <X11/Xmu/Editres.h> |
| 9878 | int |
| 9879 | main () |
| 9880 | { |
| 9881 | int i; i = 0; |
| 9882 | ; |
| 9883 | return 0; |
| 9884 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9885 | _ACEOF |
| 9886 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9887 | if { (ac_try="$ac_compile" |
| 9888 | case "(($ac_try" in |
| 9889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9890 | *) ac_try_echo=$ac_try;; |
| 9891 | esac |
| 9892 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9893 | $as_echo "$ac_try_echo") >&5 |
| 9894 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9895 | ac_status=$? |
| 9896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9897 | rm -f conftest.er1 |
| 9898 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9899 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9900 | (exit $ac_status); } && { |
| 9901 | test -z "$ac_c_werror_flag" || |
| 9902 | test ! -s conftest.err |
| 9903 | } && test -s conftest.$ac_objext; then |
| 9904 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9905 | $as_echo "yes" >&6; } |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9906 | cat >>confdefs.h <<\_ACEOF |
| 9907 | #define HAVE_X11_XMU_EDITRES_H 1 |
| 9908 | _ACEOF |
| 9909 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9910 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9911 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9913 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9914 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9915 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9916 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9917 | |
| 9918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9919 | CPPFLAGS=$cppflags_save |
| 9920 | fi |
| 9921 | |
| 9922 | if test -z "$SKIP_MOTIF"; then |
| 9923 | cppflags_save=$CPPFLAGS |
| 9924 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9925 | |
| 9926 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9927 | |
| 9928 | |
| 9929 | |
| 9930 | |
Bram Moolenaar | fc1421e | 2006-04-20 22:17:20 +0000 | [diff] [blame] | 9931 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9932 | 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] | 9933 | Xm/UnhighlightT.h Xm/Notebook.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9934 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9935 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9936 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9937 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9938 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9939 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9940 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9941 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9942 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9943 | $as_echo "$as_val"'` |
| 9944 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9945 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9946 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9947 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9948 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9949 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9950 | cat >conftest.$ac_ext <<_ACEOF |
| 9951 | /* confdefs.h. */ |
| 9952 | _ACEOF |
| 9953 | cat confdefs.h >>conftest.$ac_ext |
| 9954 | cat >>conftest.$ac_ext <<_ACEOF |
| 9955 | /* end confdefs.h. */ |
| 9956 | $ac_includes_default |
| 9957 | #include <$ac_header> |
| 9958 | _ACEOF |
| 9959 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9960 | if { (ac_try="$ac_compile" |
| 9961 | case "(($ac_try" in |
| 9962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9963 | *) ac_try_echo=$ac_try;; |
| 9964 | esac |
| 9965 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9966 | $as_echo "$ac_try_echo") >&5 |
| 9967 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9968 | ac_status=$? |
| 9969 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9970 | rm -f conftest.er1 |
| 9971 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9972 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9973 | (exit $ac_status); } && { |
| 9974 | test -z "$ac_c_werror_flag" || |
| 9975 | test ! -s conftest.err |
| 9976 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9977 | ac_header_compiler=yes |
| 9978 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9979 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9981 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9982 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9983 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9984 | |
| 9985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9986 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9987 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9988 | |
| 9989 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9990 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9991 | $as_echo_n "checking $ac_header presence... " >&6; } |
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. */ |
| 9998 | #include <$ac_header> |
| 9999 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10000 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10001 | case "(($ac_try" in |
| 10002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10003 | *) ac_try_echo=$ac_try;; |
| 10004 | esac |
| 10005 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10006 | $as_echo "$ac_try_echo") >&5 |
| 10007 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10008 | ac_status=$? |
| 10009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10010 | rm -f conftest.er1 |
| 10011 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10013 | (exit $ac_status); } >/dev/null && { |
| 10014 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10015 | test ! -s conftest.err |
| 10016 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10017 | ac_header_preproc=yes |
| 10018 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10019 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10021 | |
| 10022 | ac_header_preproc=no |
| 10023 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10024 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10025 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10026 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10027 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10028 | |
| 10029 | # So? What about this header? |
| 10030 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10031 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10033 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10035 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10036 | ac_header_preproc=yes |
| 10037 | ;; |
| 10038 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10039 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10040 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10041 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10042 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10043 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10044 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10045 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10046 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10047 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10048 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10049 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10050 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10051 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10052 | ;; |
| 10053 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10054 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10055 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10056 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10057 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10058 | else |
| 10059 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10060 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10061 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10062 | $as_echo "$as_val"'` |
| 10063 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10064 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10065 | |
| 10066 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10067 | if test `eval 'as_val=${'$as_ac_Header'} |
| 10068 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10069 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10070 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10071 | _ACEOF |
| 10072 | |
| 10073 | fi |
| 10074 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10075 | done |
| 10076 | |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10077 | |
| 10078 | if test $ac_cv_header_Xm_XpmP_h = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10079 | { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 |
| 10080 | $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10081 | cat >conftest.$ac_ext <<_ACEOF |
| 10082 | /* confdefs.h. */ |
| 10083 | _ACEOF |
| 10084 | cat confdefs.h >>conftest.$ac_ext |
| 10085 | cat >>conftest.$ac_ext <<_ACEOF |
| 10086 | /* end confdefs.h. */ |
| 10087 | #include <Xm/XpmP.h> |
| 10088 | int |
| 10089 | main () |
| 10090 | { |
| 10091 | XpmAttributes_21 attr; |
| 10092 | ; |
| 10093 | return 0; |
| 10094 | } |
| 10095 | _ACEOF |
| 10096 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10097 | if { (ac_try="$ac_compile" |
| 10098 | case "(($ac_try" in |
| 10099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10100 | *) ac_try_echo=$ac_try;; |
| 10101 | esac |
| 10102 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10103 | $as_echo "$ac_try_echo") >&5 |
| 10104 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10105 | ac_status=$? |
| 10106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10107 | rm -f conftest.er1 |
| 10108 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10110 | (exit $ac_status); } && { |
| 10111 | test -z "$ac_c_werror_flag" || |
| 10112 | test ! -s conftest.err |
| 10113 | } && test -s conftest.$ac_objext; then |
| 10114 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10115 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10116 | #define XPMATTRIBUTES_TYPE XpmAttributes_21 |
| 10117 | _ACEOF |
| 10118 | |
| 10119 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10120 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10122 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10123 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10124 | $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10125 | #define XPMATTRIBUTES_TYPE XpmAttributes |
| 10126 | _ACEOF |
| 10127 | |
| 10128 | |
| 10129 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10130 | |
| 10131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10132 | else |
| 10133 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 57657d8 | 2006-04-21 22:12:41 +0000 | [diff] [blame] | 10134 | #define XPMATTRIBUTES_TYPE XpmAttributes |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10135 | _ACEOF |
| 10136 | |
| 10137 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10138 | CPPFLAGS=$cppflags_save |
| 10139 | fi |
| 10140 | |
| 10141 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10142 | { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
| 10143 | $as_echo "no GUI selected; xim has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10144 | enable_xim="no" |
| 10145 | fi |
| 10146 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10147 | { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
| 10148 | $as_echo "no GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10149 | enable_fontset="no" |
| 10150 | fi |
| 10151 | if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10152 | { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 10153 | $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10154 | enable_fontset="no" |
| 10155 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10156 | |
| 10157 | if test -z "$SKIP_PHOTON"; then |
| 10158 | GUITYPE=PHOTONGUI |
| 10159 | fi |
| 10160 | |
| 10161 | |
| 10162 | |
| 10163 | |
| 10164 | |
| 10165 | |
| 10166 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10167 | { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
| 10168 | $as_echo "$as_me: error: cannot use workshop without Motif" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10169 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10170 | fi |
| 10171 | |
| 10172 | if test "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10173 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10174 | #define FEAT_XIM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10175 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10176 | |
| 10177 | fi |
| 10178 | if test "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10179 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10180 | #define FEAT_XFONTSET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10181 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10182 | |
| 10183 | fi |
| 10184 | |
| 10185 | |
| 10186 | |
| 10187 | |
| 10188 | if test "$enable_hangulinput" = "yes"; then |
| 10189 | if test "x$GUITYPE" = "xNONE"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10190 | { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
| 10191 | $as_echo "no GUI selected; hangul input has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10192 | enable_hangulinput=no |
| 10193 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10194 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10195 | #define FEAT_HANGULIN 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 | |
| 10198 | HANGULIN_SRC=hangulin.c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10199 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10200 | HANGULIN_OBJ=objects/hangulin.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10201 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10202 | fi |
| 10203 | fi |
| 10204 | |
| 10205 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10206 | { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5 |
| 10207 | $as_echo_n "checking whether toupper is broken... " >&6; } |
| 10208 | if test "${vim_cv_toupper_broken+set}" = set; then |
| 10209 | $as_echo_n "(cached) " >&6 |
| 10210 | else |
| 10211 | |
| 10212 | if test "$cross_compiling" = yes; then |
| 10213 | |
| 10214 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5 |
| 10215 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10216 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10217 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10218 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10219 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10220 | |
| 10221 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10222 | #include <ctype.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10223 | #if STDC_HEADERS |
| 10224 | # include <stdlib.h> |
| 10225 | # include <stddef.h> |
| 10226 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10227 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10228 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10229 | _ACEOF |
| 10230 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10231 | if { (ac_try="$ac_link" |
| 10232 | case "(($ac_try" in |
| 10233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10234 | *) ac_try_echo=$ac_try;; |
| 10235 | esac |
| 10236 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10237 | $as_echo "$ac_try_echo") >&5 |
| 10238 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10239 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10241 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10242 | { (case "(($ac_try" in |
| 10243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10244 | *) ac_try_echo=$ac_try;; |
| 10245 | esac |
| 10246 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10247 | $as_echo "$ac_try_echo") >&5 |
| 10248 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10249 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10250 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10251 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10252 | |
| 10253 | vim_cv_toupper_broken=yes |
| 10254 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10255 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10256 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 10257 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10259 | |
| 10260 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10261 | |
| 10262 | vim_cv_toupper_broken=no |
| 10263 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10264 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10265 | rm -rf conftest.dSYM |
| 10266 | rm -f core *.core core.conftest.* 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] | 10267 | fi |
| 10268 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10269 | |
| 10270 | fi |
| 10271 | { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5 |
| 10272 | $as_echo "$vim_cv_toupper_broken" >&6; } |
| 10273 | |
| 10274 | if test "x$vim_cv_toupper_broken" = "xyes" ; then |
| 10275 | cat >>confdefs.h <<\_ACEOF |
| 10276 | #define BROKEN_TOUPPER 1 |
| 10277 | _ACEOF |
| 10278 | |
| 10279 | fi |
| 10280 | |
| 10281 | { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
| 10282 | $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10283 | cat >conftest.$ac_ext <<_ACEOF |
| 10284 | /* confdefs.h. */ |
| 10285 | _ACEOF |
| 10286 | cat confdefs.h >>conftest.$ac_ext |
| 10287 | cat >>conftest.$ac_ext <<_ACEOF |
| 10288 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10289 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10290 | int |
| 10291 | main () |
| 10292 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10293 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10294 | ; |
| 10295 | return 0; |
| 10296 | } |
| 10297 | _ACEOF |
| 10298 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10299 | if { (ac_try="$ac_compile" |
| 10300 | case "(($ac_try" in |
| 10301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10302 | *) ac_try_echo=$ac_try;; |
| 10303 | esac |
| 10304 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10305 | $as_echo "$ac_try_echo") >&5 |
| 10306 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10307 | ac_status=$? |
| 10308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10309 | rm -f conftest.er1 |
| 10310 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10312 | (exit $ac_status); } && { |
| 10313 | test -z "$ac_c_werror_flag" || |
| 10314 | test ! -s conftest.err |
| 10315 | } && test -s conftest.$ac_objext; then |
| 10316 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10317 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10318 | #define HAVE_DATE_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10319 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10320 | |
| 10321 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10322 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10324 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10325 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10326 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10327 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10328 | |
| 10329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10330 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10331 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10332 | { $as_echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10333 | $as_echo_n "checking for elf.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10334 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10335 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10336 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10337 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10338 | $as_echo "$ac_cv_header_elf_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10339 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10340 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10341 | { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5 |
| 10342 | $as_echo_n "checking elf.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10343 | cat >conftest.$ac_ext <<_ACEOF |
| 10344 | /* confdefs.h. */ |
| 10345 | _ACEOF |
| 10346 | cat confdefs.h >>conftest.$ac_ext |
| 10347 | cat >>conftest.$ac_ext <<_ACEOF |
| 10348 | /* end confdefs.h. */ |
| 10349 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10350 | #include <elf.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10351 | _ACEOF |
| 10352 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10353 | if { (ac_try="$ac_compile" |
| 10354 | case "(($ac_try" in |
| 10355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10356 | *) ac_try_echo=$ac_try;; |
| 10357 | esac |
| 10358 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10359 | $as_echo "$ac_try_echo") >&5 |
| 10360 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10361 | ac_status=$? |
| 10362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10363 | rm -f conftest.er1 |
| 10364 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10365 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10366 | (exit $ac_status); } && { |
| 10367 | test -z "$ac_c_werror_flag" || |
| 10368 | test ! -s conftest.err |
| 10369 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10370 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10371 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10372 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10374 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10375 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10376 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10377 | |
| 10378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10379 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10380 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10381 | |
| 10382 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10383 | { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5 |
| 10384 | $as_echo_n "checking elf.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10385 | cat >conftest.$ac_ext <<_ACEOF |
| 10386 | /* confdefs.h. */ |
| 10387 | _ACEOF |
| 10388 | cat confdefs.h >>conftest.$ac_ext |
| 10389 | cat >>conftest.$ac_ext <<_ACEOF |
| 10390 | /* end confdefs.h. */ |
| 10391 | #include <elf.h> |
| 10392 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10393 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10394 | case "(($ac_try" in |
| 10395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10396 | *) ac_try_echo=$ac_try;; |
| 10397 | esac |
| 10398 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10399 | $as_echo "$ac_try_echo") >&5 |
| 10400 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10401 | ac_status=$? |
| 10402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10403 | rm -f conftest.er1 |
| 10404 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10405 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10406 | (exit $ac_status); } >/dev/null && { |
| 10407 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10408 | test ! -s conftest.err |
| 10409 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10410 | ac_header_preproc=yes |
| 10411 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10412 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10414 | |
| 10415 | ac_header_preproc=no |
| 10416 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10417 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10418 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10419 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10420 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10421 | |
| 10422 | # So? What about this header? |
| 10423 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10424 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10425 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10426 | $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10427 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 |
| 10428 | $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10429 | ac_header_preproc=yes |
| 10430 | ;; |
| 10431 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10432 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 |
| 10433 | $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} |
| 10434 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 |
| 10435 | $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} |
| 10436 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 |
| 10437 | $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} |
| 10438 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10439 | $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10440 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 |
| 10441 | $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} |
| 10442 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 |
| 10443 | $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} |
| 10444 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10445 | ;; |
| 10446 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10447 | { $as_echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10448 | $as_echo_n "checking for elf.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10449 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10450 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10451 | else |
| 10452 | ac_cv_header_elf_h=$ac_header_preproc |
| 10453 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10454 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10455 | $as_echo "$ac_cv_header_elf_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10456 | |
| 10457 | fi |
| 10458 | if test $ac_cv_header_elf_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10459 | HAS_ELF=1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10460 | fi |
| 10461 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10462 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10463 | if test "$HAS_ELF" = 1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10464 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10465 | { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
| 10466 | $as_echo_n "checking for main in -lelf... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10467 | if test "${ac_cv_lib_elf_main+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10468 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10469 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10470 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10471 | LIBS="-lelf $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10472 | cat >conftest.$ac_ext <<_ACEOF |
| 10473 | /* confdefs.h. */ |
| 10474 | _ACEOF |
| 10475 | cat confdefs.h >>conftest.$ac_ext |
| 10476 | cat >>conftest.$ac_ext <<_ACEOF |
| 10477 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10478 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10479 | |
| 10480 | int |
| 10481 | main () |
| 10482 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10483 | return main (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10484 | ; |
| 10485 | return 0; |
| 10486 | } |
| 10487 | _ACEOF |
| 10488 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10489 | if { (ac_try="$ac_link" |
| 10490 | case "(($ac_try" in |
| 10491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10492 | *) ac_try_echo=$ac_try;; |
| 10493 | esac |
| 10494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10495 | $as_echo "$ac_try_echo") >&5 |
| 10496 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10497 | ac_status=$? |
| 10498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10499 | rm -f conftest.er1 |
| 10500 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10502 | (exit $ac_status); } && { |
| 10503 | test -z "$ac_c_werror_flag" || |
| 10504 | test ! -s conftest.err |
| 10505 | } && test -s conftest$ac_exeext && { |
| 10506 | test "$cross_compiling" = yes || |
| 10507 | $as_test_x conftest$ac_exeext |
| 10508 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10509 | ac_cv_lib_elf_main=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10510 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10511 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10512 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10513 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10514 | ac_cv_lib_elf_main=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10515 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10516 | |
| 10517 | rm -rf conftest.dSYM |
| 10518 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10519 | conftest$ac_exeext conftest.$ac_ext |
| 10520 | LIBS=$ac_check_lib_save_LIBS |
| 10521 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10522 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 |
| 10523 | $as_echo "$ac_cv_lib_elf_main" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10524 | if test $ac_cv_lib_elf_main = yes; then |
| 10525 | cat >>confdefs.h <<_ACEOF |
| 10526 | #define HAVE_LIBELF 1 |
| 10527 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10528 | |
| 10529 | LIBS="-lelf $LIBS" |
| 10530 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10531 | fi |
| 10532 | |
| 10533 | fi |
| 10534 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10535 | |
| 10536 | |
| 10537 | |
| 10538 | |
| 10539 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10540 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10541 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10542 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 10543 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 10544 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| 10545 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10546 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10547 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10548 | cat >conftest.$ac_ext <<_ACEOF |
| 10549 | /* confdefs.h. */ |
| 10550 | _ACEOF |
| 10551 | cat confdefs.h >>conftest.$ac_ext |
| 10552 | cat >>conftest.$ac_ext <<_ACEOF |
| 10553 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10554 | #include <sys/types.h> |
| 10555 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10556 | |
| 10557 | int |
| 10558 | main () |
| 10559 | { |
| 10560 | if ((DIR *) 0) |
| 10561 | return 0; |
| 10562 | ; |
| 10563 | return 0; |
| 10564 | } |
| 10565 | _ACEOF |
| 10566 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10567 | if { (ac_try="$ac_compile" |
| 10568 | case "(($ac_try" in |
| 10569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10570 | *) ac_try_echo=$ac_try;; |
| 10571 | esac |
| 10572 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10573 | $as_echo "$ac_try_echo") >&5 |
| 10574 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10575 | ac_status=$? |
| 10576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10577 | rm -f conftest.er1 |
| 10578 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10579 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10580 | (exit $ac_status); } && { |
| 10581 | test -z "$ac_c_werror_flag" || |
| 10582 | test ! -s conftest.err |
| 10583 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10584 | eval "$as_ac_Header=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10585 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10586 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10588 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10589 | eval "$as_ac_Header=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10590 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10591 | |
| 10592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10593 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10594 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10595 | $as_echo "$as_val"'` |
| 10596 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10597 | $as_echo "$ac_res" >&6; } |
| 10598 | if test `eval 'as_val=${'$as_ac_Header'} |
| 10599 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10600 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10601 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10602 | _ACEOF |
| 10603 | |
| 10604 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10605 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10606 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10607 | done |
| 10608 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 10609 | if test $ac_header_dirent = dirent.h; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10610 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10611 | $as_echo_n "checking for library containing opendir... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10612 | if test "${ac_cv_search_opendir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10613 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10614 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10615 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10616 | cat >conftest.$ac_ext <<_ACEOF |
| 10617 | /* confdefs.h. */ |
| 10618 | _ACEOF |
| 10619 | cat confdefs.h >>conftest.$ac_ext |
| 10620 | cat >>conftest.$ac_ext <<_ACEOF |
| 10621 | /* end confdefs.h. */ |
| 10622 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10623 | /* Override any GCC internal prototype to avoid an error. |
| 10624 | Use char because int might match the return type of a GCC |
| 10625 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10626 | #ifdef __cplusplus |
| 10627 | extern "C" |
| 10628 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10629 | char opendir (); |
| 10630 | int |
| 10631 | main () |
| 10632 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10633 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10634 | ; |
| 10635 | return 0; |
| 10636 | } |
| 10637 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10638 | for ac_lib in '' dir; do |
| 10639 | if test -z "$ac_lib"; then |
| 10640 | ac_res="none required" |
| 10641 | else |
| 10642 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10643 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10644 | fi |
| 10645 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10646 | if { (ac_try="$ac_link" |
| 10647 | case "(($ac_try" in |
| 10648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10649 | *) ac_try_echo=$ac_try;; |
| 10650 | esac |
| 10651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10652 | $as_echo "$ac_try_echo") >&5 |
| 10653 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10654 | ac_status=$? |
| 10655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10656 | rm -f conftest.er1 |
| 10657 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10659 | (exit $ac_status); } && { |
| 10660 | test -z "$ac_c_werror_flag" || |
| 10661 | test ! -s conftest.err |
| 10662 | } && test -s conftest$ac_exeext && { |
| 10663 | test "$cross_compiling" = yes || |
| 10664 | $as_test_x conftest$ac_exeext |
| 10665 | }; then |
| 10666 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10667 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10668 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10669 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10670 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10671 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10672 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10673 | |
| 10674 | rm -rf conftest.dSYM |
| 10675 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10676 | conftest$ac_exeext |
| 10677 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10678 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10679 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10680 | done |
| 10681 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10682 | : |
| 10683 | else |
| 10684 | ac_cv_search_opendir=no |
| 10685 | fi |
| 10686 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10687 | LIBS=$ac_func_search_save_LIBS |
| 10688 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10689 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10690 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 10691 | ac_res=$ac_cv_search_opendir |
| 10692 | if test "$ac_res" != no; then |
| 10693 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10694 | |
| 10695 | fi |
| 10696 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10697 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10698 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10699 | $as_echo_n "checking for library containing opendir... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10700 | if test "${ac_cv_search_opendir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10701 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10702 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10703 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10704 | cat >conftest.$ac_ext <<_ACEOF |
| 10705 | /* confdefs.h. */ |
| 10706 | _ACEOF |
| 10707 | cat confdefs.h >>conftest.$ac_ext |
| 10708 | cat >>conftest.$ac_ext <<_ACEOF |
| 10709 | /* end confdefs.h. */ |
| 10710 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10711 | /* Override any GCC internal prototype to avoid an error. |
| 10712 | Use char because int might match the return type of a GCC |
| 10713 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10714 | #ifdef __cplusplus |
| 10715 | extern "C" |
| 10716 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10717 | char opendir (); |
| 10718 | int |
| 10719 | main () |
| 10720 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10721 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10722 | ; |
| 10723 | return 0; |
| 10724 | } |
| 10725 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10726 | for ac_lib in '' x; do |
| 10727 | if test -z "$ac_lib"; then |
| 10728 | ac_res="none required" |
| 10729 | else |
| 10730 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10731 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10732 | fi |
| 10733 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10734 | if { (ac_try="$ac_link" |
| 10735 | case "(($ac_try" in |
| 10736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10737 | *) ac_try_echo=$ac_try;; |
| 10738 | esac |
| 10739 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10740 | $as_echo "$ac_try_echo") >&5 |
| 10741 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10742 | ac_status=$? |
| 10743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10744 | rm -f conftest.er1 |
| 10745 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10746 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10747 | (exit $ac_status); } && { |
| 10748 | test -z "$ac_c_werror_flag" || |
| 10749 | test ! -s conftest.err |
| 10750 | } && test -s conftest$ac_exeext && { |
| 10751 | test "$cross_compiling" = yes || |
| 10752 | $as_test_x conftest$ac_exeext |
| 10753 | }; then |
| 10754 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10755 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10756 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10758 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10759 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10760 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10761 | |
| 10762 | rm -rf conftest.dSYM |
| 10763 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10764 | conftest$ac_exeext |
| 10765 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10766 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10767 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10768 | done |
| 10769 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10770 | : |
| 10771 | else |
| 10772 | ac_cv_search_opendir=no |
| 10773 | fi |
| 10774 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10775 | LIBS=$ac_func_search_save_LIBS |
| 10776 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10777 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10778 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 10779 | ac_res=$ac_cv_search_opendir |
| 10780 | if test "$ac_res" != no; then |
| 10781 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10782 | |
| 10783 | fi |
| 10784 | |
| 10785 | fi |
| 10786 | |
| 10787 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10788 | if test $ac_cv_header_sys_wait_h = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10789 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
| 10790 | $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10791 | cat >conftest.$ac_ext <<_ACEOF |
| 10792 | /* confdefs.h. */ |
| 10793 | _ACEOF |
| 10794 | cat confdefs.h >>conftest.$ac_ext |
| 10795 | cat >>conftest.$ac_ext <<_ACEOF |
| 10796 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10797 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10798 | int |
| 10799 | main () |
| 10800 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10801 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10802 | ; |
| 10803 | return 0; |
| 10804 | } |
| 10805 | _ACEOF |
| 10806 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10807 | if { (ac_try="$ac_compile" |
| 10808 | case "(($ac_try" in |
| 10809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10810 | *) ac_try_echo=$ac_try;; |
| 10811 | esac |
| 10812 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10813 | $as_echo "$ac_try_echo") >&5 |
| 10814 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10815 | ac_status=$? |
| 10816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10817 | rm -f conftest.er1 |
| 10818 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10819 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10820 | (exit $ac_status); } && { |
| 10821 | test -z "$ac_c_werror_flag" || |
| 10822 | test ! -s conftest.err |
| 10823 | } && test -s conftest.$ac_objext; then |
| 10824 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10825 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10826 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10827 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10828 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10829 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10830 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10831 | #define HAVE_UNION_WAIT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10832 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10833 | |
| 10834 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10835 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10837 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10838 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10839 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10840 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10841 | |
| 10842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10843 | fi |
| 10844 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10845 | |
| 10846 | |
| 10847 | |
| 10848 | |
| 10849 | |
| 10850 | |
| 10851 | |
| 10852 | |
| 10853 | |
| 10854 | |
| 10855 | |
| 10856 | |
| 10857 | |
| 10858 | |
| 10859 | |
| 10860 | |
| 10861 | |
| 10862 | |
| 10863 | |
| 10864 | |
| 10865 | |
| 10866 | |
| 10867 | |
| 10868 | |
| 10869 | |
| 10870 | |
| 10871 | |
| 10872 | |
| 10873 | |
| 10874 | |
| 10875 | |
| 10876 | |
| 10877 | |
| 10878 | |
| 10879 | |
| 10880 | |
| 10881 | |
| 10882 | |
| 10883 | |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10884 | |
Bram Moolenaar | e74455a | 2007-11-04 14:36:18 +0000 | [diff] [blame] | 10885 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10886 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10887 | for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ |
Bram Moolenaar | e74455a | 2007-11-04 14:36:18 +0000 | [diff] [blame] | 10888 | termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10889 | iconv.h langinfo.h math.h unistd.h stropts.h errno.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10890 | sys/resource.h sys/systeminfo.h locale.h \ |
| 10891 | sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ |
| 10892 | 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] | 10893 | libgen.h util/debug.h util/msg18n.h frame.h \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10894 | 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] | 10895 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10896 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10897 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10898 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10899 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10900 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10901 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10902 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10903 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10904 | $as_echo "$as_val"'` |
| 10905 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10906 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10907 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10908 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10909 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10910 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10911 | cat >conftest.$ac_ext <<_ACEOF |
| 10912 | /* confdefs.h. */ |
| 10913 | _ACEOF |
| 10914 | cat confdefs.h >>conftest.$ac_ext |
| 10915 | cat >>conftest.$ac_ext <<_ACEOF |
| 10916 | /* end confdefs.h. */ |
| 10917 | $ac_includes_default |
| 10918 | #include <$ac_header> |
| 10919 | _ACEOF |
| 10920 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10921 | if { (ac_try="$ac_compile" |
| 10922 | case "(($ac_try" in |
| 10923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10924 | *) ac_try_echo=$ac_try;; |
| 10925 | esac |
| 10926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10927 | $as_echo "$ac_try_echo") >&5 |
| 10928 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10929 | ac_status=$? |
| 10930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10931 | rm -f conftest.er1 |
| 10932 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10934 | (exit $ac_status); } && { |
| 10935 | test -z "$ac_c_werror_flag" || |
| 10936 | test ! -s conftest.err |
| 10937 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10938 | ac_header_compiler=yes |
| 10939 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10940 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10942 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10943 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10944 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10945 | |
| 10946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10947 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10948 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10949 | |
| 10950 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10951 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10952 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10953 | cat >conftest.$ac_ext <<_ACEOF |
| 10954 | /* confdefs.h. */ |
| 10955 | _ACEOF |
| 10956 | cat confdefs.h >>conftest.$ac_ext |
| 10957 | cat >>conftest.$ac_ext <<_ACEOF |
| 10958 | /* end confdefs.h. */ |
| 10959 | #include <$ac_header> |
| 10960 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10961 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10962 | case "(($ac_try" in |
| 10963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10964 | *) ac_try_echo=$ac_try;; |
| 10965 | esac |
| 10966 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10967 | $as_echo "$ac_try_echo") >&5 |
| 10968 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10969 | ac_status=$? |
| 10970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10971 | rm -f conftest.er1 |
| 10972 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10974 | (exit $ac_status); } >/dev/null && { |
| 10975 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10976 | test ! -s conftest.err |
| 10977 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10978 | ac_header_preproc=yes |
| 10979 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10980 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10982 | |
| 10983 | ac_header_preproc=no |
| 10984 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10985 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10986 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10987 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10988 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10989 | |
| 10990 | # So? What about this header? |
| 10991 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10992 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10993 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10994 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10995 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10996 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10997 | ac_header_preproc=yes |
| 10998 | ;; |
| 10999 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11000 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11001 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11002 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11003 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11004 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11005 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11006 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11007 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11008 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11009 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11010 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11011 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11012 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11013 | ;; |
| 11014 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11015 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11016 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11017 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11018 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11019 | else |
| 11020 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11021 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11022 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11023 | $as_echo "$as_val"'` |
| 11024 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11025 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11026 | |
| 11027 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11028 | if test `eval 'as_val=${'$as_ac_Header'} |
| 11029 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11030 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11031 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11032 | _ACEOF |
| 11033 | |
| 11034 | fi |
| 11035 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11036 | done |
| 11037 | |
| 11038 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11039 | { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5 |
| 11040 | $as_echo_n "checking for pthread_np.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11041 | cat >conftest.$ac_ext <<_ACEOF |
| 11042 | /* confdefs.h. */ |
| 11043 | _ACEOF |
| 11044 | cat confdefs.h >>conftest.$ac_ext |
| 11045 | cat >>conftest.$ac_ext <<_ACEOF |
| 11046 | /* end confdefs.h. */ |
| 11047 | |
| 11048 | #include <pthread.h> |
| 11049 | #include <pthread_np.h> |
| 11050 | int |
| 11051 | main () |
| 11052 | { |
| 11053 | int i; i = 0; |
| 11054 | ; |
| 11055 | return 0; |
| 11056 | } |
| 11057 | _ACEOF |
| 11058 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11059 | if { (ac_try="$ac_compile" |
| 11060 | case "(($ac_try" in |
| 11061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11062 | *) ac_try_echo=$ac_try;; |
| 11063 | esac |
| 11064 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11065 | $as_echo "$ac_try_echo") >&5 |
| 11066 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11067 | ac_status=$? |
| 11068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11069 | rm -f conftest.er1 |
| 11070 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11072 | (exit $ac_status); } && { |
| 11073 | test -z "$ac_c_werror_flag" || |
| 11074 | test ! -s conftest.err |
| 11075 | } && test -s conftest.$ac_objext; then |
| 11076 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11077 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11078 | cat >>confdefs.h <<\_ACEOF |
| 11079 | #define HAVE_PTHREAD_NP_H 1 |
| 11080 | _ACEOF |
| 11081 | |
| 11082 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11083 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11085 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11086 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11087 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11088 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11089 | |
| 11090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11091 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11092 | |
| 11093 | for ac_header in strings.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11094 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11095 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11096 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11097 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11098 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11099 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11100 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11101 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11102 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11103 | $as_echo "$as_val"'` |
| 11104 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11105 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11106 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11107 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11108 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11109 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11110 | cat >conftest.$ac_ext <<_ACEOF |
| 11111 | /* confdefs.h. */ |
| 11112 | _ACEOF |
| 11113 | cat confdefs.h >>conftest.$ac_ext |
| 11114 | cat >>conftest.$ac_ext <<_ACEOF |
| 11115 | /* end confdefs.h. */ |
| 11116 | $ac_includes_default |
| 11117 | #include <$ac_header> |
| 11118 | _ACEOF |
| 11119 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11120 | if { (ac_try="$ac_compile" |
| 11121 | case "(($ac_try" in |
| 11122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11123 | *) ac_try_echo=$ac_try;; |
| 11124 | esac |
| 11125 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11126 | $as_echo "$ac_try_echo") >&5 |
| 11127 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11128 | ac_status=$? |
| 11129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11130 | rm -f conftest.er1 |
| 11131 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11132 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11133 | (exit $ac_status); } && { |
| 11134 | test -z "$ac_c_werror_flag" || |
| 11135 | test ! -s conftest.err |
| 11136 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11137 | ac_header_compiler=yes |
| 11138 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11139 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11141 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11142 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11143 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11144 | |
| 11145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11146 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11147 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11148 | |
| 11149 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11150 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11151 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11152 | cat >conftest.$ac_ext <<_ACEOF |
| 11153 | /* confdefs.h. */ |
| 11154 | _ACEOF |
| 11155 | cat confdefs.h >>conftest.$ac_ext |
| 11156 | cat >>conftest.$ac_ext <<_ACEOF |
| 11157 | /* end confdefs.h. */ |
| 11158 | #include <$ac_header> |
| 11159 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11160 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11161 | case "(($ac_try" in |
| 11162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11163 | *) ac_try_echo=$ac_try;; |
| 11164 | esac |
| 11165 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11166 | $as_echo "$ac_try_echo") >&5 |
| 11167 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11168 | ac_status=$? |
| 11169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11170 | rm -f conftest.er1 |
| 11171 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11172 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11173 | (exit $ac_status); } >/dev/null && { |
| 11174 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11175 | test ! -s conftest.err |
| 11176 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11177 | ac_header_preproc=yes |
| 11178 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11179 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11181 | |
| 11182 | ac_header_preproc=no |
| 11183 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11184 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11185 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11186 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11187 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11188 | |
| 11189 | # So? What about this header? |
| 11190 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11191 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11192 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11193 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11194 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11195 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11196 | ac_header_preproc=yes |
| 11197 | ;; |
| 11198 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11199 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11200 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11201 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11202 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11203 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11204 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11205 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11206 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11207 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11208 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11209 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11210 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11211 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11212 | ;; |
| 11213 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11214 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11215 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11216 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11217 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11218 | else |
| 11219 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11220 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11221 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11222 | $as_echo "$as_val"'` |
| 11223 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11224 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11225 | |
| 11226 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11227 | if test `eval 'as_val=${'$as_ac_Header'} |
| 11228 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11229 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11230 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11231 | _ACEOF |
| 11232 | |
| 11233 | fi |
| 11234 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11235 | done |
| 11236 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 11237 | if test "x$MACOSX" = "xyes"; then |
| 11238 | cat >>confdefs.h <<\_ACEOF |
| 11239 | #define NO_STRINGS_WITH_STRING_H 1 |
| 11240 | _ACEOF |
| 11241 | |
| 11242 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11243 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11244 | { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
| 11245 | $as_echo_n "checking if strings.h can be included after string.h... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11246 | cppflags_save=$CPPFLAGS |
| 11247 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11248 | cat >conftest.$ac_ext <<_ACEOF |
| 11249 | /* confdefs.h. */ |
| 11250 | _ACEOF |
| 11251 | cat confdefs.h >>conftest.$ac_ext |
| 11252 | cat >>conftest.$ac_ext <<_ACEOF |
| 11253 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11254 | |
| 11255 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 11256 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 11257 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 11258 | #endif |
| 11259 | #ifdef HAVE_XM_XM_H |
| 11260 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 11261 | #endif |
| 11262 | #ifdef HAVE_STRING_H |
| 11263 | # include <string.h> |
| 11264 | #endif |
| 11265 | #if defined(HAVE_STRINGS_H) |
| 11266 | # include <strings.h> |
| 11267 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11268 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11269 | int |
| 11270 | main () |
| 11271 | { |
| 11272 | int i; i = 0; |
| 11273 | ; |
| 11274 | return 0; |
| 11275 | } |
| 11276 | _ACEOF |
| 11277 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11278 | if { (ac_try="$ac_compile" |
| 11279 | case "(($ac_try" in |
| 11280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11281 | *) ac_try_echo=$ac_try;; |
| 11282 | esac |
| 11283 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11284 | $as_echo "$ac_try_echo") >&5 |
| 11285 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11286 | ac_status=$? |
| 11287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11288 | rm -f conftest.er1 |
| 11289 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11290 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11291 | (exit $ac_status); } && { |
| 11292 | test -z "$ac_c_werror_flag" || |
| 11293 | test ! -s conftest.err |
| 11294 | } && test -s conftest.$ac_objext; then |
| 11295 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11296 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11297 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11298 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11300 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11301 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11302 | #define NO_STRINGS_WITH_STRING_H 1 |
| 11303 | _ACEOF |
| 11304 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11305 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11306 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11307 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11308 | |
| 11309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11310 | CPPFLAGS=$cppflags_save |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 11311 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11312 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11313 | if test $ac_cv_c_compiler_gnu = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11314 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 11315 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11316 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11317 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11318 | else |
| 11319 | ac_pattern="Autoconf.*'x'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11320 | cat >conftest.$ac_ext <<_ACEOF |
| 11321 | /* confdefs.h. */ |
| 11322 | _ACEOF |
| 11323 | cat confdefs.h >>conftest.$ac_ext |
| 11324 | cat >>conftest.$ac_ext <<_ACEOF |
| 11325 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11326 | #include <sgtty.h> |
| 11327 | Autoconf TIOCGETP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11328 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11329 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11330 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11331 | ac_cv_prog_gcc_traditional=yes |
| 11332 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11333 | ac_cv_prog_gcc_traditional=no |
| 11334 | fi |
| 11335 | rm -f conftest* |
| 11336 | |
| 11337 | |
| 11338 | if test $ac_cv_prog_gcc_traditional = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11339 | cat >conftest.$ac_ext <<_ACEOF |
| 11340 | /* confdefs.h. */ |
| 11341 | _ACEOF |
| 11342 | cat confdefs.h >>conftest.$ac_ext |
| 11343 | cat >>conftest.$ac_ext <<_ACEOF |
| 11344 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11345 | #include <termio.h> |
| 11346 | Autoconf TCGETA |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11347 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11348 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11349 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11350 | ac_cv_prog_gcc_traditional=yes |
| 11351 | fi |
| 11352 | rm -f conftest* |
| 11353 | |
| 11354 | fi |
| 11355 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11356 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 11357 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11358 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 11359 | CC="$CC -traditional" |
| 11360 | fi |
| 11361 | fi |
| 11362 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11363 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 11364 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11365 | if test "${ac_cv_c_const+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11366 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11367 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11368 | cat >conftest.$ac_ext <<_ACEOF |
| 11369 | /* confdefs.h. */ |
| 11370 | _ACEOF |
| 11371 | cat confdefs.h >>conftest.$ac_ext |
| 11372 | cat >>conftest.$ac_ext <<_ACEOF |
| 11373 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11374 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11375 | int |
| 11376 | main () |
| 11377 | { |
| 11378 | /* FIXME: Include the comments suggested by Paul. */ |
| 11379 | #ifndef __cplusplus |
| 11380 | /* Ultrix mips cc rejects this. */ |
| 11381 | typedef int charset[2]; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11382 | const charset cs; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11383 | /* SunOS 4.1.1 cc rejects this. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11384 | char const *const *pcpcc; |
| 11385 | char **ppc; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11386 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 11387 | struct point {int x, y;}; |
| 11388 | static struct point const zero = {0,0}; |
| 11389 | /* AIX XL C 1.02.0.0 rejects this. |
| 11390 | It does not let you subtract one const X* pointer from another in |
| 11391 | an arm of an if-expression whose if-part is not a constant |
| 11392 | expression */ |
| 11393 | const char *g = "string"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11394 | pcpcc = &g + (g ? g-g : 0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11395 | /* HPUX 7.0 cc rejects these. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11396 | ++pcpcc; |
| 11397 | ppc = (char**) pcpcc; |
| 11398 | pcpcc = (char const *const *) ppc; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11399 | { /* SCO 3.2v4 cc rejects this. */ |
| 11400 | char *t; |
| 11401 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11402 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11403 | *t++ = 0; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11404 | if (s) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11405 | } |
| 11406 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 11407 | int x[] = {25, 17}; |
| 11408 | const int *foo = &x[0]; |
| 11409 | ++foo; |
| 11410 | } |
| 11411 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 11412 | typedef const int *iptr; |
| 11413 | iptr p = 0; |
| 11414 | ++p; |
| 11415 | } |
| 11416 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 11417 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 11418 | struct s { int j; const int *ap[3]; }; |
| 11419 | struct s *b; b->j = 5; |
| 11420 | } |
| 11421 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 11422 | const int foo = 10; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11423 | if (!foo) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11424 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11425 | return !cs[0] && !zero.x; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11426 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11427 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11428 | ; |
| 11429 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11430 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11431 | _ACEOF |
| 11432 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11433 | if { (ac_try="$ac_compile" |
| 11434 | case "(($ac_try" in |
| 11435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11436 | *) ac_try_echo=$ac_try;; |
| 11437 | esac |
| 11438 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11439 | $as_echo "$ac_try_echo") >&5 |
| 11440 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11441 | ac_status=$? |
| 11442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11443 | rm -f conftest.er1 |
| 11444 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11445 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11446 | (exit $ac_status); } && { |
| 11447 | test -z "$ac_c_werror_flag" || |
| 11448 | test ! -s conftest.err |
| 11449 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11450 | ac_cv_c_const=yes |
| 11451 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11452 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11453 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11454 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11455 | ac_cv_c_const=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11456 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11457 | |
| 11458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11459 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11460 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 11461 | $as_echo "$ac_cv_c_const" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11462 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11463 | |
| 11464 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11465 | #define const /**/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11466 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11467 | |
| 11468 | fi |
| 11469 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11470 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 11471 | $as_echo_n "checking for mode_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11472 | if test "${ac_cv_type_mode_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11473 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11474 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11475 | ac_cv_type_mode_t=no |
| 11476 | cat >conftest.$ac_ext <<_ACEOF |
| 11477 | /* confdefs.h. */ |
| 11478 | _ACEOF |
| 11479 | cat confdefs.h >>conftest.$ac_ext |
| 11480 | cat >>conftest.$ac_ext <<_ACEOF |
| 11481 | /* end confdefs.h. */ |
| 11482 | $ac_includes_default |
| 11483 | int |
| 11484 | main () |
| 11485 | { |
| 11486 | if (sizeof (mode_t)) |
| 11487 | return 0; |
| 11488 | ; |
| 11489 | return 0; |
| 11490 | } |
| 11491 | _ACEOF |
| 11492 | rm -f conftest.$ac_objext |
| 11493 | if { (ac_try="$ac_compile" |
| 11494 | case "(($ac_try" in |
| 11495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11496 | *) ac_try_echo=$ac_try;; |
| 11497 | esac |
| 11498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11499 | $as_echo "$ac_try_echo") >&5 |
| 11500 | (eval "$ac_compile") 2>conftest.er1 |
| 11501 | ac_status=$? |
| 11502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11503 | rm -f conftest.er1 |
| 11504 | cat conftest.err >&5 |
| 11505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11506 | (exit $ac_status); } && { |
| 11507 | test -z "$ac_c_werror_flag" || |
| 11508 | test ! -s conftest.err |
| 11509 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11510 | cat >conftest.$ac_ext <<_ACEOF |
| 11511 | /* confdefs.h. */ |
| 11512 | _ACEOF |
| 11513 | cat confdefs.h >>conftest.$ac_ext |
| 11514 | cat >>conftest.$ac_ext <<_ACEOF |
| 11515 | /* end confdefs.h. */ |
| 11516 | $ac_includes_default |
| 11517 | int |
| 11518 | main () |
| 11519 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11520 | if (sizeof ((mode_t))) |
| 11521 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11522 | ; |
| 11523 | return 0; |
| 11524 | } |
| 11525 | _ACEOF |
| 11526 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11527 | if { (ac_try="$ac_compile" |
| 11528 | case "(($ac_try" in |
| 11529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11530 | *) ac_try_echo=$ac_try;; |
| 11531 | esac |
| 11532 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11533 | $as_echo "$ac_try_echo") >&5 |
| 11534 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11535 | ac_status=$? |
| 11536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11537 | rm -f conftest.er1 |
| 11538 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11540 | (exit $ac_status); } && { |
| 11541 | test -z "$ac_c_werror_flag" || |
| 11542 | test ! -s conftest.err |
| 11543 | } && test -s conftest.$ac_objext; then |
| 11544 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11545 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11546 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11547 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11548 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11549 | ac_cv_type_mode_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11550 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11551 | |
| 11552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11553 | else |
| 11554 | $as_echo "$as_me: failed program was:" >&5 |
| 11555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11556 | |
| 11557 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11558 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11559 | |
| 11560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11561 | fi |
| 11562 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 11563 | $as_echo "$ac_cv_type_mode_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11564 | if test $ac_cv_type_mode_t = yes; then |
| 11565 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11566 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11567 | |
| 11568 | cat >>confdefs.h <<_ACEOF |
| 11569 | #define mode_t int |
| 11570 | _ACEOF |
| 11571 | |
| 11572 | fi |
| 11573 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11574 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
| 11575 | $as_echo_n "checking for off_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11576 | if test "${ac_cv_type_off_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11577 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11578 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11579 | ac_cv_type_off_t=no |
| 11580 | cat >conftest.$ac_ext <<_ACEOF |
| 11581 | /* confdefs.h. */ |
| 11582 | _ACEOF |
| 11583 | cat confdefs.h >>conftest.$ac_ext |
| 11584 | cat >>conftest.$ac_ext <<_ACEOF |
| 11585 | /* end confdefs.h. */ |
| 11586 | $ac_includes_default |
| 11587 | int |
| 11588 | main () |
| 11589 | { |
| 11590 | if (sizeof (off_t)) |
| 11591 | return 0; |
| 11592 | ; |
| 11593 | return 0; |
| 11594 | } |
| 11595 | _ACEOF |
| 11596 | rm -f conftest.$ac_objext |
| 11597 | if { (ac_try="$ac_compile" |
| 11598 | case "(($ac_try" in |
| 11599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11600 | *) ac_try_echo=$ac_try;; |
| 11601 | esac |
| 11602 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11603 | $as_echo "$ac_try_echo") >&5 |
| 11604 | (eval "$ac_compile") 2>conftest.er1 |
| 11605 | ac_status=$? |
| 11606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11607 | rm -f conftest.er1 |
| 11608 | cat conftest.err >&5 |
| 11609 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11610 | (exit $ac_status); } && { |
| 11611 | test -z "$ac_c_werror_flag" || |
| 11612 | test ! -s conftest.err |
| 11613 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11614 | cat >conftest.$ac_ext <<_ACEOF |
| 11615 | /* confdefs.h. */ |
| 11616 | _ACEOF |
| 11617 | cat confdefs.h >>conftest.$ac_ext |
| 11618 | cat >>conftest.$ac_ext <<_ACEOF |
| 11619 | /* end confdefs.h. */ |
| 11620 | $ac_includes_default |
| 11621 | int |
| 11622 | main () |
| 11623 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11624 | if (sizeof ((off_t))) |
| 11625 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11626 | ; |
| 11627 | return 0; |
| 11628 | } |
| 11629 | _ACEOF |
| 11630 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11631 | if { (ac_try="$ac_compile" |
| 11632 | case "(($ac_try" in |
| 11633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11634 | *) ac_try_echo=$ac_try;; |
| 11635 | esac |
| 11636 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11637 | $as_echo "$ac_try_echo") >&5 |
| 11638 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11639 | ac_status=$? |
| 11640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11641 | rm -f conftest.er1 |
| 11642 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11643 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11644 | (exit $ac_status); } && { |
| 11645 | test -z "$ac_c_werror_flag" || |
| 11646 | test ! -s conftest.err |
| 11647 | } && test -s conftest.$ac_objext; then |
| 11648 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11649 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11650 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11651 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11652 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11653 | ac_cv_type_off_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11654 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11655 | |
| 11656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11657 | else |
| 11658 | $as_echo "$as_me: failed program was:" >&5 |
| 11659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11660 | |
| 11661 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11662 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11663 | |
| 11664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11665 | fi |
| 11666 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 11667 | $as_echo "$ac_cv_type_off_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11668 | if test $ac_cv_type_off_t = yes; then |
| 11669 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11670 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11671 | |
| 11672 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11673 | #define off_t long int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11674 | _ACEOF |
| 11675 | |
| 11676 | fi |
| 11677 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11678 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 11679 | $as_echo_n "checking for pid_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11680 | if test "${ac_cv_type_pid_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11681 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11682 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11683 | ac_cv_type_pid_t=no |
| 11684 | cat >conftest.$ac_ext <<_ACEOF |
| 11685 | /* confdefs.h. */ |
| 11686 | _ACEOF |
| 11687 | cat confdefs.h >>conftest.$ac_ext |
| 11688 | cat >>conftest.$ac_ext <<_ACEOF |
| 11689 | /* end confdefs.h. */ |
| 11690 | $ac_includes_default |
| 11691 | int |
| 11692 | main () |
| 11693 | { |
| 11694 | if (sizeof (pid_t)) |
| 11695 | return 0; |
| 11696 | ; |
| 11697 | return 0; |
| 11698 | } |
| 11699 | _ACEOF |
| 11700 | rm -f conftest.$ac_objext |
| 11701 | if { (ac_try="$ac_compile" |
| 11702 | case "(($ac_try" in |
| 11703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11704 | *) ac_try_echo=$ac_try;; |
| 11705 | esac |
| 11706 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11707 | $as_echo "$ac_try_echo") >&5 |
| 11708 | (eval "$ac_compile") 2>conftest.er1 |
| 11709 | ac_status=$? |
| 11710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11711 | rm -f conftest.er1 |
| 11712 | cat conftest.err >&5 |
| 11713 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11714 | (exit $ac_status); } && { |
| 11715 | test -z "$ac_c_werror_flag" || |
| 11716 | test ! -s conftest.err |
| 11717 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11718 | cat >conftest.$ac_ext <<_ACEOF |
| 11719 | /* confdefs.h. */ |
| 11720 | _ACEOF |
| 11721 | cat confdefs.h >>conftest.$ac_ext |
| 11722 | cat >>conftest.$ac_ext <<_ACEOF |
| 11723 | /* end confdefs.h. */ |
| 11724 | $ac_includes_default |
| 11725 | int |
| 11726 | main () |
| 11727 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11728 | if (sizeof ((pid_t))) |
| 11729 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11730 | ; |
| 11731 | return 0; |
| 11732 | } |
| 11733 | _ACEOF |
| 11734 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11735 | if { (ac_try="$ac_compile" |
| 11736 | case "(($ac_try" in |
| 11737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11738 | *) ac_try_echo=$ac_try;; |
| 11739 | esac |
| 11740 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11741 | $as_echo "$ac_try_echo") >&5 |
| 11742 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11743 | ac_status=$? |
| 11744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11745 | rm -f conftest.er1 |
| 11746 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11748 | (exit $ac_status); } && { |
| 11749 | test -z "$ac_c_werror_flag" || |
| 11750 | test ! -s conftest.err |
| 11751 | } && test -s conftest.$ac_objext; then |
| 11752 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11753 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11754 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11755 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11756 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11757 | ac_cv_type_pid_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11758 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11759 | |
| 11760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11761 | else |
| 11762 | $as_echo "$as_me: failed program was:" >&5 |
| 11763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11764 | |
| 11765 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11766 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11767 | |
| 11768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11769 | fi |
| 11770 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 11771 | $as_echo "$ac_cv_type_pid_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11772 | if test $ac_cv_type_pid_t = yes; then |
| 11773 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11774 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11775 | |
| 11776 | cat >>confdefs.h <<_ACEOF |
| 11777 | #define pid_t int |
| 11778 | _ACEOF |
| 11779 | |
| 11780 | fi |
| 11781 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11782 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
| 11783 | $as_echo_n "checking for size_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11784 | if test "${ac_cv_type_size_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11785 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11786 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11787 | ac_cv_type_size_t=no |
| 11788 | cat >conftest.$ac_ext <<_ACEOF |
| 11789 | /* confdefs.h. */ |
| 11790 | _ACEOF |
| 11791 | cat confdefs.h >>conftest.$ac_ext |
| 11792 | cat >>conftest.$ac_ext <<_ACEOF |
| 11793 | /* end confdefs.h. */ |
| 11794 | $ac_includes_default |
| 11795 | int |
| 11796 | main () |
| 11797 | { |
| 11798 | if (sizeof (size_t)) |
| 11799 | return 0; |
| 11800 | ; |
| 11801 | return 0; |
| 11802 | } |
| 11803 | _ACEOF |
| 11804 | rm -f conftest.$ac_objext |
| 11805 | if { (ac_try="$ac_compile" |
| 11806 | case "(($ac_try" in |
| 11807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11808 | *) ac_try_echo=$ac_try;; |
| 11809 | esac |
| 11810 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11811 | $as_echo "$ac_try_echo") >&5 |
| 11812 | (eval "$ac_compile") 2>conftest.er1 |
| 11813 | ac_status=$? |
| 11814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11815 | rm -f conftest.er1 |
| 11816 | cat conftest.err >&5 |
| 11817 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11818 | (exit $ac_status); } && { |
| 11819 | test -z "$ac_c_werror_flag" || |
| 11820 | test ! -s conftest.err |
| 11821 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11822 | cat >conftest.$ac_ext <<_ACEOF |
| 11823 | /* confdefs.h. */ |
| 11824 | _ACEOF |
| 11825 | cat confdefs.h >>conftest.$ac_ext |
| 11826 | cat >>conftest.$ac_ext <<_ACEOF |
| 11827 | /* end confdefs.h. */ |
| 11828 | $ac_includes_default |
| 11829 | int |
| 11830 | main () |
| 11831 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11832 | if (sizeof ((size_t))) |
| 11833 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11834 | ; |
| 11835 | return 0; |
| 11836 | } |
| 11837 | _ACEOF |
| 11838 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11839 | if { (ac_try="$ac_compile" |
| 11840 | case "(($ac_try" in |
| 11841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11842 | *) ac_try_echo=$ac_try;; |
| 11843 | esac |
| 11844 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11845 | $as_echo "$ac_try_echo") >&5 |
| 11846 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11847 | ac_status=$? |
| 11848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11849 | rm -f conftest.er1 |
| 11850 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11851 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11852 | (exit $ac_status); } && { |
| 11853 | test -z "$ac_c_werror_flag" || |
| 11854 | test ! -s conftest.err |
| 11855 | } && test -s conftest.$ac_objext; then |
| 11856 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11857 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11858 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11859 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11860 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11861 | ac_cv_type_size_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11862 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11863 | |
| 11864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11865 | else |
| 11866 | $as_echo "$as_me: failed program was:" >&5 |
| 11867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11868 | |
| 11869 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11870 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11871 | |
| 11872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11873 | fi |
| 11874 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 11875 | $as_echo "$ac_cv_type_size_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11876 | if test $ac_cv_type_size_t = yes; then |
| 11877 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11878 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11879 | |
| 11880 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11881 | #define size_t unsigned int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11882 | _ACEOF |
| 11883 | |
| 11884 | fi |
| 11885 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11886 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 11887 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11888 | if test "${ac_cv_type_uid_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11889 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11890 | else |
| 11891 | cat >conftest.$ac_ext <<_ACEOF |
| 11892 | /* confdefs.h. */ |
| 11893 | _ACEOF |
| 11894 | cat confdefs.h >>conftest.$ac_ext |
| 11895 | cat >>conftest.$ac_ext <<_ACEOF |
| 11896 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11897 | #include <sys/types.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11898 | |
| 11899 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11900 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11901 | $EGREP "uid_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11902 | ac_cv_type_uid_t=yes |
| 11903 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11904 | ac_cv_type_uid_t=no |
| 11905 | fi |
| 11906 | rm -f conftest* |
| 11907 | |
| 11908 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11909 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 11910 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11911 | if test $ac_cv_type_uid_t = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11912 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11913 | cat >>confdefs.h <<\_ACEOF |
| 11914 | #define uid_t int |
| 11915 | _ACEOF |
| 11916 | |
| 11917 | |
| 11918 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11919 | #define gid_t int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11920 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11921 | |
| 11922 | fi |
| 11923 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11924 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 11925 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11926 | if test "${ac_cv_header_time+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11927 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11928 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11929 | cat >conftest.$ac_ext <<_ACEOF |
| 11930 | /* confdefs.h. */ |
| 11931 | _ACEOF |
| 11932 | cat confdefs.h >>conftest.$ac_ext |
| 11933 | cat >>conftest.$ac_ext <<_ACEOF |
| 11934 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11935 | #include <sys/types.h> |
| 11936 | #include <sys/time.h> |
| 11937 | #include <time.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11938 | |
| 11939 | int |
| 11940 | main () |
| 11941 | { |
| 11942 | if ((struct tm *) 0) |
| 11943 | return 0; |
| 11944 | ; |
| 11945 | return 0; |
| 11946 | } |
| 11947 | _ACEOF |
| 11948 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11949 | if { (ac_try="$ac_compile" |
| 11950 | case "(($ac_try" in |
| 11951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11952 | *) ac_try_echo=$ac_try;; |
| 11953 | esac |
| 11954 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11955 | $as_echo "$ac_try_echo") >&5 |
| 11956 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11957 | ac_status=$? |
| 11958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11959 | rm -f conftest.er1 |
| 11960 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11962 | (exit $ac_status); } && { |
| 11963 | test -z "$ac_c_werror_flag" || |
| 11964 | test ! -s conftest.err |
| 11965 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11966 | ac_cv_header_time=yes |
| 11967 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11968 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11969 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11970 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11971 | ac_cv_header_time=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11972 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11973 | |
| 11974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11975 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11976 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 11977 | $as_echo "$ac_cv_header_time" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11978 | if test $ac_cv_header_time = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11979 | |
| 11980 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11981 | #define TIME_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11982 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11983 | |
| 11984 | fi |
| 11985 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11986 | { $as_echo "$as_me:$LINENO: checking for ino_t" >&5 |
| 11987 | $as_echo_n "checking for ino_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11988 | if test "${ac_cv_type_ino_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11989 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11990 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11991 | ac_cv_type_ino_t=no |
| 11992 | cat >conftest.$ac_ext <<_ACEOF |
| 11993 | /* confdefs.h. */ |
| 11994 | _ACEOF |
| 11995 | cat confdefs.h >>conftest.$ac_ext |
| 11996 | cat >>conftest.$ac_ext <<_ACEOF |
| 11997 | /* end confdefs.h. */ |
| 11998 | $ac_includes_default |
| 11999 | int |
| 12000 | main () |
| 12001 | { |
| 12002 | if (sizeof (ino_t)) |
| 12003 | return 0; |
| 12004 | ; |
| 12005 | return 0; |
| 12006 | } |
| 12007 | _ACEOF |
| 12008 | rm -f conftest.$ac_objext |
| 12009 | if { (ac_try="$ac_compile" |
| 12010 | case "(($ac_try" in |
| 12011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12012 | *) ac_try_echo=$ac_try;; |
| 12013 | esac |
| 12014 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12015 | $as_echo "$ac_try_echo") >&5 |
| 12016 | (eval "$ac_compile") 2>conftest.er1 |
| 12017 | ac_status=$? |
| 12018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12019 | rm -f conftest.er1 |
| 12020 | cat conftest.err >&5 |
| 12021 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12022 | (exit $ac_status); } && { |
| 12023 | test -z "$ac_c_werror_flag" || |
| 12024 | test ! -s conftest.err |
| 12025 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12026 | cat >conftest.$ac_ext <<_ACEOF |
| 12027 | /* confdefs.h. */ |
| 12028 | _ACEOF |
| 12029 | cat confdefs.h >>conftest.$ac_ext |
| 12030 | cat >>conftest.$ac_ext <<_ACEOF |
| 12031 | /* end confdefs.h. */ |
| 12032 | $ac_includes_default |
| 12033 | int |
| 12034 | main () |
| 12035 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12036 | if (sizeof ((ino_t))) |
| 12037 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12038 | ; |
| 12039 | return 0; |
| 12040 | } |
| 12041 | _ACEOF |
| 12042 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12043 | if { (ac_try="$ac_compile" |
| 12044 | case "(($ac_try" in |
| 12045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12046 | *) ac_try_echo=$ac_try;; |
| 12047 | esac |
| 12048 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12049 | $as_echo "$ac_try_echo") >&5 |
| 12050 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12051 | ac_status=$? |
| 12052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12053 | rm -f conftest.er1 |
| 12054 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12055 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12056 | (exit $ac_status); } && { |
| 12057 | test -z "$ac_c_werror_flag" || |
| 12058 | test ! -s conftest.err |
| 12059 | } && test -s conftest.$ac_objext; then |
| 12060 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12061 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12062 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12063 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12064 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12065 | ac_cv_type_ino_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12066 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12067 | |
| 12068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12069 | else |
| 12070 | $as_echo "$as_me: failed program was:" >&5 |
| 12071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12072 | |
| 12073 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12074 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12075 | |
| 12076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12077 | fi |
| 12078 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
| 12079 | $as_echo "$ac_cv_type_ino_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12080 | if test $ac_cv_type_ino_t = yes; then |
| 12081 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12082 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12083 | |
| 12084 | cat >>confdefs.h <<_ACEOF |
| 12085 | #define ino_t long |
| 12086 | _ACEOF |
| 12087 | |
| 12088 | fi |
| 12089 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12090 | { $as_echo "$as_me:$LINENO: checking for dev_t" >&5 |
| 12091 | $as_echo_n "checking for dev_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12092 | if test "${ac_cv_type_dev_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12093 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12094 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12095 | ac_cv_type_dev_t=no |
| 12096 | cat >conftest.$ac_ext <<_ACEOF |
| 12097 | /* confdefs.h. */ |
| 12098 | _ACEOF |
| 12099 | cat confdefs.h >>conftest.$ac_ext |
| 12100 | cat >>conftest.$ac_ext <<_ACEOF |
| 12101 | /* end confdefs.h. */ |
| 12102 | $ac_includes_default |
| 12103 | int |
| 12104 | main () |
| 12105 | { |
| 12106 | if (sizeof (dev_t)) |
| 12107 | return 0; |
| 12108 | ; |
| 12109 | return 0; |
| 12110 | } |
| 12111 | _ACEOF |
| 12112 | rm -f conftest.$ac_objext |
| 12113 | if { (ac_try="$ac_compile" |
| 12114 | case "(($ac_try" in |
| 12115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12116 | *) ac_try_echo=$ac_try;; |
| 12117 | esac |
| 12118 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12119 | $as_echo "$ac_try_echo") >&5 |
| 12120 | (eval "$ac_compile") 2>conftest.er1 |
| 12121 | ac_status=$? |
| 12122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12123 | rm -f conftest.er1 |
| 12124 | cat conftest.err >&5 |
| 12125 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12126 | (exit $ac_status); } && { |
| 12127 | test -z "$ac_c_werror_flag" || |
| 12128 | test ! -s conftest.err |
| 12129 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12130 | cat >conftest.$ac_ext <<_ACEOF |
| 12131 | /* confdefs.h. */ |
| 12132 | _ACEOF |
| 12133 | cat confdefs.h >>conftest.$ac_ext |
| 12134 | cat >>conftest.$ac_ext <<_ACEOF |
| 12135 | /* end confdefs.h. */ |
| 12136 | $ac_includes_default |
| 12137 | int |
| 12138 | main () |
| 12139 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12140 | if (sizeof ((dev_t))) |
| 12141 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12142 | ; |
| 12143 | return 0; |
| 12144 | } |
| 12145 | _ACEOF |
| 12146 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12147 | if { (ac_try="$ac_compile" |
| 12148 | case "(($ac_try" in |
| 12149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12150 | *) ac_try_echo=$ac_try;; |
| 12151 | esac |
| 12152 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12153 | $as_echo "$ac_try_echo") >&5 |
| 12154 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12155 | ac_status=$? |
| 12156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12157 | rm -f conftest.er1 |
| 12158 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12159 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12160 | (exit $ac_status); } && { |
| 12161 | test -z "$ac_c_werror_flag" || |
| 12162 | test ! -s conftest.err |
| 12163 | } && test -s conftest.$ac_objext; then |
| 12164 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12165 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12166 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12168 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12169 | ac_cv_type_dev_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12170 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12171 | |
| 12172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12173 | else |
| 12174 | $as_echo "$as_me: failed program was:" >&5 |
| 12175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12176 | |
| 12177 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12178 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12179 | |
| 12180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12181 | fi |
| 12182 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
| 12183 | $as_echo "$ac_cv_type_dev_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12184 | if test $ac_cv_type_dev_t = yes; then |
| 12185 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12186 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12187 | |
| 12188 | cat >>confdefs.h <<_ACEOF |
| 12189 | #define dev_t unsigned |
| 12190 | _ACEOF |
| 12191 | |
| 12192 | fi |
| 12193 | |
| 12194 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12195 | { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5 |
| 12196 | $as_echo_n "checking for rlim_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12197 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12198 | { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 12199 | $as_echo "(cached) $ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12200 | else |
| 12201 | cat >conftest.$ac_ext <<_ACEOF |
| 12202 | /* confdefs.h. */ |
| 12203 | _ACEOF |
| 12204 | cat confdefs.h >>conftest.$ac_ext |
| 12205 | cat >>conftest.$ac_ext <<_ACEOF |
| 12206 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12207 | |
| 12208 | #include <sys/types.h> |
| 12209 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12210 | # include <stdlib.h> |
| 12211 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12212 | #endif |
| 12213 | #ifdef HAVE_SYS_RESOURCE_H |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12214 | # include <sys/resource.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12215 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12216 | |
| 12217 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12218 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12219 | $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] | 12220 | ac_cv_type_rlim_t=yes |
| 12221 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12222 | ac_cv_type_rlim_t=no |
| 12223 | fi |
| 12224 | rm -f conftest* |
| 12225 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12226 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
| 12227 | $as_echo "$ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12228 | fi |
| 12229 | if test $ac_cv_type_rlim_t = no; then |
| 12230 | cat >> confdefs.h <<\EOF |
| 12231 | #define rlim_t unsigned long |
| 12232 | EOF |
| 12233 | fi |
| 12234 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12235 | { $as_echo "$as_me:$LINENO: checking for stack_t" >&5 |
| 12236 | $as_echo_n "checking for stack_t... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12237 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12238 | { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
| 12239 | $as_echo "(cached) $ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12240 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12241 | cat >conftest.$ac_ext <<_ACEOF |
| 12242 | /* confdefs.h. */ |
| 12243 | _ACEOF |
| 12244 | cat confdefs.h >>conftest.$ac_ext |
| 12245 | cat >>conftest.$ac_ext <<_ACEOF |
| 12246 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12247 | |
| 12248 | #include <sys/types.h> |
| 12249 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12250 | # include <stdlib.h> |
| 12251 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12252 | #endif |
| 12253 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12254 | |
| 12255 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12256 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12257 | $EGREP "stack_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12258 | ac_cv_type_stack_t=yes |
| 12259 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12260 | ac_cv_type_stack_t=no |
| 12261 | fi |
| 12262 | rm -f conftest* |
| 12263 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12264 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
| 12265 | $as_echo "$ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12266 | fi |
| 12267 | if test $ac_cv_type_stack_t = no; then |
| 12268 | cat >> confdefs.h <<\EOF |
| 12269 | #define stack_t struct sigaltstack |
| 12270 | EOF |
| 12271 | fi |
| 12272 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12273 | { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
| 12274 | $as_echo_n "checking whether stack_t has an ss_base field... " >&6; } |
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 | |
| 12282 | #include <sys/types.h> |
| 12283 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12284 | # include <stdlib.h> |
| 12285 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12286 | #endif |
| 12287 | #include <signal.h> |
| 12288 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12289 | |
| 12290 | int |
| 12291 | main () |
| 12292 | { |
| 12293 | stack_t sigstk; sigstk.ss_base = 0; |
| 12294 | ; |
| 12295 | return 0; |
| 12296 | } |
| 12297 | _ACEOF |
| 12298 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12299 | if { (ac_try="$ac_compile" |
| 12300 | case "(($ac_try" in |
| 12301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12302 | *) ac_try_echo=$ac_try;; |
| 12303 | esac |
| 12304 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12305 | $as_echo "$ac_try_echo") >&5 |
| 12306 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12307 | ac_status=$? |
| 12308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12309 | rm -f conftest.er1 |
| 12310 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12312 | (exit $ac_status); } && { |
| 12313 | test -z "$ac_c_werror_flag" || |
| 12314 | test ! -s conftest.err |
| 12315 | } && test -s conftest.$ac_objext; then |
| 12316 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12317 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12318 | #define HAVE_SS_BASE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12319 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12320 | |
| 12321 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12322 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12324 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12325 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12326 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12327 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12328 | |
| 12329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12330 | |
| 12331 | olibs="$LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12332 | { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
| 12333 | $as_echo_n "checking --with-tlib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12334 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12335 | # Check whether --with-tlib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12336 | if test "${with_tlib+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12337 | withval=$with_tlib; |
| 12338 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12339 | |
| 12340 | if test -n "$with_tlib"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12341 | { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5 |
| 12342 | $as_echo "$with_tlib" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12343 | LIBS="$LIBS -l$with_tlib" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12344 | { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
| 12345 | $as_echo_n "checking for linking with $with_tlib library... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12346 | cat >conftest.$ac_ext <<_ACEOF |
| 12347 | /* confdefs.h. */ |
| 12348 | _ACEOF |
| 12349 | cat confdefs.h >>conftest.$ac_ext |
| 12350 | cat >>conftest.$ac_ext <<_ACEOF |
| 12351 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12352 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12353 | int |
| 12354 | main () |
| 12355 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12356 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12357 | ; |
| 12358 | return 0; |
| 12359 | } |
| 12360 | _ACEOF |
| 12361 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12362 | if { (ac_try="$ac_link" |
| 12363 | case "(($ac_try" in |
| 12364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12365 | *) ac_try_echo=$ac_try;; |
| 12366 | esac |
| 12367 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12368 | $as_echo "$ac_try_echo") >&5 |
| 12369 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12370 | ac_status=$? |
| 12371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12372 | rm -f conftest.er1 |
| 12373 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12374 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12375 | (exit $ac_status); } && { |
| 12376 | test -z "$ac_c_werror_flag" || |
| 12377 | test ! -s conftest.err |
| 12378 | } && test -s conftest$ac_exeext && { |
| 12379 | test "$cross_compiling" = yes || |
| 12380 | $as_test_x conftest$ac_exeext |
| 12381 | }; then |
| 12382 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 12383 | $as_echo "OK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12384 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12385 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12387 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12388 | { { $as_echo "$as_me:$LINENO: error: FAILED" >&5 |
| 12389 | $as_echo "$as_me: error: FAILED" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12390 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12391 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12392 | |
| 12393 | rm -rf conftest.dSYM |
| 12394 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12395 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12396 | olibs="$LIBS" |
| 12397 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12398 | { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
| 12399 | $as_echo "empty: automatic terminal library selection" >&6; } |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 12400 | case "`uname -s 2>/dev/null`" in |
| 12401 | OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12402 | *) tlibs="ncurses termlib termcap curses";; |
| 12403 | esac |
| 12404 | for libname in $tlibs; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12405 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12406 | as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
| 12407 | { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
| 12408 | $as_echo_n "checking for tgetent in -l${libname}... " >&6; } |
| 12409 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12410 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12411 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12412 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12413 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12414 | cat >conftest.$ac_ext <<_ACEOF |
| 12415 | /* confdefs.h. */ |
| 12416 | _ACEOF |
| 12417 | cat confdefs.h >>conftest.$ac_ext |
| 12418 | cat >>conftest.$ac_ext <<_ACEOF |
| 12419 | /* end confdefs.h. */ |
| 12420 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12421 | /* Override any GCC internal prototype to avoid an error. |
| 12422 | Use char because int might match the return type of a GCC |
| 12423 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12424 | #ifdef __cplusplus |
| 12425 | extern "C" |
| 12426 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12427 | char tgetent (); |
| 12428 | int |
| 12429 | main () |
| 12430 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12431 | return tgetent (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12432 | ; |
| 12433 | return 0; |
| 12434 | } |
| 12435 | _ACEOF |
| 12436 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12437 | if { (ac_try="$ac_link" |
| 12438 | case "(($ac_try" in |
| 12439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12440 | *) ac_try_echo=$ac_try;; |
| 12441 | esac |
| 12442 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12443 | $as_echo "$ac_try_echo") >&5 |
| 12444 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12445 | ac_status=$? |
| 12446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12447 | rm -f conftest.er1 |
| 12448 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12450 | (exit $ac_status); } && { |
| 12451 | test -z "$ac_c_werror_flag" || |
| 12452 | test ! -s conftest.err |
| 12453 | } && test -s conftest$ac_exeext && { |
| 12454 | test "$cross_compiling" = yes || |
| 12455 | $as_test_x conftest$ac_exeext |
| 12456 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12457 | eval "$as_ac_Lib=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12458 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12459 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12460 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12461 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12462 | eval "$as_ac_Lib=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12463 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12464 | |
| 12465 | rm -rf conftest.dSYM |
| 12466 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12467 | conftest$ac_exeext conftest.$ac_ext |
| 12468 | LIBS=$ac_check_lib_save_LIBS |
| 12469 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12470 | ac_res=`eval 'as_val=${'$as_ac_Lib'} |
| 12471 | $as_echo "$as_val"'` |
| 12472 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12473 | $as_echo "$ac_res" >&6; } |
| 12474 | if test `eval 'as_val=${'$as_ac_Lib'} |
| 12475 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12476 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12477 | #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12478 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12479 | |
| 12480 | LIBS="-l${libname} $LIBS" |
| 12481 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12482 | fi |
| 12483 | |
| 12484 | if test "x$olibs" != "x$LIBS"; then |
| 12485 | if test "$cross_compiling" = yes; then |
| 12486 | res="FAIL" |
| 12487 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12488 | cat >conftest.$ac_ext <<_ACEOF |
| 12489 | /* confdefs.h. */ |
| 12490 | _ACEOF |
| 12491 | cat confdefs.h >>conftest.$ac_ext |
| 12492 | cat >>conftest.$ac_ext <<_ACEOF |
| 12493 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12494 | |
| 12495 | #ifdef HAVE_TERMCAP_H |
| 12496 | # include <termcap.h> |
| 12497 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12498 | #if STDC_HEADERS |
| 12499 | # include <stdlib.h> |
| 12500 | # include <stddef.h> |
| 12501 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12502 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12503 | _ACEOF |
| 12504 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12505 | if { (ac_try="$ac_link" |
| 12506 | case "(($ac_try" in |
| 12507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12508 | *) ac_try_echo=$ac_try;; |
| 12509 | esac |
| 12510 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12511 | $as_echo "$ac_try_echo") >&5 |
| 12512 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12513 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12515 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12516 | { (case "(($ac_try" in |
| 12517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12518 | *) ac_try_echo=$ac_try;; |
| 12519 | esac |
| 12520 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12521 | $as_echo "$ac_try_echo") >&5 |
| 12522 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12523 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12525 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12526 | res="OK" |
| 12527 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12528 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12529 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12530 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12531 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12532 | ( exit $ac_status ) |
| 12533 | res="FAIL" |
| 12534 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12535 | rm -rf conftest.dSYM |
| 12536 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12537 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12538 | |
| 12539 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12540 | if test "$res" = "OK"; then |
| 12541 | break |
| 12542 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12543 | { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
| 12544 | $as_echo "$libname library is not usable" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12545 | LIBS="$olibs" |
| 12546 | fi |
| 12547 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12548 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12549 | { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5 |
| 12550 | $as_echo "no terminal library found" >&6; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12551 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12552 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12553 | |
| 12554 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12555 | { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5 |
| 12556 | $as_echo_n "checking for tgetent()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12557 | cat >conftest.$ac_ext <<_ACEOF |
| 12558 | /* confdefs.h. */ |
| 12559 | _ACEOF |
| 12560 | cat confdefs.h >>conftest.$ac_ext |
| 12561 | cat >>conftest.$ac_ext <<_ACEOF |
| 12562 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12563 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12564 | int |
| 12565 | main () |
| 12566 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12567 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12568 | ; |
| 12569 | return 0; |
| 12570 | } |
| 12571 | _ACEOF |
| 12572 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12573 | if { (ac_try="$ac_link" |
| 12574 | case "(($ac_try" in |
| 12575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12576 | *) ac_try_echo=$ac_try;; |
| 12577 | esac |
| 12578 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12579 | $as_echo "$ac_try_echo") >&5 |
| 12580 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12581 | ac_status=$? |
| 12582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12583 | rm -f conftest.er1 |
| 12584 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12585 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12586 | (exit $ac_status); } && { |
| 12587 | test -z "$ac_c_werror_flag" || |
| 12588 | test ! -s conftest.err |
| 12589 | } && test -s conftest$ac_exeext && { |
| 12590 | test "$cross_compiling" = yes || |
| 12591 | $as_test_x conftest$ac_exeext |
| 12592 | }; then |
| 12593 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12594 | $as_echo "yes" >&6; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12595 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12596 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12598 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12599 | { { $as_echo "$as_me:$LINENO: error: NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12600 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12601 | Or specify the name of the library with --with-tlib." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12602 | $as_echo "$as_me: error: NOT FOUND! |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12603 | You need to install a terminal library; for example ncurses. |
| 12604 | Or specify the name of the library with --with-tlib." >&2;} |
| 12605 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12606 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12607 | |
| 12608 | rm -rf conftest.dSYM |
| 12609 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12610 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12611 | fi |
| 12612 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12613 | { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 |
| 12614 | $as_echo_n "checking whether we talk terminfo... " >&6; } |
| 12615 | if test "${vim_cv_terminfo+set}" = set; then |
| 12616 | $as_echo_n "(cached) " >&6 |
| 12617 | else |
| 12618 | |
| 12619 | if test "$cross_compiling" = yes; then |
| 12620 | |
| 12621 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5 |
| 12622 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12623 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12624 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12625 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12626 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12627 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12628 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12629 | #ifdef HAVE_TERMCAP_H |
| 12630 | # include <termcap.h> |
| 12631 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12632 | #ifdef HAVE_STRING_H |
| 12633 | # include <string.h> |
| 12634 | #endif |
| 12635 | #if STDC_HEADERS |
| 12636 | # include <stdlib.h> |
| 12637 | # include <stddef.h> |
| 12638 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12639 | main() |
| 12640 | {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12641 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12642 | _ACEOF |
| 12643 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12644 | if { (ac_try="$ac_link" |
| 12645 | case "(($ac_try" in |
| 12646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12647 | *) ac_try_echo=$ac_try;; |
| 12648 | esac |
| 12649 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12650 | $as_echo "$ac_try_echo") >&5 |
| 12651 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12652 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12653 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12654 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12655 | { (case "(($ac_try" in |
| 12656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12657 | *) ac_try_echo=$ac_try;; |
| 12658 | esac |
| 12659 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12660 | $as_echo "$ac_try_echo") >&5 |
| 12661 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12662 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12663 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12664 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12665 | |
| 12666 | vim_cv_terminfo=no |
| 12667 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12668 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12669 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12670 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12672 | |
| 12673 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12674 | |
| 12675 | vim_cv_terminfo=yes |
| 12676 | |
| 12677 | fi |
| 12678 | rm -rf conftest.dSYM |
| 12679 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12680 | fi |
| 12681 | |
| 12682 | |
| 12683 | |
| 12684 | fi |
| 12685 | { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5 |
| 12686 | $as_echo "$vim_cv_terminfo" >&6; } |
| 12687 | |
| 12688 | if test "x$vim_cv_terminfo" = "xyes" ; then |
| 12689 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12690 | #define TERMINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12691 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12692 | |
| 12693 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12694 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12695 | if test "x$olibs" != "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12696 | { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
| 12697 | $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } |
| 12698 | if test "${vim_cv_tgent+set}" = set; then |
| 12699 | $as_echo_n "(cached) " >&6 |
| 12700 | else |
| 12701 | |
| 12702 | if test "$cross_compiling" = yes; then |
| 12703 | |
| 12704 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 12705 | $as_echo "$as_me: error: failed to compile test program." >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12706 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12707 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12708 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12709 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12710 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12711 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12712 | #ifdef HAVE_TERMCAP_H |
| 12713 | # include <termcap.h> |
| 12714 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12715 | #if STDC_HEADERS |
| 12716 | # include <stdlib.h> |
| 12717 | # include <stddef.h> |
| 12718 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12719 | main() |
| 12720 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12721 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12722 | _ACEOF |
| 12723 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12724 | if { (ac_try="$ac_link" |
| 12725 | case "(($ac_try" in |
| 12726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12727 | *) ac_try_echo=$ac_try;; |
| 12728 | esac |
| 12729 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12730 | $as_echo "$ac_try_echo") >&5 |
| 12731 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12732 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12733 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12734 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12735 | { (case "(($ac_try" in |
| 12736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12737 | *) ac_try_echo=$ac_try;; |
| 12738 | esac |
| 12739 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12740 | $as_echo "$ac_try_echo") >&5 |
| 12741 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12742 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12744 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12745 | |
| 12746 | vim_cv_tgent=zero |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12747 | |
| 12748 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12749 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12750 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12752 | |
| 12753 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12754 | |
| 12755 | vim_cv_tgent=non-zero |
| 12756 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12757 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12758 | rm -rf conftest.dSYM |
| 12759 | rm -f core *.core core.conftest.* 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] | 12760 | fi |
| 12761 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12762 | |
| 12763 | |
| 12764 | fi |
| 12765 | { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5 |
| 12766 | $as_echo "$vim_cv_tgent" >&6; } |
| 12767 | |
| 12768 | if test "x$vim_cv_tgent" = "xzero" ; then |
| 12769 | cat >>confdefs.h <<\_ACEOF |
| 12770 | #define TGETENT_ZERO_ERR 0 |
| 12771 | _ACEOF |
| 12772 | |
| 12773 | fi |
| 12774 | fi |
| 12775 | |
| 12776 | { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
| 12777 | $as_echo_n "checking whether termcap.h contains ospeed... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12778 | cat >conftest.$ac_ext <<_ACEOF |
| 12779 | /* confdefs.h. */ |
| 12780 | _ACEOF |
| 12781 | cat confdefs.h >>conftest.$ac_ext |
| 12782 | cat >>conftest.$ac_ext <<_ACEOF |
| 12783 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12784 | |
| 12785 | #ifdef HAVE_TERMCAP_H |
| 12786 | # include <termcap.h> |
| 12787 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12788 | |
| 12789 | int |
| 12790 | main () |
| 12791 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12792 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12793 | ; |
| 12794 | return 0; |
| 12795 | } |
| 12796 | _ACEOF |
| 12797 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12798 | if { (ac_try="$ac_link" |
| 12799 | case "(($ac_try" in |
| 12800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12801 | *) ac_try_echo=$ac_try;; |
| 12802 | esac |
| 12803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12804 | $as_echo "$ac_try_echo") >&5 |
| 12805 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12806 | ac_status=$? |
| 12807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12808 | rm -f conftest.er1 |
| 12809 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12810 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12811 | (exit $ac_status); } && { |
| 12812 | test -z "$ac_c_werror_flag" || |
| 12813 | test ! -s conftest.err |
| 12814 | } && test -s conftest$ac_exeext && { |
| 12815 | test "$cross_compiling" = yes || |
| 12816 | $as_test_x conftest$ac_exeext |
| 12817 | }; then |
| 12818 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12819 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12820 | #define HAVE_OSPEED 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12821 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12822 | |
| 12823 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12824 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12826 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12827 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12828 | $as_echo "no" >&6; } |
| 12829 | { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
| 12830 | $as_echo_n "checking whether ospeed can be extern... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12831 | cat >conftest.$ac_ext <<_ACEOF |
| 12832 | /* confdefs.h. */ |
| 12833 | _ACEOF |
| 12834 | cat confdefs.h >>conftest.$ac_ext |
| 12835 | cat >>conftest.$ac_ext <<_ACEOF |
| 12836 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12837 | |
| 12838 | #ifdef HAVE_TERMCAP_H |
| 12839 | # include <termcap.h> |
| 12840 | #endif |
| 12841 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12842 | |
| 12843 | int |
| 12844 | main () |
| 12845 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12846 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12847 | ; |
| 12848 | return 0; |
| 12849 | } |
| 12850 | _ACEOF |
| 12851 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12852 | if { (ac_try="$ac_link" |
| 12853 | case "(($ac_try" in |
| 12854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12855 | *) ac_try_echo=$ac_try;; |
| 12856 | esac |
| 12857 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12858 | $as_echo "$ac_try_echo") >&5 |
| 12859 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12860 | ac_status=$? |
| 12861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12862 | rm -f conftest.er1 |
| 12863 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12865 | (exit $ac_status); } && { |
| 12866 | test -z "$ac_c_werror_flag" || |
| 12867 | test ! -s conftest.err |
| 12868 | } && test -s conftest$ac_exeext && { |
| 12869 | test "$cross_compiling" = yes || |
| 12870 | $as_test_x conftest$ac_exeext |
| 12871 | }; then |
| 12872 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12873 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12874 | #define OSPEED_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12875 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12876 | |
| 12877 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12878 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12879 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12880 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12881 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12882 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12883 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12884 | |
| 12885 | rm -rf conftest.dSYM |
| 12886 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12887 | conftest$ac_exeext conftest.$ac_ext |
| 12888 | |
| 12889 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12890 | |
| 12891 | rm -rf conftest.dSYM |
| 12892 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12893 | conftest$ac_exeext conftest.$ac_ext |
| 12894 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12895 | { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
| 12896 | $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12897 | cat >conftest.$ac_ext <<_ACEOF |
| 12898 | /* confdefs.h. */ |
| 12899 | _ACEOF |
| 12900 | cat confdefs.h >>conftest.$ac_ext |
| 12901 | cat >>conftest.$ac_ext <<_ACEOF |
| 12902 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12903 | |
| 12904 | #ifdef HAVE_TERMCAP_H |
| 12905 | # include <termcap.h> |
| 12906 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12907 | |
| 12908 | int |
| 12909 | main () |
| 12910 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12911 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12912 | ; |
| 12913 | return 0; |
| 12914 | } |
| 12915 | _ACEOF |
| 12916 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12917 | if { (ac_try="$ac_link" |
| 12918 | case "(($ac_try" in |
| 12919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12920 | *) ac_try_echo=$ac_try;; |
| 12921 | esac |
| 12922 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12923 | $as_echo "$ac_try_echo") >&5 |
| 12924 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12925 | ac_status=$? |
| 12926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12927 | rm -f conftest.er1 |
| 12928 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12930 | (exit $ac_status); } && { |
| 12931 | test -z "$ac_c_werror_flag" || |
| 12932 | test ! -s conftest.err |
| 12933 | } && test -s conftest$ac_exeext && { |
| 12934 | test "$cross_compiling" = yes || |
| 12935 | $as_test_x conftest$ac_exeext |
| 12936 | }; then |
| 12937 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12938 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12939 | #define HAVE_UP_BC_PC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12940 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12941 | |
| 12942 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12943 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12945 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12946 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12947 | $as_echo "no" >&6; } |
| 12948 | { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
| 12949 | $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12950 | cat >conftest.$ac_ext <<_ACEOF |
| 12951 | /* confdefs.h. */ |
| 12952 | _ACEOF |
| 12953 | cat confdefs.h >>conftest.$ac_ext |
| 12954 | cat >>conftest.$ac_ext <<_ACEOF |
| 12955 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12956 | |
| 12957 | #ifdef HAVE_TERMCAP_H |
| 12958 | # include <termcap.h> |
| 12959 | #endif |
| 12960 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12961 | |
| 12962 | int |
| 12963 | main () |
| 12964 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12965 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12966 | ; |
| 12967 | return 0; |
| 12968 | } |
| 12969 | _ACEOF |
| 12970 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12971 | if { (ac_try="$ac_link" |
| 12972 | case "(($ac_try" in |
| 12973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12974 | *) ac_try_echo=$ac_try;; |
| 12975 | esac |
| 12976 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12977 | $as_echo "$ac_try_echo") >&5 |
| 12978 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12979 | ac_status=$? |
| 12980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12981 | rm -f conftest.er1 |
| 12982 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12983 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12984 | (exit $ac_status); } && { |
| 12985 | test -z "$ac_c_werror_flag" || |
| 12986 | test ! -s conftest.err |
| 12987 | } && test -s conftest$ac_exeext && { |
| 12988 | test "$cross_compiling" = yes || |
| 12989 | $as_test_x conftest$ac_exeext |
| 12990 | }; then |
| 12991 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12992 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12993 | #define UP_BC_PC_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12994 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12995 | |
| 12996 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12997 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12998 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12999 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13000 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13001 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13002 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13003 | |
| 13004 | rm -rf conftest.dSYM |
| 13005 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13006 | conftest$ac_exeext conftest.$ac_ext |
| 13007 | |
| 13008 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13009 | |
| 13010 | rm -rf conftest.dSYM |
| 13011 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13012 | conftest$ac_exeext conftest.$ac_ext |
| 13013 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13014 | { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
| 13015 | $as_echo_n "checking whether tputs() uses outfuntype... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13016 | cat >conftest.$ac_ext <<_ACEOF |
| 13017 | /* confdefs.h. */ |
| 13018 | _ACEOF |
| 13019 | cat confdefs.h >>conftest.$ac_ext |
| 13020 | cat >>conftest.$ac_ext <<_ACEOF |
| 13021 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13022 | |
| 13023 | #ifdef HAVE_TERMCAP_H |
| 13024 | # include <termcap.h> |
| 13025 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13026 | |
| 13027 | int |
| 13028 | main () |
| 13029 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13030 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13031 | ; |
| 13032 | return 0; |
| 13033 | } |
| 13034 | _ACEOF |
| 13035 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13036 | if { (ac_try="$ac_compile" |
| 13037 | case "(($ac_try" in |
| 13038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13039 | *) ac_try_echo=$ac_try;; |
| 13040 | esac |
| 13041 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13042 | $as_echo "$ac_try_echo") >&5 |
| 13043 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13044 | ac_status=$? |
| 13045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13046 | rm -f conftest.er1 |
| 13047 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13049 | (exit $ac_status); } && { |
| 13050 | test -z "$ac_c_werror_flag" || |
| 13051 | test ! -s conftest.err |
| 13052 | } && test -s conftest.$ac_objext; then |
| 13053 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13054 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13055 | #define HAVE_OUTFUNTYPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13056 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13057 | |
| 13058 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13059 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13060 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13061 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13062 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13063 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13064 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13065 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13067 | |
| 13068 | { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13069 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13070 | cat >conftest.$ac_ext <<_ACEOF |
| 13071 | /* confdefs.h. */ |
| 13072 | _ACEOF |
| 13073 | cat confdefs.h >>conftest.$ac_ext |
| 13074 | cat >>conftest.$ac_ext <<_ACEOF |
| 13075 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13076 | |
| 13077 | #include <sys/types.h> |
| 13078 | #include <sys/time.h> |
| 13079 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13080 | int |
| 13081 | main () |
| 13082 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13083 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13084 | ; |
| 13085 | return 0; |
| 13086 | } |
| 13087 | _ACEOF |
| 13088 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13089 | if { (ac_try="$ac_compile" |
| 13090 | case "(($ac_try" in |
| 13091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13092 | *) ac_try_echo=$ac_try;; |
| 13093 | esac |
| 13094 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13095 | $as_echo "$ac_try_echo") >&5 |
| 13096 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13097 | ac_status=$? |
| 13098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13099 | rm -f conftest.er1 |
| 13100 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13101 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13102 | (exit $ac_status); } && { |
| 13103 | test -z "$ac_c_werror_flag" || |
| 13104 | test ! -s conftest.err |
| 13105 | } && test -s conftest.$ac_objext; then |
| 13106 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13107 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13108 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13109 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13110 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13111 | |
| 13112 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13113 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13115 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13116 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13117 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13118 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13119 | |
| 13120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13121 | |
| 13122 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13123 | { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 13124 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13125 | if test -r /dev/ptc; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13126 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13127 | #define HAVE_DEV_PTC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13128 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13129 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13130 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13131 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13132 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13133 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13134 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13135 | fi |
| 13136 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13137 | { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 |
| 13138 | $as_echo_n "checking for SVR4 ptys... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13139 | if test -c /dev/ptmx ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13140 | cat >conftest.$ac_ext <<_ACEOF |
| 13141 | /* confdefs.h. */ |
| 13142 | _ACEOF |
| 13143 | cat confdefs.h >>conftest.$ac_ext |
| 13144 | cat >>conftest.$ac_ext <<_ACEOF |
| 13145 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13146 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13147 | int |
| 13148 | main () |
| 13149 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13150 | ptsname(0);grantpt(0);unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13151 | ; |
| 13152 | return 0; |
| 13153 | } |
| 13154 | _ACEOF |
| 13155 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13156 | if { (ac_try="$ac_link" |
| 13157 | case "(($ac_try" in |
| 13158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13159 | *) ac_try_echo=$ac_try;; |
| 13160 | esac |
| 13161 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13162 | $as_echo "$ac_try_echo") >&5 |
| 13163 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13164 | ac_status=$? |
| 13165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13166 | rm -f conftest.er1 |
| 13167 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13168 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13169 | (exit $ac_status); } && { |
| 13170 | test -z "$ac_c_werror_flag" || |
| 13171 | test ! -s conftest.err |
| 13172 | } && test -s conftest$ac_exeext && { |
| 13173 | test "$cross_compiling" = yes || |
| 13174 | $as_test_x conftest$ac_exeext |
| 13175 | }; then |
| 13176 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13177 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13178 | #define HAVE_SVR4_PTYS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13179 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13180 | |
| 13181 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13182 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13184 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13185 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13186 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13187 | fi |
| 13188 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13189 | rm -rf conftest.dSYM |
| 13190 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13191 | conftest$ac_exeext conftest.$ac_ext |
| 13192 | else |
| 13193 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13194 | $as_echo "no" >&6; } |
| 13195 | fi |
| 13196 | |
| 13197 | { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5 |
| 13198 | $as_echo_n "checking for ptyranges... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13199 | if test -d /dev/ptym ; then |
| 13200 | pdir='/dev/ptym' |
| 13201 | else |
| 13202 | pdir='/dev' |
| 13203 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13204 | cat >conftest.$ac_ext <<_ACEOF |
| 13205 | /* confdefs.h. */ |
| 13206 | _ACEOF |
| 13207 | cat confdefs.h >>conftest.$ac_ext |
| 13208 | cat >>conftest.$ac_ext <<_ACEOF |
| 13209 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13210 | #ifdef M_UNIX |
| 13211 | yes; |
| 13212 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13213 | |
| 13214 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13216 | $EGREP "yes" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13217 | ptys=`echo /dev/ptyp??` |
| 13218 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13219 | ptys=`echo $pdir/pty??` |
| 13220 | fi |
| 13221 | rm -f conftest* |
| 13222 | |
| 13223 | if test "$ptys" != "$pdir/pty??" ; then |
| 13224 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 13225 | 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] | 13226 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13227 | #define PTYRANGE0 "$p0" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13228 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13229 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13230 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13231 | #define PTYRANGE1 "$p1" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13232 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13233 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13234 | { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
| 13235 | $as_echo "$p0 / $p1" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13236 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13237 | { $as_echo "$as_me:$LINENO: result: don't know" >&5 |
| 13238 | $as_echo "don't know" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13239 | fi |
| 13240 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13241 | rm -f conftest_grp |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13242 | { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5 |
| 13243 | $as_echo_n "checking default tty permissions/group... " >&6; } |
| 13244 | if test "${vim_cv_tty_group+set}" = set; then |
| 13245 | $as_echo_n "(cached) " >&6 |
| 13246 | else |
| 13247 | |
| 13248 | if test "$cross_compiling" = yes; then |
| 13249 | |
| 13250 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5 |
| 13251 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13252 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13253 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13254 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13255 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13256 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13257 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13258 | #include <sys/types.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13259 | #if STDC_HEADERS |
| 13260 | # include <stdlib.h> |
| 13261 | # include <stddef.h> |
| 13262 | #endif |
| 13263 | #ifdef HAVE_UNISTD_H |
| 13264 | #include <unistd.h> |
| 13265 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13266 | #include <sys/stat.h> |
| 13267 | #include <stdio.h> |
| 13268 | main() |
| 13269 | { |
| 13270 | struct stat sb; |
| 13271 | char *x,*ttyname(); |
| 13272 | int om, m; |
| 13273 | FILE *fp; |
| 13274 | |
| 13275 | if (!(x = ttyname(0))) exit(1); |
| 13276 | if (stat(x, &sb)) exit(1); |
| 13277 | om = sb.st_mode; |
| 13278 | if (om & 002) exit(0); |
| 13279 | m = system("mesg y"); |
| 13280 | if (m == -1 || m == 127) exit(1); |
| 13281 | if (stat(x, &sb)) exit(1); |
| 13282 | m = sb.st_mode; |
| 13283 | if (chmod(x, om)) exit(1); |
| 13284 | if (m & 002) exit(0); |
| 13285 | if (sb.st_gid == getgid()) exit(1); |
| 13286 | if (!(fp=fopen("conftest_grp", "w"))) |
| 13287 | exit(1); |
| 13288 | fprintf(fp, "%d\n", sb.st_gid); |
| 13289 | fclose(fp); |
| 13290 | exit(0); |
| 13291 | } |
| 13292 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13293 | _ACEOF |
| 13294 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13295 | if { (ac_try="$ac_link" |
| 13296 | case "(($ac_try" in |
| 13297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13298 | *) ac_try_echo=$ac_try;; |
| 13299 | esac |
| 13300 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13301 | $as_echo "$ac_try_echo") >&5 |
| 13302 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13303 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13304 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13305 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13306 | { (case "(($ac_try" in |
| 13307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13308 | *) ac_try_echo=$ac_try;; |
| 13309 | esac |
| 13310 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13311 | $as_echo "$ac_try_echo") >&5 |
| 13312 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13313 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13314 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13315 | (exit $ac_status); }; }; then |
| 13316 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13317 | if test -f conftest_grp; then |
| 13318 | vim_cv_tty_group=`cat conftest_grp` |
| 13319 | if test "x$vim_cv_tty_mode" = "x" ; then |
| 13320 | vim_cv_tty_mode=0620 |
| 13321 | fi |
| 13322 | { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 |
| 13323 | $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } |
| 13324 | else |
| 13325 | vim_cv_tty_group=world |
| 13326 | { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5 |
| 13327 | $as_echo "ptys are world accessable" >&6; } |
| 13328 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13329 | |
| 13330 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13331 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13332 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13333 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13334 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13335 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13336 | |
| 13337 | vim_cv_tty_group=world |
| 13338 | { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5 |
| 13339 | $as_echo "can't determine - assume ptys are world accessable" >&6; } |
| 13340 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13341 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13342 | rm -rf conftest.dSYM |
| 13343 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13344 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13345 | |
| 13346 | |
| 13347 | |
| 13348 | fi |
| 13349 | { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5 |
| 13350 | $as_echo "$vim_cv_tty_group" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13351 | rm -f conftest_grp |
| 13352 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13353 | if test "x$vim_cv_tty_group" != "xworld" ; then |
| 13354 | cat >>confdefs.h <<_ACEOF |
| 13355 | #define PTYGROUP $vim_cv_tty_group |
| 13356 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13357 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13358 | if test "x$vim_cv_tty_mode" = "x" ; then |
| 13359 | { { $as_echo "$as_me:$LINENO: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&5 |
| 13360 | $as_echo "$as_me: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&2;} |
| 13361 | { (exit 1); exit 1; }; } |
| 13362 | else |
| 13363 | cat >>confdefs.h <<\_ACEOF |
| 13364 | #define PTYMODE 0620 |
| 13365 | _ACEOF |
| 13366 | |
| 13367 | fi |
| 13368 | fi |
| 13369 | |
| 13370 | |
| 13371 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 13372 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13373 | if test "${ac_cv_type_signal+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13374 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13375 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13376 | cat >conftest.$ac_ext <<_ACEOF |
| 13377 | /* confdefs.h. */ |
| 13378 | _ACEOF |
| 13379 | cat confdefs.h >>conftest.$ac_ext |
| 13380 | cat >>conftest.$ac_ext <<_ACEOF |
| 13381 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13382 | #include <sys/types.h> |
| 13383 | #include <signal.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13384 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13385 | int |
| 13386 | main () |
| 13387 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13388 | return *(signal (0, 0)) (0) == 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13389 | ; |
| 13390 | return 0; |
| 13391 | } |
| 13392 | _ACEOF |
| 13393 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13394 | if { (ac_try="$ac_compile" |
| 13395 | case "(($ac_try" in |
| 13396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13397 | *) ac_try_echo=$ac_try;; |
| 13398 | esac |
| 13399 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13400 | $as_echo "$ac_try_echo") >&5 |
| 13401 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13402 | ac_status=$? |
| 13403 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13404 | rm -f conftest.er1 |
| 13405 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13407 | (exit $ac_status); } && { |
| 13408 | test -z "$ac_c_werror_flag" || |
| 13409 | test ! -s conftest.err |
| 13410 | } && test -s conftest.$ac_objext; then |
| 13411 | ac_cv_type_signal=int |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13412 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13413 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13414 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13415 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13416 | ac_cv_type_signal=void |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13417 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13418 | |
| 13419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13420 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13421 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 13422 | $as_echo "$ac_cv_type_signal" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13423 | |
| 13424 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13425 | #define RETSIGTYPE $ac_cv_type_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13426 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13427 | |
| 13428 | |
| 13429 | |
| 13430 | if test $ac_cv_type_signal = void; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13431 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13432 | #define SIGRETURN return |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13433 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13434 | |
| 13435 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13436 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13437 | #define SIGRETURN return 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13438 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13439 | |
| 13440 | fi |
| 13441 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13442 | { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
| 13443 | $as_echo_n "checking for struct sigcontext... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13444 | cat >conftest.$ac_ext <<_ACEOF |
| 13445 | /* confdefs.h. */ |
| 13446 | _ACEOF |
| 13447 | cat confdefs.h >>conftest.$ac_ext |
| 13448 | cat >>conftest.$ac_ext <<_ACEOF |
| 13449 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13450 | |
| 13451 | #include <signal.h> |
| 13452 | test_sig() |
| 13453 | { |
| 13454 | struct sigcontext *scont; |
| 13455 | scont = (struct sigcontext *)0; |
| 13456 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13457 | } |
| 13458 | int |
| 13459 | main () |
| 13460 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13461 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13462 | ; |
| 13463 | return 0; |
| 13464 | } |
| 13465 | _ACEOF |
| 13466 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13467 | if { (ac_try="$ac_compile" |
| 13468 | case "(($ac_try" in |
| 13469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13470 | *) ac_try_echo=$ac_try;; |
| 13471 | esac |
| 13472 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13473 | $as_echo "$ac_try_echo") >&5 |
| 13474 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13475 | ac_status=$? |
| 13476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13477 | rm -f conftest.er1 |
| 13478 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13479 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13480 | (exit $ac_status); } && { |
| 13481 | test -z "$ac_c_werror_flag" || |
| 13482 | test ! -s conftest.err |
| 13483 | } && test -s conftest.$ac_objext; then |
| 13484 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13485 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13486 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13487 | #define HAVE_SIGCONTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13488 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13489 | |
| 13490 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13491 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13493 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13494 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13495 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13496 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13497 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13499 | |
| 13500 | { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5 |
| 13501 | $as_echo_n "checking getcwd implementation is broken... " >&6; } |
| 13502 | if test "${vim_cv_getcwd_broken+set}" = set; then |
| 13503 | $as_echo_n "(cached) " >&6 |
| 13504 | else |
| 13505 | |
| 13506 | if test "$cross_compiling" = yes; then |
| 13507 | |
| 13508 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5 |
| 13509 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13510 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13511 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13512 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13513 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13514 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13515 | #include "confdefs.h" |
| 13516 | #ifdef HAVE_UNISTD_H |
| 13517 | #include <unistd.h> |
| 13518 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13519 | char *dagger[] = { "IFS=pwd", 0 }; |
| 13520 | main() |
| 13521 | { |
| 13522 | char buffer[500]; |
| 13523 | extern char **environ; |
| 13524 | environ = dagger; |
| 13525 | return getcwd(buffer, 500) ? 0 : 1; |
| 13526 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13527 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13528 | _ACEOF |
| 13529 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13530 | if { (ac_try="$ac_link" |
| 13531 | case "(($ac_try" in |
| 13532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13533 | *) ac_try_echo=$ac_try;; |
| 13534 | esac |
| 13535 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13536 | $as_echo "$ac_try_echo") >&5 |
| 13537 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13538 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13540 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13541 | { (case "(($ac_try" in |
| 13542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13543 | *) ac_try_echo=$ac_try;; |
| 13544 | esac |
| 13545 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13546 | $as_echo "$ac_try_echo") >&5 |
| 13547 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13548 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13549 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13550 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13551 | |
| 13552 | vim_cv_getcwd_broken=no |
| 13553 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13554 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13555 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13556 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13558 | |
| 13559 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13560 | |
| 13561 | vim_cv_getcwd_broken=yes |
| 13562 | |
| 13563 | fi |
| 13564 | rm -rf conftest.dSYM |
| 13565 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13566 | fi |
| 13567 | |
| 13568 | |
| 13569 | |
| 13570 | fi |
| 13571 | { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5 |
| 13572 | $as_echo "$vim_cv_getcwd_broken" >&6; } |
| 13573 | |
| 13574 | if test "x$vim_cv_getcwd_broken" = "xyes" ; then |
| 13575 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13576 | #define BAD_GETCWD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13577 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13578 | |
| 13579 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13580 | |
| 13581 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13582 | |
| 13583 | |
| 13584 | |
| 13585 | |
| 13586 | |
| 13587 | |
| 13588 | |
| 13589 | |
| 13590 | |
| 13591 | |
| 13592 | |
| 13593 | |
| 13594 | |
| 13595 | |
| 13596 | |
| 13597 | |
| 13598 | |
| 13599 | |
| 13600 | |
| 13601 | |
| 13602 | |
| 13603 | |
| 13604 | |
| 13605 | |
| 13606 | |
| 13607 | |
| 13608 | |
| 13609 | |
| 13610 | |
| 13611 | |
| 13612 | |
| 13613 | |
| 13614 | |
| 13615 | |
| 13616 | |
| 13617 | |
| 13618 | |
| 13619 | |
| 13620 | |
| 13621 | |
| 13622 | |
| 13623 | |
| 13624 | |
| 13625 | |
| 13626 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13627 | for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
| 13628 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
| 13629 | memset nanosleep opendir putenv qsort readlink select setenv \ |
| 13630 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 13631 | sigvec strcasecmp strerror strftime stricmp strncasecmp \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 13632 | strnicmp strpbrk strtol tgetent towlower towupper iswupper \ |
| 13633 | usleep utime utimes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13634 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13635 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13636 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13637 | $as_echo_n "checking for $ac_func... " >&6; } |
| 13638 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13639 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13640 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13641 | cat >conftest.$ac_ext <<_ACEOF |
| 13642 | /* confdefs.h. */ |
| 13643 | _ACEOF |
| 13644 | cat confdefs.h >>conftest.$ac_ext |
| 13645 | cat >>conftest.$ac_ext <<_ACEOF |
| 13646 | /* end confdefs.h. */ |
| 13647 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13648 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13649 | #define $ac_func innocuous_$ac_func |
| 13650 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13651 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13652 | which can conflict with char $ac_func (); below. |
| 13653 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13654 | <limits.h> exists even on freestanding compilers. */ |
| 13655 | |
| 13656 | #ifdef __STDC__ |
| 13657 | # include <limits.h> |
| 13658 | #else |
| 13659 | # include <assert.h> |
| 13660 | #endif |
| 13661 | |
| 13662 | #undef $ac_func |
| 13663 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13664 | /* Override any GCC internal prototype to avoid an error. |
| 13665 | Use char because int might match the return type of a GCC |
| 13666 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13667 | #ifdef __cplusplus |
| 13668 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13669 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13670 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13671 | /* The GNU C library defines this for functions which it implements |
| 13672 | to always fail with ENOSYS. Some functions are actually named |
| 13673 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13674 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13675 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13676 | #endif |
| 13677 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13678 | int |
| 13679 | main () |
| 13680 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13681 | return $ac_func (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13682 | ; |
| 13683 | return 0; |
| 13684 | } |
| 13685 | _ACEOF |
| 13686 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13687 | if { (ac_try="$ac_link" |
| 13688 | case "(($ac_try" in |
| 13689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13690 | *) ac_try_echo=$ac_try;; |
| 13691 | esac |
| 13692 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13693 | $as_echo "$ac_try_echo") >&5 |
| 13694 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13695 | ac_status=$? |
| 13696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13697 | rm -f conftest.er1 |
| 13698 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13699 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13700 | (exit $ac_status); } && { |
| 13701 | test -z "$ac_c_werror_flag" || |
| 13702 | test ! -s conftest.err |
| 13703 | } && test -s conftest$ac_exeext && { |
| 13704 | test "$cross_compiling" = yes || |
| 13705 | $as_test_x conftest$ac_exeext |
| 13706 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13707 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13708 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13709 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13710 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13711 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13712 | eval "$as_ac_var=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13713 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13714 | |
| 13715 | rm -rf conftest.dSYM |
| 13716 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13717 | conftest$ac_exeext conftest.$ac_ext |
| 13718 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13719 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 13720 | $as_echo "$as_val"'` |
| 13721 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13722 | $as_echo "$ac_res" >&6; } |
| 13723 | if test `eval 'as_val=${'$as_ac_var'} |
| 13724 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13725 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13726 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13727 | _ACEOF |
| 13728 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13729 | fi |
| 13730 | done |
| 13731 | |
| 13732 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13733 | { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5 |
| 13734 | $as_echo_n "checking for st_blksize... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13735 | cat >conftest.$ac_ext <<_ACEOF |
| 13736 | /* confdefs.h. */ |
| 13737 | _ACEOF |
| 13738 | cat confdefs.h >>conftest.$ac_ext |
| 13739 | cat >>conftest.$ac_ext <<_ACEOF |
| 13740 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13741 | #include <sys/types.h> |
| 13742 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13743 | int |
| 13744 | main () |
| 13745 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13746 | struct stat st; |
| 13747 | int n; |
| 13748 | |
| 13749 | stat("/", &st); |
| 13750 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13751 | ; |
| 13752 | return 0; |
| 13753 | } |
| 13754 | _ACEOF |
| 13755 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13756 | if { (ac_try="$ac_compile" |
| 13757 | case "(($ac_try" in |
| 13758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13759 | *) ac_try_echo=$ac_try;; |
| 13760 | esac |
| 13761 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13762 | $as_echo "$ac_try_echo") >&5 |
| 13763 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13764 | ac_status=$? |
| 13765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13766 | rm -f conftest.er1 |
| 13767 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13769 | (exit $ac_status); } && { |
| 13770 | test -z "$ac_c_werror_flag" || |
| 13771 | test ! -s conftest.err |
| 13772 | } && test -s conftest.$ac_objext; then |
| 13773 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13774 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13775 | #define HAVE_ST_BLKSIZE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13776 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13777 | |
| 13778 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13779 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13781 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13782 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13783 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13784 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13785 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13787 | |
| 13788 | { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
| 13789 | $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } |
| 13790 | if test "${vim_cv_stat_ignores_slash+set}" = set; then |
| 13791 | $as_echo_n "(cached) " >&6 |
| 13792 | else |
| 13793 | |
| 13794 | if test "$cross_compiling" = yes; then |
| 13795 | |
| 13796 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5 |
| 13797 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13798 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13799 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13800 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13801 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13802 | |
| 13803 | #include "confdefs.h" |
| 13804 | #if STDC_HEADERS |
| 13805 | # include <stdlib.h> |
| 13806 | # include <stddef.h> |
| 13807 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13808 | #include <sys/types.h> |
| 13809 | #include <sys/stat.h> |
| 13810 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13811 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13812 | _ACEOF |
| 13813 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13814 | if { (ac_try="$ac_link" |
| 13815 | case "(($ac_try" in |
| 13816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13817 | *) ac_try_echo=$ac_try;; |
| 13818 | esac |
| 13819 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13820 | $as_echo "$ac_try_echo") >&5 |
| 13821 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13822 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13824 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13825 | { (case "(($ac_try" in |
| 13826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13827 | *) ac_try_echo=$ac_try;; |
| 13828 | esac |
| 13829 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13830 | $as_echo "$ac_try_echo") >&5 |
| 13831 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13832 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13833 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13834 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13835 | |
| 13836 | vim_cv_stat_ignores_slash=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13837 | |
| 13838 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13839 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13840 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13842 | |
| 13843 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13844 | |
| 13845 | vim_cv_stat_ignores_slash=no |
| 13846 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13847 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13848 | rm -rf conftest.dSYM |
| 13849 | rm -f core *.core core.conftest.* 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] | 13850 | fi |
| 13851 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13852 | |
| 13853 | |
| 13854 | fi |
| 13855 | { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5 |
| 13856 | $as_echo "$vim_cv_stat_ignores_slash" >&6; } |
| 13857 | |
| 13858 | if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then |
| 13859 | cat >>confdefs.h <<\_ACEOF |
| 13860 | #define STAT_IGNORES_SLASH 1 |
| 13861 | _ACEOF |
| 13862 | |
| 13863 | fi |
| 13864 | |
| 13865 | { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5 |
| 13866 | $as_echo_n "checking for iconv_open()... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13867 | save_LIBS="$LIBS" |
| 13868 | LIBS="$LIBS -liconv" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13869 | cat >conftest.$ac_ext <<_ACEOF |
| 13870 | /* confdefs.h. */ |
| 13871 | _ACEOF |
| 13872 | cat confdefs.h >>conftest.$ac_ext |
| 13873 | cat >>conftest.$ac_ext <<_ACEOF |
| 13874 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13875 | |
| 13876 | #ifdef HAVE_ICONV_H |
| 13877 | # include <iconv.h> |
| 13878 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13879 | |
| 13880 | int |
| 13881 | main () |
| 13882 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13883 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13884 | ; |
| 13885 | return 0; |
| 13886 | } |
| 13887 | _ACEOF |
| 13888 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13889 | if { (ac_try="$ac_link" |
| 13890 | case "(($ac_try" in |
| 13891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13892 | *) ac_try_echo=$ac_try;; |
| 13893 | esac |
| 13894 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13895 | $as_echo "$ac_try_echo") >&5 |
| 13896 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13897 | ac_status=$? |
| 13898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13899 | rm -f conftest.er1 |
| 13900 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13901 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13902 | (exit $ac_status); } && { |
| 13903 | test -z "$ac_c_werror_flag" || |
| 13904 | test ! -s conftest.err |
| 13905 | } && test -s conftest$ac_exeext && { |
| 13906 | test "$cross_compiling" = yes || |
| 13907 | $as_test_x conftest$ac_exeext |
| 13908 | }; then |
| 13909 | { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5 |
| 13910 | $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13911 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13912 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13913 | |
| 13914 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13915 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13917 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13918 | LIBS="$save_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13919 | cat >conftest.$ac_ext <<_ACEOF |
| 13920 | /* confdefs.h. */ |
| 13921 | _ACEOF |
| 13922 | cat confdefs.h >>conftest.$ac_ext |
| 13923 | cat >>conftest.$ac_ext <<_ACEOF |
| 13924 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13925 | |
| 13926 | #ifdef HAVE_ICONV_H |
| 13927 | # include <iconv.h> |
| 13928 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13929 | |
| 13930 | int |
| 13931 | main () |
| 13932 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13933 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13934 | ; |
| 13935 | return 0; |
| 13936 | } |
| 13937 | _ACEOF |
| 13938 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13939 | if { (ac_try="$ac_link" |
| 13940 | case "(($ac_try" in |
| 13941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13942 | *) ac_try_echo=$ac_try;; |
| 13943 | esac |
| 13944 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13945 | $as_echo "$ac_try_echo") >&5 |
| 13946 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13947 | ac_status=$? |
| 13948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13949 | rm -f conftest.er1 |
| 13950 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13951 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13952 | (exit $ac_status); } && { |
| 13953 | test -z "$ac_c_werror_flag" || |
| 13954 | test ! -s conftest.err |
| 13955 | } && test -s conftest$ac_exeext && { |
| 13956 | test "$cross_compiling" = yes || |
| 13957 | $as_test_x conftest$ac_exeext |
| 13958 | }; then |
| 13959 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13960 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13961 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13962 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13963 | |
| 13964 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13965 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13967 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13968 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13969 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13970 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13971 | |
| 13972 | rm -rf conftest.dSYM |
| 13973 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13974 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13975 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13976 | |
| 13977 | rm -rf conftest.dSYM |
| 13978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13979 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13980 | |
| 13981 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13982 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
| 13983 | $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13984 | cat >conftest.$ac_ext <<_ACEOF |
| 13985 | /* confdefs.h. */ |
| 13986 | _ACEOF |
| 13987 | cat confdefs.h >>conftest.$ac_ext |
| 13988 | cat >>conftest.$ac_ext <<_ACEOF |
| 13989 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13990 | |
| 13991 | #ifdef HAVE_LANGINFO_H |
| 13992 | # include <langinfo.h> |
| 13993 | #endif |
| 13994 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13995 | int |
| 13996 | main () |
| 13997 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13998 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13999 | ; |
| 14000 | return 0; |
| 14001 | } |
| 14002 | _ACEOF |
| 14003 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14004 | if { (ac_try="$ac_link" |
| 14005 | case "(($ac_try" in |
| 14006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14007 | *) ac_try_echo=$ac_try;; |
| 14008 | esac |
| 14009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14010 | $as_echo "$ac_try_echo") >&5 |
| 14011 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14012 | ac_status=$? |
| 14013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14014 | rm -f conftest.er1 |
| 14015 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14017 | (exit $ac_status); } && { |
| 14018 | test -z "$ac_c_werror_flag" || |
| 14019 | test ! -s conftest.err |
| 14020 | } && test -s conftest$ac_exeext && { |
| 14021 | test "$cross_compiling" = yes || |
| 14022 | $as_test_x conftest$ac_exeext |
| 14023 | }; then |
| 14024 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14025 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14026 | #define HAVE_NL_LANGINFO_CODESET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14027 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14028 | |
| 14029 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14030 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14031 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14032 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14033 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14034 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14035 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14036 | |
| 14037 | rm -rf conftest.dSYM |
| 14038 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14039 | conftest$ac_exeext conftest.$ac_ext |
| 14040 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14041 | |
| 14042 | { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5 |
| 14043 | $as_echo_n "checking for strtod in -lm... " >&6; } |
| 14044 | if test "${ac_cv_lib_m_strtod+set}" = set; then |
| 14045 | $as_echo_n "(cached) " >&6 |
| 14046 | else |
| 14047 | ac_check_lib_save_LIBS=$LIBS |
| 14048 | LIBS="-lm $LIBS" |
| 14049 | cat >conftest.$ac_ext <<_ACEOF |
| 14050 | /* confdefs.h. */ |
| 14051 | _ACEOF |
| 14052 | cat confdefs.h >>conftest.$ac_ext |
| 14053 | cat >>conftest.$ac_ext <<_ACEOF |
| 14054 | /* end confdefs.h. */ |
| 14055 | |
| 14056 | /* Override any GCC internal prototype to avoid an error. |
| 14057 | Use char because int might match the return type of a GCC |
| 14058 | builtin and then its argument prototype would still apply. */ |
| 14059 | #ifdef __cplusplus |
| 14060 | extern "C" |
| 14061 | #endif |
| 14062 | char strtod (); |
| 14063 | int |
| 14064 | main () |
| 14065 | { |
| 14066 | return strtod (); |
| 14067 | ; |
| 14068 | return 0; |
| 14069 | } |
| 14070 | _ACEOF |
| 14071 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14072 | if { (ac_try="$ac_link" |
| 14073 | case "(($ac_try" in |
| 14074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14075 | *) ac_try_echo=$ac_try;; |
| 14076 | esac |
| 14077 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14078 | $as_echo "$ac_try_echo") >&5 |
| 14079 | (eval "$ac_link") 2>conftest.er1 |
| 14080 | ac_status=$? |
| 14081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14082 | rm -f conftest.er1 |
| 14083 | cat conftest.err >&5 |
| 14084 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14085 | (exit $ac_status); } && { |
| 14086 | test -z "$ac_c_werror_flag" || |
| 14087 | test ! -s conftest.err |
| 14088 | } && test -s conftest$ac_exeext && { |
| 14089 | test "$cross_compiling" = yes || |
| 14090 | $as_test_x conftest$ac_exeext |
| 14091 | }; then |
| 14092 | ac_cv_lib_m_strtod=yes |
| 14093 | else |
| 14094 | $as_echo "$as_me: failed program was:" >&5 |
| 14095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14096 | |
| 14097 | ac_cv_lib_m_strtod=no |
| 14098 | fi |
| 14099 | |
| 14100 | rm -rf conftest.dSYM |
| 14101 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14102 | conftest$ac_exeext conftest.$ac_ext |
| 14103 | LIBS=$ac_check_lib_save_LIBS |
| 14104 | fi |
| 14105 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5 |
| 14106 | $as_echo "$ac_cv_lib_m_strtod" >&6; } |
| 14107 | if test $ac_cv_lib_m_strtod = yes; then |
| 14108 | cat >>confdefs.h <<_ACEOF |
| 14109 | #define HAVE_LIBM 1 |
| 14110 | _ACEOF |
| 14111 | |
| 14112 | LIBS="-lm $LIBS" |
| 14113 | |
| 14114 | fi |
| 14115 | |
| 14116 | { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5 |
| 14117 | $as_echo_n "checking for strtod() and other floating point functions... " >&6; } |
| 14118 | cat >conftest.$ac_ext <<_ACEOF |
| 14119 | /* confdefs.h. */ |
| 14120 | _ACEOF |
| 14121 | cat confdefs.h >>conftest.$ac_ext |
| 14122 | cat >>conftest.$ac_ext <<_ACEOF |
| 14123 | /* end confdefs.h. */ |
| 14124 | |
| 14125 | #ifdef HAVE_MATH_H |
| 14126 | # include <math.h> |
| 14127 | #endif |
| 14128 | #if STDC_HEADERS |
| 14129 | # include <stdlib.h> |
| 14130 | # include <stddef.h> |
| 14131 | #endif |
| 14132 | |
| 14133 | int |
| 14134 | main () |
| 14135 | { |
| 14136 | char *s; double d; |
| 14137 | d = strtod("1.1", &s); |
| 14138 | d = fabs(1.11); |
| 14139 | d = ceil(1.11); |
| 14140 | d = floor(1.11); |
| 14141 | d = log10(1.11); |
| 14142 | d = pow(1.11, 2.22); |
| 14143 | d = sqrt(1.11); |
| 14144 | d = sin(1.11); |
| 14145 | d = cos(1.11); |
| 14146 | d = atan(1.11); |
| 14147 | |
| 14148 | ; |
| 14149 | return 0; |
| 14150 | } |
| 14151 | _ACEOF |
| 14152 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14153 | if { (ac_try="$ac_link" |
| 14154 | case "(($ac_try" in |
| 14155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14156 | *) ac_try_echo=$ac_try;; |
| 14157 | esac |
| 14158 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14159 | $as_echo "$ac_try_echo") >&5 |
| 14160 | (eval "$ac_link") 2>conftest.er1 |
| 14161 | ac_status=$? |
| 14162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14163 | rm -f conftest.er1 |
| 14164 | cat conftest.err >&5 |
| 14165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14166 | (exit $ac_status); } && { |
| 14167 | test -z "$ac_c_werror_flag" || |
| 14168 | test ! -s conftest.err |
| 14169 | } && test -s conftest$ac_exeext && { |
| 14170 | test "$cross_compiling" = yes || |
| 14171 | $as_test_x conftest$ac_exeext |
| 14172 | }; then |
| 14173 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14174 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
| 14175 | #define HAVE_FLOAT_FUNCS 1 |
| 14176 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14177 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14178 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14179 | $as_echo "$as_me: failed program was:" >&5 |
| 14180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14181 | |
| 14182 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14183 | $as_echo "no" >&6; } |
| 14184 | fi |
| 14185 | |
| 14186 | rm -rf conftest.dSYM |
| 14187 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14188 | conftest$ac_exeext conftest.$ac_ext |
| 14189 | |
| 14190 | { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5 |
| 14191 | $as_echo_n "checking --disable-acl argument... " >&6; } |
| 14192 | # Check whether --enable-acl was given. |
| 14193 | if test "${enable_acl+set}" = set; then |
| 14194 | enableval=$enable_acl; |
| 14195 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14196 | enable_acl="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14197 | fi |
| 14198 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14199 | if test "$enable_acl" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14200 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14201 | $as_echo "no" >&6; } |
| 14202 | { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
| 14203 | $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14204 | if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14205 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14206 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14207 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14208 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14209 | cat >conftest.$ac_ext <<_ACEOF |
| 14210 | /* confdefs.h. */ |
| 14211 | _ACEOF |
| 14212 | cat confdefs.h >>conftest.$ac_ext |
| 14213 | cat >>conftest.$ac_ext <<_ACEOF |
| 14214 | /* end confdefs.h. */ |
| 14215 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14216 | /* Override any GCC internal prototype to avoid an error. |
| 14217 | Use char because int might match the return type of a GCC |
| 14218 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14219 | #ifdef __cplusplus |
| 14220 | extern "C" |
| 14221 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14222 | char acl_get_file (); |
| 14223 | int |
| 14224 | main () |
| 14225 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14226 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14227 | ; |
| 14228 | return 0; |
| 14229 | } |
| 14230 | _ACEOF |
| 14231 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14232 | if { (ac_try="$ac_link" |
| 14233 | case "(($ac_try" in |
| 14234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14235 | *) ac_try_echo=$ac_try;; |
| 14236 | esac |
| 14237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14238 | $as_echo "$ac_try_echo") >&5 |
| 14239 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14240 | ac_status=$? |
| 14241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14242 | rm -f conftest.er1 |
| 14243 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14245 | (exit $ac_status); } && { |
| 14246 | test -z "$ac_c_werror_flag" || |
| 14247 | test ! -s conftest.err |
| 14248 | } && test -s conftest$ac_exeext && { |
| 14249 | test "$cross_compiling" = yes || |
| 14250 | $as_test_x conftest$ac_exeext |
| 14251 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14252 | ac_cv_lib_posix1e_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14253 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14254 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14255 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14256 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14257 | ac_cv_lib_posix1e_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14258 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14259 | |
| 14260 | rm -rf conftest.dSYM |
| 14261 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14262 | conftest$ac_exeext conftest.$ac_ext |
| 14263 | LIBS=$ac_check_lib_save_LIBS |
| 14264 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14265 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 14266 | $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14267 | if test $ac_cv_lib_posix1e_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14268 | LIBS="$LIBS -lposix1e" |
| 14269 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14270 | { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
| 14271 | $as_echo_n "checking for acl_get_file in -lacl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14272 | if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14273 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14274 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14275 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14276 | LIBS="-lacl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14277 | cat >conftest.$ac_ext <<_ACEOF |
| 14278 | /* confdefs.h. */ |
| 14279 | _ACEOF |
| 14280 | cat confdefs.h >>conftest.$ac_ext |
| 14281 | cat >>conftest.$ac_ext <<_ACEOF |
| 14282 | /* end confdefs.h. */ |
| 14283 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14284 | /* Override any GCC internal prototype to avoid an error. |
| 14285 | Use char because int might match the return type of a GCC |
| 14286 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14287 | #ifdef __cplusplus |
| 14288 | extern "C" |
| 14289 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14290 | char acl_get_file (); |
| 14291 | int |
| 14292 | main () |
| 14293 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14294 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14295 | ; |
| 14296 | return 0; |
| 14297 | } |
| 14298 | _ACEOF |
| 14299 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14300 | if { (ac_try="$ac_link" |
| 14301 | case "(($ac_try" in |
| 14302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14303 | *) ac_try_echo=$ac_try;; |
| 14304 | esac |
| 14305 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14306 | $as_echo "$ac_try_echo") >&5 |
| 14307 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14308 | ac_status=$? |
| 14309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14310 | rm -f conftest.er1 |
| 14311 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14312 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14313 | (exit $ac_status); } && { |
| 14314 | test -z "$ac_c_werror_flag" || |
| 14315 | test ! -s conftest.err |
| 14316 | } && test -s conftest$ac_exeext && { |
| 14317 | test "$cross_compiling" = yes || |
| 14318 | $as_test_x conftest$ac_exeext |
| 14319 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14320 | ac_cv_lib_acl_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14321 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14322 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14323 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14324 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14325 | ac_cv_lib_acl_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14326 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14327 | |
| 14328 | rm -rf conftest.dSYM |
| 14329 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14330 | conftest$ac_exeext conftest.$ac_ext |
| 14331 | LIBS=$ac_check_lib_save_LIBS |
| 14332 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14333 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 14334 | $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14335 | if test $ac_cv_lib_acl_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14336 | LIBS="$LIBS -lacl" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14337 | { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
| 14338 | $as_echo_n "checking for fgetxattr in -lattr... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14339 | if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14340 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14341 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14342 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14343 | LIBS="-lattr $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14344 | cat >conftest.$ac_ext <<_ACEOF |
| 14345 | /* confdefs.h. */ |
| 14346 | _ACEOF |
| 14347 | cat confdefs.h >>conftest.$ac_ext |
| 14348 | cat >>conftest.$ac_ext <<_ACEOF |
| 14349 | /* end confdefs.h. */ |
| 14350 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14351 | /* Override any GCC internal prototype to avoid an error. |
| 14352 | Use char because int might match the return type of a GCC |
| 14353 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14354 | #ifdef __cplusplus |
| 14355 | extern "C" |
| 14356 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14357 | char fgetxattr (); |
| 14358 | int |
| 14359 | main () |
| 14360 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14361 | return fgetxattr (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14362 | ; |
| 14363 | return 0; |
| 14364 | } |
| 14365 | _ACEOF |
| 14366 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14367 | if { (ac_try="$ac_link" |
| 14368 | case "(($ac_try" in |
| 14369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14370 | *) ac_try_echo=$ac_try;; |
| 14371 | esac |
| 14372 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14373 | $as_echo "$ac_try_echo") >&5 |
| 14374 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14375 | ac_status=$? |
| 14376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14377 | rm -f conftest.er1 |
| 14378 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14380 | (exit $ac_status); } && { |
| 14381 | test -z "$ac_c_werror_flag" || |
| 14382 | test ! -s conftest.err |
| 14383 | } && test -s conftest$ac_exeext && { |
| 14384 | test "$cross_compiling" = yes || |
| 14385 | $as_test_x conftest$ac_exeext |
| 14386 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14387 | ac_cv_lib_attr_fgetxattr=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14388 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14389 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14390 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14391 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14392 | ac_cv_lib_attr_fgetxattr=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14393 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14394 | |
| 14395 | rm -rf conftest.dSYM |
| 14396 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14397 | conftest$ac_exeext conftest.$ac_ext |
| 14398 | LIBS=$ac_check_lib_save_LIBS |
| 14399 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14400 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 14401 | $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14402 | if test $ac_cv_lib_attr_fgetxattr = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14403 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14404 | fi |
| 14405 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14406 | fi |
| 14407 | |
| 14408 | fi |
| 14409 | |
| 14410 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14411 | { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
| 14412 | $as_echo_n "checking for POSIX ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14413 | cat >conftest.$ac_ext <<_ACEOF |
| 14414 | /* confdefs.h. */ |
| 14415 | _ACEOF |
| 14416 | cat confdefs.h >>conftest.$ac_ext |
| 14417 | cat >>conftest.$ac_ext <<_ACEOF |
| 14418 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14419 | |
| 14420 | #include <sys/types.h> |
| 14421 | #ifdef HAVE_SYS_ACL_H |
| 14422 | # include <sys/acl.h> |
| 14423 | #endif |
| 14424 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14425 | int |
| 14426 | main () |
| 14427 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14428 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 14429 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 14430 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14431 | ; |
| 14432 | return 0; |
| 14433 | } |
| 14434 | _ACEOF |
| 14435 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14436 | if { (ac_try="$ac_link" |
| 14437 | case "(($ac_try" in |
| 14438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14439 | *) ac_try_echo=$ac_try;; |
| 14440 | esac |
| 14441 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14442 | $as_echo "$ac_try_echo") >&5 |
| 14443 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14444 | ac_status=$? |
| 14445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14446 | rm -f conftest.er1 |
| 14447 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14448 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14449 | (exit $ac_status); } && { |
| 14450 | test -z "$ac_c_werror_flag" || |
| 14451 | test ! -s conftest.err |
| 14452 | } && test -s conftest$ac_exeext && { |
| 14453 | test "$cross_compiling" = yes || |
| 14454 | $as_test_x conftest$ac_exeext |
| 14455 | }; then |
| 14456 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14457 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14458 | #define HAVE_POSIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14459 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14460 | |
| 14461 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14462 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14463 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14464 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14465 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14466 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14467 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14468 | |
| 14469 | rm -rf conftest.dSYM |
| 14470 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14471 | conftest$ac_exeext conftest.$ac_ext |
| 14472 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14473 | { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
| 14474 | $as_echo_n "checking for Solaris ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14475 | cat >conftest.$ac_ext <<_ACEOF |
| 14476 | /* confdefs.h. */ |
| 14477 | _ACEOF |
| 14478 | cat confdefs.h >>conftest.$ac_ext |
| 14479 | cat >>conftest.$ac_ext <<_ACEOF |
| 14480 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14481 | |
| 14482 | #ifdef HAVE_SYS_ACL_H |
| 14483 | # include <sys/acl.h> |
| 14484 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14485 | int |
| 14486 | main () |
| 14487 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14488 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14489 | |
| 14490 | ; |
| 14491 | return 0; |
| 14492 | } |
| 14493 | _ACEOF |
| 14494 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14495 | if { (ac_try="$ac_link" |
| 14496 | case "(($ac_try" in |
| 14497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14498 | *) ac_try_echo=$ac_try;; |
| 14499 | esac |
| 14500 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14501 | $as_echo "$ac_try_echo") >&5 |
| 14502 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14503 | ac_status=$? |
| 14504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14505 | rm -f conftest.er1 |
| 14506 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14507 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14508 | (exit $ac_status); } && { |
| 14509 | test -z "$ac_c_werror_flag" || |
| 14510 | test ! -s conftest.err |
| 14511 | } && test -s conftest$ac_exeext && { |
| 14512 | test "$cross_compiling" = yes || |
| 14513 | $as_test_x conftest$ac_exeext |
| 14514 | }; then |
| 14515 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14516 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14517 | #define HAVE_SOLARIS_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14518 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14519 | |
| 14520 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14521 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14522 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14523 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14524 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14525 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14526 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14527 | |
| 14528 | rm -rf conftest.dSYM |
| 14529 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14530 | conftest$ac_exeext conftest.$ac_ext |
| 14531 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14532 | { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
| 14533 | $as_echo_n "checking for AIX ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14534 | cat >conftest.$ac_ext <<_ACEOF |
| 14535 | /* confdefs.h. */ |
| 14536 | _ACEOF |
| 14537 | cat confdefs.h >>conftest.$ac_ext |
| 14538 | cat >>conftest.$ac_ext <<_ACEOF |
| 14539 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14540 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14541 | #if STDC_HEADERS |
| 14542 | # include <stdlib.h> |
| 14543 | # include <stddef.h> |
| 14544 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14545 | #ifdef HAVE_SYS_ACL_H |
| 14546 | # include <sys/acl.h> |
| 14547 | #endif |
| 14548 | #ifdef HAVE_SYS_ACCESS_H |
| 14549 | # include <sys/access.h> |
| 14550 | #endif |
| 14551 | #define _ALL_SOURCE |
| 14552 | |
| 14553 | #include <sys/stat.h> |
| 14554 | |
| 14555 | int aclsize; |
| 14556 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14557 | int |
| 14558 | main () |
| 14559 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14560 | aclsize = sizeof(struct acl); |
| 14561 | aclent = (void *)malloc(aclsize); |
| 14562 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14563 | |
| 14564 | ; |
| 14565 | return 0; |
| 14566 | } |
| 14567 | _ACEOF |
| 14568 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14569 | if { (ac_try="$ac_link" |
| 14570 | case "(($ac_try" in |
| 14571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14572 | *) ac_try_echo=$ac_try;; |
| 14573 | esac |
| 14574 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14575 | $as_echo "$ac_try_echo") >&5 |
| 14576 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14577 | ac_status=$? |
| 14578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14579 | rm -f conftest.er1 |
| 14580 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14581 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14582 | (exit $ac_status); } && { |
| 14583 | test -z "$ac_c_werror_flag" || |
| 14584 | test ! -s conftest.err |
| 14585 | } && test -s conftest$ac_exeext && { |
| 14586 | test "$cross_compiling" = yes || |
| 14587 | $as_test_x conftest$ac_exeext |
| 14588 | }; then |
| 14589 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14590 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14591 | #define HAVE_AIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14592 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14593 | |
| 14594 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14595 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14597 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14598 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14599 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14600 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14601 | |
| 14602 | rm -rf conftest.dSYM |
| 14603 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14604 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14605 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14606 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14607 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14608 | fi |
| 14609 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14610 | { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 |
| 14611 | $as_echo_n "checking --disable-gpm argument... " >&6; } |
| 14612 | # Check whether --enable-gpm was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14613 | if test "${enable_gpm+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14614 | enableval=$enable_gpm; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14615 | else |
| 14616 | enable_gpm="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14617 | fi |
| 14618 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14619 | |
| 14620 | if test "$enable_gpm" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14621 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14622 | $as_echo "no" >&6; } |
| 14623 | { $as_echo "$as_me:$LINENO: checking for gpm" >&5 |
| 14624 | $as_echo_n "checking for gpm... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14625 | if test "${vi_cv_have_gpm+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14626 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14627 | else |
| 14628 | olibs="$LIBS" ; LIBS="-lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14629 | cat >conftest.$ac_ext <<_ACEOF |
| 14630 | /* confdefs.h. */ |
| 14631 | _ACEOF |
| 14632 | cat confdefs.h >>conftest.$ac_ext |
| 14633 | cat >>conftest.$ac_ext <<_ACEOF |
| 14634 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14635 | #include <gpm.h> |
| 14636 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14637 | int |
| 14638 | main () |
| 14639 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14640 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14641 | ; |
| 14642 | return 0; |
| 14643 | } |
| 14644 | _ACEOF |
| 14645 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14646 | if { (ac_try="$ac_link" |
| 14647 | case "(($ac_try" in |
| 14648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14649 | *) ac_try_echo=$ac_try;; |
| 14650 | esac |
| 14651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14652 | $as_echo "$ac_try_echo") >&5 |
| 14653 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14654 | ac_status=$? |
| 14655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14656 | rm -f conftest.er1 |
| 14657 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14659 | (exit $ac_status); } && { |
| 14660 | test -z "$ac_c_werror_flag" || |
| 14661 | test ! -s conftest.err |
| 14662 | } && test -s conftest$ac_exeext && { |
| 14663 | test "$cross_compiling" = yes || |
| 14664 | $as_test_x conftest$ac_exeext |
| 14665 | }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14666 | vi_cv_have_gpm=yes |
| 14667 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14668 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14669 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14670 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14671 | vi_cv_have_gpm=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14672 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14673 | |
| 14674 | rm -rf conftest.dSYM |
| 14675 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14676 | conftest$ac_exeext conftest.$ac_ext |
| 14677 | LIBS="$olibs" |
| 14678 | |
| 14679 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14680 | { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
| 14681 | $as_echo "$vi_cv_have_gpm" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14682 | if test $vi_cv_have_gpm = yes; then |
| 14683 | LIBS="$LIBS -lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14684 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14685 | #define HAVE_GPM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14686 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14687 | |
| 14688 | fi |
| 14689 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14690 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14691 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14692 | fi |
| 14693 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14694 | { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5 |
| 14695 | $as_echo_n "checking --disable-sysmouse argument... " >&6; } |
| 14696 | # Check whether --enable-sysmouse was given. |
| 14697 | if test "${enable_sysmouse+set}" = set; then |
| 14698 | enableval=$enable_sysmouse; |
| 14699 | else |
| 14700 | enable_sysmouse="yes" |
| 14701 | fi |
| 14702 | |
| 14703 | |
| 14704 | if test "$enable_sysmouse" = "yes"; then |
| 14705 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14706 | $as_echo "no" >&6; } |
| 14707 | { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5 |
| 14708 | $as_echo_n "checking for sysmouse... " >&6; } |
| 14709 | if test "${vi_cv_have_sysmouse+set}" = set; then |
| 14710 | $as_echo_n "(cached) " >&6 |
| 14711 | else |
| 14712 | cat >conftest.$ac_ext <<_ACEOF |
| 14713 | /* confdefs.h. */ |
| 14714 | _ACEOF |
| 14715 | cat confdefs.h >>conftest.$ac_ext |
| 14716 | cat >>conftest.$ac_ext <<_ACEOF |
| 14717 | /* end confdefs.h. */ |
| 14718 | #include <sys/consio.h> |
| 14719 | #include <signal.h> |
| 14720 | #include <sys/fbio.h> |
| 14721 | int |
| 14722 | main () |
| 14723 | { |
| 14724 | struct mouse_info mouse; |
| 14725 | mouse.operation = MOUSE_MODE; |
| 14726 | mouse.operation = MOUSE_SHOW; |
| 14727 | mouse.u.mode.mode = 0; |
| 14728 | mouse.u.mode.signal = SIGUSR2; |
| 14729 | ; |
| 14730 | return 0; |
| 14731 | } |
| 14732 | _ACEOF |
| 14733 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14734 | if { (ac_try="$ac_link" |
| 14735 | case "(($ac_try" in |
| 14736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14737 | *) ac_try_echo=$ac_try;; |
| 14738 | esac |
| 14739 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14740 | $as_echo "$ac_try_echo") >&5 |
| 14741 | (eval "$ac_link") 2>conftest.er1 |
| 14742 | ac_status=$? |
| 14743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14744 | rm -f conftest.er1 |
| 14745 | cat conftest.err >&5 |
| 14746 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14747 | (exit $ac_status); } && { |
| 14748 | test -z "$ac_c_werror_flag" || |
| 14749 | test ! -s conftest.err |
| 14750 | } && test -s conftest$ac_exeext && { |
| 14751 | test "$cross_compiling" = yes || |
| 14752 | $as_test_x conftest$ac_exeext |
| 14753 | }; then |
| 14754 | vi_cv_have_sysmouse=yes |
| 14755 | else |
| 14756 | $as_echo "$as_me: failed program was:" >&5 |
| 14757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14758 | |
| 14759 | vi_cv_have_sysmouse=no |
| 14760 | fi |
| 14761 | |
| 14762 | rm -rf conftest.dSYM |
| 14763 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14764 | conftest$ac_exeext conftest.$ac_ext |
| 14765 | |
| 14766 | fi |
| 14767 | { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5 |
| 14768 | $as_echo "$vi_cv_have_sysmouse" >&6; } |
| 14769 | if test $vi_cv_have_sysmouse = yes; then |
| 14770 | cat >>confdefs.h <<\_ACEOF |
| 14771 | #define HAVE_SYSMOUSE 1 |
| 14772 | _ACEOF |
| 14773 | |
| 14774 | fi |
| 14775 | else |
| 14776 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14777 | $as_echo "yes" >&6; } |
| 14778 | fi |
| 14779 | |
| 14780 | { $as_echo "$as_me:$LINENO: checking for rename" >&5 |
| 14781 | $as_echo_n "checking for rename... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14782 | cat >conftest.$ac_ext <<_ACEOF |
| 14783 | /* confdefs.h. */ |
| 14784 | _ACEOF |
| 14785 | cat confdefs.h >>conftest.$ac_ext |
| 14786 | cat >>conftest.$ac_ext <<_ACEOF |
| 14787 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14788 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14789 | int |
| 14790 | main () |
| 14791 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14792 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14793 | ; |
| 14794 | return 0; |
| 14795 | } |
| 14796 | _ACEOF |
| 14797 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14798 | if { (ac_try="$ac_link" |
| 14799 | case "(($ac_try" in |
| 14800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14801 | *) ac_try_echo=$ac_try;; |
| 14802 | esac |
| 14803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14804 | $as_echo "$ac_try_echo") >&5 |
| 14805 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14806 | ac_status=$? |
| 14807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14808 | rm -f conftest.er1 |
| 14809 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14810 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14811 | (exit $ac_status); } && { |
| 14812 | test -z "$ac_c_werror_flag" || |
| 14813 | test ! -s conftest.err |
| 14814 | } && test -s conftest$ac_exeext && { |
| 14815 | test "$cross_compiling" = yes || |
| 14816 | $as_test_x conftest$ac_exeext |
| 14817 | }; then |
| 14818 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14819 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14820 | #define HAVE_RENAME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14821 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14822 | |
| 14823 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14824 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14825 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14826 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14827 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14828 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14829 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14830 | |
| 14831 | rm -rf conftest.dSYM |
| 14832 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14833 | conftest$ac_exeext conftest.$ac_ext |
| 14834 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14835 | { $as_echo "$as_me:$LINENO: checking for sysctl" >&5 |
| 14836 | $as_echo_n "checking for sysctl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14837 | cat >conftest.$ac_ext <<_ACEOF |
| 14838 | /* confdefs.h. */ |
| 14839 | _ACEOF |
| 14840 | cat confdefs.h >>conftest.$ac_ext |
| 14841 | cat >>conftest.$ac_ext <<_ACEOF |
| 14842 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14843 | #include <sys/types.h> |
| 14844 | #include <sys/sysctl.h> |
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 | int mib[2], r; |
| 14849 | size_t len; |
| 14850 | |
| 14851 | mib[0] = CTL_HW; |
| 14852 | mib[1] = HW_USERMEM; |
| 14853 | len = sizeof(r); |
| 14854 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14855 | |
| 14856 | ; |
| 14857 | return 0; |
| 14858 | } |
| 14859 | _ACEOF |
| 14860 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14861 | if { (ac_try="$ac_compile" |
| 14862 | case "(($ac_try" in |
| 14863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14864 | *) ac_try_echo=$ac_try;; |
| 14865 | esac |
| 14866 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14867 | $as_echo "$ac_try_echo") >&5 |
| 14868 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14869 | ac_status=$? |
| 14870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14871 | rm -f conftest.er1 |
| 14872 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14874 | (exit $ac_status); } && { |
| 14875 | test -z "$ac_c_werror_flag" || |
| 14876 | test ! -s conftest.err |
| 14877 | } && test -s conftest.$ac_objext; then |
| 14878 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14879 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14880 | #define HAVE_SYSCTL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14881 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14882 | |
| 14883 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14884 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14885 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14886 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14887 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 14888 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14889 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14890 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14892 | |
| 14893 | { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5 |
| 14894 | $as_echo_n "checking for sysinfo... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14895 | cat >conftest.$ac_ext <<_ACEOF |
| 14896 | /* confdefs.h. */ |
| 14897 | _ACEOF |
| 14898 | cat confdefs.h >>conftest.$ac_ext |
| 14899 | cat >>conftest.$ac_ext <<_ACEOF |
| 14900 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14901 | #include <sys/types.h> |
| 14902 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14903 | int |
| 14904 | main () |
| 14905 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14906 | struct sysinfo sinfo; |
| 14907 | int t; |
| 14908 | |
| 14909 | (void)sysinfo(&sinfo); |
| 14910 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14911 | |
| 14912 | ; |
| 14913 | return 0; |
| 14914 | } |
| 14915 | _ACEOF |
| 14916 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14917 | if { (ac_try="$ac_compile" |
| 14918 | case "(($ac_try" in |
| 14919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14920 | *) ac_try_echo=$ac_try;; |
| 14921 | esac |
| 14922 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14923 | $as_echo "$ac_try_echo") >&5 |
| 14924 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14925 | ac_status=$? |
| 14926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14927 | rm -f conftest.er1 |
| 14928 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14930 | (exit $ac_status); } && { |
| 14931 | test -z "$ac_c_werror_flag" || |
| 14932 | test ! -s conftest.err |
| 14933 | } && test -s conftest.$ac_objext; then |
| 14934 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14935 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14936 | #define HAVE_SYSINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14937 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14938 | |
| 14939 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14940 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14941 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14942 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14943 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 14944 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14945 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14946 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14948 | |
| 14949 | { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5 |
| 14950 | $as_echo_n "checking for sysinfo.mem_unit... " >&6; } |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 14951 | cat >conftest.$ac_ext <<_ACEOF |
| 14952 | /* confdefs.h. */ |
| 14953 | _ACEOF |
| 14954 | cat confdefs.h >>conftest.$ac_ext |
| 14955 | cat >>conftest.$ac_ext <<_ACEOF |
| 14956 | /* end confdefs.h. */ |
| 14957 | #include <sys/types.h> |
| 14958 | #include <sys/sysinfo.h> |
| 14959 | int |
| 14960 | main () |
| 14961 | { |
| 14962 | struct sysinfo sinfo; |
| 14963 | sinfo.mem_unit = 1; |
| 14964 | |
| 14965 | ; |
| 14966 | return 0; |
| 14967 | } |
| 14968 | _ACEOF |
| 14969 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14970 | if { (ac_try="$ac_compile" |
| 14971 | case "(($ac_try" in |
| 14972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14973 | *) ac_try_echo=$ac_try;; |
| 14974 | esac |
| 14975 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14976 | $as_echo "$ac_try_echo") >&5 |
| 14977 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 14978 | ac_status=$? |
| 14979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14980 | rm -f conftest.er1 |
| 14981 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14983 | (exit $ac_status); } && { |
| 14984 | test -z "$ac_c_werror_flag" || |
| 14985 | test ! -s conftest.err |
| 14986 | } && test -s conftest.$ac_objext; then |
| 14987 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14988 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 14989 | #define HAVE_SYSINFO_MEM_UNIT 1 |
| 14990 | _ACEOF |
| 14991 | |
| 14992 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14993 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 14994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14995 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14996 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14997 | $as_echo "no" >&6; } |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 14998 | fi |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 14999 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15001 | |
| 15002 | { $as_echo "$as_me:$LINENO: checking for sysconf" >&5 |
| 15003 | $as_echo_n "checking for sysconf... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15004 | cat >conftest.$ac_ext <<_ACEOF |
| 15005 | /* confdefs.h. */ |
| 15006 | _ACEOF |
| 15007 | cat confdefs.h >>conftest.$ac_ext |
| 15008 | cat >>conftest.$ac_ext <<_ACEOF |
| 15009 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15010 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15011 | int |
| 15012 | main () |
| 15013 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15014 | (void)sysconf(_SC_PAGESIZE); |
| 15015 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15016 | |
| 15017 | ; |
| 15018 | return 0; |
| 15019 | } |
| 15020 | _ACEOF |
| 15021 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15022 | if { (ac_try="$ac_compile" |
| 15023 | case "(($ac_try" in |
| 15024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15025 | *) ac_try_echo=$ac_try;; |
| 15026 | esac |
| 15027 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15028 | $as_echo "$ac_try_echo") >&5 |
| 15029 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15030 | ac_status=$? |
| 15031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15032 | rm -f conftest.er1 |
| 15033 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15034 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15035 | (exit $ac_status); } && { |
| 15036 | test -z "$ac_c_werror_flag" || |
| 15037 | test ! -s conftest.err |
| 15038 | } && test -s conftest.$ac_objext; then |
| 15039 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15040 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15041 | #define HAVE_SYSCONF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15042 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15043 | |
| 15044 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15045 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15047 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15048 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15049 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15050 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15051 | |
| 15052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15053 | |
| 15054 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15055 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
| 15056 | $as_echo_n "checking size of int... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15057 | if test "${ac_cv_sizeof_int+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15058 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15059 | else |
| 15060 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15061 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 15062 | $as_echo "$as_me: error: failed to compile test program" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15063 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15064 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15065 | cat >conftest.$ac_ext <<_ACEOF |
| 15066 | /* confdefs.h. */ |
| 15067 | _ACEOF |
| 15068 | cat confdefs.h >>conftest.$ac_ext |
| 15069 | cat >>conftest.$ac_ext <<_ACEOF |
| 15070 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15071 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15072 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15073 | #if STDC_HEADERS |
| 15074 | # include <stdlib.h> |
| 15075 | # include <stddef.h> |
| 15076 | #endif |
| 15077 | main() |
| 15078 | { |
| 15079 | FILE *f=fopen("conftestval", "w"); |
| 15080 | if (!f) exit(1); |
| 15081 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 15082 | exit(0); |
| 15083 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15084 | _ACEOF |
| 15085 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15086 | if { (ac_try="$ac_link" |
| 15087 | case "(($ac_try" in |
| 15088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15089 | *) ac_try_echo=$ac_try;; |
| 15090 | esac |
| 15091 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15092 | $as_echo "$ac_try_echo") >&5 |
| 15093 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15094 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15096 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15097 | { (case "(($ac_try" in |
| 15098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15099 | *) ac_try_echo=$ac_try;; |
| 15100 | esac |
| 15101 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15102 | $as_echo "$ac_try_echo") >&5 |
| 15103 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15104 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15105 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15106 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15107 | ac_cv_sizeof_int=`cat conftestval` |
| 15108 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15109 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15110 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15112 | |
| 15113 | ( exit $ac_status ) |
| 15114 | ac_cv_sizeof_int=0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15115 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15116 | rm -rf conftest.dSYM |
| 15117 | rm -f core *.core core.conftest.* 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] | 15118 | fi |
| 15119 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15120 | |
| 15121 | fi |
| 15122 | |
| 15123 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 15124 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15125 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15126 | #define SIZEOF_INT $ac_cv_sizeof_int |
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 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15130 | |
| 15131 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15132 | bcopy_test_prog=' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15133 | #include "confdefs.h" |
| 15134 | #ifdef HAVE_STRING_H |
| 15135 | # include <string.h> |
| 15136 | #endif |
| 15137 | #if STDC_HEADERS |
| 15138 | # include <stdlib.h> |
| 15139 | # include <stddef.h> |
| 15140 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15141 | main() { |
| 15142 | char buf[10]; |
| 15143 | strcpy(buf, "abcdefghi"); |
| 15144 | mch_memmove(buf, buf + 2, 3); |
| 15145 | if (strncmp(buf, "ababcf", 6)) |
| 15146 | exit(1); |
| 15147 | strcpy(buf, "abcdefghi"); |
| 15148 | mch_memmove(buf + 2, buf, 3); |
| 15149 | if (strncmp(buf, "cdedef", 6)) |
| 15150 | exit(1); |
| 15151 | exit(0); /* libc version works properly. */ |
| 15152 | }' |
| 15153 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15154 | { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5 |
| 15155 | $as_echo_n "checking whether memmove handles overlaps... " >&6; } |
| 15156 | if test "${vim_cv_memmove_handles_overlap+set}" = set; then |
| 15157 | $as_echo_n "(cached) " >&6 |
| 15158 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15159 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15160 | if test "$cross_compiling" = yes; then |
| 15161 | |
| 15162 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5 |
| 15163 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15164 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15165 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15166 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15167 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15168 | #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] | 15169 | _ACEOF |
| 15170 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15171 | if { (ac_try="$ac_link" |
| 15172 | case "(($ac_try" in |
| 15173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15174 | *) ac_try_echo=$ac_try;; |
| 15175 | esac |
| 15176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15177 | $as_echo "$ac_try_echo") >&5 |
| 15178 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15179 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15180 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15181 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15182 | { (case "(($ac_try" in |
| 15183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15184 | *) ac_try_echo=$ac_try;; |
| 15185 | esac |
| 15186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15187 | $as_echo "$ac_try_echo") >&5 |
| 15188 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15189 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15190 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15191 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15192 | |
| 15193 | vim_cv_memmove_handles_overlap=yes |
| 15194 | |
| 15195 | else |
| 15196 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15197 | $as_echo "$as_me: failed program was:" >&5 |
| 15198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15199 | |
| 15200 | ( exit $ac_status ) |
| 15201 | |
| 15202 | vim_cv_memmove_handles_overlap=no |
| 15203 | |
| 15204 | fi |
| 15205 | rm -rf conftest.dSYM |
| 15206 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15207 | fi |
| 15208 | |
| 15209 | |
| 15210 | |
| 15211 | fi |
| 15212 | { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5 |
| 15213 | $as_echo "$vim_cv_memmove_handles_overlap" >&6; } |
| 15214 | |
| 15215 | if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15216 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15217 | #define USEMEMMOVE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15218 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15219 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15220 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15221 | { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5 |
| 15222 | $as_echo_n "checking whether bcopy handles overlaps... " >&6; } |
| 15223 | if test "${vim_cv_bcopy_handles_overlap+set}" = set; then |
| 15224 | $as_echo_n "(cached) " >&6 |
| 15225 | else |
| 15226 | |
| 15227 | if test "$cross_compiling" = yes; then |
| 15228 | |
| 15229 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5 |
| 15230 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;} |
| 15231 | { (exit 1); exit 1; }; } |
| 15232 | |
| 15233 | else |
| 15234 | cat >conftest.$ac_ext <<_ACEOF |
| 15235 | #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog |
| 15236 | _ACEOF |
| 15237 | rm -f conftest$ac_exeext |
| 15238 | if { (ac_try="$ac_link" |
| 15239 | case "(($ac_try" in |
| 15240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15241 | *) ac_try_echo=$ac_try;; |
| 15242 | esac |
| 15243 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15244 | $as_echo "$ac_try_echo") >&5 |
| 15245 | (eval "$ac_link") 2>&5 |
| 15246 | ac_status=$? |
| 15247 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15248 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15249 | { (case "(($ac_try" in |
| 15250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15251 | *) ac_try_echo=$ac_try;; |
| 15252 | esac |
| 15253 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15254 | $as_echo "$ac_try_echo") >&5 |
| 15255 | (eval "$ac_try") 2>&5 |
| 15256 | ac_status=$? |
| 15257 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15258 | (exit $ac_status); }; }; then |
| 15259 | |
| 15260 | vim_cv_bcopy_handles_overlap=yes |
| 15261 | |
| 15262 | else |
| 15263 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15264 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15266 | |
| 15267 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15268 | |
| 15269 | vim_cv_bcopy_handles_overlap=no |
| 15270 | |
| 15271 | fi |
| 15272 | rm -rf conftest.dSYM |
| 15273 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15274 | fi |
| 15275 | |
| 15276 | |
| 15277 | |
| 15278 | fi |
| 15279 | { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5 |
| 15280 | $as_echo "$vim_cv_bcopy_handles_overlap" >&6; } |
| 15281 | |
| 15282 | if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then |
| 15283 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15284 | #define USEBCOPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15285 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15286 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15287 | else |
| 15288 | { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5 |
| 15289 | $as_echo_n "checking whether memcpy handles overlaps... " >&6; } |
| 15290 | if test "${vim_cv_memcpy_handles_overlap+set}" = set; then |
| 15291 | $as_echo_n "(cached) " >&6 |
| 15292 | else |
| 15293 | |
| 15294 | if test "$cross_compiling" = yes; then |
| 15295 | |
| 15296 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5 |
| 15297 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15298 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15299 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15300 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15301 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15302 | #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15303 | _ACEOF |
| 15304 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15305 | if { (ac_try="$ac_link" |
| 15306 | case "(($ac_try" in |
| 15307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15308 | *) ac_try_echo=$ac_try;; |
| 15309 | esac |
| 15310 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15311 | $as_echo "$ac_try_echo") >&5 |
| 15312 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15313 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15314 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15315 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15316 | { (case "(($ac_try" in |
| 15317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15318 | *) ac_try_echo=$ac_try;; |
| 15319 | esac |
| 15320 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15321 | $as_echo "$ac_try_echo") >&5 |
| 15322 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15323 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15324 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15325 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15326 | |
| 15327 | vim_cv_memcpy_handles_overlap=yes |
| 15328 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15329 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15330 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15331 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15332 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15333 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15334 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15335 | |
| 15336 | vim_cv_memcpy_handles_overlap=no |
| 15337 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15338 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15339 | rm -rf conftest.dSYM |
| 15340 | rm -f core *.core core.conftest.* 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] | 15341 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15342 | |
| 15343 | |
| 15344 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15345 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15346 | { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5 |
| 15347 | $as_echo "$vim_cv_memcpy_handles_overlap" >&6; } |
| 15348 | |
| 15349 | if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then |
| 15350 | cat >>confdefs.h <<\_ACEOF |
| 15351 | #define USEMEMCPY 1 |
| 15352 | _ACEOF |
| 15353 | |
| 15354 | fi |
| 15355 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15356 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15357 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15358 | |
| 15359 | |
| 15360 | if test "$enable_multibyte" = "yes"; then |
| 15361 | cflags_save=$CFLAGS |
| 15362 | ldflags_save=$LDFLAGS |
| 15363 | if test -n "$x_includes" ; then |
| 15364 | CFLAGS="$CFLAGS -I$x_includes" |
| 15365 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15366 | { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
| 15367 | $as_echo_n "checking whether X_LOCALE needed... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15368 | cat >conftest.$ac_ext <<_ACEOF |
| 15369 | /* confdefs.h. */ |
| 15370 | _ACEOF |
| 15371 | cat confdefs.h >>conftest.$ac_ext |
| 15372 | cat >>conftest.$ac_ext <<_ACEOF |
| 15373 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15374 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15375 | int |
| 15376 | main () |
| 15377 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15378 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15379 | ; |
| 15380 | return 0; |
| 15381 | } |
| 15382 | _ACEOF |
| 15383 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15384 | if { (ac_try="$ac_compile" |
| 15385 | case "(($ac_try" in |
| 15386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15387 | *) ac_try_echo=$ac_try;; |
| 15388 | esac |
| 15389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15390 | $as_echo "$ac_try_echo") >&5 |
| 15391 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15392 | ac_status=$? |
| 15393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15394 | rm -f conftest.er1 |
| 15395 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15397 | (exit $ac_status); } && { |
| 15398 | test -z "$ac_c_werror_flag" || |
| 15399 | test ! -s conftest.err |
| 15400 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15401 | cat >conftest.$ac_ext <<_ACEOF |
| 15402 | /* confdefs.h. */ |
| 15403 | _ACEOF |
| 15404 | cat confdefs.h >>conftest.$ac_ext |
| 15405 | cat >>conftest.$ac_ext <<_ACEOF |
| 15406 | /* end confdefs.h. */ |
| 15407 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15408 | /* Override any GCC internal prototype to avoid an error. |
| 15409 | Use char because int might match the return type of a GCC |
| 15410 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15411 | #ifdef __cplusplus |
| 15412 | extern "C" |
| 15413 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15414 | char _Xsetlocale (); |
| 15415 | int |
| 15416 | main () |
| 15417 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15418 | return _Xsetlocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15419 | ; |
| 15420 | return 0; |
| 15421 | } |
| 15422 | _ACEOF |
| 15423 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15424 | if { (ac_try="$ac_link" |
| 15425 | case "(($ac_try" in |
| 15426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15427 | *) ac_try_echo=$ac_try;; |
| 15428 | esac |
| 15429 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15430 | $as_echo "$ac_try_echo") >&5 |
| 15431 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15432 | ac_status=$? |
| 15433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15434 | rm -f conftest.er1 |
| 15435 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15436 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15437 | (exit $ac_status); } && { |
| 15438 | test -z "$ac_c_werror_flag" || |
| 15439 | test ! -s conftest.err |
| 15440 | } && test -s conftest$ac_exeext && { |
| 15441 | test "$cross_compiling" = yes || |
| 15442 | $as_test_x conftest$ac_exeext |
| 15443 | }; then |
| 15444 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15445 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15446 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15447 | #define X_LOCALE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15448 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15449 | |
| 15450 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15451 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15453 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15454 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15455 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15456 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15457 | |
| 15458 | rm -rf conftest.dSYM |
| 15459 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15460 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15461 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15462 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15464 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15465 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15466 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15467 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15468 | |
| 15469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15470 | fi |
| 15471 | CFLAGS=$cflags_save |
| 15472 | LDFLAGS=$ldflags_save |
| 15473 | fi |
| 15474 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15475 | { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 15476 | $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15477 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15478 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15479 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15480 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15481 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15482 | cat >conftest.$ac_ext <<_ACEOF |
| 15483 | /* confdefs.h. */ |
| 15484 | _ACEOF |
| 15485 | cat confdefs.h >>conftest.$ac_ext |
| 15486 | cat >>conftest.$ac_ext <<_ACEOF |
| 15487 | /* end confdefs.h. */ |
| 15488 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15489 | /* Override any GCC internal prototype to avoid an error. |
| 15490 | Use char because int might match the return type of a GCC |
| 15491 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15492 | #ifdef __cplusplus |
| 15493 | extern "C" |
| 15494 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15495 | char _xpg4_setrunelocale (); |
| 15496 | int |
| 15497 | main () |
| 15498 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15499 | return _xpg4_setrunelocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15500 | ; |
| 15501 | return 0; |
| 15502 | } |
| 15503 | _ACEOF |
| 15504 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15505 | if { (ac_try="$ac_link" |
| 15506 | case "(($ac_try" in |
| 15507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15508 | *) ac_try_echo=$ac_try;; |
| 15509 | esac |
| 15510 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15511 | $as_echo "$ac_try_echo") >&5 |
| 15512 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15513 | ac_status=$? |
| 15514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15515 | rm -f conftest.er1 |
| 15516 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15517 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15518 | (exit $ac_status); } && { |
| 15519 | test -z "$ac_c_werror_flag" || |
| 15520 | test ! -s conftest.err |
| 15521 | } && test -s conftest$ac_exeext && { |
| 15522 | test "$cross_compiling" = yes || |
| 15523 | $as_test_x conftest$ac_exeext |
| 15524 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15525 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15526 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15527 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15528 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15529 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15530 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15531 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15532 | |
| 15533 | rm -rf conftest.dSYM |
| 15534 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15535 | conftest$ac_exeext conftest.$ac_ext |
| 15536 | LIBS=$ac_check_lib_save_LIBS |
| 15537 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15538 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 15539 | $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15540 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15541 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15542 | fi |
| 15543 | |
| 15544 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15545 | { $as_echo "$as_me:$LINENO: checking how to create tags" >&5 |
| 15546 | $as_echo_n "checking how to create tags... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15547 | test -f tags && mv tags tags.save |
| 15548 | 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] | 15549 | TAGPRG="ctags -I INIT+ --fields=+S" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15550 | else |
| 15551 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 15552 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 15553 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 15554 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 15555 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 15556 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 15557 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 15558 | fi |
| 15559 | test -f tags.save && mv tags.save tags |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15560 | { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
| 15561 | $as_echo "$TAGPRG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15562 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15563 | { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
| 15564 | $as_echo_n "checking how to run man with a section nr... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15565 | MANDEF="man" |
Bram Moolenaar | 8b13150 | 2008-02-13 09:28:19 +0000 | [diff] [blame] | 15566 | (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15567 | { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5 |
| 15568 | $as_echo "$MANDEF" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15569 | if test "$MANDEF" = "man -s"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15570 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15571 | #define USEMAN_S 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15572 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15573 | |
| 15574 | fi |
| 15575 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15576 | { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
| 15577 | $as_echo_n "checking --disable-nls argument... " >&6; } |
| 15578 | # Check whether --enable-nls was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15579 | if test "${enable_nls+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15580 | enableval=$enable_nls; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15581 | else |
| 15582 | enable_nls="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15583 | fi |
| 15584 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15585 | |
| 15586 | if test "$enable_nls" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15587 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15588 | $as_echo "no" >&6; } |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 15589 | |
| 15590 | INSTALL_LANGS=install-languages |
| 15591 | |
| 15592 | INSTALL_TOOL_LANGS=install-tool-languages |
| 15593 | |
| 15594 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15595 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 15596 | set dummy msgfmt; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15597 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15598 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15599 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15600 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15601 | else |
| 15602 | if test -n "$MSGFMT"; then |
| 15603 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 15604 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15606 | for as_dir in $PATH |
| 15607 | do |
| 15608 | IFS=$as_save_IFS |
| 15609 | test -z "$as_dir" && as_dir=. |
| 15610 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15612 | ac_cv_prog_MSGFMT="msgfmt" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15613 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15614 | break 2 |
| 15615 | fi |
| 15616 | done |
| 15617 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15618 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15619 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15620 | fi |
| 15621 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15622 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15623 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15624 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 15625 | $as_echo "$MSGFMT" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15626 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15627 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15628 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15629 | fi |
| 15630 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15631 | |
| 15632 | { $as_echo "$as_me:$LINENO: checking for NLS" >&5 |
| 15633 | $as_echo_n "checking for NLS... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15634 | if test -f po/Makefile; then |
| 15635 | have_gettext="no" |
| 15636 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15637 | cat >conftest.$ac_ext <<_ACEOF |
| 15638 | /* confdefs.h. */ |
| 15639 | _ACEOF |
| 15640 | cat confdefs.h >>conftest.$ac_ext |
| 15641 | cat >>conftest.$ac_ext <<_ACEOF |
| 15642 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15643 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15644 | int |
| 15645 | main () |
| 15646 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15647 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15648 | ; |
| 15649 | return 0; |
| 15650 | } |
| 15651 | _ACEOF |
| 15652 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15653 | if { (ac_try="$ac_link" |
| 15654 | case "(($ac_try" in |
| 15655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15656 | *) ac_try_echo=$ac_try;; |
| 15657 | esac |
| 15658 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15659 | $as_echo "$ac_try_echo") >&5 |
| 15660 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15661 | ac_status=$? |
| 15662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15663 | rm -f conftest.er1 |
| 15664 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15665 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15666 | (exit $ac_status); } && { |
| 15667 | test -z "$ac_c_werror_flag" || |
| 15668 | test ! -s conftest.err |
| 15669 | } && test -s conftest$ac_exeext && { |
| 15670 | test "$cross_compiling" = yes || |
| 15671 | $as_test_x conftest$ac_exeext |
| 15672 | }; then |
| 15673 | { $as_echo "$as_me:$LINENO: result: gettext() works" >&5 |
| 15674 | $as_echo "gettext() works" >&6; }; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15675 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15676 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15678 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15679 | olibs=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15680 | LIBS="$LIBS -lintl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15681 | cat >conftest.$ac_ext <<_ACEOF |
| 15682 | /* confdefs.h. */ |
| 15683 | _ACEOF |
| 15684 | cat confdefs.h >>conftest.$ac_ext |
| 15685 | cat >>conftest.$ac_ext <<_ACEOF |
| 15686 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15687 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15688 | int |
| 15689 | main () |
| 15690 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15691 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15692 | ; |
| 15693 | return 0; |
| 15694 | } |
| 15695 | _ACEOF |
| 15696 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15697 | if { (ac_try="$ac_link" |
| 15698 | case "(($ac_try" in |
| 15699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15700 | *) ac_try_echo=$ac_try;; |
| 15701 | esac |
| 15702 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15703 | $as_echo "$ac_try_echo") >&5 |
| 15704 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15705 | ac_status=$? |
| 15706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15707 | rm -f conftest.er1 |
| 15708 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15710 | (exit $ac_status); } && { |
| 15711 | test -z "$ac_c_werror_flag" || |
| 15712 | test ! -s conftest.err |
| 15713 | } && test -s conftest$ac_exeext && { |
| 15714 | test "$cross_compiling" = yes || |
| 15715 | $as_test_x conftest$ac_exeext |
| 15716 | }; then |
| 15717 | { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 |
| 15718 | $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15719 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15720 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15722 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15723 | { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 |
| 15724 | $as_echo "gettext() doesn't work" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15725 | LIBS=$olibs |
| 15726 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15727 | |
| 15728 | rm -rf conftest.dSYM |
| 15729 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15730 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15731 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15732 | |
| 15733 | rm -rf conftest.dSYM |
| 15734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15735 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15736 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15737 | { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
| 15738 | $as_echo "msgfmt not found - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15739 | fi |
| 15740 | if test $have_gettext = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15741 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15742 | #define HAVE_GETTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15743 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15744 | |
| 15745 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15746 | |
| 15747 | |
| 15748 | for ac_func in bind_textdomain_codeset |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15749 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15750 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15751 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15752 | $as_echo_n "checking for $ac_func... " >&6; } |
| 15753 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15754 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15755 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15756 | cat >conftest.$ac_ext <<_ACEOF |
| 15757 | /* confdefs.h. */ |
| 15758 | _ACEOF |
| 15759 | cat confdefs.h >>conftest.$ac_ext |
| 15760 | cat >>conftest.$ac_ext <<_ACEOF |
| 15761 | /* end confdefs.h. */ |
| 15762 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15763 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15764 | #define $ac_func innocuous_$ac_func |
| 15765 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15766 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15767 | which can conflict with char $ac_func (); below. |
| 15768 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15769 | <limits.h> exists even on freestanding compilers. */ |
| 15770 | |
| 15771 | #ifdef __STDC__ |
| 15772 | # include <limits.h> |
| 15773 | #else |
| 15774 | # include <assert.h> |
| 15775 | #endif |
| 15776 | |
| 15777 | #undef $ac_func |
| 15778 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15779 | /* Override any GCC internal prototype to avoid an error. |
| 15780 | Use char because int might match the return type of a GCC |
| 15781 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15782 | #ifdef __cplusplus |
| 15783 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15784 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15785 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15786 | /* The GNU C library defines this for functions which it implements |
| 15787 | to always fail with ENOSYS. Some functions are actually named |
| 15788 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15789 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15790 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15791 | #endif |
| 15792 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15793 | int |
| 15794 | main () |
| 15795 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15796 | return $ac_func (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15797 | ; |
| 15798 | return 0; |
| 15799 | } |
| 15800 | _ACEOF |
| 15801 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15802 | if { (ac_try="$ac_link" |
| 15803 | case "(($ac_try" in |
| 15804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15805 | *) ac_try_echo=$ac_try;; |
| 15806 | esac |
| 15807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15808 | $as_echo "$ac_try_echo") >&5 |
| 15809 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15810 | ac_status=$? |
| 15811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15812 | rm -f conftest.er1 |
| 15813 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15815 | (exit $ac_status); } && { |
| 15816 | test -z "$ac_c_werror_flag" || |
| 15817 | test ! -s conftest.err |
| 15818 | } && test -s conftest$ac_exeext && { |
| 15819 | test "$cross_compiling" = yes || |
| 15820 | $as_test_x conftest$ac_exeext |
| 15821 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15822 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15823 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15824 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15825 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15826 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15827 | eval "$as_ac_var=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15828 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15829 | |
| 15830 | rm -rf conftest.dSYM |
| 15831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15832 | conftest$ac_exeext conftest.$ac_ext |
| 15833 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15834 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 15835 | $as_echo "$as_val"'` |
| 15836 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15837 | $as_echo "$ac_res" >&6; } |
| 15838 | if test `eval 'as_val=${'$as_ac_var'} |
| 15839 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15840 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15841 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15842 | _ACEOF |
| 15843 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15844 | fi |
| 15845 | done |
| 15846 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15847 | { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
| 15848 | $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15849 | cat >conftest.$ac_ext <<_ACEOF |
| 15850 | /* confdefs.h. */ |
| 15851 | _ACEOF |
| 15852 | cat confdefs.h >>conftest.$ac_ext |
| 15853 | cat >>conftest.$ac_ext <<_ACEOF |
| 15854 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15855 | #include <libintl.h> |
| 15856 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15857 | int |
| 15858 | main () |
| 15859 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15860 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15861 | ; |
| 15862 | return 0; |
| 15863 | } |
| 15864 | _ACEOF |
| 15865 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15866 | if { (ac_try="$ac_link" |
| 15867 | case "(($ac_try" in |
| 15868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15869 | *) ac_try_echo=$ac_try;; |
| 15870 | esac |
| 15871 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15872 | $as_echo "$ac_try_echo") >&5 |
| 15873 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15874 | ac_status=$? |
| 15875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15876 | rm -f conftest.er1 |
| 15877 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15879 | (exit $ac_status); } && { |
| 15880 | test -z "$ac_c_werror_flag" || |
| 15881 | test ! -s conftest.err |
| 15882 | } && test -s conftest$ac_exeext && { |
| 15883 | test "$cross_compiling" = yes || |
| 15884 | $as_test_x conftest$ac_exeext |
| 15885 | }; then |
| 15886 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15887 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15888 | #define HAVE_NL_MSG_CAT_CNTR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15889 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15890 | |
| 15891 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15892 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15894 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15895 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15896 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15897 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15898 | |
| 15899 | rm -rf conftest.dSYM |
| 15900 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15901 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15902 | fi |
| 15903 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15904 | { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
| 15905 | $as_echo "no \"po/Makefile\" - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15906 | fi |
| 15907 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15908 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15909 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15910 | fi |
| 15911 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15912 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15913 | { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 15914 | $as_echo_n "checking for dlfcn.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15915 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15916 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15917 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15918 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 15919 | $as_echo "$ac_cv_header_dlfcn_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15920 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15921 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15922 | { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 15923 | $as_echo_n "checking dlfcn.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15924 | cat >conftest.$ac_ext <<_ACEOF |
| 15925 | /* confdefs.h. */ |
| 15926 | _ACEOF |
| 15927 | cat confdefs.h >>conftest.$ac_ext |
| 15928 | cat >>conftest.$ac_ext <<_ACEOF |
| 15929 | /* end confdefs.h. */ |
| 15930 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15931 | #include <dlfcn.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15932 | _ACEOF |
| 15933 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15934 | if { (ac_try="$ac_compile" |
| 15935 | case "(($ac_try" in |
| 15936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15937 | *) ac_try_echo=$ac_try;; |
| 15938 | esac |
| 15939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15940 | $as_echo "$ac_try_echo") >&5 |
| 15941 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15942 | ac_status=$? |
| 15943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15944 | rm -f conftest.er1 |
| 15945 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15947 | (exit $ac_status); } && { |
| 15948 | test -z "$ac_c_werror_flag" || |
| 15949 | test ! -s conftest.err |
| 15950 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15951 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15952 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15953 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15955 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15956 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15957 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15958 | |
| 15959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15960 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15961 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15962 | |
| 15963 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15964 | { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 15965 | $as_echo_n "checking dlfcn.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15966 | cat >conftest.$ac_ext <<_ACEOF |
| 15967 | /* confdefs.h. */ |
| 15968 | _ACEOF |
| 15969 | cat confdefs.h >>conftest.$ac_ext |
| 15970 | cat >>conftest.$ac_ext <<_ACEOF |
| 15971 | /* end confdefs.h. */ |
| 15972 | #include <dlfcn.h> |
| 15973 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15974 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15975 | case "(($ac_try" in |
| 15976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15977 | *) ac_try_echo=$ac_try;; |
| 15978 | esac |
| 15979 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15980 | $as_echo "$ac_try_echo") >&5 |
| 15981 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15982 | ac_status=$? |
| 15983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15984 | rm -f conftest.er1 |
| 15985 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15986 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15987 | (exit $ac_status); } >/dev/null && { |
| 15988 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15989 | test ! -s conftest.err |
| 15990 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15991 | ac_header_preproc=yes |
| 15992 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15993 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15995 | |
| 15996 | ac_header_preproc=no |
| 15997 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15998 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15999 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16000 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16001 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16002 | |
| 16003 | # So? What about this header? |
| 16004 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16005 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16006 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16007 | $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16008 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 16009 | $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16010 | ac_header_preproc=yes |
| 16011 | ;; |
| 16012 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16013 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 16014 | $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 16015 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 16016 | $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 16017 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 16018 | $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 16019 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16020 | $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16021 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 16022 | $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 16023 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 16024 | $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 16025 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16026 | ;; |
| 16027 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16028 | { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 16029 | $as_echo_n "checking for dlfcn.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16030 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16031 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16032 | else |
| 16033 | ac_cv_header_dlfcn_h=$ac_header_preproc |
| 16034 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16035 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 16036 | $as_echo "$ac_cv_header_dlfcn_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16037 | |
| 16038 | fi |
| 16039 | if test $ac_cv_header_dlfcn_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16040 | DLL=dlfcn.h |
| 16041 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16042 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16043 | { $as_echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 16044 | $as_echo_n "checking for dl.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16045 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16046 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16047 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16048 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 16049 | $as_echo "$ac_cv_header_dl_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16050 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16051 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16052 | { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5 |
| 16053 | $as_echo_n "checking dl.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16054 | cat >conftest.$ac_ext <<_ACEOF |
| 16055 | /* confdefs.h. */ |
| 16056 | _ACEOF |
| 16057 | cat confdefs.h >>conftest.$ac_ext |
| 16058 | cat >>conftest.$ac_ext <<_ACEOF |
| 16059 | /* end confdefs.h. */ |
| 16060 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16061 | #include <dl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16062 | _ACEOF |
| 16063 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16064 | if { (ac_try="$ac_compile" |
| 16065 | case "(($ac_try" in |
| 16066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16067 | *) ac_try_echo=$ac_try;; |
| 16068 | esac |
| 16069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16070 | $as_echo "$ac_try_echo") >&5 |
| 16071 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16072 | ac_status=$? |
| 16073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16074 | rm -f conftest.er1 |
| 16075 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16077 | (exit $ac_status); } && { |
| 16078 | test -z "$ac_c_werror_flag" || |
| 16079 | test ! -s conftest.err |
| 16080 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16081 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16082 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16083 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16085 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16086 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16087 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16088 | |
| 16089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16090 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16091 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16092 | |
| 16093 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16094 | { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5 |
| 16095 | $as_echo_n "checking dl.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16096 | cat >conftest.$ac_ext <<_ACEOF |
| 16097 | /* confdefs.h. */ |
| 16098 | _ACEOF |
| 16099 | cat confdefs.h >>conftest.$ac_ext |
| 16100 | cat >>conftest.$ac_ext <<_ACEOF |
| 16101 | /* end confdefs.h. */ |
| 16102 | #include <dl.h> |
| 16103 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16104 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16105 | case "(($ac_try" in |
| 16106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16107 | *) ac_try_echo=$ac_try;; |
| 16108 | esac |
| 16109 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16110 | $as_echo "$ac_try_echo") >&5 |
| 16111 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16112 | ac_status=$? |
| 16113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16114 | rm -f conftest.er1 |
| 16115 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16116 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16117 | (exit $ac_status); } >/dev/null && { |
| 16118 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16119 | test ! -s conftest.err |
| 16120 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16121 | ac_header_preproc=yes |
| 16122 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16123 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16125 | |
| 16126 | ac_header_preproc=no |
| 16127 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16128 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16129 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16130 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16131 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16132 | |
| 16133 | # So? What about this header? |
| 16134 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16135 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16136 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16137 | $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16138 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 |
| 16139 | $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16140 | ac_header_preproc=yes |
| 16141 | ;; |
| 16142 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16143 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 |
| 16144 | $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} |
| 16145 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 |
| 16146 | $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} |
| 16147 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 |
| 16148 | $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} |
| 16149 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16150 | $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16151 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 |
| 16152 | $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} |
| 16153 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 |
| 16154 | $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} |
| 16155 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16156 | ;; |
| 16157 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16158 | { $as_echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 16159 | $as_echo_n "checking for dl.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16160 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16161 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16162 | else |
| 16163 | ac_cv_header_dl_h=$ac_header_preproc |
| 16164 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16165 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 16166 | $as_echo "$ac_cv_header_dl_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16167 | |
| 16168 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16169 | if test $ac_cv_header_dl_h = yes; then |
| 16170 | DLL=dl.h |
| 16171 | fi |
| 16172 | |
| 16173 | |
| 16174 | fi |
| 16175 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16176 | |
| 16177 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16178 | |
| 16179 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16180 | #define HAVE_DLFCN_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16181 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16182 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16183 | { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5 |
| 16184 | $as_echo_n "checking for dlopen()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16185 | cat >conftest.$ac_ext <<_ACEOF |
| 16186 | /* confdefs.h. */ |
| 16187 | _ACEOF |
| 16188 | cat confdefs.h >>conftest.$ac_ext |
| 16189 | cat >>conftest.$ac_ext <<_ACEOF |
| 16190 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16191 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16192 | int |
| 16193 | main () |
| 16194 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16195 | |
| 16196 | extern void* dlopen(); |
| 16197 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16198 | |
| 16199 | ; |
| 16200 | return 0; |
| 16201 | } |
| 16202 | _ACEOF |
| 16203 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16204 | if { (ac_try="$ac_link" |
| 16205 | case "(($ac_try" in |
| 16206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16207 | *) ac_try_echo=$ac_try;; |
| 16208 | esac |
| 16209 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16210 | $as_echo "$ac_try_echo") >&5 |
| 16211 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16212 | ac_status=$? |
| 16213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16214 | rm -f conftest.er1 |
| 16215 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16216 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16217 | (exit $ac_status); } && { |
| 16218 | test -z "$ac_c_werror_flag" || |
| 16219 | test ! -s conftest.err |
| 16220 | } && test -s conftest$ac_exeext && { |
| 16221 | test "$cross_compiling" = yes || |
| 16222 | $as_test_x conftest$ac_exeext |
| 16223 | }; then |
| 16224 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16225 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16226 | |
| 16227 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16228 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16229 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16230 | |
| 16231 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16232 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16234 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16235 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16236 | $as_echo "no" >&6; }; |
| 16237 | { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
| 16238 | $as_echo_n "checking for dlopen() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16239 | olibs=$LIBS |
| 16240 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16241 | cat >conftest.$ac_ext <<_ACEOF |
| 16242 | /* confdefs.h. */ |
| 16243 | _ACEOF |
| 16244 | cat confdefs.h >>conftest.$ac_ext |
| 16245 | cat >>conftest.$ac_ext <<_ACEOF |
| 16246 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16247 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16248 | int |
| 16249 | main () |
| 16250 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16251 | |
| 16252 | extern void* dlopen(); |
| 16253 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16254 | |
| 16255 | ; |
| 16256 | return 0; |
| 16257 | } |
| 16258 | _ACEOF |
| 16259 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16260 | if { (ac_try="$ac_link" |
| 16261 | case "(($ac_try" in |
| 16262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16263 | *) ac_try_echo=$ac_try;; |
| 16264 | esac |
| 16265 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16266 | $as_echo "$ac_try_echo") >&5 |
| 16267 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16268 | ac_status=$? |
| 16269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16270 | rm -f conftest.er1 |
| 16271 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16272 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16273 | (exit $ac_status); } && { |
| 16274 | test -z "$ac_c_werror_flag" || |
| 16275 | test ! -s conftest.err |
| 16276 | } && test -s conftest$ac_exeext && { |
| 16277 | test "$cross_compiling" = yes || |
| 16278 | $as_test_x conftest$ac_exeext |
| 16279 | }; then |
| 16280 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16281 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16282 | |
| 16283 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16284 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16285 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16286 | |
| 16287 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16288 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16290 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16291 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16292 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16293 | LIBS=$olibs |
| 16294 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16295 | |
| 16296 | rm -rf conftest.dSYM |
| 16297 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16298 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16299 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16300 | |
| 16301 | rm -rf conftest.dSYM |
| 16302 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16303 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16304 | { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5 |
| 16305 | $as_echo_n "checking for dlsym()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16306 | cat >conftest.$ac_ext <<_ACEOF |
| 16307 | /* confdefs.h. */ |
| 16308 | _ACEOF |
| 16309 | cat confdefs.h >>conftest.$ac_ext |
| 16310 | cat >>conftest.$ac_ext <<_ACEOF |
| 16311 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16312 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16313 | int |
| 16314 | main () |
| 16315 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16316 | |
| 16317 | extern void* dlsym(); |
| 16318 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16319 | |
| 16320 | ; |
| 16321 | return 0; |
| 16322 | } |
| 16323 | _ACEOF |
| 16324 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16325 | if { (ac_try="$ac_link" |
| 16326 | case "(($ac_try" in |
| 16327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16328 | *) ac_try_echo=$ac_try;; |
| 16329 | esac |
| 16330 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16331 | $as_echo "$ac_try_echo") >&5 |
| 16332 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16333 | ac_status=$? |
| 16334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16335 | rm -f conftest.er1 |
| 16336 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16337 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16338 | (exit $ac_status); } && { |
| 16339 | test -z "$ac_c_werror_flag" || |
| 16340 | test ! -s conftest.err |
| 16341 | } && test -s conftest$ac_exeext && { |
| 16342 | test "$cross_compiling" = yes || |
| 16343 | $as_test_x conftest$ac_exeext |
| 16344 | }; then |
| 16345 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16346 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16347 | |
| 16348 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16349 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16350 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16351 | |
| 16352 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16353 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16355 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16356 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16357 | $as_echo "no" >&6; }; |
| 16358 | { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
| 16359 | $as_echo_n "checking for dlsym() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16360 | olibs=$LIBS |
| 16361 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16362 | cat >conftest.$ac_ext <<_ACEOF |
| 16363 | /* confdefs.h. */ |
| 16364 | _ACEOF |
| 16365 | cat confdefs.h >>conftest.$ac_ext |
| 16366 | cat >>conftest.$ac_ext <<_ACEOF |
| 16367 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16368 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16369 | int |
| 16370 | main () |
| 16371 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16372 | |
| 16373 | extern void* dlsym(); |
| 16374 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16375 | |
| 16376 | ; |
| 16377 | return 0; |
| 16378 | } |
| 16379 | _ACEOF |
| 16380 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16381 | if { (ac_try="$ac_link" |
| 16382 | case "(($ac_try" in |
| 16383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16384 | *) ac_try_echo=$ac_try;; |
| 16385 | esac |
| 16386 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16387 | $as_echo "$ac_try_echo") >&5 |
| 16388 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16389 | ac_status=$? |
| 16390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16391 | rm -f conftest.er1 |
| 16392 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16394 | (exit $ac_status); } && { |
| 16395 | test -z "$ac_c_werror_flag" || |
| 16396 | test ! -s conftest.err |
| 16397 | } && test -s conftest$ac_exeext && { |
| 16398 | test "$cross_compiling" = yes || |
| 16399 | $as_test_x conftest$ac_exeext |
| 16400 | }; then |
| 16401 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16402 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16403 | |
| 16404 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16405 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16406 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16407 | |
| 16408 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16409 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16411 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16412 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16413 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16414 | LIBS=$olibs |
| 16415 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16416 | |
| 16417 | rm -rf conftest.dSYM |
| 16418 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16419 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16420 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16421 | |
| 16422 | rm -rf conftest.dSYM |
| 16423 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16424 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16425 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16426 | |
| 16427 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16428 | #define HAVE_DL_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16429 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16430 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16431 | { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5 |
| 16432 | $as_echo_n "checking for shl_load()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16433 | cat >conftest.$ac_ext <<_ACEOF |
| 16434 | /* confdefs.h. */ |
| 16435 | _ACEOF |
| 16436 | cat confdefs.h >>conftest.$ac_ext |
| 16437 | cat >>conftest.$ac_ext <<_ACEOF |
| 16438 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16439 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16440 | int |
| 16441 | main () |
| 16442 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16443 | |
| 16444 | extern void* shl_load(); |
| 16445 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16446 | |
| 16447 | ; |
| 16448 | return 0; |
| 16449 | } |
| 16450 | _ACEOF |
| 16451 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16452 | if { (ac_try="$ac_link" |
| 16453 | case "(($ac_try" in |
| 16454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16455 | *) ac_try_echo=$ac_try;; |
| 16456 | esac |
| 16457 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16458 | $as_echo "$ac_try_echo") >&5 |
| 16459 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16460 | ac_status=$? |
| 16461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16462 | rm -f conftest.er1 |
| 16463 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16465 | (exit $ac_status); } && { |
| 16466 | test -z "$ac_c_werror_flag" || |
| 16467 | test ! -s conftest.err |
| 16468 | } && test -s conftest$ac_exeext && { |
| 16469 | test "$cross_compiling" = yes || |
| 16470 | $as_test_x conftest$ac_exeext |
| 16471 | }; then |
| 16472 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16473 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16474 | |
| 16475 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16476 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16477 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16478 | |
| 16479 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16480 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16482 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16483 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16484 | $as_echo "no" >&6; }; |
| 16485 | { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
| 16486 | $as_echo_n "checking for shl_load() in -ldld... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16487 | olibs=$LIBS |
| 16488 | LIBS="$LIBS -ldld" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16489 | cat >conftest.$ac_ext <<_ACEOF |
| 16490 | /* confdefs.h. */ |
| 16491 | _ACEOF |
| 16492 | cat confdefs.h >>conftest.$ac_ext |
| 16493 | cat >>conftest.$ac_ext <<_ACEOF |
| 16494 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16495 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16496 | int |
| 16497 | main () |
| 16498 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16499 | |
| 16500 | extern void* shl_load(); |
| 16501 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16502 | |
| 16503 | ; |
| 16504 | return 0; |
| 16505 | } |
| 16506 | _ACEOF |
| 16507 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16508 | if { (ac_try="$ac_link" |
| 16509 | case "(($ac_try" in |
| 16510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16511 | *) ac_try_echo=$ac_try;; |
| 16512 | esac |
| 16513 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16514 | $as_echo "$ac_try_echo") >&5 |
| 16515 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16516 | ac_status=$? |
| 16517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16518 | rm -f conftest.er1 |
| 16519 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16520 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16521 | (exit $ac_status); } && { |
| 16522 | test -z "$ac_c_werror_flag" || |
| 16523 | test ! -s conftest.err |
| 16524 | } && test -s conftest$ac_exeext && { |
| 16525 | test "$cross_compiling" = yes || |
| 16526 | $as_test_x conftest$ac_exeext |
| 16527 | }; then |
| 16528 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16529 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16530 | |
| 16531 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16532 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16533 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16534 | |
| 16535 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16536 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16538 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16539 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16540 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16541 | LIBS=$olibs |
| 16542 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16543 | |
| 16544 | rm -rf conftest.dSYM |
| 16545 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16546 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16547 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16548 | |
| 16549 | rm -rf conftest.dSYM |
| 16550 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16551 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16552 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16553 | |
| 16554 | for ac_header in setjmp.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16555 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16556 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16557 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16558 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16559 | $as_echo_n "checking for $ac_header... " >&6; } |
| 16560 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16561 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16562 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16563 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 16564 | $as_echo "$as_val"'` |
| 16565 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16566 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16567 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16568 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16569 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16570 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16571 | cat >conftest.$ac_ext <<_ACEOF |
| 16572 | /* confdefs.h. */ |
| 16573 | _ACEOF |
| 16574 | cat confdefs.h >>conftest.$ac_ext |
| 16575 | cat >>conftest.$ac_ext <<_ACEOF |
| 16576 | /* end confdefs.h. */ |
| 16577 | $ac_includes_default |
| 16578 | #include <$ac_header> |
| 16579 | _ACEOF |
| 16580 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16581 | if { (ac_try="$ac_compile" |
| 16582 | case "(($ac_try" in |
| 16583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16584 | *) ac_try_echo=$ac_try;; |
| 16585 | esac |
| 16586 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16587 | $as_echo "$ac_try_echo") >&5 |
| 16588 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16589 | ac_status=$? |
| 16590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16591 | rm -f conftest.er1 |
| 16592 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16593 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16594 | (exit $ac_status); } && { |
| 16595 | test -z "$ac_c_werror_flag" || |
| 16596 | test ! -s conftest.err |
| 16597 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16598 | ac_header_compiler=yes |
| 16599 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16600 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16602 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16603 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16604 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16605 | |
| 16606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16607 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16608 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16609 | |
| 16610 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16611 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16612 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16613 | cat >conftest.$ac_ext <<_ACEOF |
| 16614 | /* confdefs.h. */ |
| 16615 | _ACEOF |
| 16616 | cat confdefs.h >>conftest.$ac_ext |
| 16617 | cat >>conftest.$ac_ext <<_ACEOF |
| 16618 | /* end confdefs.h. */ |
| 16619 | #include <$ac_header> |
| 16620 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16621 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16622 | case "(($ac_try" in |
| 16623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16624 | *) ac_try_echo=$ac_try;; |
| 16625 | esac |
| 16626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16627 | $as_echo "$ac_try_echo") >&5 |
| 16628 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16629 | ac_status=$? |
| 16630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16631 | rm -f conftest.er1 |
| 16632 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16634 | (exit $ac_status); } >/dev/null && { |
| 16635 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16636 | test ! -s conftest.err |
| 16637 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16638 | ac_header_preproc=yes |
| 16639 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16640 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16642 | |
| 16643 | ac_header_preproc=no |
| 16644 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16645 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16646 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16647 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16648 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16649 | |
| 16650 | # So? What about this header? |
| 16651 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16652 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16653 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16654 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16655 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16656 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16657 | ac_header_preproc=yes |
| 16658 | ;; |
| 16659 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16660 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16661 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16662 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16663 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16664 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16665 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16666 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16667 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16668 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16669 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16670 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16671 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16672 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16673 | ;; |
| 16674 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16675 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16676 | $as_echo_n "checking for $ac_header... " >&6; } |
| 16677 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16678 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16679 | else |
| 16680 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16681 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16682 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 16683 | $as_echo "$as_val"'` |
| 16684 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16685 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16686 | |
| 16687 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16688 | if test `eval 'as_val=${'$as_ac_Header'} |
| 16689 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16690 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16691 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16692 | _ACEOF |
| 16693 | |
| 16694 | fi |
| 16695 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16696 | done |
| 16697 | |
| 16698 | |
| 16699 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 16700 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 16701 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 16702 | PERL_LIBS="$PERL_LIBS -ldl" |
| 16703 | fi |
| 16704 | fi |
| 16705 | |
| 16706 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 16707 | && test "x$GUITYPE" != "xCARBONGUI"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16708 | { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
| 16709 | $as_echo_n "checking whether we need -framework Carbon... " >&6; } |
Bram Moolenaar | b90daee | 2006-10-17 09:49:09 +0000 | [diff] [blame] | 16710 | if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16711 | || test "x$features" = "xhuge"; then |
| 16712 | LIBS="$LIBS -framework Carbon" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16713 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16714 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16715 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16716 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16717 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16718 | fi |
| 16719 | fi |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 16720 | if test "x$MACARCH" = "xboth"; then |
| 16721 | LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 16722 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16723 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16724 | { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 |
| 16725 | $as_echo_n "checking for GCC 3 or later... " >&6; } |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16726 | DEPEND_CFLAGS_FILTER= |
| 16727 | if test "$GCC" = yes; then |
Bram Moolenaar | 2217cae | 2006-03-25 21:55:52 +0000 | [diff] [blame] | 16728 | gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` |
Bram Moolenaar | f740b29 | 2006-02-16 22:11:02 +0000 | [diff] [blame] | 16729 | if test "$gccmajor" -gt "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16730 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
| 16731 | fi |
| 16732 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 16733 | if test "$DEPEND_CFLAGS_FILTER" = ""; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16734 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16735 | $as_echo "no" >&6; } |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 16736 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16737 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16738 | $as_echo "yes" >&6; } |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 16739 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16740 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16741 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16742 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 16743 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16744 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16745 | # This file is a shell script that caches the results of configure |
| 16746 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16747 | # scripts and configure runs, see configure's option --config-cache. |
| 16748 | # It is not useful on other systems. If it contains results you don't |
| 16749 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16750 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16751 | # config.status only pays attention to the cache file if you give it |
| 16752 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16753 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16754 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 16755 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16756 | # following values. |
| 16757 | |
| 16758 | _ACEOF |
| 16759 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16760 | # The following way of writing the cache mishandles newlines in values, |
| 16761 | # but we know of no workaround that is simple, portable, and efficient. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16762 | # So, we kill variables containing newlines. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16763 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16764 | # and sets the high bit in the cache file unless we assign to the vars. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16765 | ( |
| 16766 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 16767 | eval ac_val=\$$ac_var |
| 16768 | case $ac_val in #( |
| 16769 | *${as_nl}*) |
| 16770 | case $ac_var in #( |
| 16771 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 16772 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 16773 | esac |
| 16774 | case $ac_var in #( |
| 16775 | _ | IFS | as_nl) ;; #( |
| 16776 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 16777 | *) $as_unset $ac_var ;; |
| 16778 | esac ;; |
| 16779 | esac |
| 16780 | done |
| 16781 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16782 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16783 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 16784 | *${as_nl}ac_space=\ *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16785 | # `set' does not quote correctly, so add quotes (double-quote |
| 16786 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16787 | sed -n \ |
| 16788 | "s/'/'\\\\''/g; |
| 16789 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16790 | ;; #( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16791 | *) |
| 16792 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16793 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16794 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16795 | esac | |
| 16796 | sort |
| 16797 | ) | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16798 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16799 | /^ac_cv_env_/b end |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16800 | t clear |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16801 | :clear |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16802 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16803 | t end |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16804 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16805 | :end' >>confcache |
| 16806 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 16807 | if test -w "$cache_file"; then |
| 16808 | test "x$cache_file" != "x/dev/null" && |
| 16809 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 16810 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16811 | cat confcache >$cache_file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16812 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16813 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 16814 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16815 | fi |
| 16816 | fi |
| 16817 | rm -f confcache |
| 16818 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16819 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16820 | # Let make expand exec_prefix. |
| 16821 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16822 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16823 | DEFS=-DHAVE_CONFIG_H |
| 16824 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16825 | ac_libobjs= |
| 16826 | ac_ltlibobjs= |
| 16827 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16828 | # 1. Remove the extension, and $U if already installed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16829 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 16830 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 16831 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16832 | # will be set to the directory where LIBOBJS objects are built. |
| 16833 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16834 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16835 | done |
| 16836 | LIBOBJS=$ac_libobjs |
| 16837 | |
| 16838 | LTLIBOBJS=$ac_ltlibobjs |
| 16839 | |
| 16840 | |
| 16841 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16842 | : ${CONFIG_STATUS=./config.status} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16843 | ac_write_fail=0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16844 | ac_clean_files_save=$ac_clean_files |
| 16845 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16846 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16847 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16848 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16849 | #! $SHELL |
| 16850 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16851 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16852 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16853 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16854 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16855 | debug=false |
| 16856 | ac_cs_recheck=false |
| 16857 | ac_cs_silent=false |
| 16858 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16859 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16860 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16861 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16862 | ## --------------------- ## |
| 16863 | ## M4sh Initialization. ## |
| 16864 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16865 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16866 | # Be more Bourne compatible |
| 16867 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16868 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16869 | emulate sh |
| 16870 | NULLCMD=: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16871 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16872 | # is contrary to our usage. Disable this feature. |
| 16873 | alias -g '${1+"$@"}'='"$@"' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16874 | setopt NO_GLOB_SUBST |
| 16875 | else |
| 16876 | case `(set -o) 2>/dev/null` in |
| 16877 | *posix*) set -o posix ;; |
| 16878 | esac |
| 16879 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16880 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16881 | |
| 16882 | |
| 16883 | |
| 16884 | |
| 16885 | # PATH needs CR |
| 16886 | # Avoid depending upon Character Ranges. |
| 16887 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16888 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16889 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16890 | as_cr_digits='0123456789' |
| 16891 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16892 | |
| 16893 | as_nl=' |
| 16894 | ' |
| 16895 | export as_nl |
| 16896 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 16897 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 16898 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16899 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16900 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16901 | as_echo='printf %s\n' |
| 16902 | as_echo_n='printf %s' |
| 16903 | else |
| 16904 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 16905 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 16906 | as_echo_n='/usr/ucb/echo -n' |
| 16907 | else |
| 16908 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 16909 | as_echo_n_body='eval |
| 16910 | arg=$1; |
| 16911 | case $arg in |
| 16912 | *"$as_nl"*) |
| 16913 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 16914 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 16915 | esac; |
| 16916 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 16917 | ' |
| 16918 | export as_echo_n_body |
| 16919 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 16920 | fi |
| 16921 | export as_echo_body |
| 16922 | as_echo='sh -c $as_echo_body as_echo' |
| 16923 | fi |
| 16924 | |
| 16925 | # The user is always right. |
| 16926 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16927 | PATH_SEPARATOR=: |
| 16928 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 16929 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 16930 | PATH_SEPARATOR=';' |
| 16931 | } |
| 16932 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16933 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16934 | # Support unset when possible. |
| 16935 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 16936 | as_unset=unset |
| 16937 | else |
| 16938 | as_unset=false |
| 16939 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16940 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16941 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16942 | # IFS |
| 16943 | # We need space, tab and new line, in precisely that order. Quoting is |
| 16944 | # there to prevent editors from complaining about space-tab. |
| 16945 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 16946 | # splitting by setting IFS to empty value.) |
| 16947 | IFS=" "" $as_nl" |
| 16948 | |
| 16949 | # Find who we are. Look in the path if we contain no directory separator. |
| 16950 | case $0 in |
| 16951 | *[\\/]* ) as_myself=$0 ;; |
| 16952 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16953 | for as_dir in $PATH |
| 16954 | do |
| 16955 | IFS=$as_save_IFS |
| 16956 | test -z "$as_dir" && as_dir=. |
| 16957 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16958 | done |
| 16959 | IFS=$as_save_IFS |
| 16960 | |
| 16961 | ;; |
| 16962 | esac |
| 16963 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16964 | # in which case we are not to be found in the path. |
| 16965 | if test "x$as_myself" = x; then |
| 16966 | as_myself=$0 |
| 16967 | fi |
| 16968 | if test ! -f "$as_myself"; then |
| 16969 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 16970 | { (exit 1); exit 1; } |
| 16971 | fi |
| 16972 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16973 | # Work around bugs in pre-3.0 UWIN ksh. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16974 | for as_var in ENV MAIL MAILPATH |
| 16975 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 16976 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16977 | PS1='$ ' |
| 16978 | PS2='> ' |
| 16979 | PS4='+ ' |
| 16980 | |
| 16981 | # NLS nuisances. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16982 | LC_ALL=C |
| 16983 | export LC_ALL |
| 16984 | LANGUAGE=C |
| 16985 | export LANGUAGE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16986 | |
| 16987 | # Required to use basename. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16988 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16989 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16990 | as_expr=expr |
| 16991 | else |
| 16992 | as_expr=false |
| 16993 | fi |
| 16994 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16995 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16996 | as_basename=basename |
| 16997 | else |
| 16998 | as_basename=false |
| 16999 | fi |
| 17000 | |
| 17001 | |
| 17002 | # Name of the executable. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17003 | as_me=`$as_basename -- "$0" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17004 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17005 | X"$0" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17006 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 17007 | $as_echo X/"$0" | |
| 17008 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 17009 | s//\1/ |
| 17010 | q |
| 17011 | } |
| 17012 | /^X\/\(\/\/\)$/{ |
| 17013 | s//\1/ |
| 17014 | q |
| 17015 | } |
| 17016 | /^X\/\(\/\).*/{ |
| 17017 | s//\1/ |
| 17018 | q |
| 17019 | } |
| 17020 | s/.*/./; q'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17021 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17022 | # CDPATH. |
| 17023 | $as_unset CDPATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17024 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17025 | |
| 17026 | |
| 17027 | as_lineno_1=$LINENO |
| 17028 | as_lineno_2=$LINENO |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17029 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17030 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17031 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17032 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 17033 | # uniformly replaced by the line number. The first 'sed' inserts a |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17034 | # line-number line after each line using $LINENO; the second 'sed' |
| 17035 | # does the real work. The second script uses 'N' to pair each |
| 17036 | # line-number line with the line containing $LINENO, and appends |
| 17037 | # trailing '-' during substitution so that $LINENO is not a special |
| 17038 | # case at line end. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17039 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17040 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 17041 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 17042 | sed -n ' |
| 17043 | p |
| 17044 | /[$]LINENO/= |
| 17045 | ' <$as_myself | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17046 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17047 | s/[$]LINENO.*/&-/ |
| 17048 | t lineno |
| 17049 | b |
| 17050 | :lineno |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17051 | N |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17052 | :loop |
| 17053 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17054 | t loop |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17055 | s/-\n.*// |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17056 | ' >$as_me.lineno && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17057 | chmod +x "$as_me.lineno" || |
| 17058 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17059 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17060 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17061 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 17062 | # (the dirname of $[0] is not the place where we might find the |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17063 | # original and so on. Autoconf is especially sensitive to this). |
| 17064 | . "./$as_me.lineno" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17065 | # Exit status is that of the last command. |
| 17066 | exit |
| 17067 | } |
| 17068 | |
| 17069 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17070 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 17071 | as_dirname=dirname |
| 17072 | else |
| 17073 | as_dirname=false |
| 17074 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17075 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17076 | ECHO_C= ECHO_N= ECHO_T= |
| 17077 | case `echo -n x` in |
| 17078 | -n*) |
| 17079 | case `echo 'x\c'` in |
| 17080 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 17081 | *) ECHO_C='\c';; |
| 17082 | esac;; |
| 17083 | *) |
| 17084 | ECHO_N='-n';; |
| 17085 | esac |
| 17086 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17087 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17088 | as_expr=expr |
| 17089 | else |
| 17090 | as_expr=false |
| 17091 | fi |
| 17092 | |
| 17093 | rm -f conf$$ conf$$.exe conf$$.file |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17094 | if test -d conf$$.dir; then |
| 17095 | rm -f conf$$.dir/conf$$.file |
| 17096 | else |
| 17097 | rm -f conf$$.dir |
| 17098 | mkdir conf$$.dir 2>/dev/null |
| 17099 | fi |
| 17100 | if (echo >conf$$.file) 2>/dev/null; then |
| 17101 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17102 | as_ln_s='ln -s' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17103 | # ... but there are two gotchas: |
| 17104 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 17105 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 17106 | # In both cases, we have to default to `cp -p'. |
| 17107 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 17108 | as_ln_s='cp -p' |
| 17109 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17110 | as_ln_s=ln |
| 17111 | else |
| 17112 | as_ln_s='cp -p' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17113 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17114 | else |
| 17115 | as_ln_s='cp -p' |
| 17116 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17117 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 17118 | rmdir conf$$.dir 2>/dev/null |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17119 | |
| 17120 | if mkdir -p . 2>/dev/null; then |
| 17121 | as_mkdir_p=: |
| 17122 | else |
| 17123 | test -d ./-p && rmdir ./-p |
| 17124 | as_mkdir_p=false |
| 17125 | fi |
| 17126 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17127 | if test -x / >/dev/null 2>&1; then |
| 17128 | as_test_x='test -x' |
| 17129 | else |
| 17130 | if ls -dL / >/dev/null 2>&1; then |
| 17131 | as_ls_L_option=L |
| 17132 | else |
| 17133 | as_ls_L_option= |
| 17134 | fi |
| 17135 | as_test_x=' |
| 17136 | eval sh -c '\'' |
| 17137 | if test -d "$1"; then |
| 17138 | test -d "$1/."; |
| 17139 | else |
| 17140 | case $1 in |
| 17141 | -*)set "./$1";; |
| 17142 | esac; |
| 17143 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 17144 | ???[sx]*):;;*)false;;esac;fi |
| 17145 | '\'' sh |
| 17146 | ' |
| 17147 | fi |
| 17148 | as_executable_p=$as_test_x |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17149 | |
| 17150 | # Sed expression to map a string onto a valid CPP name. |
| 17151 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 17152 | |
| 17153 | # Sed expression to map a string onto a valid variable name. |
| 17154 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 17155 | |
| 17156 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17157 | exec 6>&1 |
| 17158 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17159 | # Save the log message, to keep $[0] and so on meaningful, and to |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17160 | # report actual input values of CONFIG_FILES etc. instead of their |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17161 | # values after options handling. |
| 17162 | ac_log=" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17163 | This file was extended by $as_me, which was |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17164 | generated by GNU Autoconf 2.62. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17165 | |
| 17166 | CONFIG_FILES = $CONFIG_FILES |
| 17167 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17168 | CONFIG_LINKS = $CONFIG_LINKS |
| 17169 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17170 | $ $0 $@ |
| 17171 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17172 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 17173 | " |
| 17174 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17175 | _ACEOF |
| 17176 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17177 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17178 | # Files that config.status was made for. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17179 | config_files="$ac_config_files" |
| 17180 | config_headers="$ac_config_headers" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17181 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17182 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17183 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17184 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17185 | ac_cs_usage="\ |
| 17186 | \`$as_me' instantiates files from templates according to the |
| 17187 | current configuration. |
| 17188 | |
| 17189 | Usage: $0 [OPTIONS] [FILE]... |
| 17190 | |
| 17191 | -h, --help print this help, then exit |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17192 | -V, --version print version number and configuration settings, then exit |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17193 | -q, --quiet do not print progress messages |
| 17194 | -d, --debug don't remove temporary files |
| 17195 | --recheck update $as_me by reconfiguring in the same conditions |
| 17196 | --file=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17197 | instantiate the configuration file FILE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17198 | --header=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17199 | instantiate the configuration header FILE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17200 | |
| 17201 | Configuration files: |
| 17202 | $config_files |
| 17203 | |
| 17204 | Configuration headers: |
| 17205 | $config_headers |
| 17206 | |
| 17207 | Report bugs to <bug-autoconf@gnu.org>." |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17208 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17209 | _ACEOF |
| 17210 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17211 | ac_cs_version="\\ |
| 17212 | config.status |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17213 | configured by $0, generated by GNU Autoconf 2.62, |
| 17214 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17215 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17216 | Copyright (C) 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17217 | This config.status script is free software; the Free Software Foundation |
| 17218 | gives unlimited permission to copy, distribute and modify it." |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17219 | |
| 17220 | ac_pwd='$ac_pwd' |
| 17221 | srcdir='$srcdir' |
| 17222 | AWK='$AWK' |
| 17223 | test -n "\$AWK" || AWK=awk |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17224 | _ACEOF |
| 17225 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17226 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17227 | # The default lists apply if the user does not specify any file. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17228 | ac_need_defaults=: |
| 17229 | while test $# != 0 |
| 17230 | do |
| 17231 | case $1 in |
| 17232 | --*=*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17233 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17234 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17235 | ac_shift=: |
| 17236 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17237 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17238 | ac_option=$1 |
| 17239 | ac_optarg=$2 |
| 17240 | ac_shift=shift |
| 17241 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17242 | esac |
| 17243 | |
| 17244 | case $ac_option in |
| 17245 | # Handling of the options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17246 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17247 | ac_cs_recheck=: ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17248 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 17249 | $as_echo "$ac_cs_version"; exit ;; |
| 17250 | --debug | --debu | --deb | --de | --d | -d ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17251 | debug=: ;; |
| 17252 | --file | --fil | --fi | --f ) |
| 17253 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17254 | case $ac_optarg in |
| 17255 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17256 | esac |
| 17257 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17258 | ac_need_defaults=false;; |
| 17259 | --header | --heade | --head | --hea ) |
| 17260 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17261 | case $ac_optarg in |
| 17262 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17263 | esac |
| 17264 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17265 | ac_need_defaults=false;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17266 | --he | --h) |
| 17267 | # Conflict between --help and --header |
| 17268 | { $as_echo "$as_me: error: ambiguous option: $1 |
| 17269 | Try \`$0 --help' for more information." >&2 |
| 17270 | { (exit 1); exit 1; }; };; |
| 17271 | --help | --hel | -h ) |
| 17272 | $as_echo "$ac_cs_usage"; exit ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17273 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 17274 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 17275 | ac_cs_silent=: ;; |
| 17276 | |
| 17277 | # This is an error. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17278 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
| 17279 | Try \`$0 --help' for more information." >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17280 | { (exit 1); exit 1; }; } ;; |
| 17281 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17282 | *) ac_config_targets="$ac_config_targets $1" |
| 17283 | ac_need_defaults=false ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17284 | |
| 17285 | esac |
| 17286 | shift |
| 17287 | done |
| 17288 | |
| 17289 | ac_configure_extra_args= |
| 17290 | |
| 17291 | if $ac_cs_silent; then |
| 17292 | exec 6>/dev/null |
| 17293 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 17294 | fi |
| 17295 | |
| 17296 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17297 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17298 | if \$ac_cs_recheck; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17299 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 17300 | shift |
| 17301 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 17302 | CONFIG_SHELL='$SHELL' |
| 17303 | export CONFIG_SHELL |
| 17304 | exec "\$@" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17305 | fi |
| 17306 | |
| 17307 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17308 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17309 | exec 5>>auto/config.log |
| 17310 | { |
| 17311 | echo |
| 17312 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17313 | ## Running $as_me. ## |
| 17314 | _ASBOX |
| 17315 | $as_echo "$ac_log" |
| 17316 | } >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17317 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17318 | _ACEOF |
| 17319 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17320 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17321 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17322 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17323 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17324 | # Handling of arguments. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17325 | for ac_config_target in $ac_config_targets |
| 17326 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17327 | case $ac_config_target in |
| 17328 | "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 17329 | "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 17330 | |
| 17331 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17332 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17333 | { (exit 1); exit 1; }; };; |
| 17334 | esac |
| 17335 | done |
| 17336 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17337 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17338 | # If the user did not use the arguments to specify the items to instantiate, |
| 17339 | # then the envvar interface is used. Set only those that are not. |
| 17340 | # We use the long form for the default assignment because of an extremely |
| 17341 | # bizarre bug on SunOS 4.1.3. |
| 17342 | if $ac_need_defaults; then |
| 17343 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17344 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17345 | fi |
| 17346 | |
| 17347 | # Have a temporary directory for convenience. Make it in the build tree |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17348 | # simply because there is no reason against having it here, and in addition, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17349 | # creating and moving files from /tmp can sometimes cause problems. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17350 | # Hook for its removal unless debugging. |
| 17351 | # Note that there is a small window in which the directory will not be cleaned: |
| 17352 | # after its creation but before its name has been assigned to `$tmp'. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17353 | $debug || |
| 17354 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17355 | tmp= |
| 17356 | trap 'exit_status=$? |
| 17357 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 17358 | ' 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17359 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17360 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17361 | # Create a (secure) tmp directory for tmp files. |
| 17362 | |
| 17363 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17364 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17365 | test -n "$tmp" && test -d "$tmp" |
| 17366 | } || |
| 17367 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17368 | tmp=./conf$$-$RANDOM |
| 17369 | (umask 077 && mkdir "$tmp") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17370 | } || |
| 17371 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17372 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17373 | { (exit 1); exit 1; } |
| 17374 | } |
| 17375 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17376 | # Set up the scripts for CONFIG_FILES section. |
| 17377 | # No need to generate them if there are no CONFIG_FILES. |
| 17378 | # This happens for instance with `./config.status config.h'. |
| 17379 | if test -n "$CONFIG_FILES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17380 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17381 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17382 | ac_cr='
' |
| 17383 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 17384 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 17385 | ac_cs_awk_cr='\\r' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17386 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17387 | ac_cs_awk_cr=$ac_cr |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17388 | fi |
| 17389 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17390 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17391 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17392 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17393 | |
| 17394 | { |
| 17395 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 17396 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 17397 | echo "_ACEOF" |
| 17398 | } >conf$$subs.sh || |
| 17399 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17400 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17401 | { (exit 1); exit 1; }; } |
| 17402 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 17403 | ac_delim='%!_!# ' |
| 17404 | for ac_last_try in false false false false false :; do |
| 17405 | . ./conf$$subs.sh || |
| 17406 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17407 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17408 | { (exit 1); exit 1; }; } |
| 17409 | |
| 17410 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then |
| 17411 | break |
| 17412 | elif $ac_last_try; then |
| 17413 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17414 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17415 | { (exit 1); exit 1; }; } |
| 17416 | else |
| 17417 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17418 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17419 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17420 | rm -f conf$$subs.sh |
| 17421 | |
| 17422 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17423 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17424 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17425 | sed -n ' |
| 17426 | h |
| 17427 | s/^/S["/; s/!.*/"]=/ |
| 17428 | p |
| 17429 | g |
| 17430 | s/^[^!]*!// |
| 17431 | :repl |
| 17432 | t repl |
| 17433 | s/'"$ac_delim"'$// |
| 17434 | t delim |
| 17435 | :nl |
| 17436 | h |
| 17437 | s/\(.\{148\}\).*/\1/ |
| 17438 | t more1 |
| 17439 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 17440 | p |
| 17441 | n |
| 17442 | b repl |
| 17443 | :more1 |
| 17444 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17445 | p |
| 17446 | g |
| 17447 | s/.\{148\}// |
| 17448 | t nl |
| 17449 | :delim |
| 17450 | h |
| 17451 | s/\(.\{148\}\).*/\1/ |
| 17452 | t more2 |
| 17453 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 17454 | p |
| 17455 | b |
| 17456 | :more2 |
| 17457 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17458 | p |
| 17459 | g |
| 17460 | s/.\{148\}// |
| 17461 | t delim |
| 17462 | ' <conf$$subs.awk | sed ' |
| 17463 | /^[^""]/{ |
| 17464 | N |
| 17465 | s/\n// |
| 17466 | } |
| 17467 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17468 | rm -f conf$$subs.awk |
| 17469 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17470 | _ACAWK |
| 17471 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 17472 | for (key in S) S_is_set[key] = 1 |
| 17473 | FS = "" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17474 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17475 | } |
| 17476 | { |
| 17477 | line = $ 0 |
| 17478 | nfields = split(line, field, "@") |
| 17479 | substed = 0 |
| 17480 | len = length(field[1]) |
| 17481 | for (i = 2; i < nfields; i++) { |
| 17482 | key = field[i] |
| 17483 | keylen = length(key) |
| 17484 | if (S_is_set[key]) { |
| 17485 | value = S[key] |
| 17486 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 17487 | len += length(value) + length(field[++i]) |
| 17488 | substed = 1 |
| 17489 | } else |
| 17490 | len += 1 + keylen |
| 17491 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17492 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17493 | print line |
| 17494 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17495 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17496 | _ACAWK |
| 17497 | _ACEOF |
| 17498 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17499 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 17500 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 17501 | else |
| 17502 | cat |
| 17503 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 17504 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 17505 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
| 17506 | { (exit 1); exit 1; }; } |
| 17507 | _ACEOF |
| 17508 | |
| 17509 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 17510 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 17511 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17512 | # (actually we leave an empty line to preserve line numbers). |
| 17513 | if test "x$srcdir" = x.; then |
| 17514 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 17515 | s/:*\$(srcdir):*/:/ |
| 17516 | s/:*\${srcdir}:*/:/ |
| 17517 | s/:*@srcdir@:*/:/ |
| 17518 | s/^\([^=]*=[ ]*\):*/\1/ |
| 17519 | s/:*$// |
| 17520 | s/^[^=]*=[ ]*$// |
| 17521 | }' |
| 17522 | fi |
| 17523 | |
| 17524 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17525 | fi # test -n "$CONFIG_FILES" |
| 17526 | |
| 17527 | # Set up the scripts for CONFIG_HEADERS section. |
| 17528 | # No need to generate them if there are no CONFIG_HEADERS. |
| 17529 | # This happens for instance with `./config.status Makefile'. |
| 17530 | if test -n "$CONFIG_HEADERS"; then |
| 17531 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 17532 | BEGIN { |
| 17533 | _ACEOF |
| 17534 | |
| 17535 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 17536 | # here-document in config.status, that substitutes the proper values into |
| 17537 | # config.h.in to produce config.h. |
| 17538 | |
| 17539 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 17540 | # handling of long lines. |
| 17541 | ac_delim='%!_!# ' |
| 17542 | for ac_last_try in false false :; do |
| 17543 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 17544 | if test -z "$ac_t"; then |
| 17545 | break |
| 17546 | elif $ac_last_try; then |
| 17547 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 17548 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 17549 | { (exit 1); exit 1; }; } |
| 17550 | else |
| 17551 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17552 | fi |
| 17553 | done |
| 17554 | |
| 17555 | # For the awk script, D is an array of macro values keyed by name, |
| 17556 | # likewise P contains macro parameters if any. Preserve backslash |
| 17557 | # newline sequences. |
| 17558 | |
| 17559 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 17560 | sed -n ' |
| 17561 | s/.\{148\}/&'"$ac_delim"'/g |
| 17562 | t rset |
| 17563 | :rset |
| 17564 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 17565 | t def |
| 17566 | d |
| 17567 | :def |
| 17568 | s/\\$// |
| 17569 | t bsnl |
| 17570 | s/["\\]/\\&/g |
| 17571 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17572 | D["\1"]=" \3"/p |
| 17573 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 17574 | d |
| 17575 | :bsnl |
| 17576 | s/["\\]/\\&/g |
| 17577 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17578 | D["\1"]=" \3\\\\\\n"\\/p |
| 17579 | t cont |
| 17580 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 17581 | t cont |
| 17582 | d |
| 17583 | :cont |
| 17584 | n |
| 17585 | s/.\{148\}/&'"$ac_delim"'/g |
| 17586 | t clear |
| 17587 | :clear |
| 17588 | s/\\$// |
| 17589 | t bsnlc |
| 17590 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 17591 | d |
| 17592 | :bsnlc |
| 17593 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 17594 | b cont |
| 17595 | ' <confdefs.h | sed ' |
| 17596 | s/'"$ac_delim"'/"\\\ |
| 17597 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17598 | |
| 17599 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17600 | for (key in D) D_is_set[key] = 1 |
| 17601 | FS = "" |
| 17602 | } |
| 17603 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 17604 | line = \$ 0 |
| 17605 | split(line, arg, " ") |
| 17606 | if (arg[1] == "#") { |
| 17607 | defundef = arg[2] |
| 17608 | mac1 = arg[3] |
| 17609 | } else { |
| 17610 | defundef = substr(arg[1], 2) |
| 17611 | mac1 = arg[2] |
| 17612 | } |
| 17613 | split(mac1, mac2, "(") #) |
| 17614 | macro = mac2[1] |
| 17615 | if (D_is_set[macro]) { |
| 17616 | # Preserve the white space surrounding the "#". |
| 17617 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 17618 | print prefix "define", macro P[macro] D[macro] |
| 17619 | next |
| 17620 | } else { |
| 17621 | # Replace #undef with comments. This is necessary, for example, |
| 17622 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 17623 | # on some systems where configure will not decide to define it. |
| 17624 | if (defundef == "undef") { |
| 17625 | print "/*", line, "*/" |
| 17626 | next |
| 17627 | } |
| 17628 | } |
| 17629 | } |
| 17630 | { print } |
| 17631 | _ACAWK |
| 17632 | _ACEOF |
| 17633 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17634 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 17635 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 17636 | { (exit 1); exit 1; }; } |
| 17637 | fi # test -n "$CONFIG_HEADERS" |
| 17638 | |
| 17639 | |
| 17640 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 17641 | shift |
| 17642 | for ac_tag |
| 17643 | do |
| 17644 | case $ac_tag in |
| 17645 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 17646 | esac |
| 17647 | case $ac_mode$ac_tag in |
| 17648 | :[FHL]*:*);; |
| 17649 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 17650 | $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 17651 | { (exit 1); exit 1; }; };; |
| 17652 | :[FH]-) ac_tag=-:-;; |
| 17653 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 17654 | esac |
| 17655 | ac_save_IFS=$IFS |
| 17656 | IFS=: |
| 17657 | set x $ac_tag |
| 17658 | IFS=$ac_save_IFS |
| 17659 | shift |
| 17660 | ac_file=$1 |
| 17661 | shift |
| 17662 | |
| 17663 | case $ac_mode in |
| 17664 | :L) ac_source=$1;; |
| 17665 | :[FH]) |
| 17666 | ac_file_inputs= |
| 17667 | for ac_f |
| 17668 | do |
| 17669 | case $ac_f in |
| 17670 | -) ac_f="$tmp/stdin";; |
| 17671 | *) # Look for the file first in the build tree, then in the source tree |
| 17672 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 17673 | # because $ac_f cannot contain `:'. |
| 17674 | test -f "$ac_f" || |
| 17675 | case $ac_f in |
| 17676 | [\\/$]*) false;; |
| 17677 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 17678 | esac || |
| 17679 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 17680 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 17681 | { (exit 1); exit 1; }; };; |
| 17682 | esac |
| 17683 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 17684 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
| 17685 | done |
| 17686 | |
| 17687 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17688 | # use $as_me), people would be surprised to read: |
| 17689 | # /* config.h. Generated by config.status. */ |
| 17690 | configure_input='Generated from '` |
| 17691 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 17692 | `' by configure.' |
| 17693 | if test x"$ac_file" != x-; then |
| 17694 | configure_input="$ac_file. $configure_input" |
| 17695 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17696 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 17697 | fi |
| 17698 | # Neutralize special characters interpreted by sed in replacement strings. |
| 17699 | case $configure_input in #( |
| 17700 | *\&* | *\|* | *\\* ) |
| 17701 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 17702 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 17703 | *) ac_sed_conf_input=$configure_input;; |
| 17704 | esac |
| 17705 | |
| 17706 | case $ac_tag in |
| 17707 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 17708 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17709 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17710 | { (exit 1); exit 1; }; } ;; |
| 17711 | esac |
| 17712 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17713 | esac |
| 17714 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17715 | ac_dir=`$as_dirname -- "$ac_file" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17716 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17717 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17718 | X"$ac_file" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17719 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 17720 | $as_echo X"$ac_file" | |
| 17721 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17722 | s//\1/ |
| 17723 | q |
| 17724 | } |
| 17725 | /^X\(\/\/\)[^/].*/{ |
| 17726 | s//\1/ |
| 17727 | q |
| 17728 | } |
| 17729 | /^X\(\/\/\)$/{ |
| 17730 | s//\1/ |
| 17731 | q |
| 17732 | } |
| 17733 | /^X\(\/\).*/{ |
| 17734 | s//\1/ |
| 17735 | q |
| 17736 | } |
| 17737 | s/.*/./; q'` |
| 17738 | { as_dir="$ac_dir" |
| 17739 | case $as_dir in #( |
| 17740 | -*) as_dir=./$as_dir;; |
| 17741 | esac |
| 17742 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17743 | as_dirs= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17744 | while :; do |
| 17745 | case $as_dir in #( |
| 17746 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 17747 | *) as_qdir=$as_dir;; |
| 17748 | esac |
| 17749 | as_dirs="'$as_qdir' $as_dirs" |
| 17750 | as_dir=`$as_dirname -- "$as_dir" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17751 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17752 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17753 | X"$as_dir" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17754 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 17755 | $as_echo X"$as_dir" | |
| 17756 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17757 | s//\1/ |
| 17758 | q |
| 17759 | } |
| 17760 | /^X\(\/\/\)[^/].*/{ |
| 17761 | s//\1/ |
| 17762 | q |
| 17763 | } |
| 17764 | /^X\(\/\/\)$/{ |
| 17765 | s//\1/ |
| 17766 | q |
| 17767 | } |
| 17768 | /^X\(\/\).*/{ |
| 17769 | s//\1/ |
| 17770 | q |
| 17771 | } |
| 17772 | s/.*/./; q'` |
| 17773 | test -d "$as_dir" && break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17774 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17775 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 17776 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 17777 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17778 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17779 | ac_builddir=. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17780 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17781 | case "$ac_dir" in |
| 17782 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17783 | *) |
| 17784 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 17785 | # A ".." for each directory in $ac_dir_suffix. |
| 17786 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 17787 | case $ac_top_builddir_sub in |
| 17788 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17789 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 17790 | esac ;; |
| 17791 | esac |
| 17792 | ac_abs_top_builddir=$ac_pwd |
| 17793 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 17794 | # for backward compatibility: |
| 17795 | ac_top_builddir=$ac_top_build_prefix |
| 17796 | |
| 17797 | case $srcdir in |
| 17798 | .) # We are building in place. |
| 17799 | ac_srcdir=. |
| 17800 | ac_top_srcdir=$ac_top_builddir_sub |
| 17801 | ac_abs_top_srcdir=$ac_pwd ;; |
| 17802 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 17803 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17804 | ac_top_srcdir=$srcdir |
| 17805 | ac_abs_top_srcdir=$srcdir ;; |
| 17806 | *) # Relative name. |
| 17807 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17808 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17809 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 17810 | esac |
| 17811 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 17812 | |
| 17813 | |
| 17814 | case $ac_mode in |
| 17815 | :F) |
| 17816 | # |
| 17817 | # CONFIG_FILE |
| 17818 | # |
| 17819 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17820 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17821 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17822 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17823 | # If the template does not know about datarootdir, expand it. |
| 17824 | # FIXME: This hack should be removed a few years after 2.60. |
| 17825 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 17826 | |
| 17827 | ac_sed_dataroot=' |
| 17828 | /datarootdir/ { |
| 17829 | p |
| 17830 | q |
| 17831 | } |
| 17832 | /@datadir@/p |
| 17833 | /@docdir@/p |
| 17834 | /@infodir@/p |
| 17835 | /@localedir@/p |
| 17836 | /@mandir@/p |
| 17837 | ' |
| 17838 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 17839 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 17840 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 17841 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 17842 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 17843 | _ACEOF |
| 17844 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17845 | ac_datarootdir_hack=' |
| 17846 | s&@datadir@&$datadir&g |
| 17847 | s&@docdir@&$docdir&g |
| 17848 | s&@infodir@&$infodir&g |
| 17849 | s&@localedir@&$localedir&g |
| 17850 | s&@mandir@&$mandir&g |
| 17851 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 17852 | esac |
| 17853 | _ACEOF |
| 17854 | |
| 17855 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17856 | # Shell code in configure.ac might set extrasub. |
| 17857 | # FIXME: do we really want to maintain this feature? |
| 17858 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17859 | ac_sed_extra="$ac_vpsub |
| 17860 | $extrasub |
| 17861 | _ACEOF |
| 17862 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17863 | :t |
| 17864 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17865 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 17866 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 17867 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 17868 | s&@srcdir@&$ac_srcdir&;t t |
| 17869 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17870 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17871 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17872 | s&@builddir@&$ac_builddir&;t t |
| 17873 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17874 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17875 | $ac_datarootdir_hack |
| 17876 | " |
| 17877 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 17878 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17879 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17880 | { (exit 1); exit 1; }; } |
| 17881 | |
| 17882 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 17883 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 17884 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 17885 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17886 | which seems to be undefined. Please make sure it is defined." >&5 |
| 17887 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17888 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 17889 | |
| 17890 | rm -f "$tmp/stdin" |
| 17891 | case $ac_file in |
| 17892 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 17893 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 17894 | esac \ |
| 17895 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17896 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17897 | { (exit 1); exit 1; }; } |
| 17898 | ;; |
| 17899 | :H) |
| 17900 | # |
| 17901 | # CONFIG_HEADER |
| 17902 | # |
| 17903 | if test x"$ac_file" != x-; then |
| 17904 | { |
| 17905 | $as_echo "/* $configure_input */" \ |
| 17906 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 17907 | } >"$tmp/config.h" \ |
| 17908 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17909 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17910 | { (exit 1); exit 1; }; } |
| 17911 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 17912 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 17913 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 17914 | else |
| 17915 | rm -f "$ac_file" |
| 17916 | mv "$tmp/config.h" "$ac_file" \ |
| 17917 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17918 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17919 | { (exit 1); exit 1; }; } |
| 17920 | fi |
| 17921 | else |
| 17922 | $as_echo "/* $configure_input */" \ |
| 17923 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 17924 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 17925 | $as_echo "$as_me: error: could not create -" >&2;} |
| 17926 | { (exit 1); exit 1; }; } |
| 17927 | fi |
| 17928 | ;; |
| 17929 | |
| 17930 | |
| 17931 | esac |
| 17932 | |
| 17933 | done # for ac_tag |
| 17934 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17935 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17936 | { (exit 0); exit 0; } |
| 17937 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17938 | chmod +x $CONFIG_STATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17939 | ac_clean_files=$ac_clean_files_save |
| 17940 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17941 | test $ac_write_fail = 0 || |
| 17942 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 17943 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 17944 | { (exit 1); exit 1; }; } |
| 17945 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17946 | |
| 17947 | # configure is writing to config.log, and then calls config.status. |
| 17948 | # config.status does its own redirection, appending to config.log. |
| 17949 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17950 | # by configure, so config.status won't be able to write to it; its |
| 17951 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17952 | # effectively closing config.log, so it can be properly (re)opened and |
| 17953 | # appended to by config.status. When coming back to configure, we |
| 17954 | # need to make the FD available again. |
| 17955 | if test "$no_create" != yes; then |
| 17956 | ac_cs_success=: |
| 17957 | ac_config_status_args= |
| 17958 | test "$silent" = yes && |
| 17959 | ac_config_status_args="$ac_config_status_args --quiet" |
| 17960 | exec 5>/dev/null |
| 17961 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 17962 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17963 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17964 | # would make configure fail if this is the last instruction. |
| 17965 | $ac_cs_success || { (exit 1); exit 1; } |
| 17966 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17967 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17968 | { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 |
| 17969 | $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} |
| 17970 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17971 | |
| 17972 | |