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 | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.63. |
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 | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 638 | ac_subst_vars='LTLIBOBJS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 639 | LIBOBJS |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 640 | DEPEND_CFLAGS_FILTER |
| 641 | MAKEMO |
| 642 | MSGFMT |
| 643 | INSTALL_TOOL_LANGS |
| 644 | INSTALL_LANGS |
| 645 | TAGPRG |
| 646 | HANGULIN_OBJ |
| 647 | HANGULIN_SRC |
| 648 | GUI_X_LIBS |
| 649 | GUITYPE |
| 650 | GUI_LIB_LOC |
| 651 | GUI_INC_LOC |
| 652 | NARROW_PROTO |
| 653 | MOTIF_LIBNAME |
| 654 | GNOME_CONFIG |
| 655 | GNOME_INCLUDEDIR |
| 656 | GNOME_LIBDIR |
| 657 | GNOME_LIBS |
| 658 | GTK_LIBNAME |
| 659 | GTK_LIBS |
| 660 | GTK_CFLAGS |
| 661 | PKG_CONFIG |
| 662 | GTK12_CONFIG |
| 663 | GTK_CONFIG |
| 664 | X_LIB |
| 665 | X_EXTRA_LIBS |
| 666 | X_LIBS |
| 667 | X_PRE_LIBS |
| 668 | X_CFLAGS |
| 669 | XMKMF |
| 670 | xmkmfpath |
| 671 | SNIFF_OBJ |
| 672 | SNIFF_SRC |
| 673 | NETBEANS_OBJ |
| 674 | NETBEANS_SRC |
| 675 | WORKSHOP_OBJ |
| 676 | WORKSHOP_SRC |
| 677 | RUBY_LIBS |
| 678 | RUBY_CFLAGS |
| 679 | RUBY_PRO |
| 680 | RUBY_OBJ |
| 681 | RUBY_SRC |
| 682 | vi_cv_path_ruby |
| 683 | TCL_LIBS |
| 684 | TCL_CFLAGS |
| 685 | TCL_PRO |
| 686 | TCL_OBJ |
| 687 | TCL_SRC |
| 688 | vi_cv_path_tcl |
| 689 | PYTHON_OBJ |
| 690 | PYTHON_SRC |
| 691 | PYTHON_CFLAGS |
| 692 | PYTHON_GETPATH_CFLAGS |
| 693 | PYTHON_LIBS |
| 694 | PYTHON_CONFDIR |
| 695 | vi_cv_path_python |
| 696 | PERL_LIBS |
| 697 | PERL_CFLAGS |
| 698 | PERL_PRO |
| 699 | PERL_OBJ |
| 700 | PERL_SRC |
| 701 | shrpenv |
| 702 | vi_cv_perllib |
| 703 | vi_cv_path_perl |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 704 | MZSCHEME_MZC |
| 705 | MZSCHEME_EXTRA |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 706 | MZSCHEME_CFLAGS |
| 707 | MZSCHEME_LIBS |
| 708 | MZSCHEME_PRO |
| 709 | MZSCHEME_OBJ |
| 710 | MZSCHEME_SRC |
| 711 | vi_cv_path_mzscheme |
| 712 | compiledby |
| 713 | dogvimdiff |
| 714 | dovimdiff |
| 715 | line_break |
| 716 | VIEWNAME |
| 717 | EXNAME |
| 718 | VIMNAME |
| 719 | OS_EXTRA_OBJ |
| 720 | OS_EXTRA_SRC |
| 721 | CPP_MM |
| 722 | STRIP |
| 723 | AWK |
| 724 | EGREP |
| 725 | GREP |
| 726 | CPP |
| 727 | OBJEXT |
| 728 | EXEEXT |
| 729 | ac_ct_CC |
| 730 | CPPFLAGS |
| 731 | LDFLAGS |
| 732 | CFLAGS |
| 733 | CC |
| 734 | SET_MAKE |
| 735 | target_alias |
| 736 | host_alias |
| 737 | build_alias |
| 738 | LIBS |
| 739 | ECHO_T |
| 740 | ECHO_N |
| 741 | ECHO_C |
| 742 | DEFS |
| 743 | mandir |
| 744 | localedir |
| 745 | libdir |
| 746 | psdir |
| 747 | pdfdir |
| 748 | dvidir |
| 749 | htmldir |
| 750 | infodir |
| 751 | docdir |
| 752 | oldincludedir |
| 753 | includedir |
| 754 | localstatedir |
| 755 | sharedstatedir |
| 756 | sysconfdir |
| 757 | datadir |
| 758 | datarootdir |
| 759 | libexecdir |
| 760 | sbindir |
| 761 | bindir |
| 762 | program_transform_name |
| 763 | prefix |
| 764 | exec_prefix |
| 765 | PACKAGE_BUGREPORT |
| 766 | PACKAGE_STRING |
| 767 | PACKAGE_VERSION |
| 768 | PACKAGE_TARNAME |
| 769 | PACKAGE_NAME |
| 770 | PATH_SEPARATOR |
| 771 | SHELL' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 772 | ac_subst_files='' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 773 | ac_user_opts=' |
| 774 | enable_option_checking |
| 775 | enable_darwin |
| 776 | with_mac_arch |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 777 | with_local_dir |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 778 | with_vim_name |
| 779 | with_ex_name |
| 780 | with_view_name |
| 781 | with_global_runtime |
| 782 | with_modified_by |
| 783 | enable_selinux |
| 784 | with_features |
| 785 | with_compiledby |
| 786 | enable_xsmp |
| 787 | enable_xsmp_interact |
| 788 | enable_mzschemeinterp |
| 789 | with_plthome |
| 790 | enable_perlinterp |
| 791 | enable_pythoninterp |
| 792 | with_python_config_dir |
| 793 | enable_tclinterp |
| 794 | with_tclsh |
| 795 | enable_rubyinterp |
| 796 | enable_cscope |
| 797 | enable_workshop |
| 798 | enable_netbeans |
| 799 | enable_sniff |
| 800 | enable_multibyte |
| 801 | enable_hangulinput |
| 802 | enable_xim |
| 803 | enable_fontset |
| 804 | with_x |
| 805 | enable_gui |
| 806 | enable_gtk_check |
| 807 | enable_gtk2_check |
| 808 | enable_gnome_check |
| 809 | enable_motif_check |
| 810 | enable_athena_check |
| 811 | enable_nextaw_check |
| 812 | enable_carbon_check |
| 813 | with_gtk_prefix |
| 814 | with_gtk_exec_prefix |
| 815 | enable_gtktest |
| 816 | with_gnome_includes |
| 817 | with_gnome_libs |
| 818 | with_gnome |
| 819 | with_motif_lib |
| 820 | with_tlib |
| 821 | enable_acl |
| 822 | enable_gpm |
| 823 | enable_sysmouse |
| 824 | enable_nls |
| 825 | ' |
| 826 | ac_precious_vars='build_alias |
| 827 | host_alias |
| 828 | target_alias |
| 829 | CC |
| 830 | CFLAGS |
| 831 | LDFLAGS |
| 832 | LIBS |
| 833 | CPPFLAGS |
| 834 | CPP |
| 835 | XMKMF' |
| 836 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 837 | |
| 838 | # Initialize some variables set by options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 839 | ac_init_help= |
| 840 | ac_init_version=false |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 841 | ac_unrecognized_opts= |
| 842 | ac_unrecognized_sep= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 843 | # The variables have the same names as the options, with |
| 844 | # dashes changed to underlines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 845 | cache_file=/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 846 | exec_prefix=NONE |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 847 | no_create= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 848 | no_recursion= |
| 849 | prefix=NONE |
| 850 | program_prefix=NONE |
| 851 | program_suffix=NONE |
| 852 | program_transform_name=s,x,x, |
| 853 | silent= |
| 854 | site= |
| 855 | srcdir= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 856 | verbose= |
| 857 | x_includes=NONE |
| 858 | x_libraries=NONE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 859 | |
| 860 | # Installation directory options. |
| 861 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 862 | # and all the variables that are supposed to be based on exec_prefix |
| 863 | # by default will actually change. |
| 864 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 865 | # (The list follows the same order as the GNU Coding Standards.) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 866 | bindir='${exec_prefix}/bin' |
| 867 | sbindir='${exec_prefix}/sbin' |
| 868 | libexecdir='${exec_prefix}/libexec' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 869 | datarootdir='${prefix}/share' |
| 870 | datadir='${datarootdir}' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 871 | sysconfdir='${prefix}/etc' |
| 872 | sharedstatedir='${prefix}/com' |
| 873 | localstatedir='${prefix}/var' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 874 | includedir='${prefix}/include' |
| 875 | oldincludedir='/usr/include' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 876 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 877 | infodir='${datarootdir}/info' |
| 878 | htmldir='${docdir}' |
| 879 | dvidir='${docdir}' |
| 880 | pdfdir='${docdir}' |
| 881 | psdir='${docdir}' |
| 882 | libdir='${exec_prefix}/lib' |
| 883 | localedir='${datarootdir}/locale' |
| 884 | mandir='${datarootdir}/man' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 885 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 886 | ac_prev= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 887 | ac_dashdash= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 888 | for ac_option |
| 889 | do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 890 | # If the previous option needs an argument, assign it. |
| 891 | if test -n "$ac_prev"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 892 | eval $ac_prev=\$ac_option |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 893 | ac_prev= |
| 894 | continue |
| 895 | fi |
| 896 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 897 | case $ac_option in |
| 898 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 899 | *) ac_optarg=yes ;; |
| 900 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 901 | |
| 902 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 903 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 904 | case $ac_dashdash$ac_option in |
| 905 | --) |
| 906 | ac_dashdash=yes ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 907 | |
| 908 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 909 | ac_prev=bindir ;; |
| 910 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 911 | bindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 912 | |
| 913 | -build | --build | --buil | --bui | --bu) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 914 | ac_prev=build_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 915 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 916 | build_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 917 | |
| 918 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 919 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 920 | ac_prev=cache_file ;; |
| 921 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 922 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 923 | cache_file=$ac_optarg ;; |
| 924 | |
| 925 | --config-cache | -C) |
| 926 | cache_file=config.cache ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 927 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 928 | -datadir | --datadir | --datadi | --datad) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 929 | ac_prev=datadir ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 930 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 931 | datadir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 932 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 933 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 934 | | --dataroo | --dataro | --datar) |
| 935 | ac_prev=datarootdir ;; |
| 936 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 937 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 938 | datarootdir=$ac_optarg ;; |
| 939 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 940 | -disable-* | --disable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 941 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 942 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 943 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 944 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 945 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 946 | ac_useropt_orig=$ac_useropt |
| 947 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 948 | case $ac_user_opts in |
| 949 | *" |
| 950 | "enable_$ac_useropt" |
| 951 | "*) ;; |
| 952 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 953 | ac_unrecognized_sep=', ';; |
| 954 | esac |
| 955 | eval enable_$ac_useropt=no ;; |
| 956 | |
| 957 | -docdir | --docdir | --docdi | --doc | --do) |
| 958 | ac_prev=docdir ;; |
| 959 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 960 | docdir=$ac_optarg ;; |
| 961 | |
| 962 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 963 | ac_prev=dvidir ;; |
| 964 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 965 | dvidir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 966 | |
| 967 | -enable-* | --enable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 968 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 969 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 970 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 971 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 972 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 973 | ac_useropt_orig=$ac_useropt |
| 974 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 975 | case $ac_user_opts in |
| 976 | *" |
| 977 | "enable_$ac_useropt" |
| 978 | "*) ;; |
| 979 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 980 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 981 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 982 | eval enable_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 983 | |
| 984 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 985 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 986 | | --exec | --exe | --ex) |
| 987 | ac_prev=exec_prefix ;; |
| 988 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 989 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 990 | | --exec=* | --exe=* | --ex=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 991 | exec_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 992 | |
| 993 | -gas | --gas | --ga | --g) |
| 994 | # Obsolete; use --with-gas. |
| 995 | with_gas=yes ;; |
| 996 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 997 | -help | --help | --hel | --he | -h) |
| 998 | ac_init_help=long ;; |
| 999 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1000 | ac_init_help=recursive ;; |
| 1001 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1002 | ac_init_help=short ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1003 | |
| 1004 | -host | --host | --hos | --ho) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1005 | ac_prev=host_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1006 | -host=* | --host=* | --hos=* | --ho=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1007 | host_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1008 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1009 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1010 | ac_prev=htmldir ;; |
| 1011 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1012 | | --ht=*) |
| 1013 | htmldir=$ac_optarg ;; |
| 1014 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1015 | -includedir | --includedir | --includedi | --included | --include \ |
| 1016 | | --includ | --inclu | --incl | --inc) |
| 1017 | ac_prev=includedir ;; |
| 1018 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1019 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1020 | includedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1021 | |
| 1022 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1023 | ac_prev=infodir ;; |
| 1024 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1025 | infodir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1026 | |
| 1027 | -libdir | --libdir | --libdi | --libd) |
| 1028 | ac_prev=libdir ;; |
| 1029 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1030 | libdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1031 | |
| 1032 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1033 | | --libexe | --libex | --libe) |
| 1034 | ac_prev=libexecdir ;; |
| 1035 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1036 | | --libexe=* | --libex=* | --libe=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1037 | libexecdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1038 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1039 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1040 | ac_prev=localedir ;; |
| 1041 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1042 | localedir=$ac_optarg ;; |
| 1043 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1046 | ac_prev=localstatedir ;; |
| 1047 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1048 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1049 | localstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1050 | |
| 1051 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1052 | ac_prev=mandir ;; |
| 1053 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1054 | mandir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1055 | |
| 1056 | -nfp | --nfp | --nf) |
| 1057 | # Obsolete; use --without-fp. |
| 1058 | with_fp=no ;; |
| 1059 | |
| 1060 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1061 | | --no-cr | --no-c | -n) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1062 | no_create=yes ;; |
| 1063 | |
| 1064 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1065 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1066 | no_recursion=yes ;; |
| 1067 | |
| 1068 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1069 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1070 | | --oldin | --oldi | --old | --ol | --o) |
| 1071 | ac_prev=oldincludedir ;; |
| 1072 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1073 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1074 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1075 | oldincludedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1076 | |
| 1077 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1078 | ac_prev=prefix ;; |
| 1079 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1080 | prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1081 | |
| 1082 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1083 | | --program-pre | --program-pr | --program-p) |
| 1084 | ac_prev=program_prefix ;; |
| 1085 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1086 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1087 | program_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1088 | |
| 1089 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1090 | | --program-suf | --program-su | --program-s) |
| 1091 | ac_prev=program_suffix ;; |
| 1092 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1093 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1094 | program_suffix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1095 | |
| 1096 | -program-transform-name | --program-transform-name \ |
| 1097 | | --program-transform-nam | --program-transform-na \ |
| 1098 | | --program-transform-n | --program-transform- \ |
| 1099 | | --program-transform | --program-transfor \ |
| 1100 | | --program-transfo | --program-transf \ |
| 1101 | | --program-trans | --program-tran \ |
| 1102 | | --progr-tra | --program-tr | --program-t) |
| 1103 | ac_prev=program_transform_name ;; |
| 1104 | -program-transform-name=* | --program-transform-name=* \ |
| 1105 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1106 | | --program-transform-n=* | --program-transform-=* \ |
| 1107 | | --program-transform=* | --program-transfor=* \ |
| 1108 | | --program-transfo=* | --program-transf=* \ |
| 1109 | | --program-trans=* | --program-tran=* \ |
| 1110 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1111 | program_transform_name=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1112 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1113 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1114 | ac_prev=pdfdir ;; |
| 1115 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1116 | pdfdir=$ac_optarg ;; |
| 1117 | |
| 1118 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1119 | ac_prev=psdir ;; |
| 1120 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1121 | psdir=$ac_optarg ;; |
| 1122 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1124 | | -silent | --silent | --silen | --sile | --sil) |
| 1125 | silent=yes ;; |
| 1126 | |
| 1127 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1128 | ac_prev=sbindir ;; |
| 1129 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1130 | | --sbi=* | --sb=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1131 | sbindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1132 | |
| 1133 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1134 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1135 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1136 | | --sha | --sh) |
| 1137 | ac_prev=sharedstatedir ;; |
| 1138 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1139 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1140 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1141 | | --sha=* | --sh=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1142 | sharedstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1143 | |
| 1144 | -site | --site | --sit) |
| 1145 | ac_prev=site ;; |
| 1146 | -site=* | --site=* | --sit=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1147 | site=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1148 | |
| 1149 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1150 | ac_prev=srcdir ;; |
| 1151 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1152 | srcdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1153 | |
| 1154 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1155 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1156 | ac_prev=sysconfdir ;; |
| 1157 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1158 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1159 | sysconfdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1160 | |
| 1161 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1162 | ac_prev=target_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1163 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1164 | target_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1165 | |
| 1166 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1167 | verbose=yes ;; |
| 1168 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1169 | -version | --version | --versio | --versi | --vers | -V) |
| 1170 | ac_init_version=: ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1171 | |
| 1172 | -with-* | --with-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1173 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1174 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1175 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1176 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1177 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1178 | ac_useropt_orig=$ac_useropt |
| 1179 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1180 | case $ac_user_opts in |
| 1181 | *" |
| 1182 | "with_$ac_useropt" |
| 1183 | "*) ;; |
| 1184 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1185 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1186 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1187 | eval with_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1188 | |
| 1189 | -without-* | --without-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1190 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1191 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1192 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1193 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1194 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1195 | ac_useropt_orig=$ac_useropt |
| 1196 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1197 | case $ac_user_opts in |
| 1198 | *" |
| 1199 | "with_$ac_useropt" |
| 1200 | "*) ;; |
| 1201 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1202 | ac_unrecognized_sep=', ';; |
| 1203 | esac |
| 1204 | eval with_$ac_useropt=no ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1205 | |
| 1206 | --x) |
| 1207 | # Obsolete; use --with-x. |
| 1208 | with_x=yes ;; |
| 1209 | |
| 1210 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1211 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1212 | ac_prev=x_includes ;; |
| 1213 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1214 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1215 | x_includes=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1216 | |
| 1217 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1218 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1219 | ac_prev=x_libraries ;; |
| 1220 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1221 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1222 | x_libraries=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1223 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1224 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1225 | Try \`$0 --help' for more information." >&2 |
| 1226 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1227 | ;; |
| 1228 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1229 | *=*) |
| 1230 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1231 | # Reject names that are not valid shell variable names. |
| 1232 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1233 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1234 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1235 | eval $ac_envvar=\$ac_optarg |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1236 | export $ac_envvar ;; |
| 1237 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1238 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1239 | # FIXME: should be removed in autoconf 3.0. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1240 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1241 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1242 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1243 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1244 | ;; |
| 1245 | |
| 1246 | esac |
| 1247 | done |
| 1248 | |
| 1249 | if test -n "$ac_prev"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1250 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1251 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1252 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1253 | fi |
| 1254 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1255 | if test -n "$ac_unrecognized_opts"; then |
| 1256 | case $enable_option_checking in |
| 1257 | no) ;; |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1258 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1259 | { (exit 1); exit 1; }; } ;; |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1260 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1261 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1262 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1263 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1264 | # Check all directory arguments for consistency. |
| 1265 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1266 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1267 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1268 | libdir localedir mandir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1269 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1270 | eval ac_val=\$$ac_var |
| 1271 | # Remove trailing slashes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1272 | case $ac_val in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1273 | */ ) |
| 1274 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1275 | eval $ac_var=\$ac_val;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1276 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1277 | # Be sure to have absolute directory names. |
| 1278 | case $ac_val in |
| 1279 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1280 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1281 | esac |
| 1282 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1283 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1284 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1285 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1286 | # There might be people who depend on the old broken behavior: `$host' |
| 1287 | # used to hold the argument of --host etc. |
| 1288 | # FIXME: To remove some day. |
| 1289 | build=$build_alias |
| 1290 | host=$host_alias |
| 1291 | target=$target_alias |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1292 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1293 | # FIXME: To remove some day. |
| 1294 | if test "x$host_alias" != x; then |
| 1295 | if test "x$build_alias" = x; then |
| 1296 | cross_compiling=maybe |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1297 | $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] | 1298 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1299 | elif test "x$build_alias" != "x$host_alias"; then |
| 1300 | cross_compiling=yes |
| 1301 | fi |
| 1302 | fi |
| 1303 | |
| 1304 | ac_tool_prefix= |
| 1305 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1306 | |
| 1307 | test "$silent" = yes && exec 6>/dev/null |
| 1308 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1309 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1310 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1311 | ac_ls_di=`ls -di .` && |
| 1312 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1313 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1314 | { (exit 1); exit 1; }; } |
| 1315 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1316 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1317 | { (exit 1); exit 1; }; } |
| 1318 | |
| 1319 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1320 | # Find the source files, if location was not specified. |
| 1321 | if test -z "$srcdir"; then |
| 1322 | ac_srcdir_defaulted=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1323 | # Try the directory containing this script, then the parent directory. |
| 1324 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1325 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1326 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1327 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1328 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1329 | $as_echo X"$as_myself" | |
| 1330 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1331 | s//\1/ |
| 1332 | q |
| 1333 | } |
| 1334 | /^X\(\/\/\)[^/].*/{ |
| 1335 | s//\1/ |
| 1336 | q |
| 1337 | } |
| 1338 | /^X\(\/\/\)$/{ |
| 1339 | s//\1/ |
| 1340 | q |
| 1341 | } |
| 1342 | /^X\(\/\).*/{ |
| 1343 | s//\1/ |
| 1344 | q |
| 1345 | } |
| 1346 | s/.*/./; q'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1347 | srcdir=$ac_confdir |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1348 | if test ! -r "$srcdir/$ac_unique_file"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1349 | srcdir=.. |
| 1350 | fi |
| 1351 | else |
| 1352 | ac_srcdir_defaulted=no |
| 1353 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1354 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1355 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1356 | { $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] | 1357 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1358 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1359 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1360 | ac_abs_confdir=`( |
| 1361 | 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] | 1362 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1363 | pwd)` |
| 1364 | # When building in place, set srcdir=. |
| 1365 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1366 | srcdir=. |
| 1367 | fi |
| 1368 | # Remove unnecessary trailing slashes from srcdir. |
| 1369 | # Double slashes in file names in object file debugging info |
| 1370 | # mess up M-x gdb in Emacs. |
| 1371 | case $srcdir in |
| 1372 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1373 | esac |
| 1374 | for ac_var in $ac_precious_vars; do |
| 1375 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1376 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1377 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1378 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1379 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1380 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1381 | # |
| 1382 | # Report the --help message. |
| 1383 | # |
| 1384 | if test "$ac_init_help" = "long"; then |
| 1385 | # Omit some internal or obsolete options to make the list less imposing. |
| 1386 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1387 | cat <<_ACEOF |
| 1388 | \`configure' configures this package to adapt to many kinds of systems. |
| 1389 | |
| 1390 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1391 | |
| 1392 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1393 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1394 | |
| 1395 | Defaults for the options are specified in brackets. |
| 1396 | |
| 1397 | Configuration: |
| 1398 | -h, --help display this help and exit |
| 1399 | --help=short display options specific to this package |
| 1400 | --help=recursive display the short help of all the included packages |
| 1401 | -V, --version display version information and exit |
| 1402 | -q, --quiet, --silent do not print \`checking...' messages |
| 1403 | --cache-file=FILE cache test results in FILE [disabled] |
| 1404 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1405 | -n, --no-create do not create output files |
| 1406 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1407 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1408 | Installation directories: |
| 1409 | --prefix=PREFIX install architecture-independent files in PREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1410 | [$ac_default_prefix] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1411 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1412 | [PREFIX] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1413 | |
| 1414 | By default, \`make install' will install all the files in |
| 1415 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1416 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1417 | for instance \`--prefix=\$HOME'. |
| 1418 | |
| 1419 | For better control, use the options below. |
| 1420 | |
| 1421 | Fine tuning of the installation directories: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1422 | --bindir=DIR user executables [EPREFIX/bin] |
| 1423 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1424 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1425 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1426 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1427 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1428 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1429 | --includedir=DIR C header files [PREFIX/include] |
| 1430 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1431 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1432 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1433 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1434 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1435 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1436 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1437 | --htmldir=DIR html documentation [DOCDIR] |
| 1438 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1439 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1440 | --psdir=DIR ps documentation [DOCDIR] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1441 | _ACEOF |
| 1442 | |
| 1443 | cat <<\_ACEOF |
| 1444 | |
| 1445 | X features: |
| 1446 | --x-includes=DIR X include files are in DIR |
| 1447 | --x-libraries=DIR X library files are in DIR |
| 1448 | _ACEOF |
| 1449 | fi |
| 1450 | |
| 1451 | if test -n "$ac_init_help"; then |
| 1452 | |
| 1453 | cat <<\_ACEOF |
| 1454 | |
| 1455 | Optional Features: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1456 | --disable-option-checking ignore unrecognized --enable/--with options |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1457 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1458 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1459 | --disable-darwin Disable Darwin (Mac OS X) support. |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 1460 | --disable-selinux Don't check for SELinux support. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1461 | --disable-xsmp Disable XSMP session management |
| 1462 | --disable-xsmp-interact Disable XSMP interaction |
| 1463 | --enable-mzschemeinterp Include MzScheme interpreter. |
| 1464 | --enable-perlinterp Include Perl interpreter. |
| 1465 | --enable-pythoninterp Include Python interpreter. |
| 1466 | --enable-tclinterp Include Tcl interpreter. |
| 1467 | --enable-rubyinterp Include Ruby interpreter. |
| 1468 | --enable-cscope Include cscope interface. |
| 1469 | --enable-workshop Include Sun Visual Workshop support. |
| 1470 | --disable-netbeans Disable NetBeans integration support. |
| 1471 | --enable-sniff Include Sniff interface. |
| 1472 | --enable-multibyte Include multibyte editing support. |
| 1473 | --enable-hangulinput Include Hangul input support. |
| 1474 | --enable-xim Include XIM input support. |
| 1475 | --enable-fontset Include X fontset output support. |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 1476 | --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] | 1477 | --enable-gtk-check If auto-select GUI, check for GTK default=yes |
| 1478 | --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes |
| 1479 | --enable-gnome-check If GTK GUI, check for GNOME default=no |
| 1480 | --enable-motif-check If auto-select GUI, check for Motif default=yes |
| 1481 | --enable-athena-check If auto-select GUI, check for Athena default=yes |
| 1482 | --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes |
| 1483 | --enable-carbon-check If auto-select GUI, check for Carbon default=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1484 | --disable-gtktest Do not try to compile and run a test GTK program |
| 1485 | --disable-acl Don't check for ACL support. |
| 1486 | --disable-gpm Don't use gpm (Linux mouse daemon). |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1487 | --disable-sysmouse Don't use sysmouse (mouse in *BSD console). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1488 | --disable-nls Don't support NLS (gettext()). |
| 1489 | |
| 1490 | Optional Packages: |
| 1491 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1492 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Bram Moolenaar | 899dddf | 2006-03-26 21:06:50 +0000 | [diff] [blame] | 1493 | --with-mac-arch=ARCH current, intel, ppc or both |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 1494 | --with-local-dir=PATH search PATH instead of /usr/local for local libraries. |
| 1495 | --without-local-dir do not search /usr/local for local libraries. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1496 | --with-vim-name=NAME what to call the Vim executable |
| 1497 | --with-ex-name=NAME what to call the Ex executable |
| 1498 | --with-view-name=NAME what to call the View executable |
| 1499 | --with-global-runtime=DIR global runtime directory in 'runtimepath' |
| 1500 | --with-modified-by=NAME name of who modified a release version |
| 1501 | --with-features=TYPE tiny, small, normal, big or huge (default: normal) |
| 1502 | --with-compiledby=NAME name to show in :version message |
| 1503 | --with-plthome=PLTHOME Use PLTHOME. |
| 1504 | --with-python-config-dir=PATH Python's config directory |
| 1505 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
| 1506 | --with-x use the X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1507 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
| 1508 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
| 1509 | --with-gnome-includes=DIR Specify location of GNOME headers |
| 1510 | --with-gnome-libs=DIR Specify location of GNOME libs |
| 1511 | --with-gnome Specify prefix for GNOME files |
| 1512 | --with-motif-lib=STRING Library for Motif |
| 1513 | --with-tlib=library terminal library to be used |
| 1514 | |
| 1515 | Some influential environment variables: |
| 1516 | CC C compiler command |
| 1517 | CFLAGS C compiler flags |
| 1518 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1519 | nonstandard directory <lib dir> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1520 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1521 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1522 | you have headers in a nonstandard directory <include dir> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1523 | CPP C preprocessor |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1524 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1525 | |
| 1526 | Use these variables to override the choices made by `configure' or to help |
| 1527 | it to find libraries and programs with nonstandard names/locations. |
| 1528 | |
| 1529 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1530 | ac_status=$? |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1531 | fi |
| 1532 | |
| 1533 | if test "$ac_init_help" = "recursive"; then |
| 1534 | # If there are subdirs, report their specific --help. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1535 | 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] | 1536 | test -d "$ac_dir" || |
| 1537 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1538 | continue |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1539 | ac_builddir=. |
| 1540 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1541 | case "$ac_dir" in |
| 1542 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1543 | *) |
| 1544 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1545 | # A ".." for each directory in $ac_dir_suffix. |
| 1546 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1547 | case $ac_top_builddir_sub in |
| 1548 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1549 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1550 | esac ;; |
| 1551 | esac |
| 1552 | ac_abs_top_builddir=$ac_pwd |
| 1553 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1554 | # for backward compatibility: |
| 1555 | ac_top_builddir=$ac_top_build_prefix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1556 | |
| 1557 | case $srcdir in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1558 | .) # We are building in place. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1559 | ac_srcdir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1560 | ac_top_srcdir=$ac_top_builddir_sub |
| 1561 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1562 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1563 | ac_srcdir=$srcdir$ac_dir_suffix; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1564 | ac_top_srcdir=$srcdir |
| 1565 | ac_abs_top_srcdir=$srcdir ;; |
| 1566 | *) # Relative name. |
| 1567 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1568 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1569 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1570 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1571 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1572 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1573 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1574 | # Check for guested configure. |
| 1575 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1576 | echo && |
| 1577 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1578 | elif test -f "$ac_srcdir/configure"; then |
| 1579 | echo && |
| 1580 | $SHELL "$ac_srcdir/configure" --help=recursive |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1581 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1582 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1583 | fi || ac_status=$? |
| 1584 | cd "$ac_pwd" || { ac_status=$?; break; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1585 | done |
| 1586 | fi |
| 1587 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1588 | test -n "$ac_init_help" && exit $ac_status |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1589 | if $ac_init_version; then |
| 1590 | cat <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1591 | configure |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1592 | generated by GNU Autoconf 2.63 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1593 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1594 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1595 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1596 | This configure script is free software; the Free Software Foundation |
| 1597 | gives unlimited permission to copy, distribute and modify it. |
| 1598 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1599 | exit |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1600 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1601 | cat >auto/config.log <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1602 | This file contains any messages produced by compilers while |
| 1603 | running configure, to aid debugging if configure makes a mistake. |
| 1604 | |
| 1605 | It was created by $as_me, which was |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1606 | generated by GNU Autoconf 2.63. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1607 | |
| 1608 | $ $0 $@ |
| 1609 | |
| 1610 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1611 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1612 | { |
| 1613 | cat <<_ASUNAME |
| 1614 | ## --------- ## |
| 1615 | ## Platform. ## |
| 1616 | ## --------- ## |
| 1617 | |
| 1618 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1619 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1620 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1621 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1622 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1623 | |
| 1624 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1625 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1626 | |
| 1627 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1628 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1629 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1630 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1631 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1632 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1633 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1634 | |
| 1635 | _ASUNAME |
| 1636 | |
| 1637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1638 | for as_dir in $PATH |
| 1639 | do |
| 1640 | IFS=$as_save_IFS |
| 1641 | test -z "$as_dir" && as_dir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1642 | $as_echo "PATH: $as_dir" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1643 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1644 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1645 | |
| 1646 | } >&5 |
| 1647 | |
| 1648 | cat >&5 <<_ACEOF |
| 1649 | |
| 1650 | |
| 1651 | ## ----------- ## |
| 1652 | ## Core tests. ## |
| 1653 | ## ----------- ## |
| 1654 | |
| 1655 | _ACEOF |
| 1656 | |
| 1657 | |
| 1658 | # Keep a trace of the command line. |
| 1659 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1660 | # Strip out --silent because we don't want to record it for future runs. |
| 1661 | # Also quote any args containing shell meta-characters. |
| 1662 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1663 | ac_configure_args= |
| 1664 | ac_configure_args0= |
| 1665 | ac_configure_args1= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1666 | ac_must_keep_next=false |
| 1667 | for ac_pass in 1 2 |
| 1668 | do |
| 1669 | for ac_arg |
| 1670 | do |
| 1671 | case $ac_arg in |
| 1672 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1673 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1674 | | -silent | --silent | --silen | --sile | --sil) |
| 1675 | continue ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1676 | *\'*) |
| 1677 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1678 | esac |
| 1679 | case $ac_pass in |
| 1680 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1681 | 2) |
| 1682 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1683 | if test $ac_must_keep_next = true; then |
| 1684 | ac_must_keep_next=false # Got value, back to normal. |
| 1685 | else |
| 1686 | case $ac_arg in |
| 1687 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1688 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1689 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1690 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1691 | case "$ac_configure_args0 " in |
| 1692 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1693 | esac |
| 1694 | ;; |
| 1695 | -* ) ac_must_keep_next=true ;; |
| 1696 | esac |
| 1697 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1698 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1699 | ;; |
| 1700 | esac |
| 1701 | done |
| 1702 | done |
| 1703 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1704 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1705 | |
| 1706 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1707 | # config.log. We remove comments because anyway the quotes in there |
| 1708 | # would cause problems or look ugly. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1709 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1710 | # 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] | 1711 | trap 'exit_status=$? |
| 1712 | # Save into config.log some information that might help in debugging. |
| 1713 | { |
| 1714 | echo |
| 1715 | |
| 1716 | cat <<\_ASBOX |
| 1717 | ## ---------------- ## |
| 1718 | ## Cache variables. ## |
| 1719 | ## ---------------- ## |
| 1720 | _ASBOX |
| 1721 | echo |
| 1722 | # The following way of writing the cache mishandles newlines in values, |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1723 | ( |
| 1724 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1725 | eval ac_val=\$$ac_var |
| 1726 | case $ac_val in #( |
| 1727 | *${as_nl}*) |
| 1728 | case $ac_var in #( |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1729 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1730 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1731 | esac |
| 1732 | case $ac_var in #( |
| 1733 | _ | IFS | as_nl) ;; #( |
| 1734 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1735 | *) $as_unset $ac_var ;; |
| 1736 | esac ;; |
| 1737 | esac |
| 1738 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1739 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1740 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1741 | *${as_nl}ac_space=\ *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1742 | sed -n \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1743 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1744 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1745 | ;; #( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1746 | *) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1747 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1748 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1749 | esac | |
| 1750 | sort |
| 1751 | ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1752 | echo |
| 1753 | |
| 1754 | cat <<\_ASBOX |
| 1755 | ## ----------------- ## |
| 1756 | ## Output variables. ## |
| 1757 | ## ----------------- ## |
| 1758 | _ASBOX |
| 1759 | echo |
| 1760 | for ac_var in $ac_subst_vars |
| 1761 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1762 | eval ac_val=\$$ac_var |
| 1763 | case $ac_val in |
| 1764 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1765 | esac |
| 1766 | $as_echo "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1767 | done | sort |
| 1768 | echo |
| 1769 | |
| 1770 | if test -n "$ac_subst_files"; then |
| 1771 | cat <<\_ASBOX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1772 | ## ------------------- ## |
| 1773 | ## File substitutions. ## |
| 1774 | ## ------------------- ## |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1775 | _ASBOX |
| 1776 | echo |
| 1777 | for ac_var in $ac_subst_files |
| 1778 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1779 | eval ac_val=\$$ac_var |
| 1780 | case $ac_val in |
| 1781 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1782 | esac |
| 1783 | $as_echo "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1784 | done | sort |
| 1785 | echo |
| 1786 | fi |
| 1787 | |
| 1788 | if test -s confdefs.h; then |
| 1789 | cat <<\_ASBOX |
| 1790 | ## ----------- ## |
| 1791 | ## confdefs.h. ## |
| 1792 | ## ----------- ## |
| 1793 | _ASBOX |
| 1794 | echo |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1795 | cat confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1796 | echo |
| 1797 | fi |
| 1798 | test "$ac_signal" != 0 && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1799 | $as_echo "$as_me: caught signal $ac_signal" |
| 1800 | $as_echo "$as_me: exit $exit_status" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1801 | } >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1802 | rm -f core *.core core.conftest.* && |
| 1803 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1804 | exit $exit_status |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1805 | ' 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1806 | for ac_signal in 1 2 13 15; do |
| 1807 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1808 | done |
| 1809 | ac_signal=0 |
| 1810 | |
| 1811 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1812 | rm -f -r conftest* confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1813 | |
| 1814 | # Predefined preprocessor variables. |
| 1815 | |
| 1816 | cat >>confdefs.h <<_ACEOF |
| 1817 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1818 | _ACEOF |
| 1819 | |
| 1820 | |
| 1821 | cat >>confdefs.h <<_ACEOF |
| 1822 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1823 | _ACEOF |
| 1824 | |
| 1825 | |
| 1826 | cat >>confdefs.h <<_ACEOF |
| 1827 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1828 | _ACEOF |
| 1829 | |
| 1830 | |
| 1831 | cat >>confdefs.h <<_ACEOF |
| 1832 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1833 | _ACEOF |
| 1834 | |
| 1835 | |
| 1836 | cat >>confdefs.h <<_ACEOF |
| 1837 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1838 | _ACEOF |
| 1839 | |
| 1840 | |
| 1841 | # 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] | 1842 | # Prefer an explicitly selected file to automatically selected ones. |
| 1843 | ac_site_file1=NONE |
| 1844 | ac_site_file2=NONE |
| 1845 | if test -n "$CONFIG_SITE"; then |
| 1846 | ac_site_file1=$CONFIG_SITE |
| 1847 | elif test "x$prefix" != xNONE; then |
| 1848 | ac_site_file1=$prefix/share/config.site |
| 1849 | ac_site_file2=$prefix/etc/config.site |
| 1850 | else |
| 1851 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1852 | ac_site_file2=$ac_default_prefix/etc/config.site |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1853 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1854 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1855 | do |
| 1856 | test "x$ac_site_file" = xNONE && continue |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1857 | if test -r "$ac_site_file"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1858 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1859 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1860 | sed 's/^/| /' "$ac_site_file" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1861 | . "$ac_site_file" |
| 1862 | fi |
| 1863 | done |
| 1864 | |
| 1865 | if test -r "$cache_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1866 | # Some versions of bash will fail to source /dev/null (special |
| 1867 | # files actually), so we avoid doing that. |
| 1868 | if test -f "$cache_file"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1869 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1870 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1871 | case $cache_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1872 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1873 | *) . "./$cache_file";; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1874 | esac |
| 1875 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1876 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1877 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1878 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1879 | >$cache_file |
| 1880 | fi |
| 1881 | |
| 1882 | # Check that the precious variables saved in the cache have kept the same |
| 1883 | # value. |
| 1884 | ac_cache_corrupted=false |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1885 | for ac_var in $ac_precious_vars; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1886 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1887 | eval ac_new_set=\$ac_env_${ac_var}_set |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1888 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1889 | eval ac_new_val=\$ac_env_${ac_var}_value |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1890 | case $ac_old_set,$ac_new_set in |
| 1891 | set,) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1892 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1893 | $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] | 1894 | ac_cache_corrupted=: ;; |
| 1895 | ,set) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1896 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1897 | $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] | 1898 | ac_cache_corrupted=: ;; |
| 1899 | ,);; |
| 1900 | *) |
| 1901 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1902 | # differences in whitespace do not lead to failure. |
| 1903 | ac_old_val_w=`echo x $ac_old_val` |
| 1904 | ac_new_val_w=`echo x $ac_new_val` |
| 1905 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1906 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1907 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1908 | ac_cache_corrupted=: |
| 1909 | else |
| 1910 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1911 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1912 | eval $ac_var=\$ac_old_val |
| 1913 | fi |
| 1914 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1915 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1916 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1917 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1918 | fi;; |
| 1919 | esac |
| 1920 | # Pass precious variables to config.status. |
| 1921 | if test "$ac_new_set" = set; then |
| 1922 | case $ac_new_val in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1923 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1924 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1925 | esac |
| 1926 | case " $ac_configure_args " in |
| 1927 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1928 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1929 | esac |
| 1930 | fi |
| 1931 | done |
| 1932 | if $ac_cache_corrupted; then |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1933 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1934 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1935 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1936 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1937 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1938 | $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] | 1939 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1940 | fi |
| 1941 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1942 | |
| 1943 | |
| 1944 | |
| 1945 | |
| 1946 | |
| 1947 | |
| 1948 | |
| 1949 | |
| 1950 | |
| 1951 | |
| 1952 | |
| 1953 | |
| 1954 | |
| 1955 | |
| 1956 | |
| 1957 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1958 | ac_ext=c |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1959 | ac_cpp='$CPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1963 | |
| 1964 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1965 | ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1966 | |
| 1967 | |
| 1968 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1969 | #define UNIX 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1970 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1971 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1972 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1973 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 1974 | set x ${MAKE-make} |
| 1975 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 1976 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 1977 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1978 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1979 | cat >conftest.make <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1980 | SHELL = /bin/sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1981 | all: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1982 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1983 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1984 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1985 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 1986 | *@@@%%%=?*=@@@%%%*) |
| 1987 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 1988 | *) |
| 1989 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 1990 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1991 | rm -f conftest.make |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1992 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1993 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 1994 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 1995 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1996 | SET_MAKE= |
| 1997 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1998 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 1999 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2000 | SET_MAKE="MAKE=${MAKE-make}" |
| 2001 | fi |
| 2002 | |
| 2003 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2004 | ac_ext=c |
| 2005 | ac_cpp='$CPP $CPPFLAGS' |
| 2006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2009 | if test -n "$ac_tool_prefix"; then |
| 2010 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2011 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2012 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2013 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2014 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2015 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2016 | else |
| 2017 | if test -n "$CC"; then |
| 2018 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2019 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2021 | for as_dir in $PATH |
| 2022 | do |
| 2023 | IFS=$as_save_IFS |
| 2024 | test -z "$as_dir" && as_dir=. |
| 2025 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2026 | 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] | 2027 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2028 | $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] | 2029 | break 2 |
| 2030 | fi |
| 2031 | done |
| 2032 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2033 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2034 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2035 | fi |
| 2036 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2037 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2038 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2039 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2040 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2041 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2042 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2043 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2044 | fi |
| 2045 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2046 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2047 | fi |
| 2048 | if test -z "$ac_cv_prog_CC"; then |
| 2049 | ac_ct_CC=$CC |
| 2050 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2051 | set dummy gcc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2052 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2053 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2054 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2055 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2056 | else |
| 2057 | if test -n "$ac_ct_CC"; then |
| 2058 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2059 | else |
| 2060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2061 | for as_dir in $PATH |
| 2062 | do |
| 2063 | IFS=$as_save_IFS |
| 2064 | test -z "$as_dir" && as_dir=. |
| 2065 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2066 | 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] | 2067 | ac_cv_prog_ac_ct_CC="gcc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2068 | $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] | 2069 | break 2 |
| 2070 | fi |
| 2071 | done |
| 2072 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2073 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2074 | |
| 2075 | fi |
| 2076 | fi |
| 2077 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2078 | if test -n "$ac_ct_CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2079 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2080 | $as_echo "$ac_ct_CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2081 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2082 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2083 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2084 | fi |
| 2085 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2086 | if test "x$ac_ct_CC" = x; then |
| 2087 | CC="" |
| 2088 | else |
| 2089 | case $cross_compiling:$ac_tool_warned in |
| 2090 | yes:) |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2091 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2092 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2093 | ac_tool_warned=yes ;; |
| 2094 | esac |
| 2095 | CC=$ac_ct_CC |
| 2096 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2097 | else |
| 2098 | CC="$ac_cv_prog_CC" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2099 | fi |
| 2100 | |
| 2101 | if test -z "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2102 | if test -n "$ac_tool_prefix"; then |
| 2103 | # 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] | 2104 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2105 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2106 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2107 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2108 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2109 | else |
| 2110 | if test -n "$CC"; then |
| 2111 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2112 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2114 | for as_dir in $PATH |
| 2115 | do |
| 2116 | IFS=$as_save_IFS |
| 2117 | test -z "$as_dir" && as_dir=. |
| 2118 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2119 | 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] | 2120 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2121 | $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] | 2122 | break 2 |
| 2123 | fi |
| 2124 | done |
| 2125 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2126 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2127 | |
| 2128 | fi |
| 2129 | fi |
| 2130 | CC=$ac_cv_prog_CC |
| 2131 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2132 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2133 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2134 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2135 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2136 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2137 | fi |
| 2138 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2139 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2140 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2141 | fi |
| 2142 | if test -z "$CC"; then |
| 2143 | # Extract the first word of "cc", so it can be a program name with args. |
| 2144 | set dummy cc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2145 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2146 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2147 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2148 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2149 | else |
| 2150 | if test -n "$CC"; then |
| 2151 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2152 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2153 | ac_prog_rejected=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2155 | for as_dir in $PATH |
| 2156 | do |
| 2157 | IFS=$as_save_IFS |
| 2158 | test -z "$as_dir" && as_dir=. |
| 2159 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2160 | 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] | 2161 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2162 | ac_prog_rejected=yes |
| 2163 | continue |
| 2164 | fi |
| 2165 | ac_cv_prog_CC="cc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2166 | $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] | 2167 | break 2 |
| 2168 | fi |
| 2169 | done |
| 2170 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2171 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2172 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2173 | if test $ac_prog_rejected = yes; then |
| 2174 | # We found a bogon in the path, so make sure we never use it. |
| 2175 | set dummy $ac_cv_prog_CC |
| 2176 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2177 | if test $# != 0; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2178 | # We chose a different compiler from the bogus one. |
| 2179 | # However, it has the same basename, so the bogon will be chosen |
| 2180 | # first if we set CC to just the basename; use the full file name. |
| 2181 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2182 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2183 | fi |
| 2184 | fi |
| 2185 | fi |
| 2186 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2187 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2188 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2189 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2190 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2191 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2192 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2193 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2194 | fi |
| 2195 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2196 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2197 | fi |
| 2198 | if test -z "$CC"; then |
| 2199 | if test -n "$ac_tool_prefix"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2200 | for ac_prog in cl.exe |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2201 | do |
| 2202 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2203 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2204 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2205 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2206 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2207 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2208 | else |
| 2209 | if test -n "$CC"; then |
| 2210 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2211 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2213 | for as_dir in $PATH |
| 2214 | do |
| 2215 | IFS=$as_save_IFS |
| 2216 | test -z "$as_dir" && as_dir=. |
| 2217 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2218 | 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] | 2219 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2220 | $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] | 2221 | break 2 |
| 2222 | fi |
| 2223 | done |
| 2224 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2225 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2226 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2227 | fi |
| 2228 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2229 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2230 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2231 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2232 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2233 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2234 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2235 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2236 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2237 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2238 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2239 | test -n "$CC" && break |
| 2240 | done |
| 2241 | fi |
| 2242 | if test -z "$CC"; then |
| 2243 | ac_ct_CC=$CC |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2244 | for ac_prog in cl.exe |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2245 | do |
| 2246 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2247 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2248 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2249 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2250 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2251 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2252 | else |
| 2253 | if test -n "$ac_ct_CC"; then |
| 2254 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2255 | else |
| 2256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2257 | for as_dir in $PATH |
| 2258 | do |
| 2259 | IFS=$as_save_IFS |
| 2260 | test -z "$as_dir" && as_dir=. |
| 2261 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2262 | 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] | 2263 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2264 | $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] | 2265 | break 2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2266 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2267 | done |
| 2268 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2269 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2270 | |
| 2271 | fi |
| 2272 | fi |
| 2273 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2274 | if test -n "$ac_ct_CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2275 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2276 | $as_echo "$ac_ct_CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2277 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2278 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2279 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2280 | fi |
| 2281 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2282 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2283 | test -n "$ac_ct_CC" && break |
| 2284 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2285 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2286 | if test "x$ac_ct_CC" = x; then |
| 2287 | CC="" |
| 2288 | else |
| 2289 | case $cross_compiling:$ac_tool_warned in |
| 2290 | yes:) |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2291 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2292 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2293 | ac_tool_warned=yes ;; |
| 2294 | esac |
| 2295 | CC=$ac_ct_CC |
| 2296 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2297 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2298 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2299 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2300 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2301 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2302 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2303 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2304 | { { $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] | 2305 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2306 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2307 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2308 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2309 | |
| 2310 | # Provide some information about the compiler. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2311 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2312 | set X $ac_compile |
| 2313 | ac_compiler=$2 |
| 2314 | { (ac_try="$ac_compiler --version >&5" |
| 2315 | case "(($ac_try" in |
| 2316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2317 | *) ac_try_echo=$ac_try;; |
| 2318 | esac |
| 2319 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2320 | $as_echo "$ac_try_echo") >&5 |
| 2321 | (eval "$ac_compiler --version >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2322 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2323 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2324 | (exit $ac_status); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2325 | { (ac_try="$ac_compiler -v >&5" |
| 2326 | case "(($ac_try" in |
| 2327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2328 | *) ac_try_echo=$ac_try;; |
| 2329 | esac |
| 2330 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2331 | $as_echo "$ac_try_echo") >&5 |
| 2332 | (eval "$ac_compiler -v >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2333 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2335 | (exit $ac_status); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2336 | { (ac_try="$ac_compiler -V >&5" |
| 2337 | case "(($ac_try" in |
| 2338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2339 | *) ac_try_echo=$ac_try;; |
| 2340 | esac |
| 2341 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2342 | $as_echo "$ac_try_echo") >&5 |
| 2343 | (eval "$ac_compiler -V >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2344 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2345 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2346 | (exit $ac_status); } |
| 2347 | |
| 2348 | cat >conftest.$ac_ext <<_ACEOF |
| 2349 | /* confdefs.h. */ |
| 2350 | _ACEOF |
| 2351 | cat confdefs.h >>conftest.$ac_ext |
| 2352 | cat >>conftest.$ac_ext <<_ACEOF |
| 2353 | /* end confdefs.h. */ |
| 2354 | |
| 2355 | int |
| 2356 | main () |
| 2357 | { |
| 2358 | |
| 2359 | ; |
| 2360 | return 0; |
| 2361 | } |
| 2362 | _ACEOF |
| 2363 | ac_clean_files_save=$ac_clean_files |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2364 | 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] | 2365 | # Try to create an executable without -o first, disregard a.out. |
| 2366 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2367 | # of exeext. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2368 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2369 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2370 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2371 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2372 | # The possible output files: |
| 2373 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2374 | |
| 2375 | ac_rmfiles= |
| 2376 | for ac_file in $ac_files |
| 2377 | do |
| 2378 | case $ac_file in |
| 2379 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2380 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2381 | esac |
| 2382 | done |
| 2383 | rm -f $ac_rmfiles |
| 2384 | |
| 2385 | if { (ac_try="$ac_link_default" |
| 2386 | case "(($ac_try" in |
| 2387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2388 | *) ac_try_echo=$ac_try;; |
| 2389 | esac |
| 2390 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2391 | $as_echo "$ac_try_echo") >&5 |
| 2392 | (eval "$ac_link_default") 2>&5 |
| 2393 | ac_status=$? |
| 2394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2395 | (exit $ac_status); }; then |
| 2396 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2397 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2398 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2399 | # so that the user can short-circuit this test for compilers unknown to |
| 2400 | # Autoconf. |
| 2401 | for ac_file in $ac_files '' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2402 | do |
| 2403 | test -f "$ac_file" || continue |
| 2404 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2405 | *.$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] | 2406 | ;; |
| 2407 | [ab].out ) |
| 2408 | # We found the default executable, but exeext='' is most |
| 2409 | # certainly right. |
| 2410 | break;; |
| 2411 | *.* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2412 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2413 | then :; else |
| 2414 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2415 | fi |
| 2416 | # We set ac_cv_exeext here because the later test for it is not |
| 2417 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2418 | # argument, so we may need to know it at that point already. |
| 2419 | # Even if this section looks crufty: it has the advantage of |
| 2420 | # actually working. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2421 | break;; |
| 2422 | * ) |
| 2423 | break;; |
| 2424 | esac |
| 2425 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2426 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2427 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2428 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2429 | ac_file='' |
| 2430 | fi |
| 2431 | |
| 2432 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2433 | $as_echo "$ac_file" >&6; } |
| 2434 | if test -z "$ac_file"; then |
| 2435 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2437 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2438 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2439 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2440 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2441 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2442 | $as_echo "$as_me: error: C compiler cannot create executables |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2443 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2444 | { (exit 77); exit 77; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2445 | fi |
| 2446 | |
| 2447 | ac_exeext=$ac_cv_exeext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2448 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2449 | # Check that the compiler produces executables we can run. If not, either |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2450 | # the compiler is broken, or we cross compile. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2451 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2452 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2453 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2454 | # If not cross compiling, check that we can run a simple program. |
| 2455 | if test "$cross_compiling" != yes; then |
| 2456 | if { ac_try='./$ac_file' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2457 | { (case "(($ac_try" in |
| 2458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2459 | *) ac_try_echo=$ac_try;; |
| 2460 | esac |
| 2461 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2462 | $as_echo "$ac_try_echo") >&5 |
| 2463 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2464 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2466 | (exit $ac_status); }; }; then |
| 2467 | cross_compiling=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2468 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2469 | if test "$cross_compiling" = maybe; then |
| 2470 | cross_compiling=yes |
| 2471 | else |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2472 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2473 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2474 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2475 | If you meant to cross compile, use \`--host'. |
| 2476 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2477 | $as_echo "$as_me: error: cannot run C compiled programs. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2478 | If you meant to cross compile, use \`--host'. |
| 2479 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2480 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2481 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2482 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2483 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2484 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2485 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2486 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2487 | 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] | 2488 | ac_clean_files=$ac_clean_files_save |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2489 | # Check that the compiler produces executables we can run. If not, either |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2490 | # the compiler is broken, or we cross compile. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2491 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2492 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2493 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2494 | $as_echo "$cross_compiling" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2495 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2496 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2497 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2498 | if { (ac_try="$ac_link" |
| 2499 | case "(($ac_try" in |
| 2500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2501 | *) ac_try_echo=$ac_try;; |
| 2502 | esac |
| 2503 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2504 | $as_echo "$ac_try_echo") >&5 |
| 2505 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2506 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2507 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2508 | (exit $ac_status); }; then |
| 2509 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2510 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2511 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2512 | # `rm'. |
| 2513 | for ac_file in conftest.exe conftest conftest.*; do |
| 2514 | test -f "$ac_file" || continue |
| 2515 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2516 | *.$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] | 2517 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2518 | break;; |
| 2519 | * ) break;; |
| 2520 | esac |
| 2521 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2522 | else |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2523 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2524 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2525 | { { $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] | 2526 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2527 | $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] | 2528 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2529 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2530 | fi |
| 2531 | |
| 2532 | rm -f conftest$ac_cv_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2533 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2534 | $as_echo "$ac_cv_exeext" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2535 | |
| 2536 | rm -f conftest.$ac_ext |
| 2537 | EXEEXT=$ac_cv_exeext |
| 2538 | ac_exeext=$EXEEXT |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2539 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2540 | $as_echo_n "checking for suffix of object files... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2541 | if test "${ac_cv_objext+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2542 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2543 | else |
| 2544 | cat >conftest.$ac_ext <<_ACEOF |
| 2545 | /* confdefs.h. */ |
| 2546 | _ACEOF |
| 2547 | cat confdefs.h >>conftest.$ac_ext |
| 2548 | cat >>conftest.$ac_ext <<_ACEOF |
| 2549 | /* end confdefs.h. */ |
| 2550 | |
| 2551 | int |
| 2552 | main () |
| 2553 | { |
| 2554 | |
| 2555 | ; |
| 2556 | return 0; |
| 2557 | } |
| 2558 | _ACEOF |
| 2559 | rm -f conftest.o conftest.obj |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2560 | if { (ac_try="$ac_compile" |
| 2561 | case "(($ac_try" in |
| 2562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2563 | *) ac_try_echo=$ac_try;; |
| 2564 | esac |
| 2565 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2566 | $as_echo "$ac_try_echo") >&5 |
| 2567 | (eval "$ac_compile") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2568 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2569 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2570 | (exit $ac_status); }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2571 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2572 | test -f "$ac_file" || continue; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2573 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2574 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2575 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2576 | break;; |
| 2577 | esac |
| 2578 | done |
| 2579 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2580 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2582 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2583 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2584 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2585 | { { $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] | 2586 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2587 | $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] | 2588 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2589 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2590 | fi |
| 2591 | |
| 2592 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2593 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2594 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2595 | $as_echo "$ac_cv_objext" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2596 | OBJEXT=$ac_cv_objext |
| 2597 | ac_objext=$OBJEXT |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2598 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2599 | $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] | 2600 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2601 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2602 | else |
| 2603 | cat >conftest.$ac_ext <<_ACEOF |
| 2604 | /* confdefs.h. */ |
| 2605 | _ACEOF |
| 2606 | cat confdefs.h >>conftest.$ac_ext |
| 2607 | cat >>conftest.$ac_ext <<_ACEOF |
| 2608 | /* end confdefs.h. */ |
| 2609 | |
| 2610 | int |
| 2611 | main () |
| 2612 | { |
| 2613 | #ifndef __GNUC__ |
| 2614 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2615 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2616 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2617 | ; |
| 2618 | return 0; |
| 2619 | } |
| 2620 | _ACEOF |
| 2621 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2622 | if { (ac_try="$ac_compile" |
| 2623 | case "(($ac_try" in |
| 2624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2625 | *) ac_try_echo=$ac_try;; |
| 2626 | esac |
| 2627 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2628 | $as_echo "$ac_try_echo") >&5 |
| 2629 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2630 | ac_status=$? |
| 2631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2632 | rm -f conftest.er1 |
| 2633 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2634 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2635 | (exit $ac_status); } && { |
| 2636 | test -z "$ac_c_werror_flag" || |
| 2637 | test ! -s conftest.err |
| 2638 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2639 | ac_compiler_gnu=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2640 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2641 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2643 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2644 | ac_compiler_gnu=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2645 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2646 | |
| 2647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2648 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2649 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2650 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2651 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2652 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2653 | if test $ac_compiler_gnu = yes; then |
| 2654 | GCC=yes |
| 2655 | else |
| 2656 | GCC= |
| 2657 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2658 | ac_test_CFLAGS=${CFLAGS+set} |
| 2659 | ac_save_CFLAGS=$CFLAGS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2660 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2661 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2662 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2663 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2664 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2665 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2666 | ac_c_werror_flag=yes |
| 2667 | ac_cv_prog_cc_g=no |
| 2668 | CFLAGS="-g" |
| 2669 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2670 | /* confdefs.h. */ |
| 2671 | _ACEOF |
| 2672 | cat confdefs.h >>conftest.$ac_ext |
| 2673 | cat >>conftest.$ac_ext <<_ACEOF |
| 2674 | /* end confdefs.h. */ |
| 2675 | |
| 2676 | int |
| 2677 | main () |
| 2678 | { |
| 2679 | |
| 2680 | ; |
| 2681 | return 0; |
| 2682 | } |
| 2683 | _ACEOF |
| 2684 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2685 | if { (ac_try="$ac_compile" |
| 2686 | case "(($ac_try" in |
| 2687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2688 | *) ac_try_echo=$ac_try;; |
| 2689 | esac |
| 2690 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2691 | $as_echo "$ac_try_echo") >&5 |
| 2692 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2693 | ac_status=$? |
| 2694 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2695 | rm -f conftest.er1 |
| 2696 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2697 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2698 | (exit $ac_status); } && { |
| 2699 | test -z "$ac_c_werror_flag" || |
| 2700 | test ! -s conftest.err |
| 2701 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2702 | ac_cv_prog_cc_g=yes |
| 2703 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2704 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2705 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2706 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2707 | CFLAGS="" |
| 2708 | cat >conftest.$ac_ext <<_ACEOF |
| 2709 | /* confdefs.h. */ |
| 2710 | _ACEOF |
| 2711 | cat confdefs.h >>conftest.$ac_ext |
| 2712 | cat >>conftest.$ac_ext <<_ACEOF |
| 2713 | /* end confdefs.h. */ |
| 2714 | |
| 2715 | int |
| 2716 | main () |
| 2717 | { |
| 2718 | |
| 2719 | ; |
| 2720 | return 0; |
| 2721 | } |
| 2722 | _ACEOF |
| 2723 | rm -f conftest.$ac_objext |
| 2724 | if { (ac_try="$ac_compile" |
| 2725 | case "(($ac_try" in |
| 2726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2727 | *) ac_try_echo=$ac_try;; |
| 2728 | esac |
| 2729 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2730 | $as_echo "$ac_try_echo") >&5 |
| 2731 | (eval "$ac_compile") 2>conftest.er1 |
| 2732 | ac_status=$? |
| 2733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2734 | rm -f conftest.er1 |
| 2735 | cat conftest.err >&5 |
| 2736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2737 | (exit $ac_status); } && { |
| 2738 | test -z "$ac_c_werror_flag" || |
| 2739 | test ! -s conftest.err |
| 2740 | } && test -s conftest.$ac_objext; then |
| 2741 | : |
| 2742 | else |
| 2743 | $as_echo "$as_me: failed program was:" >&5 |
| 2744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2745 | |
| 2746 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2747 | CFLAGS="-g" |
| 2748 | cat >conftest.$ac_ext <<_ACEOF |
| 2749 | /* confdefs.h. */ |
| 2750 | _ACEOF |
| 2751 | cat confdefs.h >>conftest.$ac_ext |
| 2752 | cat >>conftest.$ac_ext <<_ACEOF |
| 2753 | /* end confdefs.h. */ |
| 2754 | |
| 2755 | int |
| 2756 | main () |
| 2757 | { |
| 2758 | |
| 2759 | ; |
| 2760 | return 0; |
| 2761 | } |
| 2762 | _ACEOF |
| 2763 | rm -f conftest.$ac_objext |
| 2764 | if { (ac_try="$ac_compile" |
| 2765 | case "(($ac_try" in |
| 2766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2767 | *) ac_try_echo=$ac_try;; |
| 2768 | esac |
| 2769 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2770 | $as_echo "$ac_try_echo") >&5 |
| 2771 | (eval "$ac_compile") 2>conftest.er1 |
| 2772 | ac_status=$? |
| 2773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2774 | rm -f conftest.er1 |
| 2775 | cat conftest.err >&5 |
| 2776 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2777 | (exit $ac_status); } && { |
| 2778 | test -z "$ac_c_werror_flag" || |
| 2779 | test ! -s conftest.err |
| 2780 | } && test -s conftest.$ac_objext; then |
| 2781 | ac_cv_prog_cc_g=yes |
| 2782 | else |
| 2783 | $as_echo "$as_me: failed program was:" >&5 |
| 2784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2785 | |
| 2786 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2787 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2788 | |
| 2789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2790 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2791 | |
| 2792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2793 | fi |
| 2794 | |
| 2795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2796 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2797 | fi |
| 2798 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2799 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2800 | if test "$ac_test_CFLAGS" = set; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2801 | CFLAGS=$ac_save_CFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2802 | elif test $ac_cv_prog_cc_g = yes; then |
| 2803 | if test "$GCC" = yes; then |
| 2804 | CFLAGS="-g -O2" |
| 2805 | else |
| 2806 | CFLAGS="-g" |
| 2807 | fi |
| 2808 | else |
| 2809 | if test "$GCC" = yes; then |
| 2810 | CFLAGS="-O2" |
| 2811 | else |
| 2812 | CFLAGS= |
| 2813 | fi |
| 2814 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2815 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2816 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 2817 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2818 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2819 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2820 | ac_cv_prog_cc_c89=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2821 | ac_save_CC=$CC |
| 2822 | cat >conftest.$ac_ext <<_ACEOF |
| 2823 | /* confdefs.h. */ |
| 2824 | _ACEOF |
| 2825 | cat confdefs.h >>conftest.$ac_ext |
| 2826 | cat >>conftest.$ac_ext <<_ACEOF |
| 2827 | /* end confdefs.h. */ |
| 2828 | #include <stdarg.h> |
| 2829 | #include <stdio.h> |
| 2830 | #include <sys/types.h> |
| 2831 | #include <sys/stat.h> |
| 2832 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2833 | struct buf { int x; }; |
| 2834 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2835 | static char *e (p, i) |
| 2836 | char **p; |
| 2837 | int i; |
| 2838 | { |
| 2839 | return p[i]; |
| 2840 | } |
| 2841 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2842 | { |
| 2843 | char *s; |
| 2844 | va_list v; |
| 2845 | va_start (v,p); |
| 2846 | s = g (p, va_arg (v,int)); |
| 2847 | va_end (v); |
| 2848 | return s; |
| 2849 | } |
| 2850 | |
| 2851 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2852 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2853 | These don't provoke an error unfortunately, instead are silently treated |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2854 | 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] | 2855 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2856 | 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] | 2857 | that's true only with -std. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2858 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2859 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2860 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2861 | inside strings and character constants. */ |
| 2862 | #define FOO(x) 'x' |
| 2863 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2864 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2865 | int test (int i, double x); |
| 2866 | struct s1 {int (*f) (int a);}; |
| 2867 | struct s2 {int (*f) (double a);}; |
| 2868 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2869 | int argc; |
| 2870 | char **argv; |
| 2871 | int |
| 2872 | main () |
| 2873 | { |
| 2874 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2875 | ; |
| 2876 | return 0; |
| 2877 | } |
| 2878 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2879 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2880 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2881 | do |
| 2882 | CC="$ac_save_CC $ac_arg" |
| 2883 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2884 | if { (ac_try="$ac_compile" |
| 2885 | case "(($ac_try" in |
| 2886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2887 | *) ac_try_echo=$ac_try;; |
| 2888 | esac |
| 2889 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2890 | $as_echo "$ac_try_echo") >&5 |
| 2891 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2892 | ac_status=$? |
| 2893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2894 | rm -f conftest.er1 |
| 2895 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2896 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2897 | (exit $ac_status); } && { |
| 2898 | test -z "$ac_c_werror_flag" || |
| 2899 | test ! -s conftest.err |
| 2900 | } && test -s conftest.$ac_objext; then |
| 2901 | ac_cv_prog_cc_c89=$ac_arg |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2902 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2903 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2905 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2906 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2907 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2908 | |
| 2909 | rm -f core conftest.err conftest.$ac_objext |
| 2910 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2911 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2912 | rm -f conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2913 | CC=$ac_save_CC |
| 2914 | |
| 2915 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2916 | # AC_CACHE_VAL |
| 2917 | case "x$ac_cv_prog_cc_c89" in |
| 2918 | x) |
| 2919 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 2920 | $as_echo "none needed" >&6; } ;; |
| 2921 | xno) |
| 2922 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2923 | $as_echo "unsupported" >&6; } ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2924 | *) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2925 | CC="$CC $ac_cv_prog_cc_c89" |
| 2926 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2927 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2928 | esac |
| 2929 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2930 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2931 | ac_ext=c |
| 2932 | ac_cpp='$CPP $CPPFLAGS' |
| 2933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2936 | ac_ext=c |
| 2937 | ac_cpp='$CPP $CPPFLAGS' |
| 2938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2941 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2942 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2943 | # On Suns, sometimes $CPP names a directory. |
| 2944 | if test -n "$CPP" && test -d "$CPP"; then |
| 2945 | CPP= |
| 2946 | fi |
| 2947 | if test -z "$CPP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2948 | if test "${ac_cv_prog_CPP+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2949 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2950 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2951 | # Double quotes because CPP needs to be expanded |
| 2952 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2953 | do |
| 2954 | ac_preproc_ok=false |
| 2955 | for ac_c_preproc_warn_flag in '' yes |
| 2956 | do |
| 2957 | # Use a header file that comes with gcc, so configuring glibc |
| 2958 | # with a fresh cross-compiler works. |
| 2959 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2960 | # <limits.h> exists even on freestanding compilers. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2961 | # 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] | 2962 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2963 | cat >conftest.$ac_ext <<_ACEOF |
| 2964 | /* confdefs.h. */ |
| 2965 | _ACEOF |
| 2966 | cat confdefs.h >>conftest.$ac_ext |
| 2967 | cat >>conftest.$ac_ext <<_ACEOF |
| 2968 | /* end confdefs.h. */ |
| 2969 | #ifdef __STDC__ |
| 2970 | # include <limits.h> |
| 2971 | #else |
| 2972 | # include <assert.h> |
| 2973 | #endif |
| 2974 | Syntax error |
| 2975 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2976 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2977 | case "(($ac_try" in |
| 2978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2979 | *) ac_try_echo=$ac_try;; |
| 2980 | esac |
| 2981 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2982 | $as_echo "$ac_try_echo") >&5 |
| 2983 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2984 | ac_status=$? |
| 2985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2986 | rm -f conftest.er1 |
| 2987 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2988 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2989 | (exit $ac_status); } >/dev/null && { |
| 2990 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2991 | test ! -s conftest.err |
| 2992 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2993 | : |
| 2994 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2995 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2997 | |
| 2998 | # Broken: fails on valid input. |
| 2999 | continue |
| 3000 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3001 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3002 | rm -f conftest.err conftest.$ac_ext |
| 3003 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3004 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3005 | # can be detected and how. |
| 3006 | cat >conftest.$ac_ext <<_ACEOF |
| 3007 | /* confdefs.h. */ |
| 3008 | _ACEOF |
| 3009 | cat confdefs.h >>conftest.$ac_ext |
| 3010 | cat >>conftest.$ac_ext <<_ACEOF |
| 3011 | /* end confdefs.h. */ |
| 3012 | #include <ac_nonexistent.h> |
| 3013 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3014 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3015 | case "(($ac_try" in |
| 3016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3017 | *) ac_try_echo=$ac_try;; |
| 3018 | esac |
| 3019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3020 | $as_echo "$ac_try_echo") >&5 |
| 3021 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3022 | ac_status=$? |
| 3023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3024 | rm -f conftest.er1 |
| 3025 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3027 | (exit $ac_status); } >/dev/null && { |
| 3028 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3029 | test ! -s conftest.err |
| 3030 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3031 | # Broken: success on invalid input. |
| 3032 | continue |
| 3033 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3034 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3036 | |
| 3037 | # Passes both tests. |
| 3038 | ac_preproc_ok=: |
| 3039 | break |
| 3040 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3041 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3042 | rm -f conftest.err conftest.$ac_ext |
| 3043 | |
| 3044 | done |
| 3045 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3046 | rm -f conftest.err conftest.$ac_ext |
| 3047 | if $ac_preproc_ok; then |
| 3048 | break |
| 3049 | fi |
| 3050 | |
| 3051 | done |
| 3052 | ac_cv_prog_CPP=$CPP |
| 3053 | |
| 3054 | fi |
| 3055 | CPP=$ac_cv_prog_CPP |
| 3056 | else |
| 3057 | ac_cv_prog_CPP=$CPP |
| 3058 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3059 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3060 | $as_echo "$CPP" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3061 | ac_preproc_ok=false |
| 3062 | for ac_c_preproc_warn_flag in '' yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3063 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3064 | # Use a header file that comes with gcc, so configuring glibc |
| 3065 | # with a fresh cross-compiler works. |
| 3066 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3067 | # <limits.h> exists even on freestanding compilers. |
| 3068 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3069 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3070 | cat >conftest.$ac_ext <<_ACEOF |
| 3071 | /* confdefs.h. */ |
| 3072 | _ACEOF |
| 3073 | cat confdefs.h >>conftest.$ac_ext |
| 3074 | cat >>conftest.$ac_ext <<_ACEOF |
| 3075 | /* end confdefs.h. */ |
| 3076 | #ifdef __STDC__ |
| 3077 | # include <limits.h> |
| 3078 | #else |
| 3079 | # include <assert.h> |
| 3080 | #endif |
| 3081 | Syntax error |
| 3082 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3083 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3084 | case "(($ac_try" in |
| 3085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3086 | *) ac_try_echo=$ac_try;; |
| 3087 | esac |
| 3088 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3089 | $as_echo "$ac_try_echo") >&5 |
| 3090 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3091 | ac_status=$? |
| 3092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3093 | rm -f conftest.er1 |
| 3094 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3096 | (exit $ac_status); } >/dev/null && { |
| 3097 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3098 | test ! -s conftest.err |
| 3099 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3100 | : |
| 3101 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3102 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3104 | |
| 3105 | # Broken: fails on valid input. |
| 3106 | continue |
| 3107 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3108 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3109 | rm -f conftest.err conftest.$ac_ext |
| 3110 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3111 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3112 | # can be detected and how. |
| 3113 | cat >conftest.$ac_ext <<_ACEOF |
| 3114 | /* confdefs.h. */ |
| 3115 | _ACEOF |
| 3116 | cat confdefs.h >>conftest.$ac_ext |
| 3117 | cat >>conftest.$ac_ext <<_ACEOF |
| 3118 | /* end confdefs.h. */ |
| 3119 | #include <ac_nonexistent.h> |
| 3120 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3121 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3122 | case "(($ac_try" in |
| 3123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3124 | *) ac_try_echo=$ac_try;; |
| 3125 | esac |
| 3126 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3127 | $as_echo "$ac_try_echo") >&5 |
| 3128 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3129 | ac_status=$? |
| 3130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3131 | rm -f conftest.er1 |
| 3132 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3133 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3134 | (exit $ac_status); } >/dev/null && { |
| 3135 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3136 | test ! -s conftest.err |
| 3137 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3138 | # Broken: success on invalid input. |
| 3139 | continue |
| 3140 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3141 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3143 | |
| 3144 | # Passes both tests. |
| 3145 | ac_preproc_ok=: |
| 3146 | break |
| 3147 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3148 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3149 | rm -f conftest.err conftest.$ac_ext |
| 3150 | |
| 3151 | done |
| 3152 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3153 | rm -f conftest.err conftest.$ac_ext |
| 3154 | if $ac_preproc_ok; then |
| 3155 | : |
| 3156 | else |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 3157 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3158 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3159 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3160 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3161 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3162 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 3163 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3164 | fi |
| 3165 | |
| 3166 | ac_ext=c |
| 3167 | ac_cpp='$CPP $CPPFLAGS' |
| 3168 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3169 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3170 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3171 | |
| 3172 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3173 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3174 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3175 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3176 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3177 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3178 | if test -z "$GREP"; then |
| 3179 | ac_path_GREP_found=false |
| 3180 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3182 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3183 | do |
| 3184 | IFS=$as_save_IFS |
| 3185 | test -z "$as_dir" && as_dir=. |
| 3186 | for ac_prog in grep ggrep; do |
| 3187 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3188 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3189 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3190 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3191 | # Check for GNU $ac_path_GREP |
| 3192 | case `"$ac_path_GREP" --version 2>&1` in |
| 3193 | *GNU*) |
| 3194 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3195 | *) |
| 3196 | ac_count=0 |
| 3197 | $as_echo_n 0123456789 >"conftest.in" |
| 3198 | while : |
| 3199 | do |
| 3200 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3201 | mv "conftest.tmp" "conftest.in" |
| 3202 | cp "conftest.in" "conftest.nl" |
| 3203 | $as_echo 'GREP' >> "conftest.nl" |
| 3204 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3205 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3206 | ac_count=`expr $ac_count + 1` |
| 3207 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3208 | # Best one so far, save it but keep looking for a better one |
| 3209 | ac_cv_path_GREP="$ac_path_GREP" |
| 3210 | ac_path_GREP_max=$ac_count |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3211 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3212 | # 10*(2^10) chars as input seems more than enough |
| 3213 | test $ac_count -gt 10 && break |
| 3214 | done |
| 3215 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3216 | esac |
| 3217 | |
| 3218 | $ac_path_GREP_found && break 3 |
| 3219 | done |
| 3220 | done |
| 3221 | done |
| 3222 | IFS=$as_save_IFS |
| 3223 | if test -z "$ac_cv_path_GREP"; then |
| 3224 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3225 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3226 | { (exit 1); exit 1; }; } |
| 3227 | fi |
| 3228 | else |
| 3229 | ac_cv_path_GREP=$GREP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3230 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3231 | |
| 3232 | fi |
| 3233 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3234 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3235 | GREP="$ac_cv_path_GREP" |
| 3236 | |
| 3237 | |
| 3238 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3239 | $as_echo_n "checking for egrep... " >&6; } |
| 3240 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3241 | $as_echo_n "(cached) " >&6 |
| 3242 | else |
| 3243 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3244 | then ac_cv_path_EGREP="$GREP -E" |
| 3245 | else |
| 3246 | if test -z "$EGREP"; then |
| 3247 | ac_path_EGREP_found=false |
| 3248 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3250 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3251 | do |
| 3252 | IFS=$as_save_IFS |
| 3253 | test -z "$as_dir" && as_dir=. |
| 3254 | for ac_prog in egrep; do |
| 3255 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3256 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3257 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3258 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3259 | # Check for GNU $ac_path_EGREP |
| 3260 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3261 | *GNU*) |
| 3262 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3263 | *) |
| 3264 | ac_count=0 |
| 3265 | $as_echo_n 0123456789 >"conftest.in" |
| 3266 | while : |
| 3267 | do |
| 3268 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3269 | mv "conftest.tmp" "conftest.in" |
| 3270 | cp "conftest.in" "conftest.nl" |
| 3271 | $as_echo 'EGREP' >> "conftest.nl" |
| 3272 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3273 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3274 | ac_count=`expr $ac_count + 1` |
| 3275 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3276 | # Best one so far, save it but keep looking for a better one |
| 3277 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3278 | ac_path_EGREP_max=$ac_count |
| 3279 | fi |
| 3280 | # 10*(2^10) chars as input seems more than enough |
| 3281 | test $ac_count -gt 10 && break |
| 3282 | done |
| 3283 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3284 | esac |
| 3285 | |
| 3286 | $ac_path_EGREP_found && break 3 |
| 3287 | done |
| 3288 | done |
| 3289 | done |
| 3290 | IFS=$as_save_IFS |
| 3291 | if test -z "$ac_cv_path_EGREP"; then |
| 3292 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3293 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3294 | { (exit 1); exit 1; }; } |
| 3295 | fi |
| 3296 | else |
| 3297 | ac_cv_path_EGREP=$EGREP |
| 3298 | fi |
| 3299 | |
| 3300 | fi |
| 3301 | fi |
| 3302 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3303 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3304 | EGREP="$ac_cv_path_EGREP" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3305 | |
| 3306 | |
| 3307 | cat >conftest.$ac_ext <<_ACEOF |
| 3308 | /* confdefs.h. */ |
| 3309 | _ACEOF |
| 3310 | cat confdefs.h >>conftest.$ac_ext |
| 3311 | cat >>conftest.$ac_ext <<_ACEOF |
| 3312 | /* end confdefs.h. */ |
| 3313 | |
| 3314 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3315 | rm -f conftest* |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3316 | { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 3317 | $as_echo_n "checking for library containing strerror... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3318 | if test "${ac_cv_search_strerror+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3319 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3320 | else |
| 3321 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3322 | cat >conftest.$ac_ext <<_ACEOF |
| 3323 | /* confdefs.h. */ |
| 3324 | _ACEOF |
| 3325 | cat confdefs.h >>conftest.$ac_ext |
| 3326 | cat >>conftest.$ac_ext <<_ACEOF |
| 3327 | /* end confdefs.h. */ |
| 3328 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3329 | /* Override any GCC internal prototype to avoid an error. |
| 3330 | Use char because int might match the return type of a GCC |
| 3331 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3332 | #ifdef __cplusplus |
| 3333 | extern "C" |
| 3334 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3335 | char strerror (); |
| 3336 | int |
| 3337 | main () |
| 3338 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3339 | return strerror (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3340 | ; |
| 3341 | return 0; |
| 3342 | } |
| 3343 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3344 | for ac_lib in '' cposix; do |
| 3345 | if test -z "$ac_lib"; then |
| 3346 | ac_res="none required" |
| 3347 | else |
| 3348 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3349 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3350 | fi |
| 3351 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3352 | if { (ac_try="$ac_link" |
| 3353 | case "(($ac_try" in |
| 3354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3355 | *) ac_try_echo=$ac_try;; |
| 3356 | esac |
| 3357 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3358 | $as_echo "$ac_try_echo") >&5 |
| 3359 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3360 | ac_status=$? |
| 3361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3362 | rm -f conftest.er1 |
| 3363 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3364 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3365 | (exit $ac_status); } && { |
| 3366 | test -z "$ac_c_werror_flag" || |
| 3367 | test ! -s conftest.err |
| 3368 | } && test -s conftest$ac_exeext && { |
| 3369 | test "$cross_compiling" = yes || |
| 3370 | $as_test_x conftest$ac_exeext |
| 3371 | }; then |
| 3372 | ac_cv_search_strerror=$ac_res |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3373 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3374 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3376 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3377 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3378 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3379 | |
| 3380 | rm -rf conftest.dSYM |
| 3381 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3382 | conftest$ac_exeext |
| 3383 | if test "${ac_cv_search_strerror+set}" = set; then |
| 3384 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3385 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3386 | done |
| 3387 | if test "${ac_cv_search_strerror+set}" = set; then |
| 3388 | : |
| 3389 | else |
| 3390 | ac_cv_search_strerror=no |
| 3391 | fi |
| 3392 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3393 | LIBS=$ac_func_search_save_LIBS |
| 3394 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3395 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 3396 | $as_echo "$ac_cv_search_strerror" >&6; } |
| 3397 | ac_res=$ac_cv_search_strerror |
| 3398 | if test "$ac_res" != no; then |
| 3399 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3400 | |
| 3401 | fi |
| 3402 | for ac_prog in gawk mawk nawk awk |
| 3403 | do |
| 3404 | # 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] | 3405 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3406 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3407 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3408 | if test "${ac_cv_prog_AWK+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3409 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3410 | else |
| 3411 | if test -n "$AWK"; then |
| 3412 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3413 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3415 | for as_dir in $PATH |
| 3416 | do |
| 3417 | IFS=$as_save_IFS |
| 3418 | test -z "$as_dir" && as_dir=. |
| 3419 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3420 | 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] | 3421 | ac_cv_prog_AWK="$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3422 | $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] | 3423 | break 2 |
| 3424 | fi |
| 3425 | done |
| 3426 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3427 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3428 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3429 | fi |
| 3430 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3431 | AWK=$ac_cv_prog_AWK |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3432 | if test -n "$AWK"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3433 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
| 3434 | $as_echo "$AWK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3435 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3436 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3437 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3438 | fi |
| 3439 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3440 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3441 | test -n "$AWK" && break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3442 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3443 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3444 | # Extract the first word of "strip", so it can be a program name with args. |
| 3445 | set dummy strip; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3446 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3447 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3448 | if test "${ac_cv_prog_STRIP+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3449 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3450 | else |
| 3451 | if test -n "$STRIP"; then |
| 3452 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3453 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3455 | for as_dir in $PATH |
| 3456 | do |
| 3457 | IFS=$as_save_IFS |
| 3458 | test -z "$as_dir" && as_dir=. |
| 3459 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3460 | 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] | 3461 | ac_cv_prog_STRIP="strip" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3462 | $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] | 3463 | break 2 |
| 3464 | fi |
| 3465 | done |
| 3466 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3467 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3468 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3469 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 3470 | fi |
| 3471 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3472 | STRIP=$ac_cv_prog_STRIP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3473 | if test -n "$STRIP"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3474 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 3475 | $as_echo "$STRIP" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3476 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3477 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3478 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3479 | fi |
| 3480 | |
| 3481 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3482 | |
| 3483 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3484 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3485 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3486 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3487 | if test "${ac_cv_header_stdc+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3488 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3489 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3490 | cat >conftest.$ac_ext <<_ACEOF |
| 3491 | /* confdefs.h. */ |
| 3492 | _ACEOF |
| 3493 | cat confdefs.h >>conftest.$ac_ext |
| 3494 | cat >>conftest.$ac_ext <<_ACEOF |
| 3495 | /* end confdefs.h. */ |
| 3496 | #include <stdlib.h> |
| 3497 | #include <stdarg.h> |
| 3498 | #include <string.h> |
| 3499 | #include <float.h> |
| 3500 | |
| 3501 | int |
| 3502 | main () |
| 3503 | { |
| 3504 | |
| 3505 | ; |
| 3506 | return 0; |
| 3507 | } |
| 3508 | _ACEOF |
| 3509 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3510 | if { (ac_try="$ac_compile" |
| 3511 | case "(($ac_try" in |
| 3512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3513 | *) ac_try_echo=$ac_try;; |
| 3514 | esac |
| 3515 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3516 | $as_echo "$ac_try_echo") >&5 |
| 3517 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3518 | ac_status=$? |
| 3519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3520 | rm -f conftest.er1 |
| 3521 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3522 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3523 | (exit $ac_status); } && { |
| 3524 | test -z "$ac_c_werror_flag" || |
| 3525 | test ! -s conftest.err |
| 3526 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3527 | ac_cv_header_stdc=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3528 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3529 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3531 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3532 | ac_cv_header_stdc=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3533 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3534 | |
| 3535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3536 | |
| 3537 | if test $ac_cv_header_stdc = yes; then |
| 3538 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3539 | cat >conftest.$ac_ext <<_ACEOF |
| 3540 | /* confdefs.h. */ |
| 3541 | _ACEOF |
| 3542 | cat confdefs.h >>conftest.$ac_ext |
| 3543 | cat >>conftest.$ac_ext <<_ACEOF |
| 3544 | /* end confdefs.h. */ |
| 3545 | #include <string.h> |
| 3546 | |
| 3547 | _ACEOF |
| 3548 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3549 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3550 | : |
| 3551 | else |
| 3552 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3553 | fi |
| 3554 | rm -f conftest* |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3555 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3556 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3557 | |
| 3558 | if test $ac_cv_header_stdc = yes; then |
| 3559 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3560 | cat >conftest.$ac_ext <<_ACEOF |
| 3561 | /* confdefs.h. */ |
| 3562 | _ACEOF |
| 3563 | cat confdefs.h >>conftest.$ac_ext |
| 3564 | cat >>conftest.$ac_ext <<_ACEOF |
| 3565 | /* end confdefs.h. */ |
| 3566 | #include <stdlib.h> |
| 3567 | |
| 3568 | _ACEOF |
| 3569 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3570 | $EGREP "free" >/dev/null 2>&1; then |
| 3571 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3572 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3573 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3574 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3575 | rm -f conftest* |
| 3576 | |
| 3577 | fi |
| 3578 | |
| 3579 | if test $ac_cv_header_stdc = yes; then |
| 3580 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3581 | if test "$cross_compiling" = yes; then |
| 3582 | : |
| 3583 | else |
| 3584 | cat >conftest.$ac_ext <<_ACEOF |
| 3585 | /* confdefs.h. */ |
| 3586 | _ACEOF |
| 3587 | cat confdefs.h >>conftest.$ac_ext |
| 3588 | cat >>conftest.$ac_ext <<_ACEOF |
| 3589 | /* end confdefs.h. */ |
| 3590 | #include <ctype.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3591 | #include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3592 | #if ((' ' & 0x0FF) == 0x020) |
| 3593 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3594 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3595 | #else |
| 3596 | # define ISLOWER(c) \ |
| 3597 | (('a' <= (c) && (c) <= 'i') \ |
| 3598 | || ('j' <= (c) && (c) <= 'r') \ |
| 3599 | || ('s' <= (c) && (c) <= 'z')) |
| 3600 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3601 | #endif |
| 3602 | |
| 3603 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3604 | int |
| 3605 | main () |
| 3606 | { |
| 3607 | int i; |
| 3608 | for (i = 0; i < 256; i++) |
| 3609 | if (XOR (islower (i), ISLOWER (i)) |
| 3610 | || toupper (i) != TOUPPER (i)) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3611 | return 2; |
| 3612 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3613 | } |
| 3614 | _ACEOF |
| 3615 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3616 | if { (ac_try="$ac_link" |
| 3617 | case "(($ac_try" in |
| 3618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3619 | *) ac_try_echo=$ac_try;; |
| 3620 | esac |
| 3621 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3622 | $as_echo "$ac_try_echo") >&5 |
| 3623 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3624 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3626 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3627 | { (case "(($ac_try" in |
| 3628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3629 | *) ac_try_echo=$ac_try;; |
| 3630 | esac |
| 3631 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3632 | $as_echo "$ac_try_echo") >&5 |
| 3633 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3634 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3636 | (exit $ac_status); }; }; then |
| 3637 | : |
| 3638 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3639 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 3640 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3642 | |
| 3643 | ( exit $ac_status ) |
| 3644 | ac_cv_header_stdc=no |
| 3645 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3646 | rm -rf conftest.dSYM |
| 3647 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3648 | fi |
| 3649 | |
| 3650 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3651 | fi |
| 3652 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3653 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3654 | $as_echo "$ac_cv_header_stdc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3655 | if test $ac_cv_header_stdc = yes; then |
| 3656 | |
| 3657 | cat >>confdefs.h <<\_ACEOF |
| 3658 | #define STDC_HEADERS 1 |
| 3659 | _ACEOF |
| 3660 | |
| 3661 | fi |
| 3662 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3663 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 3664 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 3665 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 3666 | $as_echo_n "(cached) " >&6 |
| 3667 | else |
| 3668 | cat >conftest.$ac_ext <<_ACEOF |
| 3669 | /* confdefs.h. */ |
| 3670 | _ACEOF |
| 3671 | cat confdefs.h >>conftest.$ac_ext |
| 3672 | cat >>conftest.$ac_ext <<_ACEOF |
| 3673 | /* end confdefs.h. */ |
| 3674 | #include <sys/types.h> |
| 3675 | #include <sys/wait.h> |
| 3676 | #ifndef WEXITSTATUS |
| 3677 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 3678 | #endif |
| 3679 | #ifndef WIFEXITED |
| 3680 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 3681 | #endif |
| 3682 | |
| 3683 | int |
| 3684 | main () |
| 3685 | { |
| 3686 | int s; |
| 3687 | wait (&s); |
| 3688 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 3689 | ; |
| 3690 | return 0; |
| 3691 | } |
| 3692 | _ACEOF |
| 3693 | rm -f conftest.$ac_objext |
| 3694 | if { (ac_try="$ac_compile" |
| 3695 | case "(($ac_try" in |
| 3696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3697 | *) ac_try_echo=$ac_try;; |
| 3698 | esac |
| 3699 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3700 | $as_echo "$ac_try_echo") >&5 |
| 3701 | (eval "$ac_compile") 2>conftest.er1 |
| 3702 | ac_status=$? |
| 3703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3704 | rm -f conftest.er1 |
| 3705 | cat conftest.err >&5 |
| 3706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3707 | (exit $ac_status); } && { |
| 3708 | test -z "$ac_c_werror_flag" || |
| 3709 | test ! -s conftest.err |
| 3710 | } && test -s conftest.$ac_objext; then |
| 3711 | ac_cv_header_sys_wait_h=yes |
| 3712 | else |
| 3713 | $as_echo "$as_me: failed program was:" >&5 |
| 3714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3715 | |
| 3716 | ac_cv_header_sys_wait_h=no |
| 3717 | fi |
| 3718 | |
| 3719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3720 | fi |
| 3721 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 3722 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
| 3723 | if test $ac_cv_header_sys_wait_h = yes; then |
| 3724 | |
| 3725 | cat >>confdefs.h <<\_ACEOF |
| 3726 | #define HAVE_SYS_WAIT_H 1 |
| 3727 | _ACEOF |
| 3728 | |
| 3729 | fi |
| 3730 | |
| 3731 | |
| 3732 | if test -z "$CFLAGS"; then |
| 3733 | CFLAGS="-O" |
| 3734 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 3735 | fi |
| 3736 | if test "$GCC" = yes; then |
| 3737 | gccversion=`"$CC" -dumpversion` |
| 3738 | if test "x$gccversion" = "x"; then |
| 3739 | gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
| 3740 | fi |
| 3741 | if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then |
| 3742 | echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' |
| 3743 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 3744 | else |
| 3745 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 3746 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 3747 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 3748 | fi |
| 3749 | fi |
| 3750 | fi |
| 3751 | |
| 3752 | if test "$cross_compiling" = yes; then |
| 3753 | { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 |
| 3754 | $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } |
| 3755 | fi |
| 3756 | |
| 3757 | test "$GCC" = yes && CPP_MM=M; |
| 3758 | |
| 3759 | if test -f ./toolcheck; then |
| 3760 | { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
| 3761 | $as_echo "$as_me: checking for buggy tools..." >&6;} |
| 3762 | sh ./toolcheck 1>&6 |
| 3763 | fi |
| 3764 | |
| 3765 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 3766 | |
| 3767 | { $as_echo "$as_me:$LINENO: checking for BeOS" >&5 |
| 3768 | $as_echo_n "checking for BeOS... " >&6; } |
| 3769 | case `uname` in |
| 3770 | BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o |
| 3771 | BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3772 | $as_echo "yes" >&6; };; |
| 3773 | *) BEOS=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 QNX" >&5 |
| 3778 | $as_echo_n "checking for QNX... " >&6; } |
| 3779 | case `uname` in |
| 3780 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 3781 | test -z "$with_x" && with_x=no |
| 3782 | QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3783 | $as_echo "yes" >&6; };; |
| 3784 | *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3785 | $as_echo "no" >&6; };; |
| 3786 | esac |
| 3787 | |
| 3788 | { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
| 3789 | $as_echo_n "checking for Darwin (Mac OS X)... " >&6; } |
| 3790 | if test "`(uname) 2>/dev/null`" = Darwin; then |
| 3791 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3792 | $as_echo "yes" >&6; } |
| 3793 | |
| 3794 | { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
| 3795 | $as_echo_n "checking --disable-darwin argument... " >&6; } |
| 3796 | # Check whether --enable-darwin was given. |
| 3797 | if test "${enable_darwin+set}" = set; then |
| 3798 | enableval=$enable_darwin; |
| 3799 | else |
| 3800 | enable_darwin="yes" |
| 3801 | fi |
| 3802 | |
| 3803 | if test "$enable_darwin" = "yes"; then |
| 3804 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3805 | $as_echo "no" >&6; } |
| 3806 | { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
| 3807 | $as_echo_n "checking if Darwin files are there... " >&6; } |
| 3808 | if test -f os_macosx.c; then |
| 3809 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3810 | $as_echo "yes" >&6; } |
| 3811 | else |
| 3812 | { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
| 3813 | $as_echo "no, Darwin support disabled" >&6; } |
| 3814 | enable_darwin=no |
| 3815 | fi |
| 3816 | else |
| 3817 | { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
| 3818 | $as_echo "yes, Darwin support excluded" >&6; } |
| 3819 | fi |
| 3820 | |
| 3821 | { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5 |
| 3822 | $as_echo_n "checking --with-mac-arch argument... " >&6; } |
| 3823 | |
| 3824 | # Check whether --with-mac-arch was given. |
| 3825 | if test "${with_mac_arch+set}" = set; then |
| 3826 | withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5 |
| 3827 | $as_echo "$MACARCH" >&6; } |
| 3828 | else |
| 3829 | MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5 |
| 3830 | $as_echo "defaulting to $MACARCH" >&6; } |
| 3831 | fi |
| 3832 | |
| 3833 | |
| 3834 | if test "x$MACARCH" = "xboth"; then |
| 3835 | { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5 |
| 3836 | $as_echo_n "checking for 10.4 universal SDK... " >&6; } |
| 3837 | save_cppflags="$CPPFLAGS" |
| 3838 | save_cflags="$CFLAGS" |
| 3839 | save_ldflags="$LDFLAGS" |
| 3840 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 3841 | cat >conftest.$ac_ext <<_ACEOF |
| 3842 | /* confdefs.h. */ |
| 3843 | _ACEOF |
| 3844 | cat confdefs.h >>conftest.$ac_ext |
| 3845 | cat >>conftest.$ac_ext <<_ACEOF |
| 3846 | /* end confdefs.h. */ |
| 3847 | |
| 3848 | int |
| 3849 | main () |
| 3850 | { |
| 3851 | |
| 3852 | ; |
| 3853 | return 0; |
| 3854 | } |
| 3855 | _ACEOF |
| 3856 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3857 | if { (ac_try="$ac_link" |
| 3858 | case "(($ac_try" in |
| 3859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3860 | *) ac_try_echo=$ac_try;; |
| 3861 | esac |
| 3862 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3863 | $as_echo "$ac_try_echo") >&5 |
| 3864 | (eval "$ac_link") 2>conftest.er1 |
| 3865 | ac_status=$? |
| 3866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3867 | rm -f conftest.er1 |
| 3868 | cat conftest.err >&5 |
| 3869 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3870 | (exit $ac_status); } && { |
| 3871 | test -z "$ac_c_werror_flag" || |
| 3872 | test ! -s conftest.err |
| 3873 | } && test -s conftest$ac_exeext && { |
| 3874 | test "$cross_compiling" = yes || |
| 3875 | $as_test_x conftest$ac_exeext |
| 3876 | }; then |
| 3877 | { $as_echo "$as_me:$LINENO: result: found" >&5 |
| 3878 | $as_echo "found" >&6; } |
| 3879 | else |
| 3880 | $as_echo "$as_me: failed program was:" >&5 |
| 3881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3882 | |
| 3883 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 3884 | $as_echo "not found" >&6; } |
| 3885 | CFLAGS="$save_cflags" |
| 3886 | { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5 |
| 3887 | $as_echo_n "checking if Intel architecture is supported... " >&6; } |
| 3888 | CPPFLAGS="$CPPFLAGS -arch i386" |
| 3889 | LDFLAGS="$save_ldflags -arch i386" |
| 3890 | cat >conftest.$ac_ext <<_ACEOF |
| 3891 | /* confdefs.h. */ |
| 3892 | _ACEOF |
| 3893 | cat confdefs.h >>conftest.$ac_ext |
| 3894 | cat >>conftest.$ac_ext <<_ACEOF |
| 3895 | /* end confdefs.h. */ |
| 3896 | |
| 3897 | int |
| 3898 | main () |
| 3899 | { |
| 3900 | |
| 3901 | ; |
| 3902 | return 0; |
| 3903 | } |
| 3904 | _ACEOF |
| 3905 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3906 | if { (ac_try="$ac_link" |
| 3907 | case "(($ac_try" in |
| 3908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3909 | *) ac_try_echo=$ac_try;; |
| 3910 | esac |
| 3911 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3912 | $as_echo "$ac_try_echo") >&5 |
| 3913 | (eval "$ac_link") 2>conftest.er1 |
| 3914 | ac_status=$? |
| 3915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3916 | rm -f conftest.er1 |
| 3917 | cat conftest.err >&5 |
| 3918 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3919 | (exit $ac_status); } && { |
| 3920 | test -z "$ac_c_werror_flag" || |
| 3921 | test ! -s conftest.err |
| 3922 | } && test -s conftest$ac_exeext && { |
| 3923 | test "$cross_compiling" = yes || |
| 3924 | $as_test_x conftest$ac_exeext |
| 3925 | }; then |
| 3926 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3927 | $as_echo "yes" >&6; }; MACARCH="intel" |
| 3928 | else |
| 3929 | $as_echo "$as_me: failed program was:" >&5 |
| 3930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3931 | |
| 3932 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3933 | $as_echo "no" >&6; } |
| 3934 | MACARCH="ppc" |
| 3935 | CPPFLAGS="$save_cppflags -arch ppc" |
| 3936 | LDFLAGS="$save_ldflags -arch ppc" |
| 3937 | fi |
| 3938 | |
| 3939 | rm -rf conftest.dSYM |
| 3940 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3941 | conftest$ac_exeext conftest.$ac_ext |
| 3942 | fi |
| 3943 | |
| 3944 | rm -rf conftest.dSYM |
| 3945 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3946 | conftest$ac_exeext conftest.$ac_ext |
| 3947 | elif test "x$MACARCH" = "xintel"; then |
| 3948 | CPPFLAGS="$CPPFLAGS -arch intel" |
| 3949 | LDFLAGS="$LDFLAGS -arch intel" |
| 3950 | elif test "x$MACARCH" = "xppc"; then |
| 3951 | CPPFLAGS="$CPPFLAGS -arch ppc" |
| 3952 | LDFLAGS="$LDFLAGS -arch ppc" |
| 3953 | fi |
| 3954 | |
| 3955 | if test "$enable_darwin" = "yes"; then |
| 3956 | MACOSX=yes |
Bram Moolenaar | 3a02540 | 2008-07-24 15:20:50 +0000 | [diff] [blame] | 3957 | OS_EXTRA_SRC="os_macosx.c os_mac_conv.c"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3958 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
| 3959 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" |
| 3960 | if test "x$MACARCH" = "xboth"; then |
| 3961 | CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" |
| 3962 | else |
| 3963 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon" |
| 3964 | fi |
| 3965 | |
| 3966 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3967 | |
| 3968 | |
| 3969 | |
| 3970 | |
| 3971 | |
| 3972 | |
| 3973 | |
| 3974 | |
| 3975 | |
| 3976 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3977 | inttypes.h stdint.h unistd.h |
| 3978 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3979 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3980 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3981 | $as_echo_n "checking for $ac_header... " >&6; } |
| 3982 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3983 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3984 | else |
| 3985 | cat >conftest.$ac_ext <<_ACEOF |
| 3986 | /* confdefs.h. */ |
| 3987 | _ACEOF |
| 3988 | cat confdefs.h >>conftest.$ac_ext |
| 3989 | cat >>conftest.$ac_ext <<_ACEOF |
| 3990 | /* end confdefs.h. */ |
| 3991 | $ac_includes_default |
| 3992 | |
| 3993 | #include <$ac_header> |
| 3994 | _ACEOF |
| 3995 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3996 | if { (ac_try="$ac_compile" |
| 3997 | case "(($ac_try" in |
| 3998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3999 | *) ac_try_echo=$ac_try;; |
| 4000 | esac |
| 4001 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4002 | $as_echo "$ac_try_echo") >&5 |
| 4003 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4004 | ac_status=$? |
| 4005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4006 | rm -f conftest.er1 |
| 4007 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4009 | (exit $ac_status); } && { |
| 4010 | test -z "$ac_c_werror_flag" || |
| 4011 | test ! -s conftest.err |
| 4012 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4013 | eval "$as_ac_Header=yes" |
| 4014 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4015 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4017 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4018 | eval "$as_ac_Header=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4019 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4020 | |
| 4021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4022 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4023 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 4024 | $as_echo "$as_val"'` |
| 4025 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4026 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 4027 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 4028 | $as_echo "$as_val"'` |
| 4029 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4030 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4031 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4032 | _ACEOF |
| 4033 | |
| 4034 | fi |
| 4035 | |
| 4036 | done |
| 4037 | |
| 4038 | |
| 4039 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4040 | { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 4041 | $as_echo_n "checking for Carbon/Carbon.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4042 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4043 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4044 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4045 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 4046 | $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4047 | else |
| 4048 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4049 | { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 4050 | $as_echo_n "checking Carbon/Carbon.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4051 | cat >conftest.$ac_ext <<_ACEOF |
| 4052 | /* confdefs.h. */ |
| 4053 | _ACEOF |
| 4054 | cat confdefs.h >>conftest.$ac_ext |
| 4055 | cat >>conftest.$ac_ext <<_ACEOF |
| 4056 | /* end confdefs.h. */ |
| 4057 | $ac_includes_default |
| 4058 | #include <Carbon/Carbon.h> |
| 4059 | _ACEOF |
| 4060 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4061 | if { (ac_try="$ac_compile" |
| 4062 | case "(($ac_try" in |
| 4063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4064 | *) ac_try_echo=$ac_try;; |
| 4065 | esac |
| 4066 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4067 | $as_echo "$ac_try_echo") >&5 |
| 4068 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4069 | ac_status=$? |
| 4070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4071 | rm -f conftest.er1 |
| 4072 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4073 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4074 | (exit $ac_status); } && { |
| 4075 | test -z "$ac_c_werror_flag" || |
| 4076 | test ! -s conftest.err |
| 4077 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4078 | ac_header_compiler=yes |
| 4079 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4080 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4082 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4083 | ac_header_compiler=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4084 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4085 | |
| 4086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4087 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4088 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4089 | |
| 4090 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4091 | { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 4092 | $as_echo_n "checking Carbon/Carbon.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4093 | cat >conftest.$ac_ext <<_ACEOF |
| 4094 | /* confdefs.h. */ |
| 4095 | _ACEOF |
| 4096 | cat confdefs.h >>conftest.$ac_ext |
| 4097 | cat >>conftest.$ac_ext <<_ACEOF |
| 4098 | /* end confdefs.h. */ |
| 4099 | #include <Carbon/Carbon.h> |
| 4100 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4101 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4102 | case "(($ac_try" in |
| 4103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4104 | *) ac_try_echo=$ac_try;; |
| 4105 | esac |
| 4106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4107 | $as_echo "$ac_try_echo") >&5 |
| 4108 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4109 | ac_status=$? |
| 4110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4111 | rm -f conftest.er1 |
| 4112 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4114 | (exit $ac_status); } >/dev/null && { |
| 4115 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4116 | test ! -s conftest.err |
| 4117 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4118 | ac_header_preproc=yes |
| 4119 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4120 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4122 | |
| 4123 | ac_header_preproc=no |
| 4124 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4125 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4126 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4127 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4128 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4129 | |
| 4130 | # So? What about this header? |
| 4131 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4132 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4133 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4134 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4135 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 4136 | $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] | 4137 | ac_header_preproc=yes |
| 4138 | ;; |
| 4139 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4140 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 4141 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 4142 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 4143 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 4144 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 4145 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 4146 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4147 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4148 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 4149 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 4150 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 4151 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 4152 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4153 | ;; |
| 4154 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4155 | { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 4156 | $as_echo_n "checking for Carbon/Carbon.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4157 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4158 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4159 | else |
| 4160 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 4161 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4162 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 4163 | $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4164 | |
| 4165 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 4166 | if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4167 | CARBON=yes |
| 4168 | fi |
| 4169 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4170 | |
| 4171 | if test "x$CARBON" = "xyes"; then |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 4172 | 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] | 4173 | with_x=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4174 | fi |
| 4175 | fi |
| 4176 | fi |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 4177 | |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 4178 | if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 4179 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` |
| 4180 | fi |
| 4181 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4182 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4183 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4184 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4185 | fi |
| 4186 | |
| 4187 | |
| 4188 | |
| 4189 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4190 | if test "$cross_compiling" = no; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4191 | { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5 |
| 4192 | $as_echo_n "checking --with-local-dir argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4193 | have_local_include='' |
| 4194 | have_local_lib='' |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4195 | |
| 4196 | # Check whether --with-local-dir was given. |
| 4197 | if test "${with_local_dir+set}" = set; then |
| 4198 | withval=$with_local_dir; |
| 4199 | local_dir="$withval" |
| 4200 | case "$withval" in |
| 4201 | */*) ;; |
| 4202 | no) |
| 4203 | # avoid adding local dir to LDFLAGS and CPPFLAGS |
| 4204 | have_local_dir=yes |
| 4205 | have_local_lib=yes |
| 4206 | ;; |
| 4207 | *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5 |
| 4208 | $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;} |
| 4209 | { (exit 1); exit 1; }; } ;; |
| 4210 | esac |
| 4211 | { $as_echo "$as_me:$LINENO: result: $local_dir" >&5 |
| 4212 | $as_echo "$local_dir" >&6; } |
| 4213 | |
| 4214 | else |
| 4215 | |
| 4216 | local_dir=/usr/local |
| 4217 | { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5 |
| 4218 | $as_echo "Defaulting to $local_dir" >&6; } |
| 4219 | |
| 4220 | fi |
| 4221 | |
| 4222 | if test "$GCC" = yes -a "$local_dir" != no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4223 | echo 'void f(){}' > conftest.c |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4224 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"` |
| 4225 | have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4226 | rm -f conftest.c conftest.o |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4227 | fi |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4228 | if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then |
| 4229 | tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4230 | if test "$tt" = "$LDFLAGS"; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4231 | LDFLAGS="$LDFLAGS -L${local_dir}/lib" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4232 | fi |
| 4233 | fi |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4234 | if test -z "$have_local_include" -a -d "${local_dir}/include"; then |
| 4235 | tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4236 | if test "$tt" = "$CPPFLAGS"; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4237 | CPPFLAGS="$CPPFLAGS -I${local_dir}/include" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4238 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4239 | fi |
| 4240 | fi |
| 4241 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4242 | { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 |
| 4243 | $as_echo_n "checking --with-vim-name argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4244 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4245 | # Check whether --with-vim-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4246 | if test "${with_vim_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4247 | withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5 |
| 4248 | $as_echo "$VIMNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4249 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4250 | VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 |
| 4251 | $as_echo "Defaulting to $VIMNAME" >&6; } |
| 4252 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4253 | |
| 4254 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4255 | { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 |
| 4256 | $as_echo_n "checking --with-ex-name argument... " >&6; } |
| 4257 | |
| 4258 | # Check whether --with-ex-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4259 | if test "${with_ex_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4260 | withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5 |
| 4261 | $as_echo "$EXNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4262 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4263 | EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5 |
| 4264 | $as_echo "Defaulting to ex" >&6; } |
| 4265 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4266 | |
| 4267 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4268 | { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5 |
| 4269 | $as_echo_n "checking --with-view-name argument... " >&6; } |
| 4270 | |
| 4271 | # Check whether --with-view-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4272 | if test "${with_view_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4273 | withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5 |
| 4274 | $as_echo "$VIEWNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4275 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4276 | VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5 |
| 4277 | $as_echo "Defaulting to view" >&6; } |
| 4278 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4279 | |
| 4280 | |
| 4281 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4282 | { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 |
| 4283 | $as_echo_n "checking --with-global-runtime argument... " >&6; } |
| 4284 | |
| 4285 | # Check whether --with-global-runtime was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4286 | if test "${with_global_runtime+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4287 | withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4288 | $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4289 | #define RUNTIME_GLOBAL "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4290 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4291 | |
| 4292 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4293 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4294 | $as_echo "no" >&6; } |
| 4295 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4296 | |
| 4297 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4298 | { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 |
| 4299 | $as_echo_n "checking --with-modified-by argument... " >&6; } |
| 4300 | |
| 4301 | # Check whether --with-modified-by was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4302 | if test "${with_modified_by+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4303 | withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4304 | $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4305 | #define MODIFIED_BY "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4306 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4307 | |
| 4308 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4309 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4310 | $as_echo "no" >&6; } |
| 4311 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4312 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4313 | |
| 4314 | { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 |
| 4315 | $as_echo_n "checking if character set is EBCDIC... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4316 | cat >conftest.$ac_ext <<_ACEOF |
| 4317 | /* confdefs.h. */ |
| 4318 | _ACEOF |
| 4319 | cat confdefs.h >>conftest.$ac_ext |
| 4320 | cat >>conftest.$ac_ext <<_ACEOF |
| 4321 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4322 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4323 | int |
| 4324 | main () |
| 4325 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4326 | /* TryCompile function for CharSet. |
| 4327 | Treat any failure as ASCII for compatibility with existing art. |
| 4328 | Use compile-time rather than run-time tests for cross-compiler |
| 4329 | tolerance. */ |
| 4330 | #if '0'!=240 |
| 4331 | make an error "Character set is not EBCDIC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4332 | #endif |
| 4333 | ; |
| 4334 | return 0; |
| 4335 | } |
| 4336 | _ACEOF |
| 4337 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4338 | if { (ac_try="$ac_compile" |
| 4339 | case "(($ac_try" in |
| 4340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4341 | *) ac_try_echo=$ac_try;; |
| 4342 | esac |
| 4343 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4344 | $as_echo "$ac_try_echo") >&5 |
| 4345 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4346 | ac_status=$? |
| 4347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4348 | rm -f conftest.er1 |
| 4349 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4350 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4351 | (exit $ac_status); } && { |
| 4352 | test -z "$ac_c_werror_flag" || |
| 4353 | test ! -s conftest.err |
| 4354 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4355 | # TryCompile action if true |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4356 | cf_cv_ebcdic=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4357 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4358 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4360 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4361 | # TryCompile action if false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4362 | cf_cv_ebcdic=no |
| 4363 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4364 | |
| 4365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4366 | # end of TryCompile ]) |
| 4367 | # end of CacheVal CvEbcdic |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4368 | { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 |
| 4369 | $as_echo "$cf_cv_ebcdic" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4370 | case "$cf_cv_ebcdic" in #(vi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4371 | yes) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4372 | #define EBCDIC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4373 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4374 | |
| 4375 | line_break='"\\n"' |
| 4376 | ;; |
| 4377 | *) line_break='"\\012"';; |
| 4378 | esac |
| 4379 | |
| 4380 | |
| 4381 | if test "$cf_cv_ebcdic" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4382 | { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 |
| 4383 | $as_echo_n "checking for OS/390 Unix... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4384 | case `uname` in |
| 4385 | OS/390) OS390Unix="yes"; |
| 4386 | if test "$CC" = "cc"; then |
| 4387 | ccm="$_CC_CCMODE" |
| 4388 | ccn="CC" |
| 4389 | else |
| 4390 | if test "$CC" = "c89"; then |
| 4391 | ccm="$_CC_C89MODE" |
| 4392 | ccn="C89" |
| 4393 | else |
| 4394 | ccm=1 |
| 4395 | fi |
| 4396 | fi |
| 4397 | if test "$ccm" != "1"; then |
| 4398 | echo "" |
| 4399 | echo "------------------------------------------" |
| 4400 | echo " On OS/390 Unix, the environment variable" |
| 4401 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 4402 | echo " Do:" |
| 4403 | echo " export _CC_${ccn}MODE=1" |
| 4404 | echo " and then call configure again." |
| 4405 | echo "------------------------------------------" |
| 4406 | exit 1 |
| 4407 | fi |
| 4408 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4409 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4410 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4411 | ;; |
| 4412 | *) OS390Unix="no"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4413 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4414 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4415 | ;; |
| 4416 | esac |
| 4417 | fi |
| 4418 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4419 | { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5 |
| 4420 | $as_echo_n "checking --disable-selinux argument... " >&6; } |
| 4421 | # Check whether --enable-selinux was given. |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4422 | if test "${enable_selinux+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4423 | enableval=$enable_selinux; |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4424 | else |
| 4425 | enable_selinux="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4426 | fi |
| 4427 | |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4428 | if test "$enable_selinux" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4429 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4430 | $as_echo "no" >&6; } |
| 4431 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
| 4432 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4433 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4434 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4435 | else |
| 4436 | ac_check_lib_save_LIBS=$LIBS |
| 4437 | LIBS="-lselinux $LIBS" |
| 4438 | cat >conftest.$ac_ext <<_ACEOF |
| 4439 | /* confdefs.h. */ |
| 4440 | _ACEOF |
| 4441 | cat confdefs.h >>conftest.$ac_ext |
| 4442 | cat >>conftest.$ac_ext <<_ACEOF |
| 4443 | /* end confdefs.h. */ |
| 4444 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4445 | /* Override any GCC internal prototype to avoid an error. |
| 4446 | Use char because int might match the return type of a GCC |
| 4447 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4448 | #ifdef __cplusplus |
| 4449 | extern "C" |
| 4450 | #endif |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4451 | char is_selinux_enabled (); |
| 4452 | int |
| 4453 | main () |
| 4454 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4455 | return is_selinux_enabled (); |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4456 | ; |
| 4457 | return 0; |
| 4458 | } |
| 4459 | _ACEOF |
| 4460 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4461 | if { (ac_try="$ac_link" |
| 4462 | case "(($ac_try" in |
| 4463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4464 | *) ac_try_echo=$ac_try;; |
| 4465 | esac |
| 4466 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4467 | $as_echo "$ac_try_echo") >&5 |
| 4468 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4469 | ac_status=$? |
| 4470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4471 | rm -f conftest.er1 |
| 4472 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4473 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4474 | (exit $ac_status); } && { |
| 4475 | test -z "$ac_c_werror_flag" || |
| 4476 | test ! -s conftest.err |
| 4477 | } && test -s conftest$ac_exeext && { |
| 4478 | test "$cross_compiling" = yes || |
| 4479 | $as_test_x conftest$ac_exeext |
| 4480 | }; then |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4481 | ac_cv_lib_selinux_is_selinux_enabled=yes |
| 4482 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4483 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4485 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4486 | ac_cv_lib_selinux_is_selinux_enabled=no |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4487 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4488 | |
| 4489 | rm -rf conftest.dSYM |
| 4490 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4491 | conftest$ac_exeext conftest.$ac_ext |
| 4492 | LIBS=$ac_check_lib_save_LIBS |
| 4493 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4494 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
| 4495 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 4496 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4497 | LIBS="$LIBS -lselinux" |
| 4498 | cat >>confdefs.h <<\_ACEOF |
| 4499 | #define HAVE_SELINUX 1 |
| 4500 | _ACEOF |
| 4501 | |
| 4502 | fi |
| 4503 | |
| 4504 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4505 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4506 | $as_echo "yes" >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4507 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4508 | |
| 4509 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4510 | { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5 |
| 4511 | $as_echo_n "checking --with-features argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4512 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4513 | # Check whether --with-features was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4514 | if test "${with_features+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4515 | withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5 |
| 4516 | $as_echo "$features" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4517 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4518 | features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5 |
| 4519 | $as_echo "Defaulting to normal" >&6; } |
| 4520 | fi |
| 4521 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4522 | |
| 4523 | dovimdiff="" |
| 4524 | dogvimdiff="" |
| 4525 | case "$features" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4526 | tiny) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4527 | #define FEAT_TINY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4528 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4529 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4530 | small) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4531 | #define FEAT_SMALL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4532 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4533 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4534 | normal) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4535 | #define FEAT_NORMAL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4536 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4537 | dovimdiff="installvimdiff"; |
| 4538 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4539 | big) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4540 | #define FEAT_BIG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4541 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4542 | dovimdiff="installvimdiff"; |
| 4543 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4544 | huge) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4545 | #define FEAT_HUGE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4546 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4547 | dovimdiff="installvimdiff"; |
| 4548 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4549 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 |
| 4550 | $as_echo "Sorry, $features is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4551 | esac |
| 4552 | |
| 4553 | |
| 4554 | |
| 4555 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4556 | { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 |
| 4557 | $as_echo_n "checking --with-compiledby argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4558 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4559 | # Check whether --with-compiledby was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4560 | if test "${with_compiledby+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4561 | withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4562 | $as_echo "$withval" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4563 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4564 | compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4565 | $as_echo "no" >&6; } |
| 4566 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4567 | |
| 4568 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4569 | |
| 4570 | { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 |
| 4571 | $as_echo_n "checking --disable-xsmp argument... " >&6; } |
| 4572 | # Check whether --enable-xsmp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4573 | if test "${enable_xsmp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4574 | enableval=$enable_xsmp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4575 | else |
| 4576 | enable_xsmp="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4577 | fi |
| 4578 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4579 | |
| 4580 | if test "$enable_xsmp" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4581 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4582 | $as_echo "no" >&6; } |
| 4583 | { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 |
| 4584 | $as_echo_n "checking --disable-xsmp-interact argument... " >&6; } |
| 4585 | # Check whether --enable-xsmp-interact was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4586 | if test "${enable_xsmp_interact+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4587 | enableval=$enable_xsmp_interact; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4588 | else |
| 4589 | enable_xsmp_interact="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4590 | fi |
| 4591 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4592 | if test "$enable_xsmp_interact" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4593 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4594 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4595 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4596 | #define USE_XSMP_INTERACT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4597 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4598 | |
| 4599 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4600 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4601 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4602 | fi |
| 4603 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4604 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4605 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4606 | fi |
| 4607 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4608 | { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 |
| 4609 | $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } |
| 4610 | # Check whether --enable-mzschemeinterp was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4611 | if test "${enable_mzschemeinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4612 | enableval=$enable_mzschemeinterp; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4613 | else |
| 4614 | enable_mzschemeinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4615 | fi |
| 4616 | |
| 4617 | { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 |
| 4618 | $as_echo "$enable_mzschemeinterp" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4619 | |
| 4620 | if test "$enable_mzschemeinterp" = "yes"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4621 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4622 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4623 | { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5 |
| 4624 | $as_echo_n "checking --with-plthome argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4625 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4626 | # Check whether --with-plthome was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4627 | if test "${with_plthome+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4628 | withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5 |
| 4629 | $as_echo "$with_plthome" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4630 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4631 | with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 4632 | $as_echo "\"no\"" >&6; } |
| 4633 | fi |
| 4634 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4635 | |
| 4636 | if test "X$with_plthome" != "X"; then |
| 4637 | vi_cv_path_mzscheme_pfx="$with_plthome" |
| 4638 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4639 | { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 |
| 4640 | $as_echo_n "checking PLTHOME environment var... " >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4641 | if test "X$PLTHOME" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4642 | { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 |
| 4643 | $as_echo "\"$PLTHOME\"" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4644 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4645 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4646 | { $as_echo "$as_me:$LINENO: result: not set" >&5 |
| 4647 | $as_echo "not set" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4648 | # 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] | 4649 | set dummy mzscheme; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4650 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4651 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4652 | if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4653 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4654 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4655 | case $vi_cv_path_mzscheme in |
| 4656 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4657 | ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 4658 | ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4659 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4661 | for as_dir in $PATH |
| 4662 | do |
| 4663 | IFS=$as_save_IFS |
| 4664 | test -z "$as_dir" && as_dir=. |
| 4665 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4666 | 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] | 4667 | 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] | 4668 | $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] | 4669 | break 2 |
| 4670 | fi |
| 4671 | done |
| 4672 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4673 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4674 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4675 | ;; |
| 4676 | esac |
| 4677 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4678 | vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4679 | if test -n "$vi_cv_path_mzscheme"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4680 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 |
| 4681 | $as_echo "$vi_cv_path_mzscheme" >&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; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4685 | fi |
| 4686 | |
| 4687 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4688 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4689 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4690 | lsout=`ls -l $vi_cv_path_mzscheme` |
| 4691 | if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 4692 | vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 4693 | fi |
| 4694 | fi |
| 4695 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4696 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4697 | { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
| 4698 | $as_echo_n "checking MzScheme install prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4699 | if test "${vi_cv_path_mzscheme_pfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4700 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4701 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4702 | echo "(display (simplify-path \ |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4703 | (build-path (call-with-values \ |
| 4704 | (lambda () (split-path (find-system-path (quote exec-file)))) \ |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4705 | (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm |
| 4706 | vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ |
| 4707 | sed -e 's+/$++'` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4708 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4709 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 4710 | $as_echo "$vi_cv_path_mzscheme_pfx" >&6; } |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4711 | rm -f mzdirs.scm |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4712 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4713 | fi |
| 4714 | fi |
| 4715 | |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4716 | SCHEME_INC= |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4717 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4718 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 4719 | $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] | 4720 | if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4721 | SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include |
| 4722 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4723 | $as_echo "yes" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4724 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4725 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4726 | $as_echo "no" >&6; } |
| 4727 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 |
| 4728 | $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4729 | if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4730 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4731 | $as_echo "yes" >&6; } |
| 4732 | SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4733 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4734 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4735 | $as_echo "no" >&6; } |
| 4736 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5 |
| 4737 | $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } |
| 4738 | if test -f /usr/include/plt/scheme.h; then |
| 4739 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4740 | $as_echo "yes" >&6; } |
| 4741 | SCHEME_INC=/usr/include/plt |
| 4742 | else |
| 4743 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4744 | $as_echo "no" >&6; } |
| 4745 | vi_cv_path_mzscheme_pfx= |
| 4746 | fi |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4747 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4748 | fi |
| 4749 | fi |
| 4750 | |
| 4751 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | f15f943 | 2007-06-28 11:07:21 +0000 | [diff] [blame] | 4752 | if test "x$MACOSX" = "xyes"; then |
| 4753 | MZSCHEME_LIBS="-framework PLT_MzScheme" |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4754 | elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then |
| 4755 | MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a" |
| 4756 | MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
Bram Moolenaar | f15f943 | 2007-06-28 11:07:21 +0000 | [diff] [blame] | 4757 | elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then |
Bram Moolenaar | e0d7b3c | 2007-05-12 14:23:41 +0000 | [diff] [blame] | 4758 | 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] | 4759 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4760 | if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then |
| 4761 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m" |
| 4762 | MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
| 4763 | else |
| 4764 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc" |
| 4765 | fi |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 4766 | if test "$GCC" = yes; then |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4767 | 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] | 4768 | elif test "`(uname) 2>/dev/null`" = SunOS && |
| 4769 | uname -r | grep '^5' >/dev/null; then |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4770 | MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 4771 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4772 | fi |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4773 | if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then |
| 4774 | SCHEME_COLLECTS=lib/plt/ |
| 4775 | fi |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4776 | if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then |
| 4777 | MZSCHEME_EXTRA="mzscheme_base.c" |
| 4778 | MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" |
| 4779 | MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" |
| 4780 | fi |
| 4781 | MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4782 | -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4783 | MZSCHEME_SRC="if_mzsch.c" |
| 4784 | MZSCHEME_OBJ="objects/if_mzsch.o" |
| 4785 | MZSCHEME_PRO="if_mzsch.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4786 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4787 | #define FEAT_MZSCHEME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4788 | _ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4789 | |
| 4790 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4791 | |
| 4792 | |
| 4793 | |
| 4794 | |
| 4795 | |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4796 | |
| 4797 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4798 | fi |
| 4799 | |
| 4800 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4801 | { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 |
| 4802 | $as_echo_n "checking --enable-perlinterp argument... " >&6; } |
| 4803 | # Check whether --enable-perlinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4804 | if test "${enable_perlinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4805 | enableval=$enable_perlinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4806 | else |
| 4807 | enable_perlinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4808 | fi |
| 4809 | |
| 4810 | { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 |
| 4811 | $as_echo "$enable_perlinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4812 | if test "$enable_perlinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4813 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4814 | # Extract the first word of "perl", so it can be a program name with args. |
| 4815 | set dummy perl; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4816 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4817 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4818 | if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4819 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4820 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4821 | case $vi_cv_path_perl in |
| 4822 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4823 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 4824 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4825 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4827 | for as_dir in $PATH |
| 4828 | do |
| 4829 | IFS=$as_save_IFS |
| 4830 | test -z "$as_dir" && as_dir=. |
| 4831 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4832 | 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] | 4833 | 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] | 4834 | $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] | 4835 | break 2 |
| 4836 | fi |
| 4837 | done |
| 4838 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4839 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4840 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4841 | ;; |
| 4842 | esac |
| 4843 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4844 | vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4845 | if test -n "$vi_cv_path_perl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4846 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 |
| 4847 | $as_echo "$vi_cv_path_perl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4848 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4849 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4850 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4851 | fi |
| 4852 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4853 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4854 | if test "X$vi_cv_path_perl" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4855 | { $as_echo "$as_me:$LINENO: checking Perl version" >&5 |
| 4856 | $as_echo_n "checking Perl version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4857 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 4858 | eval `$vi_cv_path_perl -V:usethreads` |
| 4859 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 4860 | badthreads=no |
| 4861 | else |
| 4862 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 4863 | eval `$vi_cv_path_perl -V:use5005threads` |
| 4864 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 4865 | badthreads=no |
| 4866 | else |
| 4867 | badthreads=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4868 | { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 4869 | $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] | 4870 | fi |
| 4871 | else |
| 4872 | badthreads=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4873 | { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 4874 | $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4875 | fi |
| 4876 | fi |
| 4877 | if test $badthreads = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4878 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 4879 | $as_echo "OK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4880 | eval `$vi_cv_path_perl -V:shrpenv` |
| 4881 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 4882 | shrpenv="" |
| 4883 | fi |
| 4884 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4885 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4886 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 4887 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 4888 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 4889 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 4890 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 4891 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 4892 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 4893 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4894 | { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 |
| 4895 | $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] | 4896 | cflags_save=$CFLAGS |
| 4897 | libs_save=$LIBS |
| 4898 | ldflags_save=$LDFLAGS |
| 4899 | CFLAGS="$CFLAGS $perlcppflags" |
| 4900 | LIBS="$LIBS $perllibs" |
| 4901 | LDFLAGS="$perlldflags $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4902 | cat >conftest.$ac_ext <<_ACEOF |
| 4903 | /* confdefs.h. */ |
| 4904 | _ACEOF |
| 4905 | cat confdefs.h >>conftest.$ac_ext |
| 4906 | cat >>conftest.$ac_ext <<_ACEOF |
| 4907 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4908 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4909 | int |
| 4910 | main () |
| 4911 | { |
| 4912 | |
| 4913 | ; |
| 4914 | return 0; |
| 4915 | } |
| 4916 | _ACEOF |
| 4917 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4918 | if { (ac_try="$ac_link" |
| 4919 | case "(($ac_try" in |
| 4920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4921 | *) ac_try_echo=$ac_try;; |
| 4922 | esac |
| 4923 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4924 | $as_echo "$ac_try_echo") >&5 |
| 4925 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4926 | ac_status=$? |
| 4927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4928 | rm -f conftest.er1 |
| 4929 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4930 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4931 | (exit $ac_status); } && { |
| 4932 | test -z "$ac_c_werror_flag" || |
| 4933 | test ! -s conftest.err |
| 4934 | } && test -s conftest$ac_exeext && { |
| 4935 | test "$cross_compiling" = yes || |
| 4936 | $as_test_x conftest$ac_exeext |
| 4937 | }; then |
| 4938 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4939 | $as_echo "yes" >&6; }; perl_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4940 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4941 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4943 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4944 | { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 |
| 4945 | $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4946 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4947 | |
| 4948 | rm -rf conftest.dSYM |
| 4949 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4950 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4951 | CFLAGS=$cflags_save |
| 4952 | LIBS=$libs_save |
| 4953 | LDFLAGS=$ldflags_save |
| 4954 | if test $perl_ok = yes; then |
| 4955 | if test "X$perlcppflags" != "X"; then |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4956 | PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4957 | fi |
| 4958 | if test "X$perlldflags" != "X"; then |
| 4959 | LDFLAGS="$perlldflags $LDFLAGS" |
| 4960 | fi |
| 4961 | PERL_LIBS=$perllibs |
| 4962 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 4963 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 4964 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4965 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4966 | #define FEAT_PERL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4967 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4968 | |
| 4969 | fi |
| 4970 | fi |
| 4971 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4972 | { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 4973 | $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] | 4974 | fi |
| 4975 | fi |
| 4976 | |
| 4977 | if test "x$MACOSX" = "xyes"; then |
| 4978 | dir=/System/Library/Perl |
| 4979 | darwindir=$dir/darwin |
| 4980 | if test -d $darwindir; then |
| 4981 | PERL=/usr/bin/perl |
| 4982 | else |
| 4983 | dir=/System/Library/Perl/5.8.1 |
| 4984 | darwindir=$dir/darwin-thread-multi-2level |
| 4985 | if test -d $darwindir; then |
| 4986 | PERL=/usr/bin/perl |
| 4987 | fi |
| 4988 | fi |
| 4989 | if test -n "$PERL"; then |
| 4990 | PERL_DIR="$dir" |
| 4991 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 4992 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 4993 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 4994 | fi |
| 4995 | fi |
| 4996 | fi |
| 4997 | |
| 4998 | |
| 4999 | |
| 5000 | |
| 5001 | |
| 5002 | |
| 5003 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5004 | { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 |
| 5005 | $as_echo_n "checking --enable-pythoninterp argument... " >&6; } |
| 5006 | # Check whether --enable-pythoninterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5007 | if test "${enable_pythoninterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5008 | enableval=$enable_pythoninterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5009 | else |
| 5010 | enable_pythoninterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5011 | fi |
| 5012 | |
| 5013 | { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 |
| 5014 | $as_echo "$enable_pythoninterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5015 | if test "$enable_pythoninterp" = "yes"; then |
| 5016 | # Extract the first word of "python", so it can be a program name with args. |
| 5017 | set dummy python; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5018 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5019 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5020 | if test "${ac_cv_path_vi_cv_path_python+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5021 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5022 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5023 | case $vi_cv_path_python in |
| 5024 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5025 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 5026 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5027 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5029 | for as_dir in $PATH |
| 5030 | do |
| 5031 | IFS=$as_save_IFS |
| 5032 | test -z "$as_dir" && as_dir=. |
| 5033 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5034 | 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] | 5035 | 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] | 5036 | $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] | 5037 | break 2 |
| 5038 | fi |
| 5039 | done |
| 5040 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5041 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5042 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5043 | ;; |
| 5044 | esac |
| 5045 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5046 | vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5047 | if test -n "$vi_cv_path_python"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5048 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 |
| 5049 | $as_echo "$vi_cv_path_python" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5050 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5051 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5052 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5053 | fi |
| 5054 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5055 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5056 | if test "X$vi_cv_path_python" != "X"; then |
| 5057 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5058 | { $as_echo "$as_me:$LINENO: checking Python version" >&5 |
| 5059 | $as_echo_n "checking Python version... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5060 | if test "${vi_cv_var_python_version+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5061 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5062 | else |
| 5063 | vi_cv_var_python_version=` |
| 5064 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5065 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5066 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5067 | { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 |
| 5068 | $as_echo "$vi_cv_var_python_version" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5069 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5070 | { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 |
| 5071 | $as_echo_n "checking Python is 1.4 or better... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5072 | if ${vi_cv_path_python} -c \ |
| 5073 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 5074 | then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5075 | { $as_echo "$as_me:$LINENO: result: yep" >&5 |
| 5076 | $as_echo "yep" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5077 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5078 | { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5 |
| 5079 | $as_echo_n "checking Python's install prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5080 | if test "${vi_cv_path_python_pfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5081 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5082 | else |
| 5083 | vi_cv_path_python_pfx=` |
| 5084 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5085 | "import sys; print sys.prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5086 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5087 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 |
| 5088 | $as_echo "$vi_cv_path_python_pfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5089 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5090 | { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5 |
| 5091 | $as_echo_n "checking Python's execution prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5092 | if test "${vi_cv_path_python_epfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5093 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5094 | else |
| 5095 | vi_cv_path_python_epfx=` |
| 5096 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5097 | "import sys; print sys.exec_prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5098 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5099 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 |
| 5100 | $as_echo "$vi_cv_path_python_epfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5101 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5102 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5103 | if test "${vi_cv_path_pythonpath+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5104 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5105 | else |
| 5106 | vi_cv_path_pythonpath=` |
| 5107 | unset PYTHONPATH; |
| 5108 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5109 | "import sys, string; print string.join(sys.path,':')"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5110 | fi |
| 5111 | |
| 5112 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5113 | |
| 5114 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5115 | # Check whether --with-python-config-dir was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5116 | if test "${with_python_config_dir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5117 | withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" |
| 5118 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5119 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5120 | |
| 5121 | { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5 |
| 5122 | $as_echo_n "checking Python's configuration directory... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5123 | if test "${vi_cv_path_python_conf+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5124 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5125 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5126 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5127 | vi_cv_path_python_conf= |
| 5128 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 5129 | for subdir in lib share; do |
| 5130 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 5131 | if test -d "$d" && test -f "$d/config.c"; then |
| 5132 | vi_cv_path_python_conf="$d" |
| 5133 | fi |
| 5134 | done |
| 5135 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5136 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5137 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5138 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 |
| 5139 | $as_echo "$vi_cv_path_python_conf" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5140 | |
| 5141 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 5142 | |
| 5143 | if test "X$PYTHON_CONFDIR" = "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5144 | { $as_echo "$as_me:$LINENO: result: can't find it!" >&5 |
| 5145 | $as_echo "can't find it!" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5146 | else |
| 5147 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5148 | if test "${vi_cv_path_python_plibs+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5149 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5150 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5151 | |
Bram Moolenaar | 01dd60c | 2008-07-24 14:24:48 +0000 | [diff] [blame] | 5152 | pwd=`pwd` |
| 5153 | tmp_mkf="$pwd/config-PyMake$$" |
| 5154 | cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5155 | __: |
| 5156 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 5157 | @echo "python_LIBS='$(LIBS)'" |
| 5158 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 5159 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 5160 | eof |
Bram Moolenaar | 01dd60c | 2008-07-24 14:24:48 +0000 | [diff] [blame] | 5161 | eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" |
| 5162 | rm -f -- "${tmp_mkf}" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5163 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 5164 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 5165 | vi_cv_path_python_plibs="-framework Python" |
| 5166 | else |
| 5167 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 5168 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 5169 | else |
| 5170 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 5171 | fi |
| 5172 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 5173 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 5174 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5175 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5176 | fi |
| 5177 | |
| 5178 | |
| 5179 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 5180 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 5181 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 5182 | else |
| 5183 | 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}" |
| 5184 | fi |
| 5185 | PYTHON_SRC="if_python.c" |
| 5186 | if test "x$MACOSX" = "xyes"; then |
| 5187 | PYTHON_OBJ="objects/if_python.o" |
| 5188 | else |
| 5189 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 5190 | fi |
| 5191 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 5192 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 5193 | fi |
| 5194 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 5195 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5196 | { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5 |
| 5197 | $as_echo_n "checking if -pthread should be used... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5198 | threadsafe_flag= |
| 5199 | thread_lib= |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 5200 | if test "`(uname) 2>/dev/null`" != Darwin; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5201 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 5202 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 5203 | threadsafe_flag="-D_THREAD_SAFE" |
| 5204 | thread_lib="-pthread" |
| 5205 | fi |
| 5206 | fi |
| 5207 | libs_save_old=$LIBS |
| 5208 | if test -n "$threadsafe_flag"; then |
| 5209 | cflags_save=$CFLAGS |
| 5210 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 5211 | LIBS="$LIBS $thread_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5212 | cat >conftest.$ac_ext <<_ACEOF |
| 5213 | /* confdefs.h. */ |
| 5214 | _ACEOF |
| 5215 | cat confdefs.h >>conftest.$ac_ext |
| 5216 | cat >>conftest.$ac_ext <<_ACEOF |
| 5217 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5218 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5219 | int |
| 5220 | main () |
| 5221 | { |
| 5222 | |
| 5223 | ; |
| 5224 | return 0; |
| 5225 | } |
| 5226 | _ACEOF |
| 5227 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5228 | if { (ac_try="$ac_link" |
| 5229 | case "(($ac_try" in |
| 5230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5231 | *) ac_try_echo=$ac_try;; |
| 5232 | esac |
| 5233 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5234 | $as_echo "$ac_try_echo") >&5 |
| 5235 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5236 | ac_status=$? |
| 5237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5238 | rm -f conftest.er1 |
| 5239 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5241 | (exit $ac_status); } && { |
| 5242 | test -z "$ac_c_werror_flag" || |
| 5243 | test ! -s conftest.err |
| 5244 | } && test -s conftest$ac_exeext && { |
| 5245 | test "$cross_compiling" = yes || |
| 5246 | $as_test_x conftest$ac_exeext |
| 5247 | }; then |
| 5248 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5249 | $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5250 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5251 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5253 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5254 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5255 | $as_echo "no" >&6; }; LIBS=$libs_save_old |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5256 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5257 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5258 | |
| 5259 | rm -rf conftest.dSYM |
| 5260 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5261 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5262 | CFLAGS=$cflags_save |
| 5263 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5264 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5265 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5266 | fi |
| 5267 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5268 | { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 |
| 5269 | $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] | 5270 | cflags_save=$CFLAGS |
| 5271 | libs_save=$LIBS |
| 5272 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 5273 | LIBS="$LIBS $PYTHON_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5274 | cat >conftest.$ac_ext <<_ACEOF |
| 5275 | /* confdefs.h. */ |
| 5276 | _ACEOF |
| 5277 | cat confdefs.h >>conftest.$ac_ext |
| 5278 | cat >>conftest.$ac_ext <<_ACEOF |
| 5279 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5280 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5281 | int |
| 5282 | main () |
| 5283 | { |
| 5284 | |
| 5285 | ; |
| 5286 | return 0; |
| 5287 | } |
| 5288 | _ACEOF |
| 5289 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5290 | if { (ac_try="$ac_link" |
| 5291 | case "(($ac_try" in |
| 5292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5293 | *) ac_try_echo=$ac_try;; |
| 5294 | esac |
| 5295 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5296 | $as_echo "$ac_try_echo") >&5 |
| 5297 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5298 | ac_status=$? |
| 5299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5300 | rm -f conftest.er1 |
| 5301 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5302 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5303 | (exit $ac_status); } && { |
| 5304 | test -z "$ac_c_werror_flag" || |
| 5305 | test ! -s conftest.err |
| 5306 | } && test -s conftest$ac_exeext && { |
| 5307 | test "$cross_compiling" = yes || |
| 5308 | $as_test_x conftest$ac_exeext |
| 5309 | }; then |
| 5310 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5311 | $as_echo "yes" >&6; }; python_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5312 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5313 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5315 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5316 | { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 |
| 5317 | $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5318 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5319 | |
| 5320 | rm -rf conftest.dSYM |
| 5321 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5322 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5323 | CFLAGS=$cflags_save |
| 5324 | LIBS=$libs_save |
| 5325 | if test $python_ok = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5326 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5327 | #define FEAT_PYTHON 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5328 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5329 | |
| 5330 | else |
| 5331 | LIBS=$libs_save_old |
| 5332 | PYTHON_SRC= |
| 5333 | PYTHON_OBJ= |
| 5334 | PYTHON_LIBS= |
| 5335 | PYTHON_CFLAGS= |
| 5336 | fi |
| 5337 | |
| 5338 | fi |
| 5339 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5340 | { $as_echo "$as_me:$LINENO: result: too old" >&5 |
| 5341 | $as_echo "too old" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5342 | fi |
| 5343 | fi |
| 5344 | fi |
| 5345 | |
| 5346 | |
| 5347 | |
| 5348 | |
| 5349 | |
| 5350 | |
| 5351 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5352 | { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 |
| 5353 | $as_echo_n "checking --enable-tclinterp argument... " >&6; } |
| 5354 | # Check whether --enable-tclinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5355 | if test "${enable_tclinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5356 | enableval=$enable_tclinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5357 | else |
| 5358 | enable_tclinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5359 | fi |
| 5360 | |
| 5361 | { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 |
| 5362 | $as_echo "$enable_tclinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5363 | |
| 5364 | if test "$enable_tclinterp" = "yes"; then |
| 5365 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5366 | { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 |
| 5367 | $as_echo_n "checking --with-tclsh argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5368 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5369 | # Check whether --with-tclsh was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5370 | if test "${with_tclsh+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5371 | withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5 |
| 5372 | $as_echo "$tclsh_name" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5373 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5374 | tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5375 | $as_echo "no" >&6; } |
| 5376 | fi |
| 5377 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5378 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5379 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5380 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5381 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5382 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5383 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5384 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5385 | case $vi_cv_path_tcl in |
| 5386 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5387 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5388 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5389 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5391 | for as_dir in $PATH |
| 5392 | do |
| 5393 | IFS=$as_save_IFS |
| 5394 | test -z "$as_dir" && as_dir=. |
| 5395 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5396 | 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] | 5397 | 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] | 5398 | $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] | 5399 | break 2 |
| 5400 | fi |
| 5401 | done |
| 5402 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5403 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5404 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5405 | ;; |
| 5406 | esac |
| 5407 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5408 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5409 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5410 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5411 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5412 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5413 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5414 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5415 | fi |
| 5416 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5417 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5418 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5419 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5420 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then |
| 5421 | tclsh_name="tclsh8.4" |
| 5422 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5423 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5424 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5425 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5426 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5427 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5428 | else |
| 5429 | case $vi_cv_path_tcl in |
| 5430 | [\\/]* | ?:[\\/]*) |
| 5431 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5432 | ;; |
| 5433 | *) |
| 5434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5435 | for as_dir in $PATH |
| 5436 | do |
| 5437 | IFS=$as_save_IFS |
| 5438 | test -z "$as_dir" && as_dir=. |
| 5439 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5440 | 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] | 5441 | 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] | 5442 | $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] | 5443 | break 2 |
| 5444 | fi |
| 5445 | done |
| 5446 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5447 | IFS=$as_save_IFS |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5448 | |
| 5449 | ;; |
| 5450 | esac |
| 5451 | fi |
| 5452 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5453 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5454 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5455 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5456 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5457 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5458 | $as_echo "no" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5459 | fi |
| 5460 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5461 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5462 | fi |
| 5463 | 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] | 5464 | tclsh_name="tclsh8.2" |
| 5465 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5466 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5467 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5468 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5469 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5470 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5471 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5472 | case $vi_cv_path_tcl in |
| 5473 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5474 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5475 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5476 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5478 | for as_dir in $PATH |
| 5479 | do |
| 5480 | IFS=$as_save_IFS |
| 5481 | test -z "$as_dir" && as_dir=. |
| 5482 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5483 | 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] | 5484 | 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] | 5485 | $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] | 5486 | break 2 |
| 5487 | fi |
| 5488 | done |
| 5489 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5490 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5491 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5492 | ;; |
| 5493 | esac |
| 5494 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5495 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5496 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5497 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5498 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5499 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5500 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5501 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5502 | fi |
| 5503 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5504 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5505 | fi |
| 5506 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 5507 | tclsh_name="tclsh8.0" |
| 5508 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5509 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5510 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5511 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5512 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5513 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5514 | else |
| 5515 | case $vi_cv_path_tcl in |
| 5516 | [\\/]* | ?:[\\/]*) |
| 5517 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5518 | ;; |
| 5519 | *) |
| 5520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5521 | for as_dir in $PATH |
| 5522 | do |
| 5523 | IFS=$as_save_IFS |
| 5524 | test -z "$as_dir" && as_dir=. |
| 5525 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5526 | 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] | 5527 | 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] | 5528 | $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] | 5529 | break 2 |
| 5530 | fi |
| 5531 | done |
| 5532 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5533 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5534 | |
| 5535 | ;; |
| 5536 | esac |
| 5537 | fi |
| 5538 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5539 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5540 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5541 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5542 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5543 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5544 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5545 | fi |
| 5546 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5547 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5548 | fi |
| 5549 | if test "X$vi_cv_path_tcl" = "X"; then |
| 5550 | tclsh_name="tclsh" |
| 5551 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5552 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5553 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5554 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5555 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5556 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5557 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5558 | case $vi_cv_path_tcl in |
| 5559 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5560 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5561 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5562 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5564 | for as_dir in $PATH |
| 5565 | do |
| 5566 | IFS=$as_save_IFS |
| 5567 | test -z "$as_dir" && as_dir=. |
| 5568 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5569 | 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] | 5570 | 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] | 5571 | $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] | 5572 | break 2 |
| 5573 | fi |
| 5574 | done |
| 5575 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5576 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5577 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5578 | ;; |
| 5579 | esac |
| 5580 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5581 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5582 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5583 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5584 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5585 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5586 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5587 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5588 | fi |
| 5589 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5590 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5591 | fi |
| 5592 | if test "X$vi_cv_path_tcl" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5593 | { $as_echo "$as_me:$LINENO: checking Tcl version" >&5 |
| 5594 | $as_echo_n "checking Tcl version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5595 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 5596 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5597 | { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5 |
| 5598 | $as_echo "$tclver - OK" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5599 | 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 -` |
| 5600 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5601 | { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5 |
| 5602 | $as_echo_n "checking for location of Tcl include... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5603 | if test "x$MACOSX" != "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5604 | 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] | 5605 | else |
| 5606 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 5607 | fi |
Bram Moolenaar | 0ff8f60 | 2008-02-20 11:44:03 +0000 | [diff] [blame] | 5608 | TCL_INC= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5609 | for try in $tclinc; do |
| 5610 | if test -f "$try/tcl.h"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5611 | { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5 |
| 5612 | $as_echo "$try/tcl.h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5613 | TCL_INC=$try |
| 5614 | break |
| 5615 | fi |
| 5616 | done |
| 5617 | if test -z "$TCL_INC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5618 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5619 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5620 | SKIP_TCL=YES |
| 5621 | fi |
| 5622 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5623 | { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 |
| 5624 | $as_echo_n "checking for location of tclConfig.sh script... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5625 | if test "x$MACOSX" != "xyes"; then |
| 5626 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5627 | tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5628 | else |
| 5629 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 5630 | fi |
| 5631 | for try in $tclcnf; do |
| 5632 | if test -f $try/tclConfig.sh; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5633 | { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 |
| 5634 | $as_echo "$try/tclConfig.sh" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5635 | . $try/tclConfig.sh |
| 5636 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
Bram Moolenaar | 4394bff | 2008-07-24 11:21:31 +0000 | [diff] [blame] | 5637 | TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -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] | 5638 | break |
| 5639 | fi |
| 5640 | done |
| 5641 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5642 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5643 | $as_echo "<not found>" >&6; } |
| 5644 | { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 |
| 5645 | $as_echo_n "checking for Tcl library by myself... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5646 | tcllib=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5647 | tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5648 | for ext in .so .a ; do |
| 5649 | for ver in "" $tclver ; do |
| 5650 | for try in $tcllib ; do |
| 5651 | trylib=tcl$ver$ext |
| 5652 | if test -f $try/lib$trylib ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5653 | { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 |
| 5654 | $as_echo "$try/lib$trylib" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5655 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 5656 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 5657 | uname -r | grep '^5' >/dev/null; then |
| 5658 | TCL_LIBS="$TCL_LIBS -R $try" |
| 5659 | fi |
| 5660 | break 3 |
| 5661 | fi |
| 5662 | done |
| 5663 | done |
| 5664 | done |
| 5665 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5666 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5667 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5668 | SKIP_TCL=YES |
| 5669 | fi |
| 5670 | fi |
| 5671 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5672 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5673 | #define FEAT_TCL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5674 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5675 | |
| 5676 | TCL_SRC=if_tcl.c |
| 5677 | TCL_OBJ=objects/if_tcl.o |
| 5678 | TCL_PRO=if_tcl.pro |
| 5679 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 5680 | fi |
| 5681 | fi |
| 5682 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5683 | { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 |
| 5684 | $as_echo "too old; need Tcl version 8.0 or later" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5685 | fi |
| 5686 | fi |
| 5687 | fi |
| 5688 | |
| 5689 | |
| 5690 | |
| 5691 | |
| 5692 | |
| 5693 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5694 | { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 |
| 5695 | $as_echo_n "checking --enable-rubyinterp argument... " >&6; } |
| 5696 | # Check whether --enable-rubyinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5697 | if test "${enable_rubyinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5698 | enableval=$enable_rubyinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5699 | else |
| 5700 | enable_rubyinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5701 | fi |
| 5702 | |
| 5703 | { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 |
| 5704 | $as_echo "$enable_rubyinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5705 | if test "$enable_rubyinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5706 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5707 | # Extract the first word of "ruby", so it can be a program name with args. |
| 5708 | set dummy ruby; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5709 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5710 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5711 | if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5712 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5713 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5714 | case $vi_cv_path_ruby in |
| 5715 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5716 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 5717 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5718 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5720 | for as_dir in $PATH |
| 5721 | do |
| 5722 | IFS=$as_save_IFS |
| 5723 | test -z "$as_dir" && as_dir=. |
| 5724 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5725 | 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] | 5726 | 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] | 5727 | $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] | 5728 | break 2 |
| 5729 | fi |
| 5730 | done |
| 5731 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5732 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5733 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5734 | ;; |
| 5735 | esac |
| 5736 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5737 | vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5738 | if test -n "$vi_cv_path_ruby"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5739 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 |
| 5740 | $as_echo "$vi_cv_path_ruby" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5741 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5742 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5743 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5744 | fi |
| 5745 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5746 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5747 | if test "X$vi_cv_path_ruby" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5748 | { $as_echo "$as_me:$LINENO: checking Ruby version" >&5 |
| 5749 | $as_echo_n "checking Ruby version... " >&6; } |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 5750 | 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] | 5751 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 5752 | $as_echo "OK" >&6; } |
| 5753 | { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5 |
| 5754 | $as_echo_n "checking Ruby header files... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5755 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
| 5756 | if test "X$rubyhdrdir" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5757 | { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 |
| 5758 | $as_echo "$rubyhdrdir" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5759 | RUBY_CFLAGS="-I$rubyhdrdir" |
| 5760 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 5761 | if test "X$rubylibs" != "X"; then |
| 5762 | RUBY_LIBS="$rubylibs" |
| 5763 | fi |
| 5764 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 5765 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 5766 | librubyarg="$rubyhdrdir/$librubyarg" |
| 5767 | else |
| 5768 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 5769 | if test -f "$rubylibdir/$librubyarg"; then |
| 5770 | librubyarg="$rubylibdir/$librubyarg" |
| 5771 | elif test "$librubyarg" = "libruby.a"; then |
| 5772 | librubyarg="-lruby" |
| 5773 | else |
| 5774 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 5775 | fi |
| 5776 | fi |
| 5777 | |
| 5778 | if test "X$librubyarg" != "X"; then |
| 5779 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 5780 | fi |
| 5781 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 5782 | if test "X$rubyldflags" != "X"; then |
Bram Moolenaar | 996b6d8 | 2009-07-22 09:17:23 +0000 | [diff] [blame] | 5783 | rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'` |
| 5784 | if test "X$rubyldflags" != "X"; then |
| 5785 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 5786 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5787 | fi |
| 5788 | RUBY_SRC="if_ruby.c" |
| 5789 | RUBY_OBJ="objects/if_ruby.o" |
| 5790 | RUBY_PRO="if_ruby.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5791 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5792 | #define FEAT_RUBY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5793 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5794 | |
| 5795 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5796 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 5797 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5798 | fi |
| 5799 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5800 | { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 |
| 5801 | $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] | 5802 | fi |
| 5803 | fi |
| 5804 | fi |
| 5805 | |
| 5806 | |
| 5807 | |
| 5808 | |
| 5809 | |
| 5810 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5811 | { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 |
| 5812 | $as_echo_n "checking --enable-cscope argument... " >&6; } |
| 5813 | # Check whether --enable-cscope was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5814 | if test "${enable_cscope+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5815 | enableval=$enable_cscope; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5816 | else |
| 5817 | enable_cscope="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5818 | fi |
| 5819 | |
| 5820 | { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5 |
| 5821 | $as_echo "$enable_cscope" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5822 | if test "$enable_cscope" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5823 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5824 | #define FEAT_CSCOPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5825 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5826 | |
| 5827 | fi |
| 5828 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5829 | { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 |
| 5830 | $as_echo_n "checking --enable-workshop argument... " >&6; } |
| 5831 | # Check whether --enable-workshop was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5832 | if test "${enable_workshop+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5833 | enableval=$enable_workshop; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5834 | else |
| 5835 | enable_workshop="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5836 | fi |
| 5837 | |
| 5838 | { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5 |
| 5839 | $as_echo "$enable_workshop" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5840 | if test "$enable_workshop" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5841 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5842 | #define FEAT_SUN_WORKSHOP 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5843 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5844 | |
| 5845 | WORKSHOP_SRC="workshop.c integration.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5846 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5847 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5848 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5849 | if test "${enable_gui-xxx}" = xxx; then |
| 5850 | enable_gui=motif |
| 5851 | fi |
| 5852 | fi |
| 5853 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5854 | { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 |
| 5855 | $as_echo_n "checking --disable-netbeans argument... " >&6; } |
| 5856 | # Check whether --enable-netbeans was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5857 | if test "${enable_netbeans+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5858 | enableval=$enable_netbeans; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5859 | else |
| 5860 | enable_netbeans="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5861 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5862 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5863 | if test "$enable_netbeans" = "yes"; then |
| 5864 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5865 | $as_echo "no" >&6; } |
| 5866 | |
| 5867 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 5868 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5869 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5870 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5871 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5872 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5873 | LIBS="-lsocket $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5874 | cat >conftest.$ac_ext <<_ACEOF |
| 5875 | /* confdefs.h. */ |
| 5876 | _ACEOF |
| 5877 | cat confdefs.h >>conftest.$ac_ext |
| 5878 | cat >>conftest.$ac_ext <<_ACEOF |
| 5879 | /* end confdefs.h. */ |
| 5880 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5881 | /* Override any GCC internal prototype to avoid an error. |
| 5882 | Use char because int might match the return type of a GCC |
| 5883 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5884 | #ifdef __cplusplus |
| 5885 | extern "C" |
| 5886 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5887 | char socket (); |
| 5888 | int |
| 5889 | main () |
| 5890 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5891 | return socket (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5892 | ; |
| 5893 | return 0; |
| 5894 | } |
| 5895 | _ACEOF |
| 5896 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5897 | if { (ac_try="$ac_link" |
| 5898 | case "(($ac_try" in |
| 5899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5900 | *) ac_try_echo=$ac_try;; |
| 5901 | esac |
| 5902 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5903 | $as_echo "$ac_try_echo") >&5 |
| 5904 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5905 | ac_status=$? |
| 5906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5907 | rm -f conftest.er1 |
| 5908 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5909 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5910 | (exit $ac_status); } && { |
| 5911 | test -z "$ac_c_werror_flag" || |
| 5912 | test ! -s conftest.err |
| 5913 | } && test -s conftest$ac_exeext && { |
| 5914 | test "$cross_compiling" = yes || |
| 5915 | $as_test_x conftest$ac_exeext |
| 5916 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5917 | ac_cv_lib_socket_socket=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5918 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5919 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5920 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5921 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5922 | ac_cv_lib_socket_socket=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5923 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5924 | |
| 5925 | rm -rf conftest.dSYM |
| 5926 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5927 | conftest$ac_exeext conftest.$ac_ext |
| 5928 | LIBS=$ac_check_lib_save_LIBS |
| 5929 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5930 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 5931 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 5932 | if test "x$ac_cv_lib_socket_socket" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5933 | cat >>confdefs.h <<_ACEOF |
| 5934 | #define HAVE_LIBSOCKET 1 |
| 5935 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5936 | |
| 5937 | LIBS="-lsocket $LIBS" |
| 5938 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5939 | fi |
| 5940 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5941 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5942 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 5943 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5944 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5945 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5946 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5947 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5948 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5949 | cat >conftest.$ac_ext <<_ACEOF |
| 5950 | /* confdefs.h. */ |
| 5951 | _ACEOF |
| 5952 | cat confdefs.h >>conftest.$ac_ext |
| 5953 | cat >>conftest.$ac_ext <<_ACEOF |
| 5954 | /* end confdefs.h. */ |
| 5955 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5956 | /* Override any GCC internal prototype to avoid an error. |
| 5957 | Use char because int might match the return type of a GCC |
| 5958 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5959 | #ifdef __cplusplus |
| 5960 | extern "C" |
| 5961 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5962 | char gethostbyname (); |
| 5963 | int |
| 5964 | main () |
| 5965 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5966 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5967 | ; |
| 5968 | return 0; |
| 5969 | } |
| 5970 | _ACEOF |
| 5971 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5972 | if { (ac_try="$ac_link" |
| 5973 | case "(($ac_try" in |
| 5974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5975 | *) ac_try_echo=$ac_try;; |
| 5976 | esac |
| 5977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5978 | $as_echo "$ac_try_echo") >&5 |
| 5979 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5980 | ac_status=$? |
| 5981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5982 | rm -f conftest.er1 |
| 5983 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5985 | (exit $ac_status); } && { |
| 5986 | test -z "$ac_c_werror_flag" || |
| 5987 | test ! -s conftest.err |
| 5988 | } && test -s conftest$ac_exeext && { |
| 5989 | test "$cross_compiling" = yes || |
| 5990 | $as_test_x conftest$ac_exeext |
| 5991 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5992 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5993 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5994 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5995 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5996 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5997 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5998 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5999 | |
| 6000 | rm -rf conftest.dSYM |
| 6001 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6002 | conftest$ac_exeext conftest.$ac_ext |
| 6003 | LIBS=$ac_check_lib_save_LIBS |
| 6004 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6005 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 6006 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6007 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6008 | cat >>confdefs.h <<_ACEOF |
| 6009 | #define HAVE_LIBNSL 1 |
| 6010 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6011 | |
| 6012 | LIBS="-lnsl $LIBS" |
| 6013 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6014 | fi |
| 6015 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6016 | { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 |
| 6017 | $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6018 | cat >conftest.$ac_ext <<_ACEOF |
| 6019 | /* confdefs.h. */ |
| 6020 | _ACEOF |
| 6021 | cat confdefs.h >>conftest.$ac_ext |
| 6022 | cat >>conftest.$ac_ext <<_ACEOF |
| 6023 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6024 | |
| 6025 | #include <stdio.h> |
| 6026 | #include <stdlib.h> |
| 6027 | #include <stdarg.h> |
| 6028 | #include <fcntl.h> |
| 6029 | #include <netdb.h> |
| 6030 | #include <netinet/in.h> |
| 6031 | #include <errno.h> |
| 6032 | #include <sys/types.h> |
| 6033 | #include <sys/socket.h> |
| 6034 | /* Check bitfields */ |
| 6035 | struct nbbuf { |
| 6036 | unsigned int initDone:1; |
| 6037 | ushort signmaplen; |
| 6038 | }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6039 | |
| 6040 | int |
| 6041 | main () |
| 6042 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6043 | |
| 6044 | /* Check creating a socket. */ |
| 6045 | struct sockaddr_in server; |
| 6046 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 6047 | (void)htons(100); |
| 6048 | (void)gethostbyname("microsoft.com"); |
| 6049 | if (errno == ECONNREFUSED) |
| 6050 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6051 | |
| 6052 | ; |
| 6053 | return 0; |
| 6054 | } |
| 6055 | _ACEOF |
| 6056 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6057 | if { (ac_try="$ac_link" |
| 6058 | case "(($ac_try" in |
| 6059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6060 | *) ac_try_echo=$ac_try;; |
| 6061 | esac |
| 6062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6063 | $as_echo "$ac_try_echo") >&5 |
| 6064 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6065 | ac_status=$? |
| 6066 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6067 | rm -f conftest.er1 |
| 6068 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6070 | (exit $ac_status); } && { |
| 6071 | test -z "$ac_c_werror_flag" || |
| 6072 | test ! -s conftest.err |
| 6073 | } && test -s conftest$ac_exeext && { |
| 6074 | test "$cross_compiling" = yes || |
| 6075 | $as_test_x conftest$ac_exeext |
| 6076 | }; then |
| 6077 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6078 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6079 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6080 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6082 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6083 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6084 | $as_echo "no" >&6; }; enable_netbeans="no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6085 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6086 | |
| 6087 | rm -rf conftest.dSYM |
| 6088 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6089 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6090 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6091 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6092 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6093 | fi |
| 6094 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6095 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6096 | #define FEAT_NETBEANS_INTG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6097 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6098 | |
| 6099 | NETBEANS_SRC="netbeans.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6100 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6101 | NETBEANS_OBJ="objects/netbeans.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6102 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6103 | fi |
| 6104 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6105 | { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 |
| 6106 | $as_echo_n "checking --enable-sniff argument... " >&6; } |
| 6107 | # Check whether --enable-sniff was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6108 | if test "${enable_sniff+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6109 | enableval=$enable_sniff; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6110 | else |
| 6111 | enable_sniff="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6112 | fi |
| 6113 | |
| 6114 | { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5 |
| 6115 | $as_echo "$enable_sniff" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6116 | if test "$enable_sniff" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6117 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6118 | #define FEAT_SNIFF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6119 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6120 | |
| 6121 | SNIFF_SRC="if_sniff.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6122 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6123 | SNIFF_OBJ="objects/if_sniff.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6124 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6125 | fi |
| 6126 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6127 | { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 |
| 6128 | $as_echo_n "checking --enable-multibyte argument... " >&6; } |
| 6129 | # Check whether --enable-multibyte was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6130 | if test "${enable_multibyte+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6131 | enableval=$enable_multibyte; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6132 | else |
| 6133 | enable_multibyte="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6134 | fi |
| 6135 | |
| 6136 | { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5 |
| 6137 | $as_echo "$enable_multibyte" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6138 | if test "$enable_multibyte" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6139 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6140 | #define FEAT_MBYTE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6141 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6142 | |
| 6143 | fi |
| 6144 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6145 | { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 |
| 6146 | $as_echo_n "checking --enable-hangulinput argument... " >&6; } |
| 6147 | # Check whether --enable-hangulinput was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6148 | if test "${enable_hangulinput+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6149 | enableval=$enable_hangulinput; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6150 | else |
| 6151 | enable_hangulinput="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6152 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6153 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6154 | { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 |
| 6155 | $as_echo "$enable_hangulinput" >&6; } |
| 6156 | |
| 6157 | { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5 |
| 6158 | $as_echo_n "checking --enable-xim argument... " >&6; } |
| 6159 | # Check whether --enable-xim was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6160 | if test "${enable_xim+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6161 | enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5 |
| 6162 | $as_echo "$enable_xim" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6163 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6164 | enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5 |
| 6165 | $as_echo "defaulting to auto" >&6; } |
| 6166 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6167 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6168 | |
| 6169 | { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 |
| 6170 | $as_echo_n "checking --enable-fontset argument... " >&6; } |
| 6171 | # Check whether --enable-fontset was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6172 | if test "${enable_fontset+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6173 | enableval=$enable_fontset; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6174 | else |
| 6175 | enable_fontset="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6176 | fi |
| 6177 | |
| 6178 | { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5 |
| 6179 | $as_echo "$enable_fontset" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6180 | |
| 6181 | test -z "$with_x" && with_x=yes |
| 6182 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 6183 | if test "$with_x" = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6184 | { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 |
| 6185 | $as_echo "defaulting to: don't HAVE_X11" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6186 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6187 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6188 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 6189 | set dummy xmkmf; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6190 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6191 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6192 | if test "${ac_cv_path_xmkmfpath+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6193 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6194 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6195 | case $xmkmfpath in |
| 6196 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6197 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 6198 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6199 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6201 | for as_dir in $PATH |
| 6202 | do |
| 6203 | IFS=$as_save_IFS |
| 6204 | test -z "$as_dir" && as_dir=. |
| 6205 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6206 | 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] | 6207 | ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6208 | $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] | 6209 | break 2 |
| 6210 | fi |
| 6211 | done |
| 6212 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6213 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6214 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6215 | ;; |
| 6216 | esac |
| 6217 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6218 | xmkmfpath=$ac_cv_path_xmkmfpath |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6219 | if test -n "$xmkmfpath"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6220 | { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5 |
| 6221 | $as_echo "$xmkmfpath" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6222 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6223 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6224 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6225 | fi |
| 6226 | |
| 6227 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6228 | |
| 6229 | { $as_echo "$as_me:$LINENO: checking for X" >&5 |
| 6230 | $as_echo_n "checking for X... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6231 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6232 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6233 | # Check whether --with-x was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6234 | if test "${with_x+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6235 | withval=$with_x; |
| 6236 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6237 | |
| 6238 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 6239 | if test "x$with_x" = xno; then |
| 6240 | # The user explicitly disabled X. |
| 6241 | have_x=disabled |
| 6242 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6243 | case $x_includes,$x_libraries in #( |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6244 | *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5 |
| 6245 | $as_echo "$as_me: error: cannot use X directory names containing '" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6246 | { (exit 1); exit 1; }; };; #( |
| 6247 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
| 6248 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6249 | else |
| 6250 | # 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] | 6251 | ac_x_includes=no ac_x_libraries=no |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6252 | rm -f -r conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6253 | if mkdir conftest.dir; then |
| 6254 | cd conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6255 | cat >Imakefile <<'_ACEOF' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6256 | incroot: |
| 6257 | @echo incroot='${INCROOT}' |
| 6258 | usrlibdir: |
| 6259 | @echo usrlibdir='${USRLIBDIR}' |
| 6260 | libdir: |
| 6261 | @echo libdir='${LIBDIR}' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6262 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6263 | 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] | 6264 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6265 | for ac_var in incroot usrlibdir libdir; do |
| 6266 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 6267 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6268 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6269 | for ac_extension in a so sl dylib la dll; do |
| 6270 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 6271 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6272 | ac_im_usrlibdir=$ac_im_libdir; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6273 | fi |
| 6274 | done |
| 6275 | # Screen out bogus values from the imake configuration. They are |
| 6276 | # bogus both because they are the default anyway, and because |
| 6277 | # using them would break gcc on systems where it needs fixed includes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6278 | case $ac_im_incroot in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6279 | /usr/include) ac_x_includes= ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6280 | *) 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] | 6281 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6282 | case $ac_im_usrlibdir in |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6283 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6284 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6285 | esac |
| 6286 | fi |
| 6287 | cd .. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6288 | rm -f -r conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6289 | fi |
| 6290 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6291 | # Standard set of common directories for X headers. |
| 6292 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 6293 | ac_x_header_dirs=' |
| 6294 | /usr/X11/include |
| 6295 | /usr/X11R6/include |
| 6296 | /usr/X11R5/include |
| 6297 | /usr/X11R4/include |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6298 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6299 | /usr/include/X11 |
| 6300 | /usr/include/X11R6 |
| 6301 | /usr/include/X11R5 |
| 6302 | /usr/include/X11R4 |
| 6303 | |
| 6304 | /usr/local/X11/include |
| 6305 | /usr/local/X11R6/include |
| 6306 | /usr/local/X11R5/include |
| 6307 | /usr/local/X11R4/include |
| 6308 | |
| 6309 | /usr/local/include/X11 |
| 6310 | /usr/local/include/X11R6 |
| 6311 | /usr/local/include/X11R5 |
| 6312 | /usr/local/include/X11R4 |
| 6313 | |
| 6314 | /usr/X386/include |
| 6315 | /usr/x386/include |
| 6316 | /usr/XFree86/include/X11 |
| 6317 | |
| 6318 | /usr/include |
| 6319 | /usr/local/include |
| 6320 | /usr/unsupported/include |
| 6321 | /usr/athena/include |
| 6322 | /usr/local/x11r5/include |
| 6323 | /usr/lpp/Xamples/include |
| 6324 | |
| 6325 | /usr/openwin/include |
| 6326 | /usr/openwin/share/include' |
| 6327 | |
| 6328 | if test "$ac_x_includes" = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6329 | # Guess where to find include files, by looking for Xlib.h. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6330 | # First, try using that file with no special directory specified. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6331 | cat >conftest.$ac_ext <<_ACEOF |
| 6332 | /* confdefs.h. */ |
| 6333 | _ACEOF |
| 6334 | cat confdefs.h >>conftest.$ac_ext |
| 6335 | cat >>conftest.$ac_ext <<_ACEOF |
| 6336 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6337 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6338 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6339 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6340 | case "(($ac_try" in |
| 6341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6342 | *) ac_try_echo=$ac_try;; |
| 6343 | esac |
| 6344 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6345 | $as_echo "$ac_try_echo") >&5 |
| 6346 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6347 | ac_status=$? |
| 6348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6349 | rm -f conftest.er1 |
| 6350 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6352 | (exit $ac_status); } >/dev/null && { |
| 6353 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6354 | test ! -s conftest.err |
| 6355 | }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6356 | # We can compile using X headers with no special include directory. |
| 6357 | ac_x_includes= |
| 6358 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6359 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6361 | |
| 6362 | for ac_dir in $ac_x_header_dirs; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6363 | if test -r "$ac_dir/X11/Xlib.h"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6364 | ac_x_includes=$ac_dir |
| 6365 | break |
| 6366 | fi |
| 6367 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6368 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6369 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6370 | rm -f conftest.err conftest.$ac_ext |
| 6371 | fi # $ac_x_includes = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6372 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6373 | if test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6374 | # Check for the libraries. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6375 | # See if we find them without any special options. |
| 6376 | # Don't add to $LIBS permanently. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6377 | ac_save_LIBS=$LIBS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6378 | LIBS="-lX11 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6379 | cat >conftest.$ac_ext <<_ACEOF |
| 6380 | /* confdefs.h. */ |
| 6381 | _ACEOF |
| 6382 | cat confdefs.h >>conftest.$ac_ext |
| 6383 | cat >>conftest.$ac_ext <<_ACEOF |
| 6384 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6385 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6386 | int |
| 6387 | main () |
| 6388 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6389 | XrmInitialize () |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6390 | ; |
| 6391 | return 0; |
| 6392 | } |
| 6393 | _ACEOF |
| 6394 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6395 | if { (ac_try="$ac_link" |
| 6396 | case "(($ac_try" in |
| 6397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6398 | *) ac_try_echo=$ac_try;; |
| 6399 | esac |
| 6400 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6401 | $as_echo "$ac_try_echo") >&5 |
| 6402 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6403 | ac_status=$? |
| 6404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6405 | rm -f conftest.er1 |
| 6406 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6407 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6408 | (exit $ac_status); } && { |
| 6409 | test -z "$ac_c_werror_flag" || |
| 6410 | test ! -s conftest.err |
| 6411 | } && test -s conftest$ac_exeext && { |
| 6412 | test "$cross_compiling" = yes || |
| 6413 | $as_test_x conftest$ac_exeext |
| 6414 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6415 | LIBS=$ac_save_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6416 | # We can link X programs with no special library path. |
| 6417 | ac_x_libraries= |
| 6418 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6419 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6421 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6422 | LIBS=$ac_save_LIBS |
| 6423 | 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] | 6424 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6425 | # 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] | 6426 | for ac_extension in a so sl dylib la dll; do |
| 6427 | if test -r "$ac_dir/libX11.$ac_extension"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6428 | ac_x_libraries=$ac_dir |
| 6429 | break 2 |
| 6430 | fi |
| 6431 | done |
| 6432 | done |
| 6433 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6434 | |
| 6435 | rm -rf conftest.dSYM |
| 6436 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6437 | conftest$ac_exeext conftest.$ac_ext |
| 6438 | fi # $ac_x_libraries = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6439 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6440 | case $ac_x_includes,$ac_x_libraries in #( |
| 6441 | no,* | *,no | *\'*) |
| 6442 | # Didn't find X, or a directory has "'" in its name. |
| 6443 | ac_cv_have_x="have_x=no";; #( |
| 6444 | *) |
| 6445 | # Record where we found X for the cache. |
| 6446 | ac_cv_have_x="have_x=yes\ |
| 6447 | ac_x_includes='$ac_x_includes'\ |
| 6448 | ac_x_libraries='$ac_x_libraries'" |
| 6449 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6450 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6451 | ;; #( |
| 6452 | *) have_x=yes;; |
| 6453 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6454 | eval "$ac_cv_have_x" |
| 6455 | fi # $with_x != no |
| 6456 | |
| 6457 | if test "$have_x" != yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6458 | { $as_echo "$as_me:$LINENO: result: $have_x" >&5 |
| 6459 | $as_echo "$have_x" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6460 | no_x=yes |
| 6461 | else |
| 6462 | # If each of the values was on the command line, it overrides each guess. |
| 6463 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 6464 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 6465 | # Update the cache value to reflect the command line values. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6466 | ac_cv_have_x="have_x=yes\ |
| 6467 | ac_x_includes='$x_includes'\ |
| 6468 | ac_x_libraries='$x_libraries'" |
| 6469 | { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 6470 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6471 | fi |
| 6472 | |
| 6473 | if test "$no_x" = yes; then |
| 6474 | # 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] | 6475 | |
| 6476 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6477 | #define X_DISPLAY_MISSING 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6478 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6479 | |
| 6480 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 6481 | else |
| 6482 | if test -n "$x_includes"; then |
| 6483 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6484 | fi |
| 6485 | |
| 6486 | # It would also be nice to do this for all -L options, not just this one. |
| 6487 | if test -n "$x_libraries"; then |
| 6488 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6489 | # For Solaris; some versions of Sun CC require a space after -R and |
| 6490 | # others require no space. Words are not sufficient . . . . |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6491 | { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 6492 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 6493 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 6494 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 6495 | ac_c_werror_flag=yes |
| 6496 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6497 | /* confdefs.h. */ |
| 6498 | _ACEOF |
| 6499 | cat confdefs.h >>conftest.$ac_ext |
| 6500 | cat >>conftest.$ac_ext <<_ACEOF |
| 6501 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6502 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6503 | int |
| 6504 | main () |
| 6505 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6506 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6507 | ; |
| 6508 | return 0; |
| 6509 | } |
| 6510 | _ACEOF |
| 6511 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6512 | if { (ac_try="$ac_link" |
| 6513 | case "(($ac_try" in |
| 6514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6515 | *) ac_try_echo=$ac_try;; |
| 6516 | esac |
| 6517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6518 | $as_echo "$ac_try_echo") >&5 |
| 6519 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6520 | ac_status=$? |
| 6521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6522 | rm -f conftest.er1 |
| 6523 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6525 | (exit $ac_status); } && { |
| 6526 | test -z "$ac_c_werror_flag" || |
| 6527 | test ! -s conftest.err |
| 6528 | } && test -s conftest$ac_exeext && { |
| 6529 | test "$cross_compiling" = yes || |
| 6530 | $as_test_x conftest$ac_exeext |
| 6531 | }; then |
| 6532 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6533 | $as_echo "no" >&6; } |
| 6534 | X_LIBS="$X_LIBS -R$x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6535 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6536 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6538 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6539 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6540 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6541 | /* confdefs.h. */ |
| 6542 | _ACEOF |
| 6543 | cat confdefs.h >>conftest.$ac_ext |
| 6544 | cat >>conftest.$ac_ext <<_ACEOF |
| 6545 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6546 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6547 | int |
| 6548 | main () |
| 6549 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6550 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6551 | ; |
| 6552 | return 0; |
| 6553 | } |
| 6554 | _ACEOF |
| 6555 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6556 | if { (ac_try="$ac_link" |
| 6557 | case "(($ac_try" in |
| 6558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6559 | *) ac_try_echo=$ac_try;; |
| 6560 | esac |
| 6561 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6562 | $as_echo "$ac_try_echo") >&5 |
| 6563 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6564 | ac_status=$? |
| 6565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6566 | rm -f conftest.er1 |
| 6567 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6568 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6569 | (exit $ac_status); } && { |
| 6570 | test -z "$ac_c_werror_flag" || |
| 6571 | test ! -s conftest.err |
| 6572 | } && test -s conftest$ac_exeext && { |
| 6573 | test "$cross_compiling" = yes || |
| 6574 | $as_test_x conftest$ac_exeext |
| 6575 | }; then |
| 6576 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6577 | $as_echo "yes" >&6; } |
| 6578 | X_LIBS="$X_LIBS -R $x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6579 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6580 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6582 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6583 | { $as_echo "$as_me:$LINENO: result: neither works" >&5 |
| 6584 | $as_echo "neither works" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6585 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6586 | |
| 6587 | rm -rf conftest.dSYM |
| 6588 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6589 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6590 | fi |
| 6591 | |
| 6592 | rm -rf conftest.dSYM |
| 6593 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6594 | conftest$ac_exeext conftest.$ac_ext |
| 6595 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 6596 | LIBS=$ac_xsave_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6597 | fi |
| 6598 | |
| 6599 | # Check for system-dependent libraries X programs must link with. |
| 6600 | # Do this before checking for the system-independent R6 libraries |
| 6601 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 6602 | |
| 6603 | if test "$ISC" = yes; then |
| 6604 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 6605 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6606 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 6607 | # libraries were built with DECnet support. And Karl Berry says |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6608 | # the Alpha needs dnet_stub (dnet does not exist). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6609 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 6610 | cat >conftest.$ac_ext <<_ACEOF |
| 6611 | /* confdefs.h. */ |
| 6612 | _ACEOF |
| 6613 | cat confdefs.h >>conftest.$ac_ext |
| 6614 | cat >>conftest.$ac_ext <<_ACEOF |
| 6615 | /* end confdefs.h. */ |
| 6616 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6617 | /* Override any GCC internal prototype to avoid an error. |
| 6618 | Use char because int might match the return type of a GCC |
| 6619 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6620 | #ifdef __cplusplus |
| 6621 | extern "C" |
| 6622 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6623 | char XOpenDisplay (); |
| 6624 | int |
| 6625 | main () |
| 6626 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6627 | return XOpenDisplay (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6628 | ; |
| 6629 | return 0; |
| 6630 | } |
| 6631 | _ACEOF |
| 6632 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6633 | if { (ac_try="$ac_link" |
| 6634 | case "(($ac_try" in |
| 6635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6636 | *) ac_try_echo=$ac_try;; |
| 6637 | esac |
| 6638 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6639 | $as_echo "$ac_try_echo") >&5 |
| 6640 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6641 | ac_status=$? |
| 6642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6643 | rm -f conftest.er1 |
| 6644 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6645 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6646 | (exit $ac_status); } && { |
| 6647 | test -z "$ac_c_werror_flag" || |
| 6648 | test ! -s conftest.err |
| 6649 | } && test -s conftest$ac_exeext && { |
| 6650 | test "$cross_compiling" = yes || |
| 6651 | $as_test_x conftest$ac_exeext |
| 6652 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6653 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6654 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6655 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6656 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6657 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6658 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 6659 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6660 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6661 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6662 | else |
| 6663 | ac_check_lib_save_LIBS=$LIBS |
| 6664 | LIBS="-ldnet $LIBS" |
| 6665 | cat >conftest.$ac_ext <<_ACEOF |
| 6666 | /* confdefs.h. */ |
| 6667 | _ACEOF |
| 6668 | cat confdefs.h >>conftest.$ac_ext |
| 6669 | cat >>conftest.$ac_ext <<_ACEOF |
| 6670 | /* end confdefs.h. */ |
| 6671 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6672 | /* Override any GCC internal prototype to avoid an error. |
| 6673 | Use char because int might match the return type of a GCC |
| 6674 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6675 | #ifdef __cplusplus |
| 6676 | extern "C" |
| 6677 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6678 | char dnet_ntoa (); |
| 6679 | int |
| 6680 | main () |
| 6681 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6682 | return dnet_ntoa (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6683 | ; |
| 6684 | return 0; |
| 6685 | } |
| 6686 | _ACEOF |
| 6687 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6688 | if { (ac_try="$ac_link" |
| 6689 | case "(($ac_try" in |
| 6690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6691 | *) ac_try_echo=$ac_try;; |
| 6692 | esac |
| 6693 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6694 | $as_echo "$ac_try_echo") >&5 |
| 6695 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6696 | ac_status=$? |
| 6697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6698 | rm -f conftest.er1 |
| 6699 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6700 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6701 | (exit $ac_status); } && { |
| 6702 | test -z "$ac_c_werror_flag" || |
| 6703 | test ! -s conftest.err |
| 6704 | } && test -s conftest$ac_exeext && { |
| 6705 | test "$cross_compiling" = yes || |
| 6706 | $as_test_x conftest$ac_exeext |
| 6707 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6708 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 6709 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6710 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6712 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6713 | ac_cv_lib_dnet_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6714 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6715 | |
| 6716 | rm -rf conftest.dSYM |
| 6717 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6718 | conftest$ac_exeext conftest.$ac_ext |
| 6719 | LIBS=$ac_check_lib_save_LIBS |
| 6720 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6721 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 6722 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6723 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6724 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6725 | fi |
| 6726 | |
| 6727 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6728 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 6729 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6730 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6731 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6732 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6733 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6734 | LIBS="-ldnet_stub $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6735 | cat >conftest.$ac_ext <<_ACEOF |
| 6736 | /* confdefs.h. */ |
| 6737 | _ACEOF |
| 6738 | cat confdefs.h >>conftest.$ac_ext |
| 6739 | cat >>conftest.$ac_ext <<_ACEOF |
| 6740 | /* end confdefs.h. */ |
| 6741 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6742 | /* Override any GCC internal prototype to avoid an error. |
| 6743 | Use char because int might match the return type of a GCC |
| 6744 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6745 | #ifdef __cplusplus |
| 6746 | extern "C" |
| 6747 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6748 | char dnet_ntoa (); |
| 6749 | int |
| 6750 | main () |
| 6751 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6752 | return dnet_ntoa (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6753 | ; |
| 6754 | return 0; |
| 6755 | } |
| 6756 | _ACEOF |
| 6757 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6758 | if { (ac_try="$ac_link" |
| 6759 | case "(($ac_try" in |
| 6760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6761 | *) ac_try_echo=$ac_try;; |
| 6762 | esac |
| 6763 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6764 | $as_echo "$ac_try_echo") >&5 |
| 6765 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6766 | ac_status=$? |
| 6767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6768 | rm -f conftest.er1 |
| 6769 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6771 | (exit $ac_status); } && { |
| 6772 | test -z "$ac_c_werror_flag" || |
| 6773 | test ! -s conftest.err |
| 6774 | } && test -s conftest$ac_exeext && { |
| 6775 | test "$cross_compiling" = yes || |
| 6776 | $as_test_x conftest$ac_exeext |
| 6777 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6778 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6779 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6780 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6781 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6782 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6783 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6784 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6785 | |
| 6786 | rm -rf conftest.dSYM |
| 6787 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6788 | conftest$ac_exeext conftest.$ac_ext |
| 6789 | LIBS=$ac_check_lib_save_LIBS |
| 6790 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6791 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 6792 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6793 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6794 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6795 | fi |
| 6796 | |
| 6797 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6798 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6799 | |
| 6800 | rm -rf conftest.dSYM |
| 6801 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6802 | conftest$ac_exeext conftest.$ac_ext |
| 6803 | LIBS="$ac_xsave_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6804 | |
| 6805 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 6806 | # to get the SysV transport functions. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6807 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6808 | # needs -lnsl. |
| 6809 | # The nsl library prevents programs from opening the X display |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6810 | # on Irix 5.2, according to T.E. Dickey. |
| 6811 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 6812 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6813 | { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 6814 | $as_echo_n "checking for gethostbyname... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6815 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6816 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6817 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6818 | cat >conftest.$ac_ext <<_ACEOF |
| 6819 | /* confdefs.h. */ |
| 6820 | _ACEOF |
| 6821 | cat confdefs.h >>conftest.$ac_ext |
| 6822 | cat >>conftest.$ac_ext <<_ACEOF |
| 6823 | /* end confdefs.h. */ |
| 6824 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 6825 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6826 | #define gethostbyname innocuous_gethostbyname |
| 6827 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6828 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6829 | which can conflict with char gethostbyname (); below. |
| 6830 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6831 | <limits.h> exists even on freestanding compilers. */ |
| 6832 | |
| 6833 | #ifdef __STDC__ |
| 6834 | # include <limits.h> |
| 6835 | #else |
| 6836 | # include <assert.h> |
| 6837 | #endif |
| 6838 | |
| 6839 | #undef gethostbyname |
| 6840 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6841 | /* Override any GCC internal prototype to avoid an error. |
| 6842 | Use char because int might match the return type of a GCC |
| 6843 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6844 | #ifdef __cplusplus |
| 6845 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6846 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6847 | char gethostbyname (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6848 | /* The GNU C library defines this for functions which it implements |
| 6849 | to always fail with ENOSYS. Some functions are actually named |
| 6850 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6851 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6852 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6853 | #endif |
| 6854 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6855 | int |
| 6856 | main () |
| 6857 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6858 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6859 | ; |
| 6860 | return 0; |
| 6861 | } |
| 6862 | _ACEOF |
| 6863 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6864 | if { (ac_try="$ac_link" |
| 6865 | case "(($ac_try" in |
| 6866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6867 | *) ac_try_echo=$ac_try;; |
| 6868 | esac |
| 6869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6870 | $as_echo "$ac_try_echo") >&5 |
| 6871 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6872 | ac_status=$? |
| 6873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6874 | rm -f conftest.er1 |
| 6875 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6877 | (exit $ac_status); } && { |
| 6878 | test -z "$ac_c_werror_flag" || |
| 6879 | test ! -s conftest.err |
| 6880 | } && test -s conftest$ac_exeext && { |
| 6881 | test "$cross_compiling" = yes || |
| 6882 | $as_test_x conftest$ac_exeext |
| 6883 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6884 | ac_cv_func_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6885 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6886 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6887 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6888 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6889 | ac_cv_func_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6890 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6891 | |
| 6892 | rm -rf conftest.dSYM |
| 6893 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6894 | conftest$ac_exeext conftest.$ac_ext |
| 6895 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6896 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 6897 | $as_echo "$ac_cv_func_gethostbyname" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6898 | |
| 6899 | if test $ac_cv_func_gethostbyname = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6900 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 6901 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6902 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6903 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6904 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6905 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6906 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6907 | cat >conftest.$ac_ext <<_ACEOF |
| 6908 | /* confdefs.h. */ |
| 6909 | _ACEOF |
| 6910 | cat confdefs.h >>conftest.$ac_ext |
| 6911 | cat >>conftest.$ac_ext <<_ACEOF |
| 6912 | /* end confdefs.h. */ |
| 6913 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6914 | /* Override any GCC internal prototype to avoid an error. |
| 6915 | Use char because int might match the return type of a GCC |
| 6916 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6917 | #ifdef __cplusplus |
| 6918 | extern "C" |
| 6919 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6920 | char gethostbyname (); |
| 6921 | int |
| 6922 | main () |
| 6923 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6924 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6925 | ; |
| 6926 | return 0; |
| 6927 | } |
| 6928 | _ACEOF |
| 6929 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6930 | if { (ac_try="$ac_link" |
| 6931 | case "(($ac_try" in |
| 6932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6933 | *) ac_try_echo=$ac_try;; |
| 6934 | esac |
| 6935 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6936 | $as_echo "$ac_try_echo") >&5 |
| 6937 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6938 | ac_status=$? |
| 6939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6940 | rm -f conftest.er1 |
| 6941 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6942 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6943 | (exit $ac_status); } && { |
| 6944 | test -z "$ac_c_werror_flag" || |
| 6945 | test ! -s conftest.err |
| 6946 | } && test -s conftest$ac_exeext && { |
| 6947 | test "$cross_compiling" = yes || |
| 6948 | $as_test_x conftest$ac_exeext |
| 6949 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6950 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6951 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6952 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6953 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6954 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6955 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6956 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6957 | |
| 6958 | rm -rf conftest.dSYM |
| 6959 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6960 | conftest$ac_exeext conftest.$ac_ext |
| 6961 | LIBS=$ac_check_lib_save_LIBS |
| 6962 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6963 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 6964 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6965 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6966 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6967 | fi |
| 6968 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6969 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6970 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 6971 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6972 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6973 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6974 | else |
| 6975 | ac_check_lib_save_LIBS=$LIBS |
| 6976 | LIBS="-lbsd $LIBS" |
| 6977 | cat >conftest.$ac_ext <<_ACEOF |
| 6978 | /* confdefs.h. */ |
| 6979 | _ACEOF |
| 6980 | cat confdefs.h >>conftest.$ac_ext |
| 6981 | cat >>conftest.$ac_ext <<_ACEOF |
| 6982 | /* end confdefs.h. */ |
| 6983 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6984 | /* Override any GCC internal prototype to avoid an error. |
| 6985 | Use char because int might match the return type of a GCC |
| 6986 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6987 | #ifdef __cplusplus |
| 6988 | extern "C" |
| 6989 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6990 | char gethostbyname (); |
| 6991 | int |
| 6992 | main () |
| 6993 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6994 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6995 | ; |
| 6996 | return 0; |
| 6997 | } |
| 6998 | _ACEOF |
| 6999 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7000 | if { (ac_try="$ac_link" |
| 7001 | case "(($ac_try" in |
| 7002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7003 | *) ac_try_echo=$ac_try;; |
| 7004 | esac |
| 7005 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7006 | $as_echo "$ac_try_echo") >&5 |
| 7007 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7008 | ac_status=$? |
| 7009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7010 | rm -f conftest.er1 |
| 7011 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7013 | (exit $ac_status); } && { |
| 7014 | test -z "$ac_c_werror_flag" || |
| 7015 | test ! -s conftest.err |
| 7016 | } && test -s conftest$ac_exeext && { |
| 7017 | test "$cross_compiling" = yes || |
| 7018 | $as_test_x conftest$ac_exeext |
| 7019 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7020 | ac_cv_lib_bsd_gethostbyname=yes |
| 7021 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7022 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7024 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7025 | ac_cv_lib_bsd_gethostbyname=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7026 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7027 | |
| 7028 | rm -rf conftest.dSYM |
| 7029 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7030 | conftest$ac_exeext conftest.$ac_ext |
| 7031 | LIBS=$ac_check_lib_save_LIBS |
| 7032 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7033 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 7034 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7035 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7036 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 7037 | fi |
| 7038 | |
| 7039 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7040 | fi |
| 7041 | |
| 7042 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 7043 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 7044 | # 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] | 7045 | # on later versions), says Simon Leinen: it contains gethostby* |
| 7046 | # variants that don't use the name server (or something). -lsocket |
| 7047 | # must be given before -lnsl if both are needed. We assume that |
| 7048 | # if connect needs -lnsl, so does gethostbyname. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7049 | { $as_echo "$as_me:$LINENO: checking for connect" >&5 |
| 7050 | $as_echo_n "checking for connect... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7051 | if test "${ac_cv_func_connect+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7052 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7053 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7054 | cat >conftest.$ac_ext <<_ACEOF |
| 7055 | /* confdefs.h. */ |
| 7056 | _ACEOF |
| 7057 | cat confdefs.h >>conftest.$ac_ext |
| 7058 | cat >>conftest.$ac_ext <<_ACEOF |
| 7059 | /* end confdefs.h. */ |
| 7060 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 7061 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7062 | #define connect innocuous_connect |
| 7063 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7064 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7065 | which can conflict with char connect (); below. |
| 7066 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7067 | <limits.h> exists even on freestanding compilers. */ |
| 7068 | |
| 7069 | #ifdef __STDC__ |
| 7070 | # include <limits.h> |
| 7071 | #else |
| 7072 | # include <assert.h> |
| 7073 | #endif |
| 7074 | |
| 7075 | #undef connect |
| 7076 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7077 | /* Override any GCC internal prototype to avoid an error. |
| 7078 | Use char because int might match the return type of a GCC |
| 7079 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7080 | #ifdef __cplusplus |
| 7081 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7082 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7083 | char connect (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7084 | /* The GNU C library defines this for functions which it implements |
| 7085 | to always fail with ENOSYS. Some functions are actually named |
| 7086 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7087 | #if defined __stub_connect || defined __stub___connect |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7088 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7089 | #endif |
| 7090 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7091 | int |
| 7092 | main () |
| 7093 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7094 | return connect (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7095 | ; |
| 7096 | return 0; |
| 7097 | } |
| 7098 | _ACEOF |
| 7099 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7100 | if { (ac_try="$ac_link" |
| 7101 | case "(($ac_try" in |
| 7102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7103 | *) ac_try_echo=$ac_try;; |
| 7104 | esac |
| 7105 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7106 | $as_echo "$ac_try_echo") >&5 |
| 7107 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7108 | ac_status=$? |
| 7109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7110 | rm -f conftest.er1 |
| 7111 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7112 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7113 | (exit $ac_status); } && { |
| 7114 | test -z "$ac_c_werror_flag" || |
| 7115 | test ! -s conftest.err |
| 7116 | } && test -s conftest$ac_exeext && { |
| 7117 | test "$cross_compiling" = yes || |
| 7118 | $as_test_x conftest$ac_exeext |
| 7119 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7120 | ac_cv_func_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7121 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7122 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7123 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7124 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7125 | ac_cv_func_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7126 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7127 | |
| 7128 | rm -rf conftest.dSYM |
| 7129 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7130 | conftest$ac_exeext conftest.$ac_ext |
| 7131 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7132 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 7133 | $as_echo "$ac_cv_func_connect" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7134 | |
| 7135 | if test $ac_cv_func_connect = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7136 | { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 7137 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7138 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7139 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7140 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7141 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7142 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7143 | cat >conftest.$ac_ext <<_ACEOF |
| 7144 | /* confdefs.h. */ |
| 7145 | _ACEOF |
| 7146 | cat confdefs.h >>conftest.$ac_ext |
| 7147 | cat >>conftest.$ac_ext <<_ACEOF |
| 7148 | /* end confdefs.h. */ |
| 7149 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7150 | /* Override any GCC internal prototype to avoid an error. |
| 7151 | Use char because int might match the return type of a GCC |
| 7152 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7153 | #ifdef __cplusplus |
| 7154 | extern "C" |
| 7155 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7156 | char connect (); |
| 7157 | int |
| 7158 | main () |
| 7159 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7160 | return connect (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7161 | ; |
| 7162 | return 0; |
| 7163 | } |
| 7164 | _ACEOF |
| 7165 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7166 | if { (ac_try="$ac_link" |
| 7167 | case "(($ac_try" in |
| 7168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7169 | *) ac_try_echo=$ac_try;; |
| 7170 | esac |
| 7171 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7172 | $as_echo "$ac_try_echo") >&5 |
| 7173 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7174 | ac_status=$? |
| 7175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7176 | rm -f conftest.er1 |
| 7177 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7179 | (exit $ac_status); } && { |
| 7180 | test -z "$ac_c_werror_flag" || |
| 7181 | test ! -s conftest.err |
| 7182 | } && test -s conftest$ac_exeext && { |
| 7183 | test "$cross_compiling" = yes || |
| 7184 | $as_test_x conftest$ac_exeext |
| 7185 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7186 | ac_cv_lib_socket_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7187 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7188 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7189 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7190 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7191 | ac_cv_lib_socket_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7192 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7193 | |
| 7194 | rm -rf conftest.dSYM |
| 7195 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7196 | conftest$ac_exeext conftest.$ac_ext |
| 7197 | LIBS=$ac_check_lib_save_LIBS |
| 7198 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7199 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 7200 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7201 | if test "x$ac_cv_lib_socket_connect" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7202 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7203 | fi |
| 7204 | |
| 7205 | fi |
| 7206 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7207 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7208 | { $as_echo "$as_me:$LINENO: checking for remove" >&5 |
| 7209 | $as_echo_n "checking for remove... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7210 | if test "${ac_cv_func_remove+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7211 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7212 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7213 | cat >conftest.$ac_ext <<_ACEOF |
| 7214 | /* confdefs.h. */ |
| 7215 | _ACEOF |
| 7216 | cat confdefs.h >>conftest.$ac_ext |
| 7217 | cat >>conftest.$ac_ext <<_ACEOF |
| 7218 | /* end confdefs.h. */ |
| 7219 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 7220 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7221 | #define remove innocuous_remove |
| 7222 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7223 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7224 | which can conflict with char remove (); below. |
| 7225 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7226 | <limits.h> exists even on freestanding compilers. */ |
| 7227 | |
| 7228 | #ifdef __STDC__ |
| 7229 | # include <limits.h> |
| 7230 | #else |
| 7231 | # include <assert.h> |
| 7232 | #endif |
| 7233 | |
| 7234 | #undef remove |
| 7235 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7236 | /* Override any GCC internal prototype to avoid an error. |
| 7237 | Use char because int might match the return type of a GCC |
| 7238 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7239 | #ifdef __cplusplus |
| 7240 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7241 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7242 | char remove (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7243 | /* The GNU C library defines this for functions which it implements |
| 7244 | to always fail with ENOSYS. Some functions are actually named |
| 7245 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7246 | #if defined __stub_remove || defined __stub___remove |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7247 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7248 | #endif |
| 7249 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7250 | int |
| 7251 | main () |
| 7252 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7253 | return remove (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7254 | ; |
| 7255 | return 0; |
| 7256 | } |
| 7257 | _ACEOF |
| 7258 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7259 | if { (ac_try="$ac_link" |
| 7260 | case "(($ac_try" in |
| 7261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7262 | *) ac_try_echo=$ac_try;; |
| 7263 | esac |
| 7264 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7265 | $as_echo "$ac_try_echo") >&5 |
| 7266 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7267 | ac_status=$? |
| 7268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7269 | rm -f conftest.er1 |
| 7270 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7271 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7272 | (exit $ac_status); } && { |
| 7273 | test -z "$ac_c_werror_flag" || |
| 7274 | test ! -s conftest.err |
| 7275 | } && test -s conftest$ac_exeext && { |
| 7276 | test "$cross_compiling" = yes || |
| 7277 | $as_test_x conftest$ac_exeext |
| 7278 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7279 | ac_cv_func_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7280 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7281 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7282 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7283 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7284 | ac_cv_func_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7285 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7286 | |
| 7287 | rm -rf conftest.dSYM |
| 7288 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7289 | conftest$ac_exeext conftest.$ac_ext |
| 7290 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7291 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 7292 | $as_echo "$ac_cv_func_remove" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7293 | |
| 7294 | if test $ac_cv_func_remove = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7295 | { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 7296 | $as_echo_n "checking for remove in -lposix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7297 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7298 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7299 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7300 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7301 | LIBS="-lposix $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7302 | cat >conftest.$ac_ext <<_ACEOF |
| 7303 | /* confdefs.h. */ |
| 7304 | _ACEOF |
| 7305 | cat confdefs.h >>conftest.$ac_ext |
| 7306 | cat >>conftest.$ac_ext <<_ACEOF |
| 7307 | /* end confdefs.h. */ |
| 7308 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7309 | /* Override any GCC internal prototype to avoid an error. |
| 7310 | Use char because int might match the return type of a GCC |
| 7311 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7312 | #ifdef __cplusplus |
| 7313 | extern "C" |
| 7314 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7315 | char remove (); |
| 7316 | int |
| 7317 | main () |
| 7318 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7319 | return remove (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7320 | ; |
| 7321 | return 0; |
| 7322 | } |
| 7323 | _ACEOF |
| 7324 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7325 | if { (ac_try="$ac_link" |
| 7326 | case "(($ac_try" in |
| 7327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7328 | *) ac_try_echo=$ac_try;; |
| 7329 | esac |
| 7330 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7331 | $as_echo "$ac_try_echo") >&5 |
| 7332 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7333 | ac_status=$? |
| 7334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7335 | rm -f conftest.er1 |
| 7336 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7337 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7338 | (exit $ac_status); } && { |
| 7339 | test -z "$ac_c_werror_flag" || |
| 7340 | test ! -s conftest.err |
| 7341 | } && test -s conftest$ac_exeext && { |
| 7342 | test "$cross_compiling" = yes || |
| 7343 | $as_test_x conftest$ac_exeext |
| 7344 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7345 | ac_cv_lib_posix_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7346 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7347 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7348 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7349 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7350 | ac_cv_lib_posix_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7351 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7352 | |
| 7353 | rm -rf conftest.dSYM |
| 7354 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7355 | conftest$ac_exeext conftest.$ac_ext |
| 7356 | LIBS=$ac_check_lib_save_LIBS |
| 7357 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7358 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 7359 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7360 | if test "x$ac_cv_lib_posix_remove" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7361 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7362 | fi |
| 7363 | |
| 7364 | fi |
| 7365 | |
| 7366 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7367 | { $as_echo "$as_me:$LINENO: checking for shmat" >&5 |
| 7368 | $as_echo_n "checking for shmat... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7369 | if test "${ac_cv_func_shmat+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7370 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7371 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7372 | cat >conftest.$ac_ext <<_ACEOF |
| 7373 | /* confdefs.h. */ |
| 7374 | _ACEOF |
| 7375 | cat confdefs.h >>conftest.$ac_ext |
| 7376 | cat >>conftest.$ac_ext <<_ACEOF |
| 7377 | /* end confdefs.h. */ |
| 7378 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 7379 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7380 | #define shmat innocuous_shmat |
| 7381 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7382 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7383 | which can conflict with char shmat (); below. |
| 7384 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7385 | <limits.h> exists even on freestanding compilers. */ |
| 7386 | |
| 7387 | #ifdef __STDC__ |
| 7388 | # include <limits.h> |
| 7389 | #else |
| 7390 | # include <assert.h> |
| 7391 | #endif |
| 7392 | |
| 7393 | #undef shmat |
| 7394 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7395 | /* Override any GCC internal prototype to avoid an error. |
| 7396 | Use char because int might match the return type of a GCC |
| 7397 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7398 | #ifdef __cplusplus |
| 7399 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7400 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7401 | char shmat (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7402 | /* The GNU C library defines this for functions which it implements |
| 7403 | to always fail with ENOSYS. Some functions are actually named |
| 7404 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7405 | #if defined __stub_shmat || defined __stub___shmat |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7406 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7407 | #endif |
| 7408 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7409 | int |
| 7410 | main () |
| 7411 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7412 | return shmat (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7413 | ; |
| 7414 | return 0; |
| 7415 | } |
| 7416 | _ACEOF |
| 7417 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7418 | if { (ac_try="$ac_link" |
| 7419 | case "(($ac_try" in |
| 7420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7421 | *) ac_try_echo=$ac_try;; |
| 7422 | esac |
| 7423 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7424 | $as_echo "$ac_try_echo") >&5 |
| 7425 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7426 | ac_status=$? |
| 7427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7428 | rm -f conftest.er1 |
| 7429 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7430 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7431 | (exit $ac_status); } && { |
| 7432 | test -z "$ac_c_werror_flag" || |
| 7433 | test ! -s conftest.err |
| 7434 | } && test -s conftest$ac_exeext && { |
| 7435 | test "$cross_compiling" = yes || |
| 7436 | $as_test_x conftest$ac_exeext |
| 7437 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7438 | ac_cv_func_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7439 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7440 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7441 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7442 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7443 | ac_cv_func_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7444 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7445 | |
| 7446 | rm -rf conftest.dSYM |
| 7447 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7448 | conftest$ac_exeext conftest.$ac_ext |
| 7449 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7450 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 7451 | $as_echo "$ac_cv_func_shmat" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7452 | |
| 7453 | if test $ac_cv_func_shmat = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7454 | { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 7455 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7456 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7457 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7458 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7459 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7460 | LIBS="-lipc $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7461 | cat >conftest.$ac_ext <<_ACEOF |
| 7462 | /* confdefs.h. */ |
| 7463 | _ACEOF |
| 7464 | cat confdefs.h >>conftest.$ac_ext |
| 7465 | cat >>conftest.$ac_ext <<_ACEOF |
| 7466 | /* end confdefs.h. */ |
| 7467 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7468 | /* Override any GCC internal prototype to avoid an error. |
| 7469 | Use char because int might match the return type of a GCC |
| 7470 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7471 | #ifdef __cplusplus |
| 7472 | extern "C" |
| 7473 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7474 | char shmat (); |
| 7475 | int |
| 7476 | main () |
| 7477 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7478 | return shmat (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7479 | ; |
| 7480 | return 0; |
| 7481 | } |
| 7482 | _ACEOF |
| 7483 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7484 | if { (ac_try="$ac_link" |
| 7485 | case "(($ac_try" in |
| 7486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7487 | *) ac_try_echo=$ac_try;; |
| 7488 | esac |
| 7489 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7490 | $as_echo "$ac_try_echo") >&5 |
| 7491 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7492 | ac_status=$? |
| 7493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7494 | rm -f conftest.er1 |
| 7495 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7497 | (exit $ac_status); } && { |
| 7498 | test -z "$ac_c_werror_flag" || |
| 7499 | test ! -s conftest.err |
| 7500 | } && test -s conftest$ac_exeext && { |
| 7501 | test "$cross_compiling" = yes || |
| 7502 | $as_test_x conftest$ac_exeext |
| 7503 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7504 | ac_cv_lib_ipc_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7505 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7506 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7507 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7508 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7509 | ac_cv_lib_ipc_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7510 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7511 | |
| 7512 | rm -rf conftest.dSYM |
| 7513 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7514 | conftest$ac_exeext conftest.$ac_ext |
| 7515 | LIBS=$ac_check_lib_save_LIBS |
| 7516 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7517 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 7518 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7519 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7520 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7521 | fi |
| 7522 | |
| 7523 | fi |
| 7524 | fi |
| 7525 | |
| 7526 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7527 | ac_save_LDFLAGS=$LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7528 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 7529 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 7530 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 7531 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 7532 | # These have to be linked with before -lX11, unlike the other |
| 7533 | # libraries we check for below, so use a different variable. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7534 | # John Interrante, Karl Berry |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7535 | { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 7536 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7537 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7538 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7539 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7540 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7541 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7542 | cat >conftest.$ac_ext <<_ACEOF |
| 7543 | /* confdefs.h. */ |
| 7544 | _ACEOF |
| 7545 | cat confdefs.h >>conftest.$ac_ext |
| 7546 | cat >>conftest.$ac_ext <<_ACEOF |
| 7547 | /* end confdefs.h. */ |
| 7548 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7549 | /* Override any GCC internal prototype to avoid an error. |
| 7550 | Use char because int might match the return type of a GCC |
| 7551 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7552 | #ifdef __cplusplus |
| 7553 | extern "C" |
| 7554 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7555 | char IceConnectionNumber (); |
| 7556 | int |
| 7557 | main () |
| 7558 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7559 | return IceConnectionNumber (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7560 | ; |
| 7561 | return 0; |
| 7562 | } |
| 7563 | _ACEOF |
| 7564 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7565 | if { (ac_try="$ac_link" |
| 7566 | case "(($ac_try" in |
| 7567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7568 | *) ac_try_echo=$ac_try;; |
| 7569 | esac |
| 7570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7571 | $as_echo "$ac_try_echo") >&5 |
| 7572 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7573 | ac_status=$? |
| 7574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7575 | rm -f conftest.er1 |
| 7576 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7578 | (exit $ac_status); } && { |
| 7579 | test -z "$ac_c_werror_flag" || |
| 7580 | test ! -s conftest.err |
| 7581 | } && test -s conftest$ac_exeext && { |
| 7582 | test "$cross_compiling" = yes || |
| 7583 | $as_test_x conftest$ac_exeext |
| 7584 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7585 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7586 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7587 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7588 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7589 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7590 | ac_cv_lib_ICE_IceConnectionNumber=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7591 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7592 | |
| 7593 | rm -rf conftest.dSYM |
| 7594 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7595 | conftest$ac_exeext conftest.$ac_ext |
| 7596 | LIBS=$ac_check_lib_save_LIBS |
| 7597 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7598 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 7599 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7600 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7601 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7602 | fi |
| 7603 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7604 | LDFLAGS=$ac_save_LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7605 | |
| 7606 | fi |
| 7607 | |
| 7608 | |
| 7609 | if test "$OS390Unix" = "yes"; then |
| 7610 | CFLAGS="$CFLAGS -W c,dll" |
| 7611 | LDFLAGS="$LDFLAGS -W l,dll" |
| 7612 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 7613 | fi |
| 7614 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7615 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7616 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 7617 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7618 | { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 |
| 7619 | $as_echo "Corrected X libraries to $x_libraries" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7620 | X_LIBS="$X_LIBS -L$x_libraries" |
| 7621 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 7622 | uname -r | grep '^5' >/dev/null; then |
| 7623 | X_LIBS="$X_LIBS -R $x_libraries" |
| 7624 | fi |
| 7625 | fi |
| 7626 | |
| 7627 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 7628 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7629 | { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 |
| 7630 | $as_echo "Corrected X includes to $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7631 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 7632 | fi |
| 7633 | |
| 7634 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 7635 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 7636 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 7637 | |
| 7638 | |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 7639 | { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7640 | $as_echo_n "checking if X11 header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7641 | cflags_save=$CFLAGS |
| 7642 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7643 | cat >conftest.$ac_ext <<_ACEOF |
| 7644 | /* confdefs.h. */ |
| 7645 | _ACEOF |
| 7646 | cat confdefs.h >>conftest.$ac_ext |
| 7647 | cat >>conftest.$ac_ext <<_ACEOF |
| 7648 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7649 | #include <X11/Xlib.h> |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 7650 | #include <X11/Intrinsic.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7651 | int |
| 7652 | main () |
| 7653 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7654 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7655 | ; |
| 7656 | return 0; |
| 7657 | } |
| 7658 | _ACEOF |
| 7659 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7660 | if { (ac_try="$ac_compile" |
| 7661 | case "(($ac_try" in |
| 7662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7663 | *) ac_try_echo=$ac_try;; |
| 7664 | esac |
| 7665 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7666 | $as_echo "$ac_try_echo") >&5 |
| 7667 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7668 | ac_status=$? |
| 7669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7670 | rm -f conftest.er1 |
| 7671 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7673 | (exit $ac_status); } && { |
| 7674 | test -z "$ac_c_werror_flag" || |
| 7675 | test ! -s conftest.err |
| 7676 | } && test -s conftest.$ac_objext; then |
| 7677 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 7678 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7679 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7680 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7682 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7683 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7684 | $as_echo "no" >&6; }; no_x=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7685 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7686 | |
| 7687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7688 | CFLAGS=$cflags_save |
| 7689 | |
| 7690 | if test "${no_x-no}" = yes; then |
| 7691 | with_x=no |
| 7692 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7693 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7694 | #define HAVE_X11 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7695 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7696 | |
| 7697 | X_LIB="-lXt -lX11"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7698 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7699 | |
| 7700 | ac_save_LDFLAGS="$LDFLAGS" |
| 7701 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 7702 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7703 | { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 7704 | $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7705 | if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7706 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7707 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7708 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7709 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7710 | cat >conftest.$ac_ext <<_ACEOF |
| 7711 | /* confdefs.h. */ |
| 7712 | _ACEOF |
| 7713 | cat confdefs.h >>conftest.$ac_ext |
| 7714 | cat >>conftest.$ac_ext <<_ACEOF |
| 7715 | /* end confdefs.h. */ |
| 7716 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7717 | /* Override any GCC internal prototype to avoid an error. |
| 7718 | Use char because int might match the return type of a GCC |
| 7719 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7720 | #ifdef __cplusplus |
| 7721 | extern "C" |
| 7722 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7723 | char _XdmcpAuthDoIt (); |
| 7724 | int |
| 7725 | main () |
| 7726 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7727 | return _XdmcpAuthDoIt (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7728 | ; |
| 7729 | return 0; |
| 7730 | } |
| 7731 | _ACEOF |
| 7732 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7733 | if { (ac_try="$ac_link" |
| 7734 | case "(($ac_try" in |
| 7735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7736 | *) ac_try_echo=$ac_try;; |
| 7737 | esac |
| 7738 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7739 | $as_echo "$ac_try_echo") >&5 |
| 7740 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7741 | ac_status=$? |
| 7742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7743 | rm -f conftest.er1 |
| 7744 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7745 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7746 | (exit $ac_status); } && { |
| 7747 | test -z "$ac_c_werror_flag" || |
| 7748 | test ! -s conftest.err |
| 7749 | } && test -s conftest$ac_exeext && { |
| 7750 | test "$cross_compiling" = yes || |
| 7751 | $as_test_x conftest$ac_exeext |
| 7752 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7753 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7754 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7755 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7756 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7757 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7758 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7759 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7760 | |
| 7761 | rm -rf conftest.dSYM |
| 7762 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7763 | conftest$ac_exeext conftest.$ac_ext |
| 7764 | LIBS=$ac_check_lib_save_LIBS |
| 7765 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7766 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 |
| 7767 | $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7768 | if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7769 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7770 | fi |
| 7771 | |
| 7772 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7773 | { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 |
| 7774 | $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7775 | if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7776 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7777 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7778 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7779 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7780 | cat >conftest.$ac_ext <<_ACEOF |
| 7781 | /* confdefs.h. */ |
| 7782 | _ACEOF |
| 7783 | cat confdefs.h >>conftest.$ac_ext |
| 7784 | cat >>conftest.$ac_ext <<_ACEOF |
| 7785 | /* end confdefs.h. */ |
| 7786 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7787 | /* Override any GCC internal prototype to avoid an error. |
| 7788 | Use char because int might match the return type of a GCC |
| 7789 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7790 | #ifdef __cplusplus |
| 7791 | extern "C" |
| 7792 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7793 | char IceOpenConnection (); |
| 7794 | int |
| 7795 | main () |
| 7796 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7797 | return IceOpenConnection (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7798 | ; |
| 7799 | return 0; |
| 7800 | } |
| 7801 | _ACEOF |
| 7802 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7803 | if { (ac_try="$ac_link" |
| 7804 | case "(($ac_try" in |
| 7805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7806 | *) ac_try_echo=$ac_try;; |
| 7807 | esac |
| 7808 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7809 | $as_echo "$ac_try_echo") >&5 |
| 7810 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7811 | ac_status=$? |
| 7812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7813 | rm -f conftest.er1 |
| 7814 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7815 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7816 | (exit $ac_status); } && { |
| 7817 | test -z "$ac_c_werror_flag" || |
| 7818 | test ! -s conftest.err |
| 7819 | } && test -s conftest$ac_exeext && { |
| 7820 | test "$cross_compiling" = yes || |
| 7821 | $as_test_x conftest$ac_exeext |
| 7822 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7823 | ac_cv_lib_ICE_IceOpenConnection=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7824 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7825 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7826 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7827 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7828 | ac_cv_lib_ICE_IceOpenConnection=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7829 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7830 | |
| 7831 | rm -rf conftest.dSYM |
| 7832 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7833 | conftest$ac_exeext conftest.$ac_ext |
| 7834 | LIBS=$ac_check_lib_save_LIBS |
| 7835 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7836 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 7837 | $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7838 | if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7839 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7840 | fi |
| 7841 | |
| 7842 | |
| 7843 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7844 | { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 7845 | $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7846 | if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7847 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7848 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7849 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7850 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7851 | cat >conftest.$ac_ext <<_ACEOF |
| 7852 | /* confdefs.h. */ |
| 7853 | _ACEOF |
| 7854 | cat confdefs.h >>conftest.$ac_ext |
| 7855 | cat >>conftest.$ac_ext <<_ACEOF |
| 7856 | /* end confdefs.h. */ |
| 7857 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7858 | /* Override any GCC internal prototype to avoid an error. |
| 7859 | Use char because int might match the return type of a GCC |
| 7860 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7861 | #ifdef __cplusplus |
| 7862 | extern "C" |
| 7863 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7864 | char XpmCreatePixmapFromData (); |
| 7865 | int |
| 7866 | main () |
| 7867 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7868 | return XpmCreatePixmapFromData (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7869 | ; |
| 7870 | return 0; |
| 7871 | } |
| 7872 | _ACEOF |
| 7873 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7874 | if { (ac_try="$ac_link" |
| 7875 | case "(($ac_try" in |
| 7876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7877 | *) ac_try_echo=$ac_try;; |
| 7878 | esac |
| 7879 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7880 | $as_echo "$ac_try_echo") >&5 |
| 7881 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7882 | ac_status=$? |
| 7883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7884 | rm -f conftest.er1 |
| 7885 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7886 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7887 | (exit $ac_status); } && { |
| 7888 | test -z "$ac_c_werror_flag" || |
| 7889 | test ! -s conftest.err |
| 7890 | } && test -s conftest$ac_exeext && { |
| 7891 | test "$cross_compiling" = yes || |
| 7892 | $as_test_x conftest$ac_exeext |
| 7893 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7894 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7895 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7896 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7897 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7898 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7899 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7900 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7901 | |
| 7902 | rm -rf conftest.dSYM |
| 7903 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7904 | conftest$ac_exeext conftest.$ac_ext |
| 7905 | LIBS=$ac_check_lib_save_LIBS |
| 7906 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7907 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 7908 | $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7909 | if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7910 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7911 | fi |
| 7912 | |
| 7913 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7914 | { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 |
| 7915 | $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] | 7916 | cflags_save=$CFLAGS |
| 7917 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7918 | cat >conftest.$ac_ext <<_ACEOF |
| 7919 | /* confdefs.h. */ |
| 7920 | _ACEOF |
| 7921 | cat confdefs.h >>conftest.$ac_ext |
| 7922 | cat >>conftest.$ac_ext <<_ACEOF |
| 7923 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7924 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7925 | int |
| 7926 | main () |
| 7927 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7928 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7929 | ; |
| 7930 | return 0; |
| 7931 | } |
| 7932 | _ACEOF |
| 7933 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7934 | if { (ac_try="$ac_compile" |
| 7935 | case "(($ac_try" in |
| 7936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7937 | *) ac_try_echo=$ac_try;; |
| 7938 | esac |
| 7939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7940 | $as_echo "$ac_try_echo") >&5 |
| 7941 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7942 | ac_status=$? |
| 7943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7944 | rm -f conftest.er1 |
| 7945 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7947 | (exit $ac_status); } && { |
| 7948 | test -z "$ac_c_werror_flag" || |
| 7949 | test ! -s conftest.err |
| 7950 | } && test -s conftest.$ac_objext; then |
| 7951 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7952 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7953 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7954 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7956 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7957 | CFLAGS="$CFLAGS -Wno-implicit-int" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7958 | cat >conftest.$ac_ext <<_ACEOF |
| 7959 | /* confdefs.h. */ |
| 7960 | _ACEOF |
| 7961 | cat confdefs.h >>conftest.$ac_ext |
| 7962 | cat >>conftest.$ac_ext <<_ACEOF |
| 7963 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7964 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7965 | int |
| 7966 | main () |
| 7967 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7968 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7969 | ; |
| 7970 | return 0; |
| 7971 | } |
| 7972 | _ACEOF |
| 7973 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7974 | if { (ac_try="$ac_compile" |
| 7975 | case "(($ac_try" in |
| 7976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7977 | *) ac_try_echo=$ac_try;; |
| 7978 | esac |
| 7979 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7980 | $as_echo "$ac_try_echo") >&5 |
| 7981 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7982 | ac_status=$? |
| 7983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7984 | rm -f conftest.er1 |
| 7985 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7986 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7987 | (exit $ac_status); } && { |
| 7988 | test -z "$ac_c_werror_flag" || |
| 7989 | test ! -s conftest.err |
| 7990 | } && test -s conftest.$ac_objext; then |
| 7991 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 7992 | $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7993 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7994 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7996 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7997 | { $as_echo "$as_me:$LINENO: result: test failed" >&5 |
| 7998 | $as_echo "test failed" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7999 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8000 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8001 | |
| 8002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8003 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8004 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8005 | |
| 8006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8007 | CFLAGS=$cflags_save |
| 8008 | |
| 8009 | LDFLAGS="$ac_save_LDFLAGS" |
| 8010 | |
Bram Moolenaar | 4bdbbf7 | 2009-05-21 21:27:43 +0000 | [diff] [blame] | 8011 | { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5 |
| 8012 | $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } |
| 8013 | if test "${ac_cv_small_wchar_t+set}" = set; then |
| 8014 | $as_echo_n "(cached) " >&6 |
| 8015 | else |
| 8016 | if test "$cross_compiling" = yes; then |
| 8017 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 8018 | $as_echo "$as_me: error: failed to compile test program" >&2;} |
| 8019 | { (exit 1); exit 1; }; } |
| 8020 | else |
| 8021 | cat >conftest.$ac_ext <<_ACEOF |
| 8022 | /* confdefs.h. */ |
| 8023 | _ACEOF |
| 8024 | cat confdefs.h >>conftest.$ac_ext |
| 8025 | cat >>conftest.$ac_ext <<_ACEOF |
| 8026 | /* end confdefs.h. */ |
| 8027 | |
| 8028 | #include <X11/Xlib.h> |
| 8029 | #if STDC_HEADERS |
| 8030 | # include <stdlib.h> |
| 8031 | # include <stddef.h> |
| 8032 | #endif |
| 8033 | main() |
| 8034 | { |
| 8035 | if (sizeof(wchar_t) <= 2) |
| 8036 | exit(1); |
| 8037 | exit(0); |
| 8038 | } |
| 8039 | _ACEOF |
| 8040 | rm -f conftest$ac_exeext |
| 8041 | if { (ac_try="$ac_link" |
| 8042 | case "(($ac_try" in |
| 8043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8044 | *) ac_try_echo=$ac_try;; |
| 8045 | esac |
| 8046 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8047 | $as_echo "$ac_try_echo") >&5 |
| 8048 | (eval "$ac_link") 2>&5 |
| 8049 | ac_status=$? |
| 8050 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8051 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8052 | { (case "(($ac_try" in |
| 8053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8054 | *) ac_try_echo=$ac_try;; |
| 8055 | esac |
| 8056 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8057 | $as_echo "$ac_try_echo") >&5 |
| 8058 | (eval "$ac_try") 2>&5 |
| 8059 | ac_status=$? |
| 8060 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8061 | (exit $ac_status); }; }; then |
| 8062 | ac_cv_small_wchar_t="no" |
| 8063 | else |
| 8064 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8065 | $as_echo "$as_me: failed program was:" >&5 |
| 8066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8067 | |
| 8068 | ( exit $ac_status ) |
| 8069 | ac_cv_small_wchar_t="yes" |
| 8070 | fi |
| 8071 | rm -rf conftest.dSYM |
| 8072 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8073 | fi |
| 8074 | |
| 8075 | |
| 8076 | fi |
| 8077 | |
| 8078 | { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5 |
| 8079 | $as_echo "$ac_cv_small_wchar_t" >&6; } |
| 8080 | if test "x$ac_cv_small_wchar_t" = "xyes" ; then |
| 8081 | cat >>confdefs.h <<\_ACEOF |
| 8082 | #define SMALL_WCHAR_T 1 |
| 8083 | _ACEOF |
| 8084 | |
| 8085 | fi |
| 8086 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8087 | fi |
| 8088 | fi |
| 8089 | |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 8090 | 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] | 8091 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8092 | { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5 |
| 8093 | $as_echo_n "checking --enable-gui argument... " >&6; } |
| 8094 | # Check whether --enable-gui was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8095 | if test "${enable_gui+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8096 | enableval=$enable_gui; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8097 | else |
| 8098 | enable_gui="auto" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8099 | fi |
| 8100 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8101 | |
| 8102 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 8103 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 8104 | |
| 8105 | SKIP_GTK=YES |
| 8106 | SKIP_GTK2=YES |
| 8107 | SKIP_GNOME=YES |
| 8108 | SKIP_MOTIF=YES |
| 8109 | SKIP_ATHENA=YES |
| 8110 | SKIP_NEXTAW=YES |
| 8111 | SKIP_PHOTON=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8112 | SKIP_CARBON=YES |
| 8113 | GUITYPE=NONE |
| 8114 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8115 | if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8116 | SKIP_PHOTON= |
| 8117 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8118 | no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8119 | $as_echo "no GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8120 | SKIP_PHOTON=YES ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8121 | yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 8122 | $as_echo "yes - automatic GUI support" >&6; } ;; |
| 8123 | auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 8124 | $as_echo "auto - automatic GUI support" >&6; } ;; |
| 8125 | photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5 |
| 8126 | $as_echo "Photon GUI support" >&6; } ;; |
| 8127 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8128 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8129 | SKIP_PHOTON=YES ;; |
| 8130 | esac |
| 8131 | |
| 8132 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 8133 | SKIP_CARBON= |
| 8134 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8135 | no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8136 | $as_echo "no GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8137 | SKIP_CARBON=YES ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8138 | yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 8139 | $as_echo "yes - automatic GUI support" >&6; } ;; |
| 8140 | auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 8141 | $as_echo "auto - automatic GUI support" >&6; } ;; |
| 8142 | carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5 |
| 8143 | $as_echo "Carbon GUI support" >&6; } ;; |
| 8144 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8145 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8146 | SKIP_CARBON=YES ;; |
| 8147 | esac |
| 8148 | |
| 8149 | else |
| 8150 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8151 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8152 | no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8153 | $as_echo "no GUI support" >&6; } ;; |
| 8154 | yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 |
| 8155 | $as_echo "yes/auto - automatic GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8156 | SKIP_GTK= |
| 8157 | SKIP_GTK2= |
| 8158 | SKIP_GNOME= |
| 8159 | SKIP_MOTIF= |
| 8160 | SKIP_ATHENA= |
| 8161 | SKIP_NEXTAW= |
| 8162 | SKIP_CARBON=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8163 | gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 |
| 8164 | $as_echo "GTK+ 1.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8165 | SKIP_GTK=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8166 | gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 |
| 8167 | $as_echo "GTK+ 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8168 | SKIP_GTK= |
| 8169 | SKIP_GTK2=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8170 | gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 |
| 8171 | $as_echo "GNOME 1.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8172 | SKIP_GNOME= |
| 8173 | SKIP_GTK=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8174 | gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 |
| 8175 | $as_echo "GNOME 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8176 | SKIP_GNOME= |
| 8177 | SKIP_GTK= |
| 8178 | SKIP_GTK2=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8179 | motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5 |
| 8180 | $as_echo "Motif GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8181 | SKIP_MOTIF=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8182 | athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5 |
| 8183 | $as_echo "Athena GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8184 | SKIP_ATHENA=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8185 | nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 |
| 8186 | $as_echo "neXtaw GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8187 | SKIP_NEXTAW=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8188 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8189 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8190 | esac |
| 8191 | |
| 8192 | fi |
| 8193 | |
| 8194 | 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] | 8195 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 |
| 8196 | $as_echo_n "checking whether or not to look for GTK... " >&6; } |
| 8197 | # Check whether --enable-gtk-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8198 | if test "${enable_gtk_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8199 | enableval=$enable_gtk_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8200 | else |
| 8201 | enable_gtk_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8202 | fi |
| 8203 | |
| 8204 | { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 |
| 8205 | $as_echo "$enable_gtk_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8206 | if test "x$enable_gtk_check" = "xno"; then |
| 8207 | SKIP_GTK=YES |
| 8208 | SKIP_GNOME=YES |
| 8209 | fi |
| 8210 | fi |
| 8211 | |
| 8212 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 8213 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8214 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 |
| 8215 | $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } |
| 8216 | # Check whether --enable-gtk2-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8217 | if test "${enable_gtk2_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8218 | enableval=$enable_gtk2_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8219 | else |
| 8220 | enable_gtk2_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8221 | fi |
| 8222 | |
| 8223 | { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 |
| 8224 | $as_echo "$enable_gtk2_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8225 | if test "x$enable_gtk2_check" = "xno"; then |
| 8226 | SKIP_GTK2=YES |
| 8227 | fi |
| 8228 | fi |
| 8229 | |
| 8230 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 8231 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8232 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 |
| 8233 | $as_echo_n "checking whether or not to look for GNOME... " >&6; } |
| 8234 | # Check whether --enable-gnome-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8235 | if test "${enable_gnome_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8236 | enableval=$enable_gnome_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8237 | else |
| 8238 | enable_gnome_check="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8239 | fi |
| 8240 | |
| 8241 | { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 |
| 8242 | $as_echo "$enable_gnome_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8243 | if test "x$enable_gnome_check" = "xno"; then |
| 8244 | SKIP_GNOME=YES |
| 8245 | fi |
| 8246 | fi |
| 8247 | |
| 8248 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8249 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 |
| 8250 | $as_echo_n "checking whether or not to look for Motif... " >&6; } |
| 8251 | # Check whether --enable-motif-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8252 | if test "${enable_motif_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8253 | enableval=$enable_motif_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8254 | else |
| 8255 | enable_motif_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8256 | fi |
| 8257 | |
| 8258 | { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5 |
| 8259 | $as_echo "$enable_motif_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8260 | if test "x$enable_motif_check" = "xno"; then |
| 8261 | SKIP_MOTIF=YES |
| 8262 | fi |
| 8263 | fi |
| 8264 | |
| 8265 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8266 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 |
| 8267 | $as_echo_n "checking whether or not to look for Athena... " >&6; } |
| 8268 | # Check whether --enable-athena-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8269 | if test "${enable_athena_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8270 | enableval=$enable_athena_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8271 | else |
| 8272 | enable_athena_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8273 | fi |
| 8274 | |
| 8275 | { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5 |
| 8276 | $as_echo "$enable_athena_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8277 | if test "x$enable_athena_check" = "xno"; then |
| 8278 | SKIP_ATHENA=YES |
| 8279 | fi |
| 8280 | fi |
| 8281 | |
| 8282 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8283 | { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 |
| 8284 | $as_echo_n "checking whether or not to look for neXtaw... " >&6; } |
| 8285 | # Check whether --enable-nextaw-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8286 | if test "${enable_nextaw_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8287 | enableval=$enable_nextaw_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8288 | else |
| 8289 | enable_nextaw_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8290 | fi |
| 8291 | |
| 8292 | { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 |
| 8293 | $as_echo "$enable_nextaw_check" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8294 | if test "x$enable_nextaw_check" = "xno"; then |
| 8295 | SKIP_NEXTAW=YES |
| 8296 | fi |
| 8297 | fi |
| 8298 | |
| 8299 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8300 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 |
| 8301 | $as_echo_n "checking whether or not to look for Carbon... " >&6; } |
| 8302 | # Check whether --enable-carbon-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8303 | if test "${enable_carbon_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8304 | enableval=$enable_carbon_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8305 | else |
| 8306 | enable_carbon_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8307 | fi |
| 8308 | |
| 8309 | { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 |
| 8310 | $as_echo "$enable_carbon_check" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8311 | if test "x$enable_carbon_check" = "xno"; then |
| 8312 | SKIP_CARBON=YES |
| 8313 | fi |
| 8314 | fi |
| 8315 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 8316 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8317 | 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] | 8318 | { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5 |
| 8319 | $as_echo_n "checking for Carbon GUI... " >&6; } |
| 8320 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8321 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8322 | GUITYPE=CARBONGUI |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 8323 | if test "$VIMNAME" = "vim"; then |
| 8324 | VIMNAME=Vim |
| 8325 | fi |
Bram Moolenaar | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 8326 | |
| 8327 | if test x$prefix = xNONE; then |
| 8328 | prefix=/Applications |
| 8329 | fi |
| 8330 | |
| 8331 | datadir='${prefix}/Vim.app/Contents/Resources' |
| 8332 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8333 | SKIP_GTK=YES; |
| 8334 | SKIP_GTK2=YES; |
| 8335 | SKIP_GNOME=YES; |
| 8336 | SKIP_MOTIF=YES; |
| 8337 | SKIP_ATHENA=YES; |
| 8338 | SKIP_NEXTAW=YES; |
| 8339 | SKIP_PHOTON=YES; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8340 | SKIP_CARBON=YES |
| 8341 | fi |
| 8342 | |
| 8343 | |
| 8344 | |
| 8345 | |
| 8346 | |
| 8347 | |
| 8348 | |
| 8349 | |
| 8350 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8351 | if test -z "$SKIP_GTK"; then |
| 8352 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8353 | { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
| 8354 | $as_echo_n "checking --with-gtk-prefix argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8355 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8356 | # Check whether --with-gtk-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8357 | if test "${with_gtk_prefix+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8358 | withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8359 | $as_echo "$gtk_config_prefix" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8360 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8361 | gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8362 | $as_echo "no" >&6; } |
| 8363 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8364 | |
| 8365 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8366 | { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
| 8367 | $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; } |
| 8368 | |
| 8369 | # Check whether --with-gtk-exec-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8370 | if test "${with_gtk_exec_prefix+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8371 | withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8372 | $as_echo "$gtk_config_prefix" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8373 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8374 | gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8375 | $as_echo "no" >&6; } |
| 8376 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8377 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8378 | |
| 8379 | { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
| 8380 | $as_echo_n "checking --disable-gtktest argument... " >&6; } |
| 8381 | # Check whether --enable-gtktest was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8382 | if test "${enable_gtktest+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8383 | enableval=$enable_gtktest; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8384 | else |
| 8385 | enable_gtktest=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8386 | fi |
| 8387 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8388 | if test "x$enable_gtktest" = "xyes" ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8389 | { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
| 8390 | $as_echo "gtk test enabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8391 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8392 | { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
| 8393 | $as_echo "gtk test disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8394 | fi |
| 8395 | |
| 8396 | if test "x$gtk_config_prefix" != "x" ; then |
| 8397 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 8398 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 8399 | fi |
| 8400 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 8401 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 8402 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 8403 | fi |
| 8404 | if test "X$GTK_CONFIG" = "X"; then |
| 8405 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 8406 | set dummy gtk-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8407 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8408 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8409 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8410 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8411 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8412 | case $GTK_CONFIG in |
| 8413 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8414 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 8415 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8416 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8418 | for as_dir in $PATH |
| 8419 | do |
| 8420 | IFS=$as_save_IFS |
| 8421 | test -z "$as_dir" && as_dir=. |
| 8422 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8423 | 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] | 8424 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8425 | $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] | 8426 | break 2 |
| 8427 | fi |
| 8428 | done |
| 8429 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8430 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8431 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8432 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 8433 | ;; |
| 8434 | esac |
| 8435 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8436 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8437 | if test -n "$GTK_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8438 | { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
| 8439 | $as_echo "$GTK_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8440 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8441 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8442 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8443 | fi |
| 8444 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8445 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8446 | if test "X$GTK_CONFIG" = "Xno"; then |
| 8447 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 8448 | set dummy gtk12-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8449 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8450 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8451 | if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8452 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8453 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8454 | case $GTK12_CONFIG in |
| 8455 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8456 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 8457 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8458 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8460 | for as_dir in $PATH |
| 8461 | do |
| 8462 | IFS=$as_save_IFS |
| 8463 | test -z "$as_dir" && as_dir=. |
| 8464 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8465 | 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] | 8466 | ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8467 | $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] | 8468 | break 2 |
| 8469 | fi |
| 8470 | done |
| 8471 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8472 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8473 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8474 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 8475 | ;; |
| 8476 | esac |
| 8477 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8478 | GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8479 | if test -n "$GTK12_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8480 | { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
| 8481 | $as_echo "$GTK12_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8482 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8483 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8484 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8485 | fi |
| 8486 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8487 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8488 | GTK_CONFIG="$GTK12_CONFIG" |
| 8489 | fi |
| 8490 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8491 | { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
| 8492 | $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8493 | fi |
| 8494 | if test "X$PKG_CONFIG" = "X"; then |
| 8495 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8496 | set dummy pkg-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8497 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8498 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8499 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8500 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8501 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8502 | case $PKG_CONFIG in |
| 8503 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8504 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8505 | ;; |
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 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8508 | for as_dir in $PATH |
| 8509 | do |
| 8510 | IFS=$as_save_IFS |
| 8511 | test -z "$as_dir" && as_dir=. |
| 8512 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8513 | 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] | 8514 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8515 | $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] | 8516 | break 2 |
| 8517 | fi |
| 8518 | done |
| 8519 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8520 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8521 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8522 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 8523 | ;; |
| 8524 | esac |
| 8525 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8526 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8527 | if test -n "$PKG_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8528 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 8529 | $as_echo "$PKG_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8530 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8531 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8532 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8533 | fi |
| 8534 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8535 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8536 | fi |
| 8537 | |
| 8538 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 8539 | if test "X$SKIP_GTK2" != "XYES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8540 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8541 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8542 | { |
| 8543 | min_gtk_version=2.2.0 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8544 | { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8545 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8546 | no_gtk="" |
| 8547 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8548 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8549 | { |
| 8550 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8551 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8552 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8553 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8554 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8555 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8556 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8557 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8558 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8559 | } |
| 8560 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8561 | { |
| 8562 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8563 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8564 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8565 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8566 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8567 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8568 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8569 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8570 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8571 | } |
| 8572 | else |
| 8573 | no_gtk=yes |
| 8574 | fi |
| 8575 | |
| 8576 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8577 | { |
| 8578 | ac_save_CFLAGS="$CFLAGS" |
| 8579 | ac_save_LIBS="$LIBS" |
| 8580 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8581 | LIBS="$LIBS $GTK_LIBS" |
| 8582 | |
| 8583 | rm -f conf.gtktest |
| 8584 | if test "$cross_compiling" = yes; then |
| 8585 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8586 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8587 | cat >conftest.$ac_ext <<_ACEOF |
| 8588 | /* confdefs.h. */ |
| 8589 | _ACEOF |
| 8590 | cat confdefs.h >>conftest.$ac_ext |
| 8591 | cat >>conftest.$ac_ext <<_ACEOF |
| 8592 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8593 | |
| 8594 | #include <gtk/gtk.h> |
| 8595 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8596 | #if STDC_HEADERS |
| 8597 | # include <stdlib.h> |
| 8598 | # include <stddef.h> |
| 8599 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8600 | |
| 8601 | int |
| 8602 | main () |
| 8603 | { |
| 8604 | int major, minor, micro; |
| 8605 | char *tmp_version; |
| 8606 | |
| 8607 | system ("touch conf.gtktest"); |
| 8608 | |
| 8609 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8610 | tmp_version = g_strdup("$min_gtk_version"); |
| 8611 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8612 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8613 | exit(1); |
| 8614 | } |
| 8615 | |
| 8616 | if ((gtk_major_version > major) || |
| 8617 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8618 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8619 | (gtk_micro_version >= micro))) |
| 8620 | { |
| 8621 | return 0; |
| 8622 | } |
| 8623 | return 1; |
| 8624 | } |
| 8625 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8626 | _ACEOF |
| 8627 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8628 | if { (ac_try="$ac_link" |
| 8629 | case "(($ac_try" in |
| 8630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8631 | *) ac_try_echo=$ac_try;; |
| 8632 | esac |
| 8633 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8634 | $as_echo "$ac_try_echo") >&5 |
| 8635 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8636 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8638 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8639 | { (case "(($ac_try" in |
| 8640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8641 | *) ac_try_echo=$ac_try;; |
| 8642 | esac |
| 8643 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8644 | $as_echo "$ac_try_echo") >&5 |
| 8645 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8646 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8647 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8648 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8649 | : |
| 8650 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8651 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8652 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8653 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8654 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8655 | ( exit $ac_status ) |
| 8656 | no_gtk=yes |
| 8657 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8658 | rm -rf conftest.dSYM |
| 8659 | 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] | 8660 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8661 | |
| 8662 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8663 | CFLAGS="$ac_save_CFLAGS" |
| 8664 | LIBS="$ac_save_LIBS" |
| 8665 | } |
| 8666 | fi |
| 8667 | if test "x$no_gtk" = x ; then |
| 8668 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8669 | { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8670 | $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] | 8671 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8672 | { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8673 | $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] | 8674 | fi |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8675 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 8676 | GTK_LIBNAME="$GTK_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8677 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8678 | else |
| 8679 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8680 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8681 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8682 | GTK_CFLAGS="" |
| 8683 | GTK_LIBS="" |
| 8684 | : |
| 8685 | } |
| 8686 | fi |
| 8687 | } |
| 8688 | else |
| 8689 | GTK_CFLAGS="" |
| 8690 | GTK_LIBS="" |
| 8691 | : |
| 8692 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8693 | |
| 8694 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8695 | rm -f conf.gtktest |
| 8696 | |
| 8697 | if test "x$GTK_CFLAGS" != "x"; then |
| 8698 | SKIP_ATHENA=YES |
| 8699 | SKIP_NEXTAW=YES |
| 8700 | SKIP_MOTIF=YES |
| 8701 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8702 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8703 | fi |
| 8704 | fi |
| 8705 | |
| 8706 | if test "x$GUITYPE" != "xGTK"; then |
| 8707 | SKIP_GTK2=YES |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8708 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8709 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8710 | { |
| 8711 | min_gtk_version=1.1.16 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8712 | { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8713 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8714 | no_gtk="" |
| 8715 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8716 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8717 | { |
| 8718 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8719 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8720 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8721 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8722 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8723 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8724 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8725 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8726 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8727 | } |
| 8728 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8729 | { |
| 8730 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8731 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8732 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8733 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8734 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8735 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8736 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8737 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8738 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8739 | } |
| 8740 | else |
| 8741 | no_gtk=yes |
| 8742 | fi |
| 8743 | |
| 8744 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8745 | { |
| 8746 | ac_save_CFLAGS="$CFLAGS" |
| 8747 | ac_save_LIBS="$LIBS" |
| 8748 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8749 | LIBS="$LIBS $GTK_LIBS" |
| 8750 | |
| 8751 | rm -f conf.gtktest |
| 8752 | if test "$cross_compiling" = yes; then |
| 8753 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8754 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8755 | cat >conftest.$ac_ext <<_ACEOF |
| 8756 | /* confdefs.h. */ |
| 8757 | _ACEOF |
| 8758 | cat confdefs.h >>conftest.$ac_ext |
| 8759 | cat >>conftest.$ac_ext <<_ACEOF |
| 8760 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8761 | |
| 8762 | #include <gtk/gtk.h> |
| 8763 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8764 | #if STDC_HEADERS |
| 8765 | # include <stdlib.h> |
| 8766 | # include <stddef.h> |
| 8767 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8768 | |
| 8769 | int |
| 8770 | main () |
| 8771 | { |
| 8772 | int major, minor, micro; |
| 8773 | char *tmp_version; |
| 8774 | |
| 8775 | system ("touch conf.gtktest"); |
| 8776 | |
| 8777 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8778 | tmp_version = g_strdup("$min_gtk_version"); |
| 8779 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8780 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8781 | exit(1); |
| 8782 | } |
| 8783 | |
| 8784 | if ((gtk_major_version > major) || |
| 8785 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8786 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8787 | (gtk_micro_version >= micro))) |
| 8788 | { |
| 8789 | return 0; |
| 8790 | } |
| 8791 | return 1; |
| 8792 | } |
| 8793 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8794 | _ACEOF |
| 8795 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8796 | if { (ac_try="$ac_link" |
| 8797 | case "(($ac_try" in |
| 8798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8799 | *) ac_try_echo=$ac_try;; |
| 8800 | esac |
| 8801 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8802 | $as_echo "$ac_try_echo") >&5 |
| 8803 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8804 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8806 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8807 | { (case "(($ac_try" in |
| 8808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8809 | *) ac_try_echo=$ac_try;; |
| 8810 | esac |
| 8811 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8812 | $as_echo "$ac_try_echo") >&5 |
| 8813 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8814 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8815 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8816 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8817 | : |
| 8818 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8819 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8820 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8821 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8822 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8823 | ( exit $ac_status ) |
| 8824 | no_gtk=yes |
| 8825 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8826 | rm -rf conftest.dSYM |
| 8827 | 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] | 8828 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8829 | |
| 8830 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8831 | CFLAGS="$ac_save_CFLAGS" |
| 8832 | LIBS="$ac_save_LIBS" |
| 8833 | } |
| 8834 | fi |
| 8835 | if test "x$no_gtk" = x ; then |
| 8836 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8837 | { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8838 | $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] | 8839 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8840 | { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8841 | $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] | 8842 | fi |
| 8843 | GTK_LIBNAME="$GTK_LIBS" |
| 8844 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8845 | else |
| 8846 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8847 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8848 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8849 | GTK_CFLAGS="" |
| 8850 | GTK_LIBS="" |
| 8851 | : |
| 8852 | } |
| 8853 | fi |
| 8854 | } |
| 8855 | else |
| 8856 | GTK_CFLAGS="" |
| 8857 | GTK_LIBS="" |
| 8858 | : |
| 8859 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8860 | |
| 8861 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8862 | rm -f conf.gtktest |
| 8863 | |
| 8864 | if test "x$GTK_CFLAGS" != "x"; then |
| 8865 | SKIP_ATHENA=YES |
| 8866 | SKIP_NEXTAW=YES |
| 8867 | SKIP_MOTIF=YES |
| 8868 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8869 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8870 | fi |
| 8871 | fi |
| 8872 | fi |
| 8873 | if test "x$GUITYPE" = "xGTK"; then |
| 8874 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 8875 | -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] | 8876 | { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
| 8877 | $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] | 8878 | else |
| 8879 | { |
| 8880 | if test "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8881 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8882 | #define HAVE_GTK2 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8883 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8884 | |
| 8885 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 8886 | || test "0$gtk_minor_version" -ge 2 \ |
| 8887 | || test "0$gtk_major_version" -gt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8888 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8889 | #define HAVE_GTK_MULTIHEAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8890 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8891 | |
| 8892 | fi |
| 8893 | fi |
| 8894 | if test -z "$SKIP_GNOME"; then |
| 8895 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8896 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8897 | |
| 8898 | |
| 8899 | |
| 8900 | |
| 8901 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8902 | # Check whether --with-gnome-includes was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8903 | if test "${with_gnome_includes+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8904 | withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8905 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8906 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8907 | |
| 8908 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8909 | |
| 8910 | # Check whether --with-gnome-libs was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8911 | if test "${with_gnome_libs+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8912 | withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8913 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8914 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8915 | |
| 8916 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8917 | |
| 8918 | # Check whether --with-gnome was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8919 | if test "${with_gnome+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8920 | withval=$with_gnome; if test x$withval = xyes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8921 | want_gnome=yes |
| 8922 | have_gnome=yes |
| 8923 | else |
| 8924 | if test "x$withval" = xno; then |
| 8925 | want_gnome=no |
| 8926 | else |
| 8927 | want_gnome=yes |
| 8928 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 8929 | CFLAGS="$CFLAGS -I$withval/include" |
| 8930 | gnome_prefix=$withval/lib |
| 8931 | fi |
| 8932 | fi |
| 8933 | else |
| 8934 | want_gnome=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8935 | fi |
| 8936 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8937 | |
| 8938 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 8939 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8940 | { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
| 8941 | $as_echo_n "checking for libgnomeui-2.0... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8942 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8943 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8944 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8945 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 8946 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 8947 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8948 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8949 | { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5 |
| 8950 | $as_echo_n "checking for FreeBSD... " >&6; } |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8951 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8952 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8953 | $as_echo "yes" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 8954 | GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8955 | GNOME_LIBS="$GNOME_LIBS -pthread" |
| 8956 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8957 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8958 | $as_echo "no" >&6; } |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8959 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8960 | have_gnome=yes |
| 8961 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8962 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 8963 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8964 | if test "x" = xfail; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8965 | { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
| 8966 | $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] | 8967 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8968 | fi |
| 8969 | fi |
| 8970 | } |
| 8971 | elif test "x$want_gnome" = xyes; then |
| 8972 | { |
| 8973 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 8974 | set dummy gnome-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8975 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8976 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8977 | if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8978 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8979 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8980 | case $GNOME_CONFIG in |
| 8981 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8982 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 8983 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8984 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8986 | for as_dir in $PATH |
| 8987 | do |
| 8988 | IFS=$as_save_IFS |
| 8989 | test -z "$as_dir" && as_dir=. |
| 8990 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8991 | 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] | 8992 | ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8993 | $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] | 8994 | break 2 |
| 8995 | fi |
| 8996 | done |
| 8997 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8998 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8999 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9000 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 9001 | ;; |
| 9002 | esac |
| 9003 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9004 | GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9005 | if test -n "$GNOME_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9006 | { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
| 9007 | $as_echo "$GNOME_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9008 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9009 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9010 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9011 | fi |
| 9012 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9013 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9014 | if test "$GNOME_CONFIG" = "no"; then |
| 9015 | no_gnome_config="yes" |
| 9016 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9017 | { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
| 9018 | $as_echo_n "checking if $GNOME_CONFIG works... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9019 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9020 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9021 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9022 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 9023 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 9024 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 9025 | have_gnome=yes |
| 9026 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9027 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9028 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9029 | no_gnome_config="yes" |
| 9030 | fi |
| 9031 | fi |
| 9032 | |
| 9033 | if test x$exec_prefix = xNONE; then |
| 9034 | if test x$prefix = xNONE; then |
| 9035 | gnome_prefix=$ac_default_prefix/lib |
| 9036 | else |
| 9037 | gnome_prefix=$prefix/lib |
| 9038 | fi |
| 9039 | else |
| 9040 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 9041 | fi |
| 9042 | |
| 9043 | if test "$no_gnome_config" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9044 | { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 9045 | $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9046 | if test -f $gnome_prefix/gnomeConf.sh; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9047 | { $as_echo "$as_me:$LINENO: result: found" >&5 |
| 9048 | $as_echo "found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9049 | echo "loading gnome configuration from" \ |
| 9050 | "$gnome_prefix/gnomeConf.sh" |
| 9051 | . $gnome_prefix/gnomeConf.sh |
| 9052 | have_gnome=yes |
| 9053 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9054 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 9055 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9056 | if test x = xfail; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9057 | { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
| 9058 | $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] | 9059 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9060 | fi |
| 9061 | fi |
| 9062 | fi |
| 9063 | } |
| 9064 | fi |
| 9065 | |
| 9066 | if test x$have_gnome = xyes ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9067 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9068 | #define FEAT_GUI_GNOME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9069 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9070 | |
| 9071 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 9072 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 9073 | fi |
| 9074 | } |
| 9075 | fi |
| 9076 | } |
| 9077 | fi |
| 9078 | fi |
| 9079 | fi |
| 9080 | |
| 9081 | |
| 9082 | if test -z "$SKIP_MOTIF"; then |
| 9083 | 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" |
| 9084 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 9085 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9086 | { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
| 9087 | $as_echo_n "checking for location of Motif GUI includes... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9088 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 9089 | GUI_INC_LOC= |
| 9090 | for try in $gui_includes; do |
| 9091 | if test -f "$try/Xm/Xm.h"; then |
| 9092 | GUI_INC_LOC=$try |
| 9093 | fi |
| 9094 | done |
| 9095 | if test -n "$GUI_INC_LOC"; then |
| 9096 | if test "$GUI_INC_LOC" = /usr/include; then |
| 9097 | GUI_INC_LOC= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9098 | { $as_echo "$as_me:$LINENO: result: in default path" >&5 |
| 9099 | $as_echo "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9100 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9101 | { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
| 9102 | $as_echo "$GUI_INC_LOC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9103 | fi |
| 9104 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9105 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 9106 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9107 | SKIP_MOTIF=YES |
| 9108 | fi |
| 9109 | fi |
| 9110 | |
| 9111 | |
| 9112 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9113 | { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
| 9114 | $as_echo_n "checking --with-motif-lib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9115 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9116 | # Check whether --with-motif-lib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9117 | if test "${with_motif_lib+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9118 | withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" |
| 9119 | fi |
| 9120 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9121 | |
| 9122 | if test -n "$MOTIF_LIBNAME"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9123 | { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
| 9124 | $as_echo "$MOTIF_LIBNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9125 | GUI_LIB_LOC= |
| 9126 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9127 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9128 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9129 | |
| 9130 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 9131 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9132 | { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
| 9133 | $as_echo_n "checking for location of Motif GUI libs... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9134 | 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" |
| 9135 | GUI_LIB_LOC= |
| 9136 | for try in $gui_libs; do |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 9137 | 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] | 9138 | if test -f "$libtry"; then |
| 9139 | GUI_LIB_LOC=$try |
| 9140 | fi |
| 9141 | done |
| 9142 | done |
| 9143 | if test -n "$GUI_LIB_LOC"; then |
| 9144 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 9145 | GUI_LIB_LOC= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9146 | { $as_echo "$as_me:$LINENO: result: in default path" >&5 |
| 9147 | $as_echo "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9148 | else |
| 9149 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9150 | { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
| 9151 | $as_echo "$GUI_LIB_LOC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9152 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 9153 | uname -r | grep '^5' >/dev/null; then |
| 9154 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 9155 | fi |
| 9156 | fi |
| 9157 | fi |
| 9158 | MOTIF_LIBNAME=-lXm |
| 9159 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9160 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 9161 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9162 | SKIP_MOTIF=YES |
| 9163 | fi |
| 9164 | fi |
| 9165 | fi |
| 9166 | |
| 9167 | if test -z "$SKIP_MOTIF"; then |
| 9168 | SKIP_ATHENA=YES |
| 9169 | SKIP_NEXTAW=YES |
| 9170 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9171 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9172 | fi |
| 9173 | |
| 9174 | |
| 9175 | GUI_X_LIBS= |
| 9176 | |
| 9177 | if test -z "$SKIP_ATHENA"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9178 | { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
| 9179 | $as_echo_n "checking if Athena header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9180 | cflags_save=$CFLAGS |
| 9181 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9182 | cat >conftest.$ac_ext <<_ACEOF |
| 9183 | /* confdefs.h. */ |
| 9184 | _ACEOF |
| 9185 | cat confdefs.h >>conftest.$ac_ext |
| 9186 | cat >>conftest.$ac_ext <<_ACEOF |
| 9187 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9188 | |
| 9189 | #include <X11/Intrinsic.h> |
| 9190 | #include <X11/Xaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9191 | int |
| 9192 | main () |
| 9193 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9194 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9195 | ; |
| 9196 | return 0; |
| 9197 | } |
| 9198 | _ACEOF |
| 9199 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9200 | if { (ac_try="$ac_compile" |
| 9201 | case "(($ac_try" in |
| 9202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9203 | *) ac_try_echo=$ac_try;; |
| 9204 | esac |
| 9205 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9206 | $as_echo "$ac_try_echo") >&5 |
| 9207 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9208 | ac_status=$? |
| 9209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9210 | rm -f conftest.er1 |
| 9211 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9212 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9213 | (exit $ac_status); } && { |
| 9214 | test -z "$ac_c_werror_flag" || |
| 9215 | test ! -s conftest.err |
| 9216 | } && test -s conftest.$ac_objext; then |
| 9217 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9218 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9219 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9220 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9222 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9223 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9224 | $as_echo "no" >&6; }; SKIP_ATHENA=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9225 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9226 | |
| 9227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9228 | CFLAGS=$cflags_save |
| 9229 | fi |
| 9230 | |
| 9231 | if test -z "$SKIP_ATHENA"; then |
| 9232 | GUITYPE=ATHENA |
| 9233 | fi |
| 9234 | |
| 9235 | if test -z "$SKIP_NEXTAW"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9236 | { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
| 9237 | $as_echo_n "checking if neXtaw header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9238 | cflags_save=$CFLAGS |
| 9239 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9240 | cat >conftest.$ac_ext <<_ACEOF |
| 9241 | /* confdefs.h. */ |
| 9242 | _ACEOF |
| 9243 | cat confdefs.h >>conftest.$ac_ext |
| 9244 | cat >>conftest.$ac_ext <<_ACEOF |
| 9245 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9246 | |
| 9247 | #include <X11/Intrinsic.h> |
| 9248 | #include <X11/neXtaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9249 | int |
| 9250 | main () |
| 9251 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9252 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9253 | ; |
| 9254 | return 0; |
| 9255 | } |
| 9256 | _ACEOF |
| 9257 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9258 | if { (ac_try="$ac_compile" |
| 9259 | case "(($ac_try" in |
| 9260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9261 | *) ac_try_echo=$ac_try;; |
| 9262 | esac |
| 9263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9264 | $as_echo "$ac_try_echo") >&5 |
| 9265 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9266 | ac_status=$? |
| 9267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9268 | rm -f conftest.er1 |
| 9269 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9271 | (exit $ac_status); } && { |
| 9272 | test -z "$ac_c_werror_flag" || |
| 9273 | test ! -s conftest.err |
| 9274 | } && test -s conftest.$ac_objext; then |
| 9275 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9276 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9277 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9278 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9280 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9281 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9282 | $as_echo "no" >&6; }; SKIP_NEXTAW=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9283 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9284 | |
| 9285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9286 | CFLAGS=$cflags_save |
| 9287 | fi |
| 9288 | |
| 9289 | if test -z "$SKIP_NEXTAW"; then |
| 9290 | GUITYPE=NEXTAW |
| 9291 | fi |
| 9292 | |
| 9293 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 9294 | if test -n "$GUI_INC_LOC"; then |
| 9295 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 9296 | fi |
| 9297 | if test -n "$GUI_LIB_LOC"; then |
| 9298 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 9299 | fi |
| 9300 | |
| 9301 | ldflags_save=$LDFLAGS |
| 9302 | LDFLAGS="$X_LIBS $LDFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9303 | { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 9304 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9305 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9306 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9307 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9308 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9309 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9310 | cat >conftest.$ac_ext <<_ACEOF |
| 9311 | /* confdefs.h. */ |
| 9312 | _ACEOF |
| 9313 | cat confdefs.h >>conftest.$ac_ext |
| 9314 | cat >>conftest.$ac_ext <<_ACEOF |
| 9315 | /* end confdefs.h. */ |
| 9316 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9317 | /* Override any GCC internal prototype to avoid an error. |
| 9318 | Use char because int might match the return type of a GCC |
| 9319 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9320 | #ifdef __cplusplus |
| 9321 | extern "C" |
| 9322 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9323 | char XShapeQueryExtension (); |
| 9324 | int |
| 9325 | main () |
| 9326 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9327 | return XShapeQueryExtension (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9328 | ; |
| 9329 | return 0; |
| 9330 | } |
| 9331 | _ACEOF |
| 9332 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9333 | if { (ac_try="$ac_link" |
| 9334 | case "(($ac_try" in |
| 9335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9336 | *) ac_try_echo=$ac_try;; |
| 9337 | esac |
| 9338 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9339 | $as_echo "$ac_try_echo") >&5 |
| 9340 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9341 | ac_status=$? |
| 9342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9343 | rm -f conftest.er1 |
| 9344 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9345 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9346 | (exit $ac_status); } && { |
| 9347 | test -z "$ac_c_werror_flag" || |
| 9348 | test ! -s conftest.err |
| 9349 | } && test -s conftest$ac_exeext && { |
| 9350 | test "$cross_compiling" = yes || |
| 9351 | $as_test_x conftest$ac_exeext |
| 9352 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9353 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9354 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9355 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9356 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9357 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9358 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9359 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9360 | |
| 9361 | rm -rf conftest.dSYM |
| 9362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9363 | conftest$ac_exeext conftest.$ac_ext |
| 9364 | LIBS=$ac_check_lib_save_LIBS |
| 9365 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9366 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 9367 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9368 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9369 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9370 | fi |
| 9371 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9372 | { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
| 9373 | $as_echo_n "checking for wslen in -lw... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9374 | if test "${ac_cv_lib_w_wslen+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9375 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9376 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9377 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9378 | 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] | 9379 | cat >conftest.$ac_ext <<_ACEOF |
| 9380 | /* confdefs.h. */ |
| 9381 | _ACEOF |
| 9382 | cat confdefs.h >>conftest.$ac_ext |
| 9383 | cat >>conftest.$ac_ext <<_ACEOF |
| 9384 | /* end confdefs.h. */ |
| 9385 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9386 | /* Override any GCC internal prototype to avoid an error. |
| 9387 | Use char because int might match the return type of a GCC |
| 9388 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9389 | #ifdef __cplusplus |
| 9390 | extern "C" |
| 9391 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9392 | char wslen (); |
| 9393 | int |
| 9394 | main () |
| 9395 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9396 | return wslen (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9397 | ; |
| 9398 | return 0; |
| 9399 | } |
| 9400 | _ACEOF |
| 9401 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9402 | if { (ac_try="$ac_link" |
| 9403 | case "(($ac_try" in |
| 9404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9405 | *) ac_try_echo=$ac_try;; |
| 9406 | esac |
| 9407 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9408 | $as_echo "$ac_try_echo") >&5 |
| 9409 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9410 | ac_status=$? |
| 9411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9412 | rm -f conftest.er1 |
| 9413 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9414 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9415 | (exit $ac_status); } && { |
| 9416 | test -z "$ac_c_werror_flag" || |
| 9417 | test ! -s conftest.err |
| 9418 | } && test -s conftest$ac_exeext && { |
| 9419 | test "$cross_compiling" = yes || |
| 9420 | $as_test_x conftest$ac_exeext |
| 9421 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9422 | ac_cv_lib_w_wslen=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9423 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9424 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9425 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9426 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9427 | ac_cv_lib_w_wslen=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9428 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9429 | |
| 9430 | rm -rf conftest.dSYM |
| 9431 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9432 | conftest$ac_exeext conftest.$ac_ext |
| 9433 | LIBS=$ac_check_lib_save_LIBS |
| 9434 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9435 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 |
| 9436 | $as_echo "$ac_cv_lib_w_wslen" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9437 | if test "x$ac_cv_lib_w_wslen" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9438 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9439 | fi |
| 9440 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9441 | { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
| 9442 | $as_echo_n "checking for dlsym in -ldl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9443 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9444 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9445 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9446 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9447 | 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] | 9448 | cat >conftest.$ac_ext <<_ACEOF |
| 9449 | /* confdefs.h. */ |
| 9450 | _ACEOF |
| 9451 | cat confdefs.h >>conftest.$ac_ext |
| 9452 | cat >>conftest.$ac_ext <<_ACEOF |
| 9453 | /* end confdefs.h. */ |
| 9454 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9455 | /* Override any GCC internal prototype to avoid an error. |
| 9456 | Use char because int might match the return type of a GCC |
| 9457 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9458 | #ifdef __cplusplus |
| 9459 | extern "C" |
| 9460 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9461 | char dlsym (); |
| 9462 | int |
| 9463 | main () |
| 9464 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9465 | return dlsym (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9466 | ; |
| 9467 | return 0; |
| 9468 | } |
| 9469 | _ACEOF |
| 9470 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9471 | if { (ac_try="$ac_link" |
| 9472 | case "(($ac_try" in |
| 9473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9474 | *) ac_try_echo=$ac_try;; |
| 9475 | esac |
| 9476 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9477 | $as_echo "$ac_try_echo") >&5 |
| 9478 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9479 | ac_status=$? |
| 9480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9481 | rm -f conftest.er1 |
| 9482 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9483 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9484 | (exit $ac_status); } && { |
| 9485 | test -z "$ac_c_werror_flag" || |
| 9486 | test ! -s conftest.err |
| 9487 | } && test -s conftest$ac_exeext && { |
| 9488 | test "$cross_compiling" = yes || |
| 9489 | $as_test_x conftest$ac_exeext |
| 9490 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9491 | ac_cv_lib_dl_dlsym=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9492 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9493 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9494 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9495 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9496 | ac_cv_lib_dl_dlsym=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9497 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9498 | |
| 9499 | rm -rf conftest.dSYM |
| 9500 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9501 | conftest$ac_exeext conftest.$ac_ext |
| 9502 | LIBS=$ac_check_lib_save_LIBS |
| 9503 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9504 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
| 9505 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9506 | if test "x$ac_cv_lib_dl_dlsym" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9507 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9508 | fi |
| 9509 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9510 | { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 9511 | $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9512 | if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9513 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9514 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9515 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9516 | 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] | 9517 | cat >conftest.$ac_ext <<_ACEOF |
| 9518 | /* confdefs.h. */ |
| 9519 | _ACEOF |
| 9520 | cat confdefs.h >>conftest.$ac_ext |
| 9521 | cat >>conftest.$ac_ext <<_ACEOF |
| 9522 | /* end confdefs.h. */ |
| 9523 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9524 | /* Override any GCC internal prototype to avoid an error. |
| 9525 | Use char because int might match the return type of a GCC |
| 9526 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9527 | #ifdef __cplusplus |
| 9528 | extern "C" |
| 9529 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9530 | char XmuCreateStippledPixmap (); |
| 9531 | int |
| 9532 | main () |
| 9533 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9534 | return XmuCreateStippledPixmap (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9535 | ; |
| 9536 | return 0; |
| 9537 | } |
| 9538 | _ACEOF |
| 9539 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9540 | if { (ac_try="$ac_link" |
| 9541 | case "(($ac_try" in |
| 9542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9543 | *) ac_try_echo=$ac_try;; |
| 9544 | esac |
| 9545 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9546 | $as_echo "$ac_try_echo") >&5 |
| 9547 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9548 | ac_status=$? |
| 9549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9550 | rm -f conftest.er1 |
| 9551 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9552 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9553 | (exit $ac_status); } && { |
| 9554 | test -z "$ac_c_werror_flag" || |
| 9555 | test ! -s conftest.err |
| 9556 | } && test -s conftest$ac_exeext && { |
| 9557 | test "$cross_compiling" = yes || |
| 9558 | $as_test_x conftest$ac_exeext |
| 9559 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9560 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9561 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9562 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9563 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9564 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9565 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9566 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9567 | |
| 9568 | rm -rf conftest.dSYM |
| 9569 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9570 | conftest$ac_exeext conftest.$ac_ext |
| 9571 | LIBS=$ac_check_lib_save_LIBS |
| 9572 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9573 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 9574 | $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9575 | if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9576 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9577 | fi |
| 9578 | |
| 9579 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9580 | { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
| 9581 | $as_echo_n "checking for XpEndJob in -lXp... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9582 | if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9583 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9584 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9585 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9586 | 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] | 9587 | cat >conftest.$ac_ext <<_ACEOF |
| 9588 | /* confdefs.h. */ |
| 9589 | _ACEOF |
| 9590 | cat confdefs.h >>conftest.$ac_ext |
| 9591 | cat >>conftest.$ac_ext <<_ACEOF |
| 9592 | /* end confdefs.h. */ |
| 9593 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9594 | /* Override any GCC internal prototype to avoid an error. |
| 9595 | Use char because int might match the return type of a GCC |
| 9596 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9597 | #ifdef __cplusplus |
| 9598 | extern "C" |
| 9599 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9600 | char XpEndJob (); |
| 9601 | int |
| 9602 | main () |
| 9603 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9604 | return XpEndJob (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9605 | ; |
| 9606 | return 0; |
| 9607 | } |
| 9608 | _ACEOF |
| 9609 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9610 | if { (ac_try="$ac_link" |
| 9611 | case "(($ac_try" in |
| 9612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9613 | *) ac_try_echo=$ac_try;; |
| 9614 | esac |
| 9615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9616 | $as_echo "$ac_try_echo") >&5 |
| 9617 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9618 | ac_status=$? |
| 9619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9620 | rm -f conftest.er1 |
| 9621 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9623 | (exit $ac_status); } && { |
| 9624 | test -z "$ac_c_werror_flag" || |
| 9625 | test ! -s conftest.err |
| 9626 | } && test -s conftest$ac_exeext && { |
| 9627 | test "$cross_compiling" = yes || |
| 9628 | $as_test_x conftest$ac_exeext |
| 9629 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9630 | ac_cv_lib_Xp_XpEndJob=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9631 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9632 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9633 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9634 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9635 | ac_cv_lib_Xp_XpEndJob=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9636 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9637 | |
| 9638 | rm -rf conftest.dSYM |
| 9639 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9640 | conftest$ac_exeext conftest.$ac_ext |
| 9641 | LIBS=$ac_check_lib_save_LIBS |
| 9642 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9643 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 9644 | $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9645 | if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9646 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9647 | fi |
| 9648 | |
| 9649 | fi |
| 9650 | LDFLAGS=$ldflags_save |
| 9651 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9652 | { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
| 9653 | $as_echo_n "checking for extra X11 defines... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9654 | NARROW_PROTO= |
| 9655 | rm -fr conftestdir |
| 9656 | if mkdir conftestdir; then |
| 9657 | cd conftestdir |
| 9658 | cat > Imakefile <<'EOF' |
| 9659 | acfindx: |
| 9660 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 9661 | EOF |
| 9662 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 9663 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 9664 | fi |
| 9665 | cd .. |
| 9666 | rm -fr conftestdir |
| 9667 | fi |
| 9668 | if test -z "$NARROW_PROTO"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9669 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9670 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9671 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9672 | { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
| 9673 | $as_echo "$NARROW_PROTO" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9674 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9675 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9676 | fi |
| 9677 | |
| 9678 | if test "$enable_xsmp" = "yes"; then |
| 9679 | cppflags_save=$CPPFLAGS |
| 9680 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9681 | |
| 9682 | for ac_header in X11/SM/SMlib.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9683 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9684 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9685 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9686 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9687 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9688 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9689 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9690 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9691 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9692 | $as_echo "$as_val"'` |
| 9693 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9694 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9695 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9696 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9697 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9698 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9699 | cat >conftest.$ac_ext <<_ACEOF |
| 9700 | /* confdefs.h. */ |
| 9701 | _ACEOF |
| 9702 | cat confdefs.h >>conftest.$ac_ext |
| 9703 | cat >>conftest.$ac_ext <<_ACEOF |
| 9704 | /* end confdefs.h. */ |
| 9705 | $ac_includes_default |
| 9706 | #include <$ac_header> |
| 9707 | _ACEOF |
| 9708 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9709 | if { (ac_try="$ac_compile" |
| 9710 | case "(($ac_try" in |
| 9711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9712 | *) ac_try_echo=$ac_try;; |
| 9713 | esac |
| 9714 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9715 | $as_echo "$ac_try_echo") >&5 |
| 9716 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9717 | ac_status=$? |
| 9718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9719 | rm -f conftest.er1 |
| 9720 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9721 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9722 | (exit $ac_status); } && { |
| 9723 | test -z "$ac_c_werror_flag" || |
| 9724 | test ! -s conftest.err |
| 9725 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9726 | ac_header_compiler=yes |
| 9727 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9728 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9730 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9731 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9732 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9733 | |
| 9734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9735 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9736 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9737 | |
| 9738 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9739 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9740 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9741 | cat >conftest.$ac_ext <<_ACEOF |
| 9742 | /* confdefs.h. */ |
| 9743 | _ACEOF |
| 9744 | cat confdefs.h >>conftest.$ac_ext |
| 9745 | cat >>conftest.$ac_ext <<_ACEOF |
| 9746 | /* end confdefs.h. */ |
| 9747 | #include <$ac_header> |
| 9748 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9749 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9750 | case "(($ac_try" in |
| 9751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9752 | *) ac_try_echo=$ac_try;; |
| 9753 | esac |
| 9754 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9755 | $as_echo "$ac_try_echo") >&5 |
| 9756 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9757 | ac_status=$? |
| 9758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9759 | rm -f conftest.er1 |
| 9760 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9762 | (exit $ac_status); } >/dev/null && { |
| 9763 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9764 | test ! -s conftest.err |
| 9765 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9766 | ac_header_preproc=yes |
| 9767 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9768 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9770 | |
| 9771 | ac_header_preproc=no |
| 9772 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9773 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9774 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9775 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9776 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9777 | |
| 9778 | # So? What about this header? |
| 9779 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9780 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9781 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9782 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9783 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9784 | $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] | 9785 | ac_header_preproc=yes |
| 9786 | ;; |
| 9787 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9788 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9789 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9790 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9791 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9792 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9793 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9794 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9795 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9796 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9797 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9798 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9799 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9800 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9801 | ;; |
| 9802 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9803 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9804 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9805 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9806 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9807 | else |
| 9808 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9809 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9810 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9811 | $as_echo "$as_val"'` |
| 9812 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9813 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9814 | |
| 9815 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9816 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 9817 | $as_echo "$as_val"'` |
| 9818 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9819 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9820 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9821 | _ACEOF |
| 9822 | |
| 9823 | fi |
| 9824 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9825 | done |
| 9826 | |
| 9827 | CPPFLAGS=$cppflags_save |
| 9828 | fi |
| 9829 | |
| 9830 | |
| 9831 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 9832 | cppflags_save=$CPPFLAGS |
| 9833 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9834 | |
| 9835 | |
| 9836 | for ac_header in X11/xpm.h X11/Sunkeysym.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9837 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9838 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9839 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9840 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9841 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9842 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9843 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9844 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9845 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9846 | $as_echo "$as_val"'` |
| 9847 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9848 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9849 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9850 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9851 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9852 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9853 | cat >conftest.$ac_ext <<_ACEOF |
| 9854 | /* confdefs.h. */ |
| 9855 | _ACEOF |
| 9856 | cat confdefs.h >>conftest.$ac_ext |
| 9857 | cat >>conftest.$ac_ext <<_ACEOF |
| 9858 | /* end confdefs.h. */ |
| 9859 | $ac_includes_default |
| 9860 | #include <$ac_header> |
| 9861 | _ACEOF |
| 9862 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9863 | if { (ac_try="$ac_compile" |
| 9864 | case "(($ac_try" in |
| 9865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9866 | *) ac_try_echo=$ac_try;; |
| 9867 | esac |
| 9868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9869 | $as_echo "$ac_try_echo") >&5 |
| 9870 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9871 | ac_status=$? |
| 9872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9873 | rm -f conftest.er1 |
| 9874 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9876 | (exit $ac_status); } && { |
| 9877 | test -z "$ac_c_werror_flag" || |
| 9878 | test ! -s conftest.err |
| 9879 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9880 | ac_header_compiler=yes |
| 9881 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9882 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9884 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9885 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9886 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9887 | |
| 9888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9889 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9890 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9891 | |
| 9892 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9893 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9894 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9895 | cat >conftest.$ac_ext <<_ACEOF |
| 9896 | /* confdefs.h. */ |
| 9897 | _ACEOF |
| 9898 | cat confdefs.h >>conftest.$ac_ext |
| 9899 | cat >>conftest.$ac_ext <<_ACEOF |
| 9900 | /* end confdefs.h. */ |
| 9901 | #include <$ac_header> |
| 9902 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9903 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9904 | case "(($ac_try" in |
| 9905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9906 | *) ac_try_echo=$ac_try;; |
| 9907 | esac |
| 9908 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9909 | $as_echo "$ac_try_echo") >&5 |
| 9910 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9911 | ac_status=$? |
| 9912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9913 | rm -f conftest.er1 |
| 9914 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9915 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9916 | (exit $ac_status); } >/dev/null && { |
| 9917 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9918 | test ! -s conftest.err |
| 9919 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9920 | ac_header_preproc=yes |
| 9921 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9922 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9924 | |
| 9925 | ac_header_preproc=no |
| 9926 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9927 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9928 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9929 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9930 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9931 | |
| 9932 | # So? What about this header? |
| 9933 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9934 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9935 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9936 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9937 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9938 | $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] | 9939 | ac_header_preproc=yes |
| 9940 | ;; |
| 9941 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9942 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9943 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9944 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9945 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9946 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9947 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9948 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9949 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9950 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9951 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9952 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9953 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9954 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9955 | ;; |
| 9956 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9957 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9958 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9959 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9960 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9961 | else |
| 9962 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9963 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9964 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9965 | $as_echo "$as_val"'` |
| 9966 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9967 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9968 | |
| 9969 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9970 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 9971 | $as_echo "$as_val"'` |
| 9972 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9973 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9974 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9975 | _ACEOF |
| 9976 | |
| 9977 | fi |
| 9978 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9979 | done |
| 9980 | |
| 9981 | |
| 9982 | if test ! "$enable_xim" = "no"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9983 | { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
| 9984 | $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9985 | cat >conftest.$ac_ext <<_ACEOF |
| 9986 | /* confdefs.h. */ |
| 9987 | _ACEOF |
| 9988 | cat confdefs.h >>conftest.$ac_ext |
| 9989 | cat >>conftest.$ac_ext <<_ACEOF |
| 9990 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9991 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9992 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9993 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9994 | $EGREP "XIMText" >/dev/null 2>&1; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9995 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9996 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9997 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9998 | { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
| 9999 | $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10000 | fi |
| 10001 | rm -f conftest* |
| 10002 | |
| 10003 | fi |
| 10004 | CPPFLAGS=$cppflags_save |
| 10005 | |
| 10006 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 10007 | -a "x$GUITYPE" != "xNONE" ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10008 | { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
| 10009 | $as_echo "X GUI selected; xim has been enabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10010 | enable_xim="yes" |
| 10011 | fi |
| 10012 | fi |
| 10013 | |
| 10014 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 10015 | cppflags_save=$CPPFLAGS |
| 10016 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10017 | { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 |
| 10018 | $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10019 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10020 | /* confdefs.h. */ |
| 10021 | _ACEOF |
| 10022 | cat confdefs.h >>conftest.$ac_ext |
| 10023 | cat >>conftest.$ac_ext <<_ACEOF |
| 10024 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10025 | |
| 10026 | #include <X11/Intrinsic.h> |
| 10027 | #include <X11/Xmu/Editres.h> |
| 10028 | int |
| 10029 | main () |
| 10030 | { |
| 10031 | int i; i = 0; |
| 10032 | ; |
| 10033 | return 0; |
| 10034 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10035 | _ACEOF |
| 10036 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10037 | if { (ac_try="$ac_compile" |
| 10038 | case "(($ac_try" in |
| 10039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10040 | *) ac_try_echo=$ac_try;; |
| 10041 | esac |
| 10042 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10043 | $as_echo "$ac_try_echo") >&5 |
| 10044 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10045 | ac_status=$? |
| 10046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10047 | rm -f conftest.er1 |
| 10048 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10049 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10050 | (exit $ac_status); } && { |
| 10051 | test -z "$ac_c_werror_flag" || |
| 10052 | test ! -s conftest.err |
| 10053 | } && test -s conftest.$ac_objext; then |
| 10054 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10055 | $as_echo "yes" >&6; } |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10056 | cat >>confdefs.h <<\_ACEOF |
| 10057 | #define HAVE_X11_XMU_EDITRES_H 1 |
| 10058 | _ACEOF |
| 10059 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10060 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10061 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10063 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10064 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10065 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10066 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10067 | |
| 10068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10069 | CPPFLAGS=$cppflags_save |
| 10070 | fi |
| 10071 | |
| 10072 | if test -z "$SKIP_MOTIF"; then |
| 10073 | cppflags_save=$CPPFLAGS |
| 10074 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10075 | |
| 10076 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10077 | |
| 10078 | |
| 10079 | |
| 10080 | |
Bram Moolenaar | fc1421e | 2006-04-20 22:17:20 +0000 | [diff] [blame] | 10081 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10082 | 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] | 10083 | Xm/UnhighlightT.h Xm/Notebook.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10084 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10085 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10086 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10087 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10088 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10089 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10090 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10091 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10092 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10093 | $as_echo "$as_val"'` |
| 10094 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10095 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10096 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10097 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10098 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10099 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10100 | cat >conftest.$ac_ext <<_ACEOF |
| 10101 | /* confdefs.h. */ |
| 10102 | _ACEOF |
| 10103 | cat confdefs.h >>conftest.$ac_ext |
| 10104 | cat >>conftest.$ac_ext <<_ACEOF |
| 10105 | /* end confdefs.h. */ |
| 10106 | $ac_includes_default |
| 10107 | #include <$ac_header> |
| 10108 | _ACEOF |
| 10109 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10110 | if { (ac_try="$ac_compile" |
| 10111 | case "(($ac_try" in |
| 10112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10113 | *) ac_try_echo=$ac_try;; |
| 10114 | esac |
| 10115 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10116 | $as_echo "$ac_try_echo") >&5 |
| 10117 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10118 | ac_status=$? |
| 10119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10120 | rm -f conftest.er1 |
| 10121 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10122 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10123 | (exit $ac_status); } && { |
| 10124 | test -z "$ac_c_werror_flag" || |
| 10125 | test ! -s conftest.err |
| 10126 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10127 | ac_header_compiler=yes |
| 10128 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10129 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10131 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10132 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10133 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10134 | |
| 10135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10136 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10137 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10138 | |
| 10139 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10140 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10141 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10142 | cat >conftest.$ac_ext <<_ACEOF |
| 10143 | /* confdefs.h. */ |
| 10144 | _ACEOF |
| 10145 | cat confdefs.h >>conftest.$ac_ext |
| 10146 | cat >>conftest.$ac_ext <<_ACEOF |
| 10147 | /* end confdefs.h. */ |
| 10148 | #include <$ac_header> |
| 10149 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10150 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10151 | case "(($ac_try" in |
| 10152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10153 | *) ac_try_echo=$ac_try;; |
| 10154 | esac |
| 10155 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10156 | $as_echo "$ac_try_echo") >&5 |
| 10157 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10158 | ac_status=$? |
| 10159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10160 | rm -f conftest.er1 |
| 10161 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10162 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10163 | (exit $ac_status); } >/dev/null && { |
| 10164 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10165 | test ! -s conftest.err |
| 10166 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10167 | ac_header_preproc=yes |
| 10168 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10169 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10171 | |
| 10172 | ac_header_preproc=no |
| 10173 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10174 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10175 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10176 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10177 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10178 | |
| 10179 | # So? What about this header? |
| 10180 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10181 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10182 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10183 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10184 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10185 | $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] | 10186 | ac_header_preproc=yes |
| 10187 | ;; |
| 10188 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10189 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10190 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10191 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10192 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10193 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10194 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10195 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10196 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10197 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10198 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10199 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10200 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10201 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10202 | ;; |
| 10203 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10204 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10205 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10206 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10207 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10208 | else |
| 10209 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10210 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10211 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10212 | $as_echo "$as_val"'` |
| 10213 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10214 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10215 | |
| 10216 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 10217 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 10218 | $as_echo "$as_val"'` |
| 10219 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10220 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10221 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10222 | _ACEOF |
| 10223 | |
| 10224 | fi |
| 10225 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10226 | done |
| 10227 | |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10228 | |
| 10229 | if test $ac_cv_header_Xm_XpmP_h = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10230 | { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 |
| 10231 | $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10232 | cat >conftest.$ac_ext <<_ACEOF |
| 10233 | /* confdefs.h. */ |
| 10234 | _ACEOF |
| 10235 | cat confdefs.h >>conftest.$ac_ext |
| 10236 | cat >>conftest.$ac_ext <<_ACEOF |
| 10237 | /* end confdefs.h. */ |
| 10238 | #include <Xm/XpmP.h> |
| 10239 | int |
| 10240 | main () |
| 10241 | { |
| 10242 | XpmAttributes_21 attr; |
| 10243 | ; |
| 10244 | return 0; |
| 10245 | } |
| 10246 | _ACEOF |
| 10247 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10248 | if { (ac_try="$ac_compile" |
| 10249 | case "(($ac_try" in |
| 10250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10251 | *) ac_try_echo=$ac_try;; |
| 10252 | esac |
| 10253 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10254 | $as_echo "$ac_try_echo") >&5 |
| 10255 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10256 | ac_status=$? |
| 10257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10258 | rm -f conftest.er1 |
| 10259 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10260 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10261 | (exit $ac_status); } && { |
| 10262 | test -z "$ac_c_werror_flag" || |
| 10263 | test ! -s conftest.err |
| 10264 | } && test -s conftest.$ac_objext; then |
| 10265 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10266 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10267 | #define XPMATTRIBUTES_TYPE XpmAttributes_21 |
| 10268 | _ACEOF |
| 10269 | |
| 10270 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10271 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10273 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10274 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10275 | $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10276 | #define XPMATTRIBUTES_TYPE XpmAttributes |
| 10277 | _ACEOF |
| 10278 | |
| 10279 | |
| 10280 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10281 | |
| 10282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10283 | else |
| 10284 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 57657d8 | 2006-04-21 22:12:41 +0000 | [diff] [blame] | 10285 | #define XPMATTRIBUTES_TYPE XpmAttributes |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10286 | _ACEOF |
| 10287 | |
| 10288 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10289 | CPPFLAGS=$cppflags_save |
| 10290 | fi |
| 10291 | |
| 10292 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10293 | { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
| 10294 | $as_echo "no GUI selected; xim has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10295 | enable_xim="no" |
| 10296 | fi |
| 10297 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10298 | { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
| 10299 | $as_echo "no GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10300 | enable_fontset="no" |
| 10301 | fi |
| 10302 | 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] | 10303 | { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 10304 | $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10305 | enable_fontset="no" |
| 10306 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10307 | |
| 10308 | if test -z "$SKIP_PHOTON"; then |
| 10309 | GUITYPE=PHOTONGUI |
| 10310 | fi |
| 10311 | |
| 10312 | |
| 10313 | |
| 10314 | |
| 10315 | |
| 10316 | |
| 10317 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10318 | { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
| 10319 | $as_echo "$as_me: error: cannot use workshop without Motif" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10320 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10321 | fi |
| 10322 | |
| 10323 | if test "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10324 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10325 | #define FEAT_XIM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10326 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10327 | |
| 10328 | fi |
| 10329 | if test "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10330 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10331 | #define FEAT_XFONTSET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10332 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10333 | |
| 10334 | fi |
| 10335 | |
| 10336 | |
| 10337 | |
| 10338 | |
| 10339 | if test "$enable_hangulinput" = "yes"; then |
| 10340 | if test "x$GUITYPE" = "xNONE"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10341 | { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
| 10342 | $as_echo "no GUI selected; hangul input has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10343 | enable_hangulinput=no |
| 10344 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10345 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10346 | #define FEAT_HANGULIN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10347 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10348 | |
| 10349 | HANGULIN_SRC=hangulin.c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10350 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10351 | HANGULIN_OBJ=objects/hangulin.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10352 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10353 | fi |
| 10354 | fi |
| 10355 | |
| 10356 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10357 | { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5 |
| 10358 | $as_echo_n "checking whether toupper is broken... " >&6; } |
| 10359 | if test "${vim_cv_toupper_broken+set}" = set; then |
| 10360 | $as_echo_n "(cached) " >&6 |
| 10361 | else |
| 10362 | |
| 10363 | if test "$cross_compiling" = yes; then |
| 10364 | |
| 10365 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5 |
| 10366 | $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] | 10367 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10368 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10369 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10370 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10371 | |
| 10372 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10373 | #include <ctype.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10374 | #if STDC_HEADERS |
| 10375 | # include <stdlib.h> |
| 10376 | # include <stddef.h> |
| 10377 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10378 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10379 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10380 | _ACEOF |
| 10381 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10382 | if { (ac_try="$ac_link" |
| 10383 | case "(($ac_try" in |
| 10384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10385 | *) ac_try_echo=$ac_try;; |
| 10386 | esac |
| 10387 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10388 | $as_echo "$ac_try_echo") >&5 |
| 10389 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10390 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10391 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10392 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10393 | { (case "(($ac_try" in |
| 10394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10395 | *) ac_try_echo=$ac_try;; |
| 10396 | esac |
| 10397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10398 | $as_echo "$ac_try_echo") >&5 |
| 10399 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10400 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10401 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10402 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10403 | |
| 10404 | vim_cv_toupper_broken=yes |
| 10405 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10406 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10407 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 10408 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10410 | |
| 10411 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10412 | |
| 10413 | vim_cv_toupper_broken=no |
| 10414 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10415 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10416 | rm -rf conftest.dSYM |
| 10417 | 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] | 10418 | fi |
| 10419 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10420 | |
| 10421 | fi |
| 10422 | { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5 |
| 10423 | $as_echo "$vim_cv_toupper_broken" >&6; } |
| 10424 | |
| 10425 | if test "x$vim_cv_toupper_broken" = "xyes" ; then |
| 10426 | cat >>confdefs.h <<\_ACEOF |
| 10427 | #define BROKEN_TOUPPER 1 |
| 10428 | _ACEOF |
| 10429 | |
| 10430 | fi |
| 10431 | |
| 10432 | { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
| 10433 | $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10434 | cat >conftest.$ac_ext <<_ACEOF |
| 10435 | /* confdefs.h. */ |
| 10436 | _ACEOF |
| 10437 | cat confdefs.h >>conftest.$ac_ext |
| 10438 | cat >>conftest.$ac_ext <<_ACEOF |
| 10439 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10440 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10441 | int |
| 10442 | main () |
| 10443 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10444 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10445 | ; |
| 10446 | return 0; |
| 10447 | } |
| 10448 | _ACEOF |
| 10449 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10450 | if { (ac_try="$ac_compile" |
| 10451 | case "(($ac_try" in |
| 10452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10453 | *) ac_try_echo=$ac_try;; |
| 10454 | esac |
| 10455 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10456 | $as_echo "$ac_try_echo") >&5 |
| 10457 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10458 | ac_status=$? |
| 10459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10460 | rm -f conftest.er1 |
| 10461 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10463 | (exit $ac_status); } && { |
| 10464 | test -z "$ac_c_werror_flag" || |
| 10465 | test ! -s conftest.err |
| 10466 | } && test -s conftest.$ac_objext; then |
| 10467 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10468 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10469 | #define HAVE_DATE_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10470 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10471 | |
| 10472 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10473 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10475 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10476 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10477 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10478 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10479 | |
| 10480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10481 | |
Bram Moolenaar | 0c094b9 | 2009-05-14 20:20:33 +0000 | [diff] [blame] | 10482 | { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5 |
| 10483 | $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } |
| 10484 | cat >conftest.$ac_ext <<_ACEOF |
| 10485 | /* confdefs.h. */ |
| 10486 | _ACEOF |
| 10487 | cat confdefs.h >>conftest.$ac_ext |
| 10488 | cat >>conftest.$ac_ext <<_ACEOF |
| 10489 | /* end confdefs.h. */ |
| 10490 | #include <stdio.h> |
| 10491 | int |
| 10492 | main () |
| 10493 | { |
| 10494 | int x __attribute__((unused)); |
| 10495 | ; |
| 10496 | return 0; |
| 10497 | } |
| 10498 | _ACEOF |
| 10499 | rm -f conftest.$ac_objext |
| 10500 | if { (ac_try="$ac_compile" |
| 10501 | case "(($ac_try" in |
| 10502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10503 | *) ac_try_echo=$ac_try;; |
| 10504 | esac |
| 10505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10506 | $as_echo "$ac_try_echo") >&5 |
| 10507 | (eval "$ac_compile") 2>conftest.er1 |
| 10508 | ac_status=$? |
| 10509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10510 | rm -f conftest.er1 |
| 10511 | cat conftest.err >&5 |
| 10512 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10513 | (exit $ac_status); } && { |
| 10514 | test -z "$ac_c_werror_flag" || |
| 10515 | test ! -s conftest.err |
| 10516 | } && test -s conftest.$ac_objext; then |
| 10517 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10518 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
| 10519 | #define HAVE_ATTRIBUTE_UNUSED 1 |
| 10520 | _ACEOF |
| 10521 | |
| 10522 | else |
| 10523 | $as_echo "$as_me: failed program was:" >&5 |
| 10524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10525 | |
| 10526 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10527 | $as_echo "no" >&6; } |
| 10528 | fi |
| 10529 | |
| 10530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10531 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10532 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10533 | { $as_echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10534 | $as_echo_n "checking for elf.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10535 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10536 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10537 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10538 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10539 | $as_echo "$ac_cv_header_elf_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10540 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10541 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10542 | { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5 |
| 10543 | $as_echo_n "checking elf.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10544 | cat >conftest.$ac_ext <<_ACEOF |
| 10545 | /* confdefs.h. */ |
| 10546 | _ACEOF |
| 10547 | cat confdefs.h >>conftest.$ac_ext |
| 10548 | cat >>conftest.$ac_ext <<_ACEOF |
| 10549 | /* end confdefs.h. */ |
| 10550 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10551 | #include <elf.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10552 | _ACEOF |
| 10553 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10554 | if { (ac_try="$ac_compile" |
| 10555 | case "(($ac_try" in |
| 10556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10557 | *) ac_try_echo=$ac_try;; |
| 10558 | esac |
| 10559 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10560 | $as_echo "$ac_try_echo") >&5 |
| 10561 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10562 | ac_status=$? |
| 10563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10564 | rm -f conftest.er1 |
| 10565 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10566 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10567 | (exit $ac_status); } && { |
| 10568 | test -z "$ac_c_werror_flag" || |
| 10569 | test ! -s conftest.err |
| 10570 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10571 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10572 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10573 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10575 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10576 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10577 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10578 | |
| 10579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10580 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10581 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10582 | |
| 10583 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10584 | { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5 |
| 10585 | $as_echo_n "checking elf.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10586 | cat >conftest.$ac_ext <<_ACEOF |
| 10587 | /* confdefs.h. */ |
| 10588 | _ACEOF |
| 10589 | cat confdefs.h >>conftest.$ac_ext |
| 10590 | cat >>conftest.$ac_ext <<_ACEOF |
| 10591 | /* end confdefs.h. */ |
| 10592 | #include <elf.h> |
| 10593 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10594 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10595 | case "(($ac_try" in |
| 10596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10597 | *) ac_try_echo=$ac_try;; |
| 10598 | esac |
| 10599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10600 | $as_echo "$ac_try_echo") >&5 |
| 10601 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10602 | ac_status=$? |
| 10603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10604 | rm -f conftest.er1 |
| 10605 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10606 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10607 | (exit $ac_status); } >/dev/null && { |
| 10608 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10609 | test ! -s conftest.err |
| 10610 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10611 | ac_header_preproc=yes |
| 10612 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10613 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10615 | |
| 10616 | ac_header_preproc=no |
| 10617 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10618 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10619 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10620 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10621 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10622 | |
| 10623 | # So? What about this header? |
| 10624 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10625 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10626 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10627 | $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10628 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 |
| 10629 | $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] | 10630 | ac_header_preproc=yes |
| 10631 | ;; |
| 10632 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10633 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 |
| 10634 | $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} |
| 10635 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 |
| 10636 | $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} |
| 10637 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 |
| 10638 | $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} |
| 10639 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10640 | $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10641 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 |
| 10642 | $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} |
| 10643 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 |
| 10644 | $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} |
| 10645 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10646 | ;; |
| 10647 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10648 | { $as_echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10649 | $as_echo_n "checking for elf.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10650 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10651 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10652 | else |
| 10653 | ac_cv_header_elf_h=$ac_header_preproc |
| 10654 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10655 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10656 | $as_echo "$ac_cv_header_elf_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10657 | |
| 10658 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 10659 | if test "x$ac_cv_header_elf_h" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10660 | HAS_ELF=1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10661 | fi |
| 10662 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10663 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10664 | if test "$HAS_ELF" = 1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10665 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10666 | { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
| 10667 | $as_echo_n "checking for main in -lelf... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10668 | if test "${ac_cv_lib_elf_main+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10669 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10670 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10671 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10672 | LIBS="-lelf $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10673 | cat >conftest.$ac_ext <<_ACEOF |
| 10674 | /* confdefs.h. */ |
| 10675 | _ACEOF |
| 10676 | cat confdefs.h >>conftest.$ac_ext |
| 10677 | cat >>conftest.$ac_ext <<_ACEOF |
| 10678 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10679 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10680 | |
| 10681 | int |
| 10682 | main () |
| 10683 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10684 | return main (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10685 | ; |
| 10686 | return 0; |
| 10687 | } |
| 10688 | _ACEOF |
| 10689 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10690 | if { (ac_try="$ac_link" |
| 10691 | case "(($ac_try" in |
| 10692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10693 | *) ac_try_echo=$ac_try;; |
| 10694 | esac |
| 10695 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10696 | $as_echo "$ac_try_echo") >&5 |
| 10697 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10698 | ac_status=$? |
| 10699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10700 | rm -f conftest.er1 |
| 10701 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10702 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10703 | (exit $ac_status); } && { |
| 10704 | test -z "$ac_c_werror_flag" || |
| 10705 | test ! -s conftest.err |
| 10706 | } && test -s conftest$ac_exeext && { |
| 10707 | test "$cross_compiling" = yes || |
| 10708 | $as_test_x conftest$ac_exeext |
| 10709 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10710 | ac_cv_lib_elf_main=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10711 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10712 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10713 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10714 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10715 | ac_cv_lib_elf_main=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10716 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10717 | |
| 10718 | rm -rf conftest.dSYM |
| 10719 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10720 | conftest$ac_exeext conftest.$ac_ext |
| 10721 | LIBS=$ac_check_lib_save_LIBS |
| 10722 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10723 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 |
| 10724 | $as_echo "$ac_cv_lib_elf_main" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 10725 | if test "x$ac_cv_lib_elf_main" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10726 | cat >>confdefs.h <<_ACEOF |
| 10727 | #define HAVE_LIBELF 1 |
| 10728 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10729 | |
| 10730 | LIBS="-lelf $LIBS" |
| 10731 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10732 | fi |
| 10733 | |
| 10734 | fi |
| 10735 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10736 | |
| 10737 | |
| 10738 | |
| 10739 | |
| 10740 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10741 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10742 | 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] | 10743 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 10744 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 10745 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| 10746 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10747 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10748 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10749 | cat >conftest.$ac_ext <<_ACEOF |
| 10750 | /* confdefs.h. */ |
| 10751 | _ACEOF |
| 10752 | cat confdefs.h >>conftest.$ac_ext |
| 10753 | cat >>conftest.$ac_ext <<_ACEOF |
| 10754 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10755 | #include <sys/types.h> |
| 10756 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10757 | |
| 10758 | int |
| 10759 | main () |
| 10760 | { |
| 10761 | if ((DIR *) 0) |
| 10762 | return 0; |
| 10763 | ; |
| 10764 | return 0; |
| 10765 | } |
| 10766 | _ACEOF |
| 10767 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10768 | if { (ac_try="$ac_compile" |
| 10769 | case "(($ac_try" in |
| 10770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10771 | *) ac_try_echo=$ac_try;; |
| 10772 | esac |
| 10773 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10774 | $as_echo "$ac_try_echo") >&5 |
| 10775 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10776 | ac_status=$? |
| 10777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10778 | rm -f conftest.er1 |
| 10779 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10780 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10781 | (exit $ac_status); } && { |
| 10782 | test -z "$ac_c_werror_flag" || |
| 10783 | test ! -s conftest.err |
| 10784 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10785 | eval "$as_ac_Header=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10786 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10787 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10789 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10790 | eval "$as_ac_Header=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10791 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10792 | |
| 10793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10794 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10795 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10796 | $as_echo "$as_val"'` |
| 10797 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10798 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 10799 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 10800 | $as_echo "$as_val"'` |
| 10801 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10802 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10803 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10804 | _ACEOF |
| 10805 | |
| 10806 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10807 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10808 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10809 | done |
| 10810 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 10811 | if test $ac_header_dirent = dirent.h; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10812 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10813 | $as_echo_n "checking for library containing opendir... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10814 | if test "${ac_cv_search_opendir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10815 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10816 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10817 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10818 | cat >conftest.$ac_ext <<_ACEOF |
| 10819 | /* confdefs.h. */ |
| 10820 | _ACEOF |
| 10821 | cat confdefs.h >>conftest.$ac_ext |
| 10822 | cat >>conftest.$ac_ext <<_ACEOF |
| 10823 | /* end confdefs.h. */ |
| 10824 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10825 | /* Override any GCC internal prototype to avoid an error. |
| 10826 | Use char because int might match the return type of a GCC |
| 10827 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10828 | #ifdef __cplusplus |
| 10829 | extern "C" |
| 10830 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10831 | char opendir (); |
| 10832 | int |
| 10833 | main () |
| 10834 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10835 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10836 | ; |
| 10837 | return 0; |
| 10838 | } |
| 10839 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10840 | for ac_lib in '' dir; do |
| 10841 | if test -z "$ac_lib"; then |
| 10842 | ac_res="none required" |
| 10843 | else |
| 10844 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10845 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10846 | fi |
| 10847 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10848 | if { (ac_try="$ac_link" |
| 10849 | case "(($ac_try" in |
| 10850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10851 | *) ac_try_echo=$ac_try;; |
| 10852 | esac |
| 10853 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10854 | $as_echo "$ac_try_echo") >&5 |
| 10855 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10856 | ac_status=$? |
| 10857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10858 | rm -f conftest.er1 |
| 10859 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10860 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10861 | (exit $ac_status); } && { |
| 10862 | test -z "$ac_c_werror_flag" || |
| 10863 | test ! -s conftest.err |
| 10864 | } && test -s conftest$ac_exeext && { |
| 10865 | test "$cross_compiling" = yes || |
| 10866 | $as_test_x conftest$ac_exeext |
| 10867 | }; then |
| 10868 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10869 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10870 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10871 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10872 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10873 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10874 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10875 | |
| 10876 | rm -rf conftest.dSYM |
| 10877 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10878 | conftest$ac_exeext |
| 10879 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10880 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10881 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10882 | done |
| 10883 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10884 | : |
| 10885 | else |
| 10886 | ac_cv_search_opendir=no |
| 10887 | fi |
| 10888 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10889 | LIBS=$ac_func_search_save_LIBS |
| 10890 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10891 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10892 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 10893 | ac_res=$ac_cv_search_opendir |
| 10894 | if test "$ac_res" != no; then |
| 10895 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10896 | |
| 10897 | fi |
| 10898 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10899 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10900 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10901 | $as_echo_n "checking for library containing opendir... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10902 | if test "${ac_cv_search_opendir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10903 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10904 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10905 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10906 | cat >conftest.$ac_ext <<_ACEOF |
| 10907 | /* confdefs.h. */ |
| 10908 | _ACEOF |
| 10909 | cat confdefs.h >>conftest.$ac_ext |
| 10910 | cat >>conftest.$ac_ext <<_ACEOF |
| 10911 | /* end confdefs.h. */ |
| 10912 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10913 | /* Override any GCC internal prototype to avoid an error. |
| 10914 | Use char because int might match the return type of a GCC |
| 10915 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10916 | #ifdef __cplusplus |
| 10917 | extern "C" |
| 10918 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10919 | char opendir (); |
| 10920 | int |
| 10921 | main () |
| 10922 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10923 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10924 | ; |
| 10925 | return 0; |
| 10926 | } |
| 10927 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10928 | for ac_lib in '' x; do |
| 10929 | if test -z "$ac_lib"; then |
| 10930 | ac_res="none required" |
| 10931 | else |
| 10932 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10933 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10934 | fi |
| 10935 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10936 | if { (ac_try="$ac_link" |
| 10937 | case "(($ac_try" in |
| 10938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10939 | *) ac_try_echo=$ac_try;; |
| 10940 | esac |
| 10941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10942 | $as_echo "$ac_try_echo") >&5 |
| 10943 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10944 | ac_status=$? |
| 10945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10946 | rm -f conftest.er1 |
| 10947 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10949 | (exit $ac_status); } && { |
| 10950 | test -z "$ac_c_werror_flag" || |
| 10951 | test ! -s conftest.err |
| 10952 | } && test -s conftest$ac_exeext && { |
| 10953 | test "$cross_compiling" = yes || |
| 10954 | $as_test_x conftest$ac_exeext |
| 10955 | }; then |
| 10956 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10957 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10958 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10960 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10961 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10962 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10963 | |
| 10964 | rm -rf conftest.dSYM |
| 10965 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10966 | conftest$ac_exeext |
| 10967 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10968 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10969 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10970 | done |
| 10971 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10972 | : |
| 10973 | else |
| 10974 | ac_cv_search_opendir=no |
| 10975 | fi |
| 10976 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10977 | LIBS=$ac_func_search_save_LIBS |
| 10978 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10979 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10980 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 10981 | ac_res=$ac_cv_search_opendir |
| 10982 | if test "$ac_res" != no; then |
| 10983 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10984 | |
| 10985 | fi |
| 10986 | |
| 10987 | fi |
| 10988 | |
| 10989 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10990 | if test $ac_cv_header_sys_wait_h = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10991 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
| 10992 | $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] | 10993 | cat >conftest.$ac_ext <<_ACEOF |
| 10994 | /* confdefs.h. */ |
| 10995 | _ACEOF |
| 10996 | cat confdefs.h >>conftest.$ac_ext |
| 10997 | cat >>conftest.$ac_ext <<_ACEOF |
| 10998 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10999 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11000 | int |
| 11001 | main () |
| 11002 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11003 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11004 | ; |
| 11005 | return 0; |
| 11006 | } |
| 11007 | _ACEOF |
| 11008 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11009 | if { (ac_try="$ac_compile" |
| 11010 | case "(($ac_try" in |
| 11011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11012 | *) ac_try_echo=$ac_try;; |
| 11013 | esac |
| 11014 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11015 | $as_echo "$ac_try_echo") >&5 |
| 11016 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11017 | ac_status=$? |
| 11018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11019 | rm -f conftest.er1 |
| 11020 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11021 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11022 | (exit $ac_status); } && { |
| 11023 | test -z "$ac_c_werror_flag" || |
| 11024 | test ! -s conftest.err |
| 11025 | } && test -s conftest.$ac_objext; then |
| 11026 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11027 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11028 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11029 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11030 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11031 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11032 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11033 | #define HAVE_UNION_WAIT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11034 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11035 | |
| 11036 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11037 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11039 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11040 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11041 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11042 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11043 | |
| 11044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11045 | fi |
| 11046 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11047 | |
| 11048 | |
| 11049 | |
| 11050 | |
| 11051 | |
| 11052 | |
| 11053 | |
| 11054 | |
| 11055 | |
| 11056 | |
| 11057 | |
| 11058 | |
| 11059 | |
| 11060 | |
| 11061 | |
| 11062 | |
| 11063 | |
| 11064 | |
| 11065 | |
| 11066 | |
| 11067 | |
| 11068 | |
| 11069 | |
| 11070 | |
| 11071 | |
| 11072 | |
| 11073 | |
| 11074 | |
| 11075 | |
| 11076 | |
| 11077 | |
| 11078 | |
| 11079 | |
| 11080 | |
| 11081 | |
| 11082 | |
| 11083 | |
| 11084 | |
| 11085 | |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 11086 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11087 | 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] | 11088 | 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] | 11089 | iconv.h langinfo.h math.h unistd.h stropts.h errno.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11090 | sys/resource.h sys/systeminfo.h locale.h \ |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 11091 | sys/stream.h termios.h libc.h sys/statfs.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11092 | 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] | 11093 | libgen.h util/debug.h util/msg18n.h frame.h \ |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11094 | sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11095 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11096 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11097 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11098 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11099 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11100 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11101 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11102 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11103 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11104 | $as_echo "$as_val"'` |
| 11105 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11106 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11107 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11108 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11109 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11110 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11111 | cat >conftest.$ac_ext <<_ACEOF |
| 11112 | /* confdefs.h. */ |
| 11113 | _ACEOF |
| 11114 | cat confdefs.h >>conftest.$ac_ext |
| 11115 | cat >>conftest.$ac_ext <<_ACEOF |
| 11116 | /* end confdefs.h. */ |
| 11117 | $ac_includes_default |
| 11118 | #include <$ac_header> |
| 11119 | _ACEOF |
| 11120 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11121 | if { (ac_try="$ac_compile" |
| 11122 | case "(($ac_try" in |
| 11123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11124 | *) ac_try_echo=$ac_try;; |
| 11125 | esac |
| 11126 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11127 | $as_echo "$ac_try_echo") >&5 |
| 11128 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11129 | ac_status=$? |
| 11130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11131 | rm -f conftest.er1 |
| 11132 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11133 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11134 | (exit $ac_status); } && { |
| 11135 | test -z "$ac_c_werror_flag" || |
| 11136 | test ! -s conftest.err |
| 11137 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11138 | ac_header_compiler=yes |
| 11139 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11140 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11142 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11143 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11144 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11145 | |
| 11146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11147 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11148 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11149 | |
| 11150 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11151 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11152 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11153 | cat >conftest.$ac_ext <<_ACEOF |
| 11154 | /* confdefs.h. */ |
| 11155 | _ACEOF |
| 11156 | cat confdefs.h >>conftest.$ac_ext |
| 11157 | cat >>conftest.$ac_ext <<_ACEOF |
| 11158 | /* end confdefs.h. */ |
| 11159 | #include <$ac_header> |
| 11160 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11161 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11162 | case "(($ac_try" in |
| 11163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11164 | *) ac_try_echo=$ac_try;; |
| 11165 | esac |
| 11166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11167 | $as_echo "$ac_try_echo") >&5 |
| 11168 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11169 | ac_status=$? |
| 11170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11171 | rm -f conftest.er1 |
| 11172 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11174 | (exit $ac_status); } >/dev/null && { |
| 11175 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11176 | test ! -s conftest.err |
| 11177 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11178 | ac_header_preproc=yes |
| 11179 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11180 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11182 | |
| 11183 | ac_header_preproc=no |
| 11184 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11185 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11186 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11187 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11188 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11189 | |
| 11190 | # So? What about this header? |
| 11191 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11192 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11193 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11194 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11195 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11196 | $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] | 11197 | ac_header_preproc=yes |
| 11198 | ;; |
| 11199 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11200 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11201 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11202 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11203 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11204 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11205 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11207 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11208 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11209 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11210 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11211 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11212 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11213 | ;; |
| 11214 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11215 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11216 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11217 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11218 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11219 | else |
| 11220 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11221 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11222 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11223 | $as_echo "$as_val"'` |
| 11224 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11225 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11226 | |
| 11227 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11228 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 11229 | $as_echo "$as_val"'` |
| 11230 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11231 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11232 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11233 | _ACEOF |
| 11234 | |
| 11235 | fi |
| 11236 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11237 | done |
| 11238 | |
| 11239 | |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 11240 | |
| 11241 | for ac_header in sys/ptem.h |
| 11242 | do |
| 11243 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11244 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11245 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11246 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11247 | $as_echo_n "(cached) " >&6 |
| 11248 | else |
| 11249 | cat >conftest.$ac_ext <<_ACEOF |
| 11250 | /* confdefs.h. */ |
| 11251 | _ACEOF |
| 11252 | cat confdefs.h >>conftest.$ac_ext |
| 11253 | cat >>conftest.$ac_ext <<_ACEOF |
| 11254 | /* end confdefs.h. */ |
| 11255 | #if defined HAVE_SYS_STREAM_H |
| 11256 | # include <sys/stream.h> |
| 11257 | #endif |
| 11258 | |
| 11259 | #include <$ac_header> |
| 11260 | _ACEOF |
| 11261 | rm -f conftest.$ac_objext |
| 11262 | if { (ac_try="$ac_compile" |
| 11263 | case "(($ac_try" in |
| 11264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11265 | *) ac_try_echo=$ac_try;; |
| 11266 | esac |
| 11267 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11268 | $as_echo "$ac_try_echo") >&5 |
| 11269 | (eval "$ac_compile") 2>conftest.er1 |
| 11270 | ac_status=$? |
| 11271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11272 | rm -f conftest.er1 |
| 11273 | cat conftest.err >&5 |
| 11274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11275 | (exit $ac_status); } && { |
| 11276 | test -z "$ac_c_werror_flag" || |
| 11277 | test ! -s conftest.err |
| 11278 | } && test -s conftest.$ac_objext; then |
| 11279 | eval "$as_ac_Header=yes" |
| 11280 | else |
| 11281 | $as_echo "$as_me: failed program was:" >&5 |
| 11282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11283 | |
| 11284 | eval "$as_ac_Header=no" |
| 11285 | fi |
| 11286 | |
| 11287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11288 | fi |
| 11289 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11290 | $as_echo "$as_val"'` |
| 11291 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11292 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11293 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 11294 | $as_echo "$as_val"'` |
| 11295 | if test "x$as_val" = x""yes; then |
| 11296 | cat >>confdefs.h <<_ACEOF |
| 11297 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11298 | _ACEOF |
| 11299 | |
| 11300 | fi |
| 11301 | |
| 11302 | done |
| 11303 | |
| 11304 | |
| 11305 | |
| 11306 | for ac_header in sys/sysctl.h |
| 11307 | do |
| 11308 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11309 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11310 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11312 | $as_echo_n "(cached) " >&6 |
| 11313 | else |
| 11314 | cat >conftest.$ac_ext <<_ACEOF |
| 11315 | /* confdefs.h. */ |
| 11316 | _ACEOF |
| 11317 | cat confdefs.h >>conftest.$ac_ext |
| 11318 | cat >>conftest.$ac_ext <<_ACEOF |
| 11319 | /* end confdefs.h. */ |
| 11320 | #if defined HAVE_SYS_PARAM_H |
| 11321 | # include <sys/param.h> |
| 11322 | #endif |
| 11323 | |
| 11324 | #include <$ac_header> |
| 11325 | _ACEOF |
| 11326 | rm -f conftest.$ac_objext |
| 11327 | if { (ac_try="$ac_compile" |
| 11328 | case "(($ac_try" in |
| 11329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11330 | *) ac_try_echo=$ac_try;; |
| 11331 | esac |
| 11332 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11333 | $as_echo "$ac_try_echo") >&5 |
| 11334 | (eval "$ac_compile") 2>conftest.er1 |
| 11335 | ac_status=$? |
| 11336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11337 | rm -f conftest.er1 |
| 11338 | cat conftest.err >&5 |
| 11339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11340 | (exit $ac_status); } && { |
| 11341 | test -z "$ac_c_werror_flag" || |
| 11342 | test ! -s conftest.err |
| 11343 | } && test -s conftest.$ac_objext; then |
| 11344 | eval "$as_ac_Header=yes" |
| 11345 | else |
| 11346 | $as_echo "$as_me: failed program was:" >&5 |
| 11347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11348 | |
| 11349 | eval "$as_ac_Header=no" |
| 11350 | fi |
| 11351 | |
| 11352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11353 | fi |
| 11354 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11355 | $as_echo "$as_val"'` |
| 11356 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11357 | $as_echo "$ac_res" >&6; } |
| 11358 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 11359 | $as_echo "$as_val"'` |
| 11360 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 11361 | cat >>confdefs.h <<_ACEOF |
| 11362 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11363 | _ACEOF |
| 11364 | |
| 11365 | fi |
| 11366 | |
| 11367 | done |
| 11368 | |
| 11369 | |
| 11370 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11371 | { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5 |
| 11372 | $as_echo_n "checking for pthread_np.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11373 | cat >conftest.$ac_ext <<_ACEOF |
| 11374 | /* confdefs.h. */ |
| 11375 | _ACEOF |
| 11376 | cat confdefs.h >>conftest.$ac_ext |
| 11377 | cat >>conftest.$ac_ext <<_ACEOF |
| 11378 | /* end confdefs.h. */ |
| 11379 | |
| 11380 | #include <pthread.h> |
| 11381 | #include <pthread_np.h> |
| 11382 | int |
| 11383 | main () |
| 11384 | { |
| 11385 | int i; i = 0; |
| 11386 | ; |
| 11387 | return 0; |
| 11388 | } |
| 11389 | _ACEOF |
| 11390 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11391 | if { (ac_try="$ac_compile" |
| 11392 | case "(($ac_try" in |
| 11393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11394 | *) ac_try_echo=$ac_try;; |
| 11395 | esac |
| 11396 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11397 | $as_echo "$ac_try_echo") >&5 |
| 11398 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11399 | ac_status=$? |
| 11400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11401 | rm -f conftest.er1 |
| 11402 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11403 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11404 | (exit $ac_status); } && { |
| 11405 | test -z "$ac_c_werror_flag" || |
| 11406 | test ! -s conftest.err |
| 11407 | } && test -s conftest.$ac_objext; then |
| 11408 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11409 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11410 | cat >>confdefs.h <<\_ACEOF |
| 11411 | #define HAVE_PTHREAD_NP_H 1 |
| 11412 | _ACEOF |
| 11413 | |
| 11414 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11415 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11417 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11418 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11419 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11420 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11421 | |
| 11422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11423 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11424 | |
| 11425 | for ac_header in strings.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11426 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11427 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11428 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11429 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11430 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11431 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11432 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11433 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11434 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11435 | $as_echo "$as_val"'` |
| 11436 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11437 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11438 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11439 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11440 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11441 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11442 | cat >conftest.$ac_ext <<_ACEOF |
| 11443 | /* confdefs.h. */ |
| 11444 | _ACEOF |
| 11445 | cat confdefs.h >>conftest.$ac_ext |
| 11446 | cat >>conftest.$ac_ext <<_ACEOF |
| 11447 | /* end confdefs.h. */ |
| 11448 | $ac_includes_default |
| 11449 | #include <$ac_header> |
| 11450 | _ACEOF |
| 11451 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11452 | if { (ac_try="$ac_compile" |
| 11453 | case "(($ac_try" in |
| 11454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11455 | *) ac_try_echo=$ac_try;; |
| 11456 | esac |
| 11457 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11458 | $as_echo "$ac_try_echo") >&5 |
| 11459 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11460 | ac_status=$? |
| 11461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11462 | rm -f conftest.er1 |
| 11463 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11465 | (exit $ac_status); } && { |
| 11466 | test -z "$ac_c_werror_flag" || |
| 11467 | test ! -s conftest.err |
| 11468 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11469 | ac_header_compiler=yes |
| 11470 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11471 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11473 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11474 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11475 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11476 | |
| 11477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11478 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11479 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11480 | |
| 11481 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11482 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11483 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11484 | cat >conftest.$ac_ext <<_ACEOF |
| 11485 | /* confdefs.h. */ |
| 11486 | _ACEOF |
| 11487 | cat confdefs.h >>conftest.$ac_ext |
| 11488 | cat >>conftest.$ac_ext <<_ACEOF |
| 11489 | /* end confdefs.h. */ |
| 11490 | #include <$ac_header> |
| 11491 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11492 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11493 | case "(($ac_try" in |
| 11494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11495 | *) ac_try_echo=$ac_try;; |
| 11496 | esac |
| 11497 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11498 | $as_echo "$ac_try_echo") >&5 |
| 11499 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11500 | ac_status=$? |
| 11501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11502 | rm -f conftest.er1 |
| 11503 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11504 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11505 | (exit $ac_status); } >/dev/null && { |
| 11506 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11507 | test ! -s conftest.err |
| 11508 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11509 | ac_header_preproc=yes |
| 11510 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11511 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11513 | |
| 11514 | ac_header_preproc=no |
| 11515 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11516 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11517 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11518 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11519 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11520 | |
| 11521 | # So? What about this header? |
| 11522 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11523 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11524 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11525 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11526 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11527 | $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] | 11528 | ac_header_preproc=yes |
| 11529 | ;; |
| 11530 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11531 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11532 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11533 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11534 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11535 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11536 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11537 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11538 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11539 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11540 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11541 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11542 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11543 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11544 | ;; |
| 11545 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11546 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11547 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11548 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11549 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11550 | else |
| 11551 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11552 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11553 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11554 | $as_echo "$as_val"'` |
| 11555 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11556 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11557 | |
| 11558 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11559 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 11560 | $as_echo "$as_val"'` |
| 11561 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11562 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11563 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11564 | _ACEOF |
| 11565 | |
| 11566 | fi |
| 11567 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11568 | done |
| 11569 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 11570 | if test "x$MACOSX" = "xyes"; then |
| 11571 | cat >>confdefs.h <<\_ACEOF |
| 11572 | #define NO_STRINGS_WITH_STRING_H 1 |
| 11573 | _ACEOF |
| 11574 | |
| 11575 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11576 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11577 | { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
| 11578 | $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] | 11579 | cppflags_save=$CPPFLAGS |
| 11580 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11581 | cat >conftest.$ac_ext <<_ACEOF |
| 11582 | /* confdefs.h. */ |
| 11583 | _ACEOF |
| 11584 | cat confdefs.h >>conftest.$ac_ext |
| 11585 | cat >>conftest.$ac_ext <<_ACEOF |
| 11586 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11587 | |
| 11588 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 11589 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 11590 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 11591 | #endif |
| 11592 | #ifdef HAVE_XM_XM_H |
| 11593 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 11594 | #endif |
| 11595 | #ifdef HAVE_STRING_H |
| 11596 | # include <string.h> |
| 11597 | #endif |
| 11598 | #if defined(HAVE_STRINGS_H) |
| 11599 | # include <strings.h> |
| 11600 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11601 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11602 | int |
| 11603 | main () |
| 11604 | { |
| 11605 | int i; i = 0; |
| 11606 | ; |
| 11607 | return 0; |
| 11608 | } |
| 11609 | _ACEOF |
| 11610 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11611 | if { (ac_try="$ac_compile" |
| 11612 | case "(($ac_try" in |
| 11613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11614 | *) ac_try_echo=$ac_try;; |
| 11615 | esac |
| 11616 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11617 | $as_echo "$ac_try_echo") >&5 |
| 11618 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11619 | ac_status=$? |
| 11620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11621 | rm -f conftest.er1 |
| 11622 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11623 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11624 | (exit $ac_status); } && { |
| 11625 | test -z "$ac_c_werror_flag" || |
| 11626 | test ! -s conftest.err |
| 11627 | } && test -s conftest.$ac_objext; then |
| 11628 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11629 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11630 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11631 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11633 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11634 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11635 | #define NO_STRINGS_WITH_STRING_H 1 |
| 11636 | _ACEOF |
| 11637 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11638 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11639 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11640 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11641 | |
| 11642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11643 | CPPFLAGS=$cppflags_save |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 11644 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11645 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11646 | if test $ac_cv_c_compiler_gnu = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11647 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 11648 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11649 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11650 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11651 | else |
| 11652 | ac_pattern="Autoconf.*'x'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11653 | cat >conftest.$ac_ext <<_ACEOF |
| 11654 | /* confdefs.h. */ |
| 11655 | _ACEOF |
| 11656 | cat confdefs.h >>conftest.$ac_ext |
| 11657 | cat >>conftest.$ac_ext <<_ACEOF |
| 11658 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11659 | #include <sgtty.h> |
| 11660 | Autoconf TIOCGETP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11661 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11662 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11663 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11664 | ac_cv_prog_gcc_traditional=yes |
| 11665 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11666 | ac_cv_prog_gcc_traditional=no |
| 11667 | fi |
| 11668 | rm -f conftest* |
| 11669 | |
| 11670 | |
| 11671 | if test $ac_cv_prog_gcc_traditional = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11672 | cat >conftest.$ac_ext <<_ACEOF |
| 11673 | /* confdefs.h. */ |
| 11674 | _ACEOF |
| 11675 | cat confdefs.h >>conftest.$ac_ext |
| 11676 | cat >>conftest.$ac_ext <<_ACEOF |
| 11677 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11678 | #include <termio.h> |
| 11679 | Autoconf TCGETA |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11680 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11681 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11682 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11683 | ac_cv_prog_gcc_traditional=yes |
| 11684 | fi |
| 11685 | rm -f conftest* |
| 11686 | |
| 11687 | fi |
| 11688 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11689 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 11690 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11691 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 11692 | CC="$CC -traditional" |
| 11693 | fi |
| 11694 | fi |
| 11695 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11696 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 11697 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11698 | if test "${ac_cv_c_const+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11699 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11700 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11701 | cat >conftest.$ac_ext <<_ACEOF |
| 11702 | /* confdefs.h. */ |
| 11703 | _ACEOF |
| 11704 | cat confdefs.h >>conftest.$ac_ext |
| 11705 | cat >>conftest.$ac_ext <<_ACEOF |
| 11706 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11707 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11708 | int |
| 11709 | main () |
| 11710 | { |
| 11711 | /* FIXME: Include the comments suggested by Paul. */ |
| 11712 | #ifndef __cplusplus |
| 11713 | /* Ultrix mips cc rejects this. */ |
| 11714 | typedef int charset[2]; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11715 | const charset cs; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11716 | /* SunOS 4.1.1 cc rejects this. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11717 | char const *const *pcpcc; |
| 11718 | char **ppc; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11719 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 11720 | struct point {int x, y;}; |
| 11721 | static struct point const zero = {0,0}; |
| 11722 | /* AIX XL C 1.02.0.0 rejects this. |
| 11723 | It does not let you subtract one const X* pointer from another in |
| 11724 | an arm of an if-expression whose if-part is not a constant |
| 11725 | expression */ |
| 11726 | const char *g = "string"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11727 | pcpcc = &g + (g ? g-g : 0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11728 | /* HPUX 7.0 cc rejects these. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11729 | ++pcpcc; |
| 11730 | ppc = (char**) pcpcc; |
| 11731 | pcpcc = (char const *const *) ppc; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11732 | { /* SCO 3.2v4 cc rejects this. */ |
| 11733 | char *t; |
| 11734 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11735 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11736 | *t++ = 0; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11737 | if (s) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11738 | } |
| 11739 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 11740 | int x[] = {25, 17}; |
| 11741 | const int *foo = &x[0]; |
| 11742 | ++foo; |
| 11743 | } |
| 11744 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 11745 | typedef const int *iptr; |
| 11746 | iptr p = 0; |
| 11747 | ++p; |
| 11748 | } |
| 11749 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 11750 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 11751 | struct s { int j; const int *ap[3]; }; |
| 11752 | struct s *b; b->j = 5; |
| 11753 | } |
| 11754 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 11755 | const int foo = 10; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11756 | if (!foo) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11757 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11758 | return !cs[0] && !zero.x; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11759 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11760 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11761 | ; |
| 11762 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11763 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11764 | _ACEOF |
| 11765 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11766 | if { (ac_try="$ac_compile" |
| 11767 | case "(($ac_try" in |
| 11768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11769 | *) ac_try_echo=$ac_try;; |
| 11770 | esac |
| 11771 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11772 | $as_echo "$ac_try_echo") >&5 |
| 11773 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11774 | ac_status=$? |
| 11775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11776 | rm -f conftest.er1 |
| 11777 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11779 | (exit $ac_status); } && { |
| 11780 | test -z "$ac_c_werror_flag" || |
| 11781 | test ! -s conftest.err |
| 11782 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11783 | ac_cv_c_const=yes |
| 11784 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11785 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11786 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11787 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11788 | ac_cv_c_const=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11789 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11790 | |
| 11791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11792 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11793 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 11794 | $as_echo "$ac_cv_c_const" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11795 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11796 | |
| 11797 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11798 | #define const /**/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11799 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11800 | |
| 11801 | fi |
| 11802 | |
Bram Moolenaar | 76243bd | 2009-03-02 01:47:02 +0000 | [diff] [blame] | 11803 | { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 11804 | $as_echo_n "checking for working volatile... " >&6; } |
| 11805 | if test "${ac_cv_c_volatile+set}" = set; then |
| 11806 | $as_echo_n "(cached) " >&6 |
| 11807 | else |
| 11808 | cat >conftest.$ac_ext <<_ACEOF |
| 11809 | /* confdefs.h. */ |
| 11810 | _ACEOF |
| 11811 | cat confdefs.h >>conftest.$ac_ext |
| 11812 | cat >>conftest.$ac_ext <<_ACEOF |
| 11813 | /* end confdefs.h. */ |
| 11814 | |
| 11815 | int |
| 11816 | main () |
| 11817 | { |
| 11818 | |
| 11819 | volatile int x; |
| 11820 | int * volatile y = (int *) 0; |
| 11821 | return !x && !y; |
| 11822 | ; |
| 11823 | return 0; |
| 11824 | } |
| 11825 | _ACEOF |
| 11826 | rm -f conftest.$ac_objext |
| 11827 | if { (ac_try="$ac_compile" |
| 11828 | case "(($ac_try" in |
| 11829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11830 | *) ac_try_echo=$ac_try;; |
| 11831 | esac |
| 11832 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11833 | $as_echo "$ac_try_echo") >&5 |
| 11834 | (eval "$ac_compile") 2>conftest.er1 |
| 11835 | ac_status=$? |
| 11836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11837 | rm -f conftest.er1 |
| 11838 | cat conftest.err >&5 |
| 11839 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11840 | (exit $ac_status); } && { |
| 11841 | test -z "$ac_c_werror_flag" || |
| 11842 | test ! -s conftest.err |
| 11843 | } && test -s conftest.$ac_objext; then |
| 11844 | ac_cv_c_volatile=yes |
| 11845 | else |
| 11846 | $as_echo "$as_me: failed program was:" >&5 |
| 11847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11848 | |
| 11849 | ac_cv_c_volatile=no |
| 11850 | fi |
| 11851 | |
| 11852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11853 | fi |
| 11854 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
| 11855 | $as_echo "$ac_cv_c_volatile" >&6; } |
| 11856 | if test $ac_cv_c_volatile = no; then |
| 11857 | |
| 11858 | cat >>confdefs.h <<\_ACEOF |
| 11859 | #define volatile /**/ |
| 11860 | _ACEOF |
| 11861 | |
| 11862 | fi |
| 11863 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11864 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 11865 | $as_echo_n "checking for mode_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11866 | if test "${ac_cv_type_mode_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11867 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11868 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11869 | ac_cv_type_mode_t=no |
| 11870 | cat >conftest.$ac_ext <<_ACEOF |
| 11871 | /* confdefs.h. */ |
| 11872 | _ACEOF |
| 11873 | cat confdefs.h >>conftest.$ac_ext |
| 11874 | cat >>conftest.$ac_ext <<_ACEOF |
| 11875 | /* end confdefs.h. */ |
| 11876 | $ac_includes_default |
| 11877 | int |
| 11878 | main () |
| 11879 | { |
| 11880 | if (sizeof (mode_t)) |
| 11881 | return 0; |
| 11882 | ; |
| 11883 | return 0; |
| 11884 | } |
| 11885 | _ACEOF |
| 11886 | rm -f conftest.$ac_objext |
| 11887 | if { (ac_try="$ac_compile" |
| 11888 | case "(($ac_try" in |
| 11889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11890 | *) ac_try_echo=$ac_try;; |
| 11891 | esac |
| 11892 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11893 | $as_echo "$ac_try_echo") >&5 |
| 11894 | (eval "$ac_compile") 2>conftest.er1 |
| 11895 | ac_status=$? |
| 11896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11897 | rm -f conftest.er1 |
| 11898 | cat conftest.err >&5 |
| 11899 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11900 | (exit $ac_status); } && { |
| 11901 | test -z "$ac_c_werror_flag" || |
| 11902 | test ! -s conftest.err |
| 11903 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11904 | cat >conftest.$ac_ext <<_ACEOF |
| 11905 | /* confdefs.h. */ |
| 11906 | _ACEOF |
| 11907 | cat confdefs.h >>conftest.$ac_ext |
| 11908 | cat >>conftest.$ac_ext <<_ACEOF |
| 11909 | /* end confdefs.h. */ |
| 11910 | $ac_includes_default |
| 11911 | int |
| 11912 | main () |
| 11913 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11914 | if (sizeof ((mode_t))) |
| 11915 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11916 | ; |
| 11917 | return 0; |
| 11918 | } |
| 11919 | _ACEOF |
| 11920 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11921 | if { (ac_try="$ac_compile" |
| 11922 | case "(($ac_try" in |
| 11923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11924 | *) ac_try_echo=$ac_try;; |
| 11925 | esac |
| 11926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11927 | $as_echo "$ac_try_echo") >&5 |
| 11928 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11929 | ac_status=$? |
| 11930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11931 | rm -f conftest.er1 |
| 11932 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11934 | (exit $ac_status); } && { |
| 11935 | test -z "$ac_c_werror_flag" || |
| 11936 | test ! -s conftest.err |
| 11937 | } && test -s conftest.$ac_objext; then |
| 11938 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11939 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11940 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11941 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11942 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11943 | ac_cv_type_mode_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11944 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11945 | |
| 11946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11947 | else |
| 11948 | $as_echo "$as_me: failed program was:" >&5 |
| 11949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11950 | |
| 11951 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11952 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11953 | |
| 11954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11955 | fi |
| 11956 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 11957 | $as_echo "$ac_cv_type_mode_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11958 | if test "x$ac_cv_type_mode_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11959 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11960 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11961 | |
| 11962 | cat >>confdefs.h <<_ACEOF |
| 11963 | #define mode_t int |
| 11964 | _ACEOF |
| 11965 | |
| 11966 | fi |
| 11967 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11968 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
| 11969 | $as_echo_n "checking for off_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11970 | if test "${ac_cv_type_off_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11971 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11972 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11973 | ac_cv_type_off_t=no |
| 11974 | cat >conftest.$ac_ext <<_ACEOF |
| 11975 | /* confdefs.h. */ |
| 11976 | _ACEOF |
| 11977 | cat confdefs.h >>conftest.$ac_ext |
| 11978 | cat >>conftest.$ac_ext <<_ACEOF |
| 11979 | /* end confdefs.h. */ |
| 11980 | $ac_includes_default |
| 11981 | int |
| 11982 | main () |
| 11983 | { |
| 11984 | if (sizeof (off_t)) |
| 11985 | return 0; |
| 11986 | ; |
| 11987 | return 0; |
| 11988 | } |
| 11989 | _ACEOF |
| 11990 | rm -f conftest.$ac_objext |
| 11991 | if { (ac_try="$ac_compile" |
| 11992 | case "(($ac_try" in |
| 11993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11994 | *) ac_try_echo=$ac_try;; |
| 11995 | esac |
| 11996 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11997 | $as_echo "$ac_try_echo") >&5 |
| 11998 | (eval "$ac_compile") 2>conftest.er1 |
| 11999 | ac_status=$? |
| 12000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12001 | rm -f conftest.er1 |
| 12002 | cat conftest.err >&5 |
| 12003 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12004 | (exit $ac_status); } && { |
| 12005 | test -z "$ac_c_werror_flag" || |
| 12006 | test ! -s conftest.err |
| 12007 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12008 | cat >conftest.$ac_ext <<_ACEOF |
| 12009 | /* confdefs.h. */ |
| 12010 | _ACEOF |
| 12011 | cat confdefs.h >>conftest.$ac_ext |
| 12012 | cat >>conftest.$ac_ext <<_ACEOF |
| 12013 | /* end confdefs.h. */ |
| 12014 | $ac_includes_default |
| 12015 | int |
| 12016 | main () |
| 12017 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12018 | if (sizeof ((off_t))) |
| 12019 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12020 | ; |
| 12021 | return 0; |
| 12022 | } |
| 12023 | _ACEOF |
| 12024 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12025 | if { (ac_try="$ac_compile" |
| 12026 | case "(($ac_try" in |
| 12027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12028 | *) ac_try_echo=$ac_try;; |
| 12029 | esac |
| 12030 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12031 | $as_echo "$ac_try_echo") >&5 |
| 12032 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12033 | ac_status=$? |
| 12034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12035 | rm -f conftest.er1 |
| 12036 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12037 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12038 | (exit $ac_status); } && { |
| 12039 | test -z "$ac_c_werror_flag" || |
| 12040 | test ! -s conftest.err |
| 12041 | } && test -s conftest.$ac_objext; then |
| 12042 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12043 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12044 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12045 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12046 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12047 | ac_cv_type_off_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12048 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12049 | |
| 12050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12051 | else |
| 12052 | $as_echo "$as_me: failed program was:" >&5 |
| 12053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12054 | |
| 12055 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12056 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12057 | |
| 12058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12059 | fi |
| 12060 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 12061 | $as_echo "$ac_cv_type_off_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12062 | if test "x$ac_cv_type_off_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12063 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12064 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12065 | |
| 12066 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12067 | #define off_t long int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12068 | _ACEOF |
| 12069 | |
| 12070 | fi |
| 12071 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12072 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 12073 | $as_echo_n "checking for pid_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12074 | if test "${ac_cv_type_pid_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12075 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12076 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12077 | ac_cv_type_pid_t=no |
| 12078 | cat >conftest.$ac_ext <<_ACEOF |
| 12079 | /* confdefs.h. */ |
| 12080 | _ACEOF |
| 12081 | cat confdefs.h >>conftest.$ac_ext |
| 12082 | cat >>conftest.$ac_ext <<_ACEOF |
| 12083 | /* end confdefs.h. */ |
| 12084 | $ac_includes_default |
| 12085 | int |
| 12086 | main () |
| 12087 | { |
| 12088 | if (sizeof (pid_t)) |
| 12089 | return 0; |
| 12090 | ; |
| 12091 | return 0; |
| 12092 | } |
| 12093 | _ACEOF |
| 12094 | rm -f conftest.$ac_objext |
| 12095 | if { (ac_try="$ac_compile" |
| 12096 | case "(($ac_try" in |
| 12097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12098 | *) ac_try_echo=$ac_try;; |
| 12099 | esac |
| 12100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12101 | $as_echo "$ac_try_echo") >&5 |
| 12102 | (eval "$ac_compile") 2>conftest.er1 |
| 12103 | ac_status=$? |
| 12104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12105 | rm -f conftest.er1 |
| 12106 | cat conftest.err >&5 |
| 12107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12108 | (exit $ac_status); } && { |
| 12109 | test -z "$ac_c_werror_flag" || |
| 12110 | test ! -s conftest.err |
| 12111 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12112 | cat >conftest.$ac_ext <<_ACEOF |
| 12113 | /* confdefs.h. */ |
| 12114 | _ACEOF |
| 12115 | cat confdefs.h >>conftest.$ac_ext |
| 12116 | cat >>conftest.$ac_ext <<_ACEOF |
| 12117 | /* end confdefs.h. */ |
| 12118 | $ac_includes_default |
| 12119 | int |
| 12120 | main () |
| 12121 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12122 | if (sizeof ((pid_t))) |
| 12123 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12124 | ; |
| 12125 | return 0; |
| 12126 | } |
| 12127 | _ACEOF |
| 12128 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12129 | if { (ac_try="$ac_compile" |
| 12130 | case "(($ac_try" in |
| 12131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12132 | *) ac_try_echo=$ac_try;; |
| 12133 | esac |
| 12134 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12135 | $as_echo "$ac_try_echo") >&5 |
| 12136 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12137 | ac_status=$? |
| 12138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12139 | rm -f conftest.er1 |
| 12140 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12141 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12142 | (exit $ac_status); } && { |
| 12143 | test -z "$ac_c_werror_flag" || |
| 12144 | test ! -s conftest.err |
| 12145 | } && test -s conftest.$ac_objext; then |
| 12146 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12147 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12148 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12149 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12150 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12151 | ac_cv_type_pid_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12152 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12153 | |
| 12154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12155 | else |
| 12156 | $as_echo "$as_me: failed program was:" >&5 |
| 12157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12158 | |
| 12159 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12160 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12161 | |
| 12162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12163 | fi |
| 12164 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 12165 | $as_echo "$ac_cv_type_pid_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12166 | if test "x$ac_cv_type_pid_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12167 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12168 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12169 | |
| 12170 | cat >>confdefs.h <<_ACEOF |
| 12171 | #define pid_t int |
| 12172 | _ACEOF |
| 12173 | |
| 12174 | fi |
| 12175 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12176 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
| 12177 | $as_echo_n "checking for size_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12178 | if test "${ac_cv_type_size_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12179 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12180 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12181 | ac_cv_type_size_t=no |
| 12182 | cat >conftest.$ac_ext <<_ACEOF |
| 12183 | /* confdefs.h. */ |
| 12184 | _ACEOF |
| 12185 | cat confdefs.h >>conftest.$ac_ext |
| 12186 | cat >>conftest.$ac_ext <<_ACEOF |
| 12187 | /* end confdefs.h. */ |
| 12188 | $ac_includes_default |
| 12189 | int |
| 12190 | main () |
| 12191 | { |
| 12192 | if (sizeof (size_t)) |
| 12193 | return 0; |
| 12194 | ; |
| 12195 | return 0; |
| 12196 | } |
| 12197 | _ACEOF |
| 12198 | rm -f conftest.$ac_objext |
| 12199 | if { (ac_try="$ac_compile" |
| 12200 | case "(($ac_try" in |
| 12201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12202 | *) ac_try_echo=$ac_try;; |
| 12203 | esac |
| 12204 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12205 | $as_echo "$ac_try_echo") >&5 |
| 12206 | (eval "$ac_compile") 2>conftest.er1 |
| 12207 | ac_status=$? |
| 12208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12209 | rm -f conftest.er1 |
| 12210 | cat conftest.err >&5 |
| 12211 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12212 | (exit $ac_status); } && { |
| 12213 | test -z "$ac_c_werror_flag" || |
| 12214 | test ! -s conftest.err |
| 12215 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12216 | cat >conftest.$ac_ext <<_ACEOF |
| 12217 | /* confdefs.h. */ |
| 12218 | _ACEOF |
| 12219 | cat confdefs.h >>conftest.$ac_ext |
| 12220 | cat >>conftest.$ac_ext <<_ACEOF |
| 12221 | /* end confdefs.h. */ |
| 12222 | $ac_includes_default |
| 12223 | int |
| 12224 | main () |
| 12225 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12226 | if (sizeof ((size_t))) |
| 12227 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12228 | ; |
| 12229 | return 0; |
| 12230 | } |
| 12231 | _ACEOF |
| 12232 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12233 | if { (ac_try="$ac_compile" |
| 12234 | case "(($ac_try" in |
| 12235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12236 | *) ac_try_echo=$ac_try;; |
| 12237 | esac |
| 12238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12239 | $as_echo "$ac_try_echo") >&5 |
| 12240 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12241 | ac_status=$? |
| 12242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12243 | rm -f conftest.er1 |
| 12244 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12246 | (exit $ac_status); } && { |
| 12247 | test -z "$ac_c_werror_flag" || |
| 12248 | test ! -s conftest.err |
| 12249 | } && test -s conftest.$ac_objext; then |
| 12250 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12251 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12252 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12253 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12254 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12255 | ac_cv_type_size_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12256 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12257 | |
| 12258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12259 | else |
| 12260 | $as_echo "$as_me: failed program was:" >&5 |
| 12261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12262 | |
| 12263 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12264 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12265 | |
| 12266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12267 | fi |
| 12268 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 12269 | $as_echo "$ac_cv_type_size_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12270 | if test "x$ac_cv_type_size_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12271 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12272 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12273 | |
| 12274 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12275 | #define size_t unsigned int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12276 | _ACEOF |
| 12277 | |
| 12278 | fi |
| 12279 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12280 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 12281 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12282 | if test "${ac_cv_type_uid_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12283 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12284 | else |
| 12285 | cat >conftest.$ac_ext <<_ACEOF |
| 12286 | /* confdefs.h. */ |
| 12287 | _ACEOF |
| 12288 | cat confdefs.h >>conftest.$ac_ext |
| 12289 | cat >>conftest.$ac_ext <<_ACEOF |
| 12290 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12291 | #include <sys/types.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12292 | |
| 12293 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12294 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12295 | $EGREP "uid_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12296 | ac_cv_type_uid_t=yes |
| 12297 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12298 | ac_cv_type_uid_t=no |
| 12299 | fi |
| 12300 | rm -f conftest* |
| 12301 | |
| 12302 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12303 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 12304 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12305 | if test $ac_cv_type_uid_t = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12306 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12307 | cat >>confdefs.h <<\_ACEOF |
| 12308 | #define uid_t int |
| 12309 | _ACEOF |
| 12310 | |
| 12311 | |
| 12312 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12313 | #define gid_t int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12314 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12315 | |
| 12316 | fi |
| 12317 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12318 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 12319 | $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] | 12320 | if test "${ac_cv_header_time+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12321 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12322 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12323 | cat >conftest.$ac_ext <<_ACEOF |
| 12324 | /* confdefs.h. */ |
| 12325 | _ACEOF |
| 12326 | cat confdefs.h >>conftest.$ac_ext |
| 12327 | cat >>conftest.$ac_ext <<_ACEOF |
| 12328 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12329 | #include <sys/types.h> |
| 12330 | #include <sys/time.h> |
| 12331 | #include <time.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12332 | |
| 12333 | int |
| 12334 | main () |
| 12335 | { |
| 12336 | if ((struct tm *) 0) |
| 12337 | return 0; |
| 12338 | ; |
| 12339 | return 0; |
| 12340 | } |
| 12341 | _ACEOF |
| 12342 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12343 | if { (ac_try="$ac_compile" |
| 12344 | case "(($ac_try" in |
| 12345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12346 | *) ac_try_echo=$ac_try;; |
| 12347 | esac |
| 12348 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12349 | $as_echo "$ac_try_echo") >&5 |
| 12350 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12351 | ac_status=$? |
| 12352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12353 | rm -f conftest.er1 |
| 12354 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12355 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12356 | (exit $ac_status); } && { |
| 12357 | test -z "$ac_c_werror_flag" || |
| 12358 | test ! -s conftest.err |
| 12359 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12360 | ac_cv_header_time=yes |
| 12361 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12362 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12363 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12364 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12365 | ac_cv_header_time=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12366 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12367 | |
| 12368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12369 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12370 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 12371 | $as_echo "$ac_cv_header_time" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12372 | if test $ac_cv_header_time = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12373 | |
| 12374 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12375 | #define TIME_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12376 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12377 | |
| 12378 | fi |
| 12379 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12380 | { $as_echo "$as_me:$LINENO: checking for ino_t" >&5 |
| 12381 | $as_echo_n "checking for ino_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12382 | if test "${ac_cv_type_ino_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12383 | $as_echo_n "(cached) " >&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 | ac_cv_type_ino_t=no |
| 12386 | cat >conftest.$ac_ext <<_ACEOF |
| 12387 | /* confdefs.h. */ |
| 12388 | _ACEOF |
| 12389 | cat confdefs.h >>conftest.$ac_ext |
| 12390 | cat >>conftest.$ac_ext <<_ACEOF |
| 12391 | /* end confdefs.h. */ |
| 12392 | $ac_includes_default |
| 12393 | int |
| 12394 | main () |
| 12395 | { |
| 12396 | if (sizeof (ino_t)) |
| 12397 | return 0; |
| 12398 | ; |
| 12399 | return 0; |
| 12400 | } |
| 12401 | _ACEOF |
| 12402 | rm -f conftest.$ac_objext |
| 12403 | if { (ac_try="$ac_compile" |
| 12404 | case "(($ac_try" in |
| 12405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12406 | *) ac_try_echo=$ac_try;; |
| 12407 | esac |
| 12408 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12409 | $as_echo "$ac_try_echo") >&5 |
| 12410 | (eval "$ac_compile") 2>conftest.er1 |
| 12411 | ac_status=$? |
| 12412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12413 | rm -f conftest.er1 |
| 12414 | cat conftest.err >&5 |
| 12415 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12416 | (exit $ac_status); } && { |
| 12417 | test -z "$ac_c_werror_flag" || |
| 12418 | test ! -s conftest.err |
| 12419 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12420 | cat >conftest.$ac_ext <<_ACEOF |
| 12421 | /* confdefs.h. */ |
| 12422 | _ACEOF |
| 12423 | cat confdefs.h >>conftest.$ac_ext |
| 12424 | cat >>conftest.$ac_ext <<_ACEOF |
| 12425 | /* end confdefs.h. */ |
| 12426 | $ac_includes_default |
| 12427 | int |
| 12428 | main () |
| 12429 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12430 | if (sizeof ((ino_t))) |
| 12431 | return 0; |
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 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12437 | if { (ac_try="$ac_compile" |
| 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_compile") 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_objext; then |
| 12454 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12455 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12456 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12457 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12458 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12459 | ac_cv_type_ino_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12460 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12461 | |
| 12462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12463 | else |
| 12464 | $as_echo "$as_me: failed program was:" >&5 |
| 12465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12466 | |
| 12467 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12468 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12469 | |
| 12470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12471 | fi |
| 12472 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
| 12473 | $as_echo "$ac_cv_type_ino_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12474 | if test "x$ac_cv_type_ino_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12475 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12476 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12477 | |
| 12478 | cat >>confdefs.h <<_ACEOF |
| 12479 | #define ino_t long |
| 12480 | _ACEOF |
| 12481 | |
| 12482 | fi |
| 12483 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12484 | { $as_echo "$as_me:$LINENO: checking for dev_t" >&5 |
| 12485 | $as_echo_n "checking for dev_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12486 | if test "${ac_cv_type_dev_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12487 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12488 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12489 | ac_cv_type_dev_t=no |
| 12490 | cat >conftest.$ac_ext <<_ACEOF |
| 12491 | /* confdefs.h. */ |
| 12492 | _ACEOF |
| 12493 | cat confdefs.h >>conftest.$ac_ext |
| 12494 | cat >>conftest.$ac_ext <<_ACEOF |
| 12495 | /* end confdefs.h. */ |
| 12496 | $ac_includes_default |
| 12497 | int |
| 12498 | main () |
| 12499 | { |
| 12500 | if (sizeof (dev_t)) |
| 12501 | return 0; |
| 12502 | ; |
| 12503 | return 0; |
| 12504 | } |
| 12505 | _ACEOF |
| 12506 | rm -f conftest.$ac_objext |
| 12507 | if { (ac_try="$ac_compile" |
| 12508 | case "(($ac_try" in |
| 12509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12510 | *) ac_try_echo=$ac_try;; |
| 12511 | esac |
| 12512 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12513 | $as_echo "$ac_try_echo") >&5 |
| 12514 | (eval "$ac_compile") 2>conftest.er1 |
| 12515 | ac_status=$? |
| 12516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12517 | rm -f conftest.er1 |
| 12518 | cat conftest.err >&5 |
| 12519 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12520 | (exit $ac_status); } && { |
| 12521 | test -z "$ac_c_werror_flag" || |
| 12522 | test ! -s conftest.err |
| 12523 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12524 | cat >conftest.$ac_ext <<_ACEOF |
| 12525 | /* confdefs.h. */ |
| 12526 | _ACEOF |
| 12527 | cat confdefs.h >>conftest.$ac_ext |
| 12528 | cat >>conftest.$ac_ext <<_ACEOF |
| 12529 | /* end confdefs.h. */ |
| 12530 | $ac_includes_default |
| 12531 | int |
| 12532 | main () |
| 12533 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12534 | if (sizeof ((dev_t))) |
| 12535 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12536 | ; |
| 12537 | return 0; |
| 12538 | } |
| 12539 | _ACEOF |
| 12540 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12541 | if { (ac_try="$ac_compile" |
| 12542 | case "(($ac_try" in |
| 12543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12544 | *) ac_try_echo=$ac_try;; |
| 12545 | esac |
| 12546 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12547 | $as_echo "$ac_try_echo") >&5 |
| 12548 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12549 | ac_status=$? |
| 12550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12551 | rm -f conftest.er1 |
| 12552 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12554 | (exit $ac_status); } && { |
| 12555 | test -z "$ac_c_werror_flag" || |
| 12556 | test ! -s conftest.err |
| 12557 | } && test -s conftest.$ac_objext; then |
| 12558 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12559 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12560 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12562 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12563 | ac_cv_type_dev_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12564 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12565 | |
| 12566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12567 | else |
| 12568 | $as_echo "$as_me: failed program was:" >&5 |
| 12569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12570 | |
| 12571 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12572 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12573 | |
| 12574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12575 | fi |
| 12576 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
| 12577 | $as_echo "$ac_cv_type_dev_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12578 | if test "x$ac_cv_type_dev_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12579 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12580 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12581 | |
| 12582 | cat >>confdefs.h <<_ACEOF |
| 12583 | #define dev_t unsigned |
| 12584 | _ACEOF |
| 12585 | |
| 12586 | fi |
| 12587 | |
| 12588 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12589 | { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5 |
| 12590 | $as_echo_n "checking for rlim_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12591 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12592 | { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 12593 | $as_echo "(cached) $ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12594 | else |
| 12595 | cat >conftest.$ac_ext <<_ACEOF |
| 12596 | /* confdefs.h. */ |
| 12597 | _ACEOF |
| 12598 | cat confdefs.h >>conftest.$ac_ext |
| 12599 | cat >>conftest.$ac_ext <<_ACEOF |
| 12600 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12601 | |
| 12602 | #include <sys/types.h> |
| 12603 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12604 | # include <stdlib.h> |
| 12605 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12606 | #endif |
| 12607 | #ifdef HAVE_SYS_RESOURCE_H |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12608 | # include <sys/resource.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12609 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12610 | |
| 12611 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12612 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12613 | $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] | 12614 | ac_cv_type_rlim_t=yes |
| 12615 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12616 | ac_cv_type_rlim_t=no |
| 12617 | fi |
| 12618 | rm -f conftest* |
| 12619 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12620 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
| 12621 | $as_echo "$ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12622 | fi |
| 12623 | if test $ac_cv_type_rlim_t = no; then |
| 12624 | cat >> confdefs.h <<\EOF |
| 12625 | #define rlim_t unsigned long |
| 12626 | EOF |
| 12627 | fi |
| 12628 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12629 | { $as_echo "$as_me:$LINENO: checking for stack_t" >&5 |
| 12630 | $as_echo_n "checking for stack_t... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12631 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12632 | { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
| 12633 | $as_echo "(cached) $ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12634 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12635 | cat >conftest.$ac_ext <<_ACEOF |
| 12636 | /* confdefs.h. */ |
| 12637 | _ACEOF |
| 12638 | cat confdefs.h >>conftest.$ac_ext |
| 12639 | cat >>conftest.$ac_ext <<_ACEOF |
| 12640 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12641 | |
| 12642 | #include <sys/types.h> |
| 12643 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12644 | # include <stdlib.h> |
| 12645 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12646 | #endif |
| 12647 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12648 | |
| 12649 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12650 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12651 | $EGREP "stack_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12652 | ac_cv_type_stack_t=yes |
| 12653 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12654 | ac_cv_type_stack_t=no |
| 12655 | fi |
| 12656 | rm -f conftest* |
| 12657 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12658 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
| 12659 | $as_echo "$ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12660 | fi |
| 12661 | if test $ac_cv_type_stack_t = no; then |
| 12662 | cat >> confdefs.h <<\EOF |
| 12663 | #define stack_t struct sigaltstack |
| 12664 | EOF |
| 12665 | fi |
| 12666 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12667 | { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
| 12668 | $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] | 12669 | cat >conftest.$ac_ext <<_ACEOF |
| 12670 | /* confdefs.h. */ |
| 12671 | _ACEOF |
| 12672 | cat confdefs.h >>conftest.$ac_ext |
| 12673 | cat >>conftest.$ac_ext <<_ACEOF |
| 12674 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12675 | |
| 12676 | #include <sys/types.h> |
| 12677 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12678 | # include <stdlib.h> |
| 12679 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12680 | #endif |
| 12681 | #include <signal.h> |
| 12682 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12683 | |
| 12684 | int |
| 12685 | main () |
| 12686 | { |
| 12687 | stack_t sigstk; sigstk.ss_base = 0; |
| 12688 | ; |
| 12689 | return 0; |
| 12690 | } |
| 12691 | _ACEOF |
| 12692 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12693 | if { (ac_try="$ac_compile" |
| 12694 | case "(($ac_try" in |
| 12695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12696 | *) ac_try_echo=$ac_try;; |
| 12697 | esac |
| 12698 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12699 | $as_echo "$ac_try_echo") >&5 |
| 12700 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12701 | ac_status=$? |
| 12702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12703 | rm -f conftest.er1 |
| 12704 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12705 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12706 | (exit $ac_status); } && { |
| 12707 | test -z "$ac_c_werror_flag" || |
| 12708 | test ! -s conftest.err |
| 12709 | } && test -s conftest.$ac_objext; then |
| 12710 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12711 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12712 | #define HAVE_SS_BASE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12713 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12714 | |
| 12715 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12716 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12718 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12719 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12720 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12721 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12722 | |
| 12723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12724 | |
| 12725 | olibs="$LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12726 | { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
| 12727 | $as_echo_n "checking --with-tlib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12728 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12729 | # Check whether --with-tlib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12730 | if test "${with_tlib+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12731 | withval=$with_tlib; |
| 12732 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12733 | |
| 12734 | if test -n "$with_tlib"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12735 | { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5 |
| 12736 | $as_echo "$with_tlib" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12737 | LIBS="$LIBS -l$with_tlib" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12738 | { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
| 12739 | $as_echo_n "checking for linking with $with_tlib library... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12740 | cat >conftest.$ac_ext <<_ACEOF |
| 12741 | /* confdefs.h. */ |
| 12742 | _ACEOF |
| 12743 | cat confdefs.h >>conftest.$ac_ext |
| 12744 | cat >>conftest.$ac_ext <<_ACEOF |
| 12745 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12746 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12747 | int |
| 12748 | main () |
| 12749 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12750 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12751 | ; |
| 12752 | return 0; |
| 12753 | } |
| 12754 | _ACEOF |
| 12755 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12756 | if { (ac_try="$ac_link" |
| 12757 | case "(($ac_try" in |
| 12758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12759 | *) ac_try_echo=$ac_try;; |
| 12760 | esac |
| 12761 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12762 | $as_echo "$ac_try_echo") >&5 |
| 12763 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12764 | ac_status=$? |
| 12765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12766 | rm -f conftest.er1 |
| 12767 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12769 | (exit $ac_status); } && { |
| 12770 | test -z "$ac_c_werror_flag" || |
| 12771 | test ! -s conftest.err |
| 12772 | } && test -s conftest$ac_exeext && { |
| 12773 | test "$cross_compiling" = yes || |
| 12774 | $as_test_x conftest$ac_exeext |
| 12775 | }; then |
| 12776 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 12777 | $as_echo "OK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12778 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12779 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12781 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12782 | { { $as_echo "$as_me:$LINENO: error: FAILED" >&5 |
| 12783 | $as_echo "$as_me: error: FAILED" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12784 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12785 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12786 | |
| 12787 | rm -rf conftest.dSYM |
| 12788 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12789 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12790 | olibs="$LIBS" |
| 12791 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12792 | { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
| 12793 | $as_echo "empty: automatic terminal library selection" >&6; } |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 12794 | case "`uname -s 2>/dev/null`" in |
| 12795 | OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12796 | *) tlibs="ncurses termlib termcap curses";; |
| 12797 | esac |
| 12798 | for libname in $tlibs; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12799 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12800 | as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
| 12801 | { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
| 12802 | $as_echo_n "checking for tgetent in -l${libname}... " >&6; } |
| 12803 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12804 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12805 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12806 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12807 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12808 | cat >conftest.$ac_ext <<_ACEOF |
| 12809 | /* confdefs.h. */ |
| 12810 | _ACEOF |
| 12811 | cat confdefs.h >>conftest.$ac_ext |
| 12812 | cat >>conftest.$ac_ext <<_ACEOF |
| 12813 | /* end confdefs.h. */ |
| 12814 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12815 | /* Override any GCC internal prototype to avoid an error. |
| 12816 | Use char because int might match the return type of a GCC |
| 12817 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12818 | #ifdef __cplusplus |
| 12819 | extern "C" |
| 12820 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12821 | char tgetent (); |
| 12822 | int |
| 12823 | main () |
| 12824 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12825 | return tgetent (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12826 | ; |
| 12827 | return 0; |
| 12828 | } |
| 12829 | _ACEOF |
| 12830 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12831 | if { (ac_try="$ac_link" |
| 12832 | case "(($ac_try" in |
| 12833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12834 | *) ac_try_echo=$ac_try;; |
| 12835 | esac |
| 12836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12837 | $as_echo "$ac_try_echo") >&5 |
| 12838 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12839 | ac_status=$? |
| 12840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12841 | rm -f conftest.er1 |
| 12842 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12843 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12844 | (exit $ac_status); } && { |
| 12845 | test -z "$ac_c_werror_flag" || |
| 12846 | test ! -s conftest.err |
| 12847 | } && test -s conftest$ac_exeext && { |
| 12848 | test "$cross_compiling" = yes || |
| 12849 | $as_test_x conftest$ac_exeext |
| 12850 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12851 | eval "$as_ac_Lib=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12852 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12853 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12854 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12855 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12856 | eval "$as_ac_Lib=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12857 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12858 | |
| 12859 | rm -rf conftest.dSYM |
| 12860 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12861 | conftest$ac_exeext conftest.$ac_ext |
| 12862 | LIBS=$ac_check_lib_save_LIBS |
| 12863 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12864 | ac_res=`eval 'as_val=${'$as_ac_Lib'} |
| 12865 | $as_echo "$as_val"'` |
| 12866 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12867 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12868 | as_val=`eval 'as_val=${'$as_ac_Lib'} |
| 12869 | $as_echo "$as_val"'` |
| 12870 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12871 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12872 | #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12873 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12874 | |
| 12875 | LIBS="-l${libname} $LIBS" |
| 12876 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12877 | fi |
| 12878 | |
| 12879 | if test "x$olibs" != "x$LIBS"; then |
| 12880 | if test "$cross_compiling" = yes; then |
| 12881 | res="FAIL" |
| 12882 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12883 | cat >conftest.$ac_ext <<_ACEOF |
| 12884 | /* confdefs.h. */ |
| 12885 | _ACEOF |
| 12886 | cat confdefs.h >>conftest.$ac_ext |
| 12887 | cat >>conftest.$ac_ext <<_ACEOF |
| 12888 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12889 | |
| 12890 | #ifdef HAVE_TERMCAP_H |
| 12891 | # include <termcap.h> |
| 12892 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12893 | #if STDC_HEADERS |
| 12894 | # include <stdlib.h> |
| 12895 | # include <stddef.h> |
| 12896 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12897 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12898 | _ACEOF |
| 12899 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12900 | if { (ac_try="$ac_link" |
| 12901 | case "(($ac_try" in |
| 12902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12903 | *) ac_try_echo=$ac_try;; |
| 12904 | esac |
| 12905 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12906 | $as_echo "$ac_try_echo") >&5 |
| 12907 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12908 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12909 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12910 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12911 | { (case "(($ac_try" in |
| 12912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12913 | *) ac_try_echo=$ac_try;; |
| 12914 | esac |
| 12915 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12916 | $as_echo "$ac_try_echo") >&5 |
| 12917 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12918 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12919 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12920 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12921 | res="OK" |
| 12922 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12923 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12924 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12925 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12926 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12927 | ( exit $ac_status ) |
| 12928 | res="FAIL" |
| 12929 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12930 | rm -rf conftest.dSYM |
| 12931 | 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] | 12932 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12933 | |
| 12934 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12935 | if test "$res" = "OK"; then |
| 12936 | break |
| 12937 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12938 | { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
| 12939 | $as_echo "$libname library is not usable" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12940 | LIBS="$olibs" |
| 12941 | fi |
| 12942 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12943 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12944 | { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5 |
| 12945 | $as_echo "no terminal library found" >&6; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12946 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12947 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12948 | |
| 12949 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12950 | { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5 |
| 12951 | $as_echo_n "checking for tgetent()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12952 | cat >conftest.$ac_ext <<_ACEOF |
| 12953 | /* confdefs.h. */ |
| 12954 | _ACEOF |
| 12955 | cat confdefs.h >>conftest.$ac_ext |
| 12956 | cat >>conftest.$ac_ext <<_ACEOF |
| 12957 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12958 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12959 | int |
| 12960 | main () |
| 12961 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12962 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12963 | ; |
| 12964 | return 0; |
| 12965 | } |
| 12966 | _ACEOF |
| 12967 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12968 | if { (ac_try="$ac_link" |
| 12969 | case "(($ac_try" in |
| 12970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12971 | *) ac_try_echo=$ac_try;; |
| 12972 | esac |
| 12973 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12974 | $as_echo "$ac_try_echo") >&5 |
| 12975 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12976 | ac_status=$? |
| 12977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12978 | rm -f conftest.er1 |
| 12979 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12980 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12981 | (exit $ac_status); } && { |
| 12982 | test -z "$ac_c_werror_flag" || |
| 12983 | test ! -s conftest.err |
| 12984 | } && test -s conftest$ac_exeext && { |
| 12985 | test "$cross_compiling" = yes || |
| 12986 | $as_test_x conftest$ac_exeext |
| 12987 | }; then |
| 12988 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12989 | $as_echo "yes" >&6; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12990 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12991 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12993 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12994 | { { $as_echo "$as_me:$LINENO: error: NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12995 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12996 | Or specify the name of the library with --with-tlib." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12997 | $as_echo "$as_me: error: NOT FOUND! |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12998 | You need to install a terminal library; for example ncurses. |
| 12999 | Or specify the name of the library with --with-tlib." >&2;} |
| 13000 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13001 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13002 | |
| 13003 | rm -rf conftest.dSYM |
| 13004 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13005 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13006 | fi |
| 13007 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13008 | { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 |
| 13009 | $as_echo_n "checking whether we talk terminfo... " >&6; } |
| 13010 | if test "${vim_cv_terminfo+set}" = set; then |
| 13011 | $as_echo_n "(cached) " >&6 |
| 13012 | else |
| 13013 | |
| 13014 | if test "$cross_compiling" = yes; then |
| 13015 | |
| 13016 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5 |
| 13017 | $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] | 13018 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13019 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13020 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13021 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13022 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13023 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13024 | #ifdef HAVE_TERMCAP_H |
| 13025 | # include <termcap.h> |
| 13026 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13027 | #ifdef HAVE_STRING_H |
| 13028 | # include <string.h> |
| 13029 | #endif |
| 13030 | #if STDC_HEADERS |
| 13031 | # include <stdlib.h> |
| 13032 | # include <stddef.h> |
| 13033 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13034 | main() |
| 13035 | {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] | 13036 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13037 | _ACEOF |
| 13038 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13039 | if { (ac_try="$ac_link" |
| 13040 | case "(($ac_try" in |
| 13041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13042 | *) ac_try_echo=$ac_try;; |
| 13043 | esac |
| 13044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13045 | $as_echo "$ac_try_echo") >&5 |
| 13046 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13047 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13049 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13050 | { (case "(($ac_try" in |
| 13051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13052 | *) ac_try_echo=$ac_try;; |
| 13053 | esac |
| 13054 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13055 | $as_echo "$ac_try_echo") >&5 |
| 13056 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13057 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13058 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13059 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13060 | |
| 13061 | vim_cv_terminfo=no |
| 13062 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13063 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13064 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13065 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13067 | |
| 13068 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13069 | |
| 13070 | vim_cv_terminfo=yes |
| 13071 | |
| 13072 | fi |
| 13073 | rm -rf conftest.dSYM |
| 13074 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13075 | fi |
| 13076 | |
| 13077 | |
| 13078 | |
| 13079 | fi |
| 13080 | { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5 |
| 13081 | $as_echo "$vim_cv_terminfo" >&6; } |
| 13082 | |
| 13083 | if test "x$vim_cv_terminfo" = "xyes" ; then |
| 13084 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13085 | #define TERMINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13086 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13087 | |
| 13088 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13089 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13090 | if test "x$olibs" != "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13091 | { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
| 13092 | $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } |
| 13093 | if test "${vim_cv_tgent+set}" = set; then |
| 13094 | $as_echo_n "(cached) " >&6 |
| 13095 | else |
| 13096 | |
| 13097 | if test "$cross_compiling" = yes; then |
| 13098 | |
| 13099 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 13100 | $as_echo "$as_me: error: failed to compile test program." >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13101 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13102 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13103 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13104 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13105 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13106 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13107 | #ifdef HAVE_TERMCAP_H |
| 13108 | # include <termcap.h> |
| 13109 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13110 | #if STDC_HEADERS |
| 13111 | # include <stdlib.h> |
| 13112 | # include <stddef.h> |
| 13113 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13114 | main() |
| 13115 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13116 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13117 | _ACEOF |
| 13118 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13119 | if { (ac_try="$ac_link" |
| 13120 | case "(($ac_try" in |
| 13121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13122 | *) ac_try_echo=$ac_try;; |
| 13123 | esac |
| 13124 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13125 | $as_echo "$ac_try_echo") >&5 |
| 13126 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13127 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13128 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13129 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13130 | { (case "(($ac_try" in |
| 13131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13132 | *) ac_try_echo=$ac_try;; |
| 13133 | esac |
| 13134 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13135 | $as_echo "$ac_try_echo") >&5 |
| 13136 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13137 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13138 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13139 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13140 | |
| 13141 | vim_cv_tgent=zero |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13142 | |
| 13143 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13144 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13145 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13147 | |
| 13148 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13149 | |
| 13150 | vim_cv_tgent=non-zero |
| 13151 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13152 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13153 | rm -rf conftest.dSYM |
| 13154 | 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] | 13155 | fi |
| 13156 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13157 | |
| 13158 | |
| 13159 | fi |
| 13160 | { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5 |
| 13161 | $as_echo "$vim_cv_tgent" >&6; } |
| 13162 | |
| 13163 | if test "x$vim_cv_tgent" = "xzero" ; then |
| 13164 | cat >>confdefs.h <<\_ACEOF |
| 13165 | #define TGETENT_ZERO_ERR 0 |
| 13166 | _ACEOF |
| 13167 | |
| 13168 | fi |
| 13169 | fi |
| 13170 | |
| 13171 | { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
| 13172 | $as_echo_n "checking whether termcap.h contains ospeed... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13173 | cat >conftest.$ac_ext <<_ACEOF |
| 13174 | /* confdefs.h. */ |
| 13175 | _ACEOF |
| 13176 | cat confdefs.h >>conftest.$ac_ext |
| 13177 | cat >>conftest.$ac_ext <<_ACEOF |
| 13178 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13179 | |
| 13180 | #ifdef HAVE_TERMCAP_H |
| 13181 | # include <termcap.h> |
| 13182 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13183 | |
| 13184 | int |
| 13185 | main () |
| 13186 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13187 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13188 | ; |
| 13189 | return 0; |
| 13190 | } |
| 13191 | _ACEOF |
| 13192 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13193 | if { (ac_try="$ac_link" |
| 13194 | case "(($ac_try" in |
| 13195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13196 | *) ac_try_echo=$ac_try;; |
| 13197 | esac |
| 13198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13199 | $as_echo "$ac_try_echo") >&5 |
| 13200 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13201 | ac_status=$? |
| 13202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13203 | rm -f conftest.er1 |
| 13204 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13205 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13206 | (exit $ac_status); } && { |
| 13207 | test -z "$ac_c_werror_flag" || |
| 13208 | test ! -s conftest.err |
| 13209 | } && test -s conftest$ac_exeext && { |
| 13210 | test "$cross_compiling" = yes || |
| 13211 | $as_test_x conftest$ac_exeext |
| 13212 | }; then |
| 13213 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13214 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13215 | #define HAVE_OSPEED 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13216 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13217 | |
| 13218 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13219 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13221 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13222 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13223 | $as_echo "no" >&6; } |
| 13224 | { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
| 13225 | $as_echo_n "checking whether ospeed can be extern... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13226 | cat >conftest.$ac_ext <<_ACEOF |
| 13227 | /* confdefs.h. */ |
| 13228 | _ACEOF |
| 13229 | cat confdefs.h >>conftest.$ac_ext |
| 13230 | cat >>conftest.$ac_ext <<_ACEOF |
| 13231 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13232 | |
| 13233 | #ifdef HAVE_TERMCAP_H |
| 13234 | # include <termcap.h> |
| 13235 | #endif |
| 13236 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13237 | |
| 13238 | int |
| 13239 | main () |
| 13240 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13241 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13242 | ; |
| 13243 | return 0; |
| 13244 | } |
| 13245 | _ACEOF |
| 13246 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13247 | if { (ac_try="$ac_link" |
| 13248 | case "(($ac_try" in |
| 13249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13250 | *) ac_try_echo=$ac_try;; |
| 13251 | esac |
| 13252 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13253 | $as_echo "$ac_try_echo") >&5 |
| 13254 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13255 | ac_status=$? |
| 13256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13257 | rm -f conftest.er1 |
| 13258 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13259 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13260 | (exit $ac_status); } && { |
| 13261 | test -z "$ac_c_werror_flag" || |
| 13262 | test ! -s conftest.err |
| 13263 | } && test -s conftest$ac_exeext && { |
| 13264 | test "$cross_compiling" = yes || |
| 13265 | $as_test_x conftest$ac_exeext |
| 13266 | }; then |
| 13267 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13268 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13269 | #define OSPEED_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13270 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13271 | |
| 13272 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13273 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13274 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13275 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13276 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13277 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13278 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13279 | |
| 13280 | rm -rf conftest.dSYM |
| 13281 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13282 | conftest$ac_exeext conftest.$ac_ext |
| 13283 | |
| 13284 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13285 | |
| 13286 | rm -rf conftest.dSYM |
| 13287 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13288 | conftest$ac_exeext conftest.$ac_ext |
| 13289 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13290 | { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
| 13291 | $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] | 13292 | cat >conftest.$ac_ext <<_ACEOF |
| 13293 | /* confdefs.h. */ |
| 13294 | _ACEOF |
| 13295 | cat confdefs.h >>conftest.$ac_ext |
| 13296 | cat >>conftest.$ac_ext <<_ACEOF |
| 13297 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13298 | |
| 13299 | #ifdef HAVE_TERMCAP_H |
| 13300 | # include <termcap.h> |
| 13301 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13302 | |
| 13303 | int |
| 13304 | main () |
| 13305 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13306 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13307 | ; |
| 13308 | return 0; |
| 13309 | } |
| 13310 | _ACEOF |
| 13311 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13312 | if { (ac_try="$ac_link" |
| 13313 | case "(($ac_try" in |
| 13314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13315 | *) ac_try_echo=$ac_try;; |
| 13316 | esac |
| 13317 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13318 | $as_echo "$ac_try_echo") >&5 |
| 13319 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13320 | ac_status=$? |
| 13321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13322 | rm -f conftest.er1 |
| 13323 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13324 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13325 | (exit $ac_status); } && { |
| 13326 | test -z "$ac_c_werror_flag" || |
| 13327 | test ! -s conftest.err |
| 13328 | } && test -s conftest$ac_exeext && { |
| 13329 | test "$cross_compiling" = yes || |
| 13330 | $as_test_x conftest$ac_exeext |
| 13331 | }; then |
| 13332 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13333 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13334 | #define HAVE_UP_BC_PC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13335 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13336 | |
| 13337 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13338 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13340 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13341 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13342 | $as_echo "no" >&6; } |
| 13343 | { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
| 13344 | $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] | 13345 | cat >conftest.$ac_ext <<_ACEOF |
| 13346 | /* confdefs.h. */ |
| 13347 | _ACEOF |
| 13348 | cat confdefs.h >>conftest.$ac_ext |
| 13349 | cat >>conftest.$ac_ext <<_ACEOF |
| 13350 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13351 | |
| 13352 | #ifdef HAVE_TERMCAP_H |
| 13353 | # include <termcap.h> |
| 13354 | #endif |
| 13355 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13356 | |
| 13357 | int |
| 13358 | main () |
| 13359 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13360 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13361 | ; |
| 13362 | return 0; |
| 13363 | } |
| 13364 | _ACEOF |
| 13365 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13366 | if { (ac_try="$ac_link" |
| 13367 | case "(($ac_try" in |
| 13368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13369 | *) ac_try_echo=$ac_try;; |
| 13370 | esac |
| 13371 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13372 | $as_echo "$ac_try_echo") >&5 |
| 13373 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13374 | ac_status=$? |
| 13375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13376 | rm -f conftest.er1 |
| 13377 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13379 | (exit $ac_status); } && { |
| 13380 | test -z "$ac_c_werror_flag" || |
| 13381 | test ! -s conftest.err |
| 13382 | } && test -s conftest$ac_exeext && { |
| 13383 | test "$cross_compiling" = yes || |
| 13384 | $as_test_x conftest$ac_exeext |
| 13385 | }; then |
| 13386 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13387 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13388 | #define UP_BC_PC_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13389 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13390 | |
| 13391 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13392 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13393 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13394 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13395 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13396 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13397 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13398 | |
| 13399 | rm -rf conftest.dSYM |
| 13400 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13401 | conftest$ac_exeext conftest.$ac_ext |
| 13402 | |
| 13403 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13404 | |
| 13405 | rm -rf conftest.dSYM |
| 13406 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13407 | conftest$ac_exeext conftest.$ac_ext |
| 13408 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13409 | { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
| 13410 | $as_echo_n "checking whether tputs() uses outfuntype... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13411 | cat >conftest.$ac_ext <<_ACEOF |
| 13412 | /* confdefs.h. */ |
| 13413 | _ACEOF |
| 13414 | cat confdefs.h >>conftest.$ac_ext |
| 13415 | cat >>conftest.$ac_ext <<_ACEOF |
| 13416 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13417 | |
| 13418 | #ifdef HAVE_TERMCAP_H |
| 13419 | # include <termcap.h> |
| 13420 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13421 | |
| 13422 | int |
| 13423 | main () |
| 13424 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13425 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13426 | ; |
| 13427 | return 0; |
| 13428 | } |
| 13429 | _ACEOF |
| 13430 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13431 | if { (ac_try="$ac_compile" |
| 13432 | case "(($ac_try" in |
| 13433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13434 | *) ac_try_echo=$ac_try;; |
| 13435 | esac |
| 13436 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13437 | $as_echo "$ac_try_echo") >&5 |
| 13438 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13439 | ac_status=$? |
| 13440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13441 | rm -f conftest.er1 |
| 13442 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13443 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13444 | (exit $ac_status); } && { |
| 13445 | test -z "$ac_c_werror_flag" || |
| 13446 | test ! -s conftest.err |
| 13447 | } && test -s conftest.$ac_objext; then |
| 13448 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13449 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13450 | #define HAVE_OUTFUNTYPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13451 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13452 | |
| 13453 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13454 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13455 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13456 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13457 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13458 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13459 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13460 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13462 | |
| 13463 | { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13464 | $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] | 13465 | cat >conftest.$ac_ext <<_ACEOF |
| 13466 | /* confdefs.h. */ |
| 13467 | _ACEOF |
| 13468 | cat confdefs.h >>conftest.$ac_ext |
| 13469 | cat >>conftest.$ac_ext <<_ACEOF |
| 13470 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13471 | |
| 13472 | #include <sys/types.h> |
| 13473 | #include <sys/time.h> |
| 13474 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13475 | int |
| 13476 | main () |
| 13477 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13478 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13479 | ; |
| 13480 | return 0; |
| 13481 | } |
| 13482 | _ACEOF |
| 13483 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13484 | if { (ac_try="$ac_compile" |
| 13485 | case "(($ac_try" in |
| 13486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13487 | *) ac_try_echo=$ac_try;; |
| 13488 | esac |
| 13489 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13490 | $as_echo "$ac_try_echo") >&5 |
| 13491 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13492 | ac_status=$? |
| 13493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13494 | rm -f conftest.er1 |
| 13495 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13497 | (exit $ac_status); } && { |
| 13498 | test -z "$ac_c_werror_flag" || |
| 13499 | test ! -s conftest.err |
| 13500 | } && test -s conftest.$ac_objext; then |
| 13501 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13502 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13503 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13504 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13505 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13506 | |
| 13507 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13508 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13510 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13511 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13512 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13513 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13514 | |
| 13515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13516 | |
| 13517 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13518 | { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 13519 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13520 | if test -r /dev/ptc; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13521 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13522 | #define HAVE_DEV_PTC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13523 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13524 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13525 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13526 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13527 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13528 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13529 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13530 | fi |
| 13531 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13532 | { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 |
| 13533 | $as_echo_n "checking for SVR4 ptys... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13534 | if test -c /dev/ptmx ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13535 | cat >conftest.$ac_ext <<_ACEOF |
| 13536 | /* confdefs.h. */ |
| 13537 | _ACEOF |
| 13538 | cat confdefs.h >>conftest.$ac_ext |
| 13539 | cat >>conftest.$ac_ext <<_ACEOF |
| 13540 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13541 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13542 | int |
| 13543 | main () |
| 13544 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13545 | ptsname(0);grantpt(0);unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13546 | ; |
| 13547 | return 0; |
| 13548 | } |
| 13549 | _ACEOF |
| 13550 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13551 | if { (ac_try="$ac_link" |
| 13552 | case "(($ac_try" in |
| 13553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13554 | *) ac_try_echo=$ac_try;; |
| 13555 | esac |
| 13556 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13557 | $as_echo "$ac_try_echo") >&5 |
| 13558 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13559 | ac_status=$? |
| 13560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13561 | rm -f conftest.er1 |
| 13562 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13563 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13564 | (exit $ac_status); } && { |
| 13565 | test -z "$ac_c_werror_flag" || |
| 13566 | test ! -s conftest.err |
| 13567 | } && test -s conftest$ac_exeext && { |
| 13568 | test "$cross_compiling" = yes || |
| 13569 | $as_test_x conftest$ac_exeext |
| 13570 | }; then |
| 13571 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13572 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13573 | #define HAVE_SVR4_PTYS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13574 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13575 | |
| 13576 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13577 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13579 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13580 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13581 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13582 | fi |
| 13583 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13584 | rm -rf conftest.dSYM |
| 13585 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13586 | conftest$ac_exeext conftest.$ac_ext |
| 13587 | else |
| 13588 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13589 | $as_echo "no" >&6; } |
| 13590 | fi |
| 13591 | |
| 13592 | { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5 |
| 13593 | $as_echo_n "checking for ptyranges... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13594 | if test -d /dev/ptym ; then |
| 13595 | pdir='/dev/ptym' |
| 13596 | else |
| 13597 | pdir='/dev' |
| 13598 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13599 | cat >conftest.$ac_ext <<_ACEOF |
| 13600 | /* confdefs.h. */ |
| 13601 | _ACEOF |
| 13602 | cat confdefs.h >>conftest.$ac_ext |
| 13603 | cat >>conftest.$ac_ext <<_ACEOF |
| 13604 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13605 | #ifdef M_UNIX |
| 13606 | yes; |
| 13607 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13608 | |
| 13609 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13610 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13611 | $EGREP "yes" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13612 | ptys=`echo /dev/ptyp??` |
| 13613 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13614 | ptys=`echo $pdir/pty??` |
| 13615 | fi |
| 13616 | rm -f conftest* |
| 13617 | |
| 13618 | if test "$ptys" != "$pdir/pty??" ; then |
| 13619 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 13620 | 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] | 13621 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13622 | #define PTYRANGE0 "$p0" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13623 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13624 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13625 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13626 | #define PTYRANGE1 "$p1" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13627 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13628 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13629 | { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
| 13630 | $as_echo "$p0 / $p1" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13631 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13632 | { $as_echo "$as_me:$LINENO: result: don't know" >&5 |
| 13633 | $as_echo "don't know" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13634 | fi |
| 13635 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13636 | rm -f conftest_grp |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13637 | { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5 |
| 13638 | $as_echo_n "checking default tty permissions/group... " >&6; } |
| 13639 | if test "${vim_cv_tty_group+set}" = set; then |
| 13640 | $as_echo_n "(cached) " >&6 |
| 13641 | else |
| 13642 | |
| 13643 | if test "$cross_compiling" = yes; then |
| 13644 | |
| 13645 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5 |
| 13646 | $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] | 13647 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13648 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13649 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13650 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13651 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13652 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13653 | #include <sys/types.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13654 | #if STDC_HEADERS |
| 13655 | # include <stdlib.h> |
| 13656 | # include <stddef.h> |
| 13657 | #endif |
| 13658 | #ifdef HAVE_UNISTD_H |
| 13659 | #include <unistd.h> |
| 13660 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13661 | #include <sys/stat.h> |
| 13662 | #include <stdio.h> |
| 13663 | main() |
| 13664 | { |
| 13665 | struct stat sb; |
| 13666 | char *x,*ttyname(); |
| 13667 | int om, m; |
| 13668 | FILE *fp; |
| 13669 | |
| 13670 | if (!(x = ttyname(0))) exit(1); |
| 13671 | if (stat(x, &sb)) exit(1); |
| 13672 | om = sb.st_mode; |
| 13673 | if (om & 002) exit(0); |
| 13674 | m = system("mesg y"); |
| 13675 | if (m == -1 || m == 127) exit(1); |
| 13676 | if (stat(x, &sb)) exit(1); |
| 13677 | m = sb.st_mode; |
| 13678 | if (chmod(x, om)) exit(1); |
| 13679 | if (m & 002) exit(0); |
| 13680 | if (sb.st_gid == getgid()) exit(1); |
| 13681 | if (!(fp=fopen("conftest_grp", "w"))) |
| 13682 | exit(1); |
| 13683 | fprintf(fp, "%d\n", sb.st_gid); |
| 13684 | fclose(fp); |
| 13685 | exit(0); |
| 13686 | } |
| 13687 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13688 | _ACEOF |
| 13689 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13690 | if { (ac_try="$ac_link" |
| 13691 | case "(($ac_try" in |
| 13692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13693 | *) ac_try_echo=$ac_try;; |
| 13694 | esac |
| 13695 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13696 | $as_echo "$ac_try_echo") >&5 |
| 13697 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13698 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13699 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13700 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13701 | { (case "(($ac_try" in |
| 13702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13703 | *) ac_try_echo=$ac_try;; |
| 13704 | esac |
| 13705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13706 | $as_echo "$ac_try_echo") >&5 |
| 13707 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13708 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13710 | (exit $ac_status); }; }; then |
| 13711 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13712 | if test -f conftest_grp; then |
| 13713 | vim_cv_tty_group=`cat conftest_grp` |
| 13714 | if test "x$vim_cv_tty_mode" = "x" ; then |
| 13715 | vim_cv_tty_mode=0620 |
| 13716 | fi |
| 13717 | { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 |
| 13718 | $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } |
| 13719 | else |
| 13720 | vim_cv_tty_group=world |
| 13721 | { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5 |
| 13722 | $as_echo "ptys are world accessable" >&6; } |
| 13723 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13724 | |
| 13725 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13726 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13727 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13728 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13729 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13730 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13731 | |
| 13732 | vim_cv_tty_group=world |
| 13733 | { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5 |
| 13734 | $as_echo "can't determine - assume ptys are world accessable" >&6; } |
| 13735 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13736 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13737 | rm -rf conftest.dSYM |
| 13738 | 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] | 13739 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13740 | |
| 13741 | |
| 13742 | |
| 13743 | fi |
| 13744 | { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5 |
| 13745 | $as_echo "$vim_cv_tty_group" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13746 | rm -f conftest_grp |
| 13747 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13748 | if test "x$vim_cv_tty_group" != "xworld" ; then |
| 13749 | cat >>confdefs.h <<_ACEOF |
| 13750 | #define PTYGROUP $vim_cv_tty_group |
| 13751 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13752 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13753 | if test "x$vim_cv_tty_mode" = "x" ; then |
| 13754 | { { $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 |
| 13755 | $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;} |
| 13756 | { (exit 1); exit 1; }; } |
| 13757 | else |
| 13758 | cat >>confdefs.h <<\_ACEOF |
| 13759 | #define PTYMODE 0620 |
| 13760 | _ACEOF |
| 13761 | |
| 13762 | fi |
| 13763 | fi |
| 13764 | |
| 13765 | |
| 13766 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 13767 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13768 | if test "${ac_cv_type_signal+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13769 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13770 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13771 | cat >conftest.$ac_ext <<_ACEOF |
| 13772 | /* confdefs.h. */ |
| 13773 | _ACEOF |
| 13774 | cat confdefs.h >>conftest.$ac_ext |
| 13775 | cat >>conftest.$ac_ext <<_ACEOF |
| 13776 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13777 | #include <sys/types.h> |
| 13778 | #include <signal.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13779 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13780 | int |
| 13781 | main () |
| 13782 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13783 | return *(signal (0, 0)) (0) == 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13784 | ; |
| 13785 | return 0; |
| 13786 | } |
| 13787 | _ACEOF |
| 13788 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13789 | if { (ac_try="$ac_compile" |
| 13790 | case "(($ac_try" in |
| 13791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13792 | *) ac_try_echo=$ac_try;; |
| 13793 | esac |
| 13794 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13795 | $as_echo "$ac_try_echo") >&5 |
| 13796 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13797 | ac_status=$? |
| 13798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13799 | rm -f conftest.er1 |
| 13800 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13801 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13802 | (exit $ac_status); } && { |
| 13803 | test -z "$ac_c_werror_flag" || |
| 13804 | test ! -s conftest.err |
| 13805 | } && test -s conftest.$ac_objext; then |
| 13806 | ac_cv_type_signal=int |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13807 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13808 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13809 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13810 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13811 | ac_cv_type_signal=void |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13812 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13813 | |
| 13814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13815 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13816 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 13817 | $as_echo "$ac_cv_type_signal" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13818 | |
| 13819 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13820 | #define RETSIGTYPE $ac_cv_type_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13821 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13822 | |
| 13823 | |
| 13824 | |
| 13825 | if test $ac_cv_type_signal = void; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13826 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13827 | #define SIGRETURN return |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13828 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13829 | |
| 13830 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13831 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13832 | #define SIGRETURN return 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13833 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13834 | |
| 13835 | fi |
| 13836 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13837 | { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
| 13838 | $as_echo_n "checking for struct sigcontext... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13839 | cat >conftest.$ac_ext <<_ACEOF |
| 13840 | /* confdefs.h. */ |
| 13841 | _ACEOF |
| 13842 | cat confdefs.h >>conftest.$ac_ext |
| 13843 | cat >>conftest.$ac_ext <<_ACEOF |
| 13844 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13845 | |
| 13846 | #include <signal.h> |
| 13847 | test_sig() |
| 13848 | { |
| 13849 | struct sigcontext *scont; |
| 13850 | scont = (struct sigcontext *)0; |
| 13851 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13852 | } |
| 13853 | int |
| 13854 | main () |
| 13855 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13856 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13857 | ; |
| 13858 | return 0; |
| 13859 | } |
| 13860 | _ACEOF |
| 13861 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13862 | if { (ac_try="$ac_compile" |
| 13863 | case "(($ac_try" in |
| 13864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13865 | *) ac_try_echo=$ac_try;; |
| 13866 | esac |
| 13867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13868 | $as_echo "$ac_try_echo") >&5 |
| 13869 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13870 | ac_status=$? |
| 13871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13872 | rm -f conftest.er1 |
| 13873 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13875 | (exit $ac_status); } && { |
| 13876 | test -z "$ac_c_werror_flag" || |
| 13877 | test ! -s conftest.err |
| 13878 | } && test -s conftest.$ac_objext; then |
| 13879 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13880 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13881 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13882 | #define HAVE_SIGCONTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13883 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13884 | |
| 13885 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13886 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13888 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13889 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13890 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13891 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13892 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13894 | |
| 13895 | { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5 |
| 13896 | $as_echo_n "checking getcwd implementation is broken... " >&6; } |
| 13897 | if test "${vim_cv_getcwd_broken+set}" = set; then |
| 13898 | $as_echo_n "(cached) " >&6 |
| 13899 | else |
| 13900 | |
| 13901 | if test "$cross_compiling" = yes; then |
| 13902 | |
| 13903 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5 |
| 13904 | $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] | 13905 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13906 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13907 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13908 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13909 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13910 | #include "confdefs.h" |
| 13911 | #ifdef HAVE_UNISTD_H |
| 13912 | #include <unistd.h> |
| 13913 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13914 | char *dagger[] = { "IFS=pwd", 0 }; |
| 13915 | main() |
| 13916 | { |
| 13917 | char buffer[500]; |
| 13918 | extern char **environ; |
| 13919 | environ = dagger; |
| 13920 | return getcwd(buffer, 500) ? 0 : 1; |
| 13921 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13922 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13923 | _ACEOF |
| 13924 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13925 | if { (ac_try="$ac_link" |
| 13926 | case "(($ac_try" in |
| 13927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13928 | *) ac_try_echo=$ac_try;; |
| 13929 | esac |
| 13930 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13931 | $as_echo "$ac_try_echo") >&5 |
| 13932 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13933 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13934 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13935 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13936 | { (case "(($ac_try" in |
| 13937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13938 | *) ac_try_echo=$ac_try;; |
| 13939 | esac |
| 13940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13941 | $as_echo "$ac_try_echo") >&5 |
| 13942 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13943 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13944 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13945 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13946 | |
| 13947 | vim_cv_getcwd_broken=no |
| 13948 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13949 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13950 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13951 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13953 | |
| 13954 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13955 | |
| 13956 | vim_cv_getcwd_broken=yes |
| 13957 | |
| 13958 | fi |
| 13959 | rm -rf conftest.dSYM |
| 13960 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13961 | fi |
| 13962 | |
| 13963 | |
| 13964 | |
| 13965 | fi |
| 13966 | { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5 |
| 13967 | $as_echo "$vim_cv_getcwd_broken" >&6; } |
| 13968 | |
| 13969 | if test "x$vim_cv_getcwd_broken" = "xyes" ; then |
| 13970 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13971 | #define BAD_GETCWD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13972 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13973 | |
| 13974 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13975 | |
| 13976 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13977 | |
| 13978 | |
| 13979 | |
| 13980 | |
| 13981 | |
| 13982 | |
| 13983 | |
| 13984 | |
| 13985 | |
| 13986 | |
| 13987 | |
| 13988 | |
| 13989 | |
| 13990 | |
| 13991 | |
| 13992 | |
| 13993 | |
| 13994 | |
| 13995 | |
| 13996 | |
| 13997 | |
| 13998 | |
| 13999 | |
| 14000 | |
| 14001 | |
| 14002 | |
| 14003 | |
| 14004 | |
| 14005 | |
| 14006 | |
| 14007 | |
| 14008 | |
| 14009 | |
| 14010 | |
| 14011 | |
| 14012 | |
| 14013 | |
| 14014 | |
| 14015 | |
| 14016 | |
| 14017 | |
| 14018 | |
| 14019 | |
| 14020 | |
| 14021 | |
Bram Moolenaar | eaf0339 | 2009-11-17 11:08:52 +0000 | [diff] [blame] | 14022 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14023 | for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
| 14024 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
Bram Moolenaar | eaf0339 | 2009-11-17 11:08:52 +0000 | [diff] [blame] | 14025 | memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14026 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 14027 | sigvec strcasecmp strerror strftime stricmp strncasecmp \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 14028 | strnicmp strpbrk strtol tgetent towlower towupper iswupper \ |
| 14029 | usleep utime utimes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14030 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14031 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14032 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14033 | $as_echo_n "checking for $ac_func... " >&6; } |
| 14034 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14035 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14036 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14037 | cat >conftest.$ac_ext <<_ACEOF |
| 14038 | /* confdefs.h. */ |
| 14039 | _ACEOF |
| 14040 | cat confdefs.h >>conftest.$ac_ext |
| 14041 | cat >>conftest.$ac_ext <<_ACEOF |
| 14042 | /* end confdefs.h. */ |
| 14043 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14044 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14045 | #define $ac_func innocuous_$ac_func |
| 14046 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14047 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14048 | which can conflict with char $ac_func (); below. |
| 14049 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14050 | <limits.h> exists even on freestanding compilers. */ |
| 14051 | |
| 14052 | #ifdef __STDC__ |
| 14053 | # include <limits.h> |
| 14054 | #else |
| 14055 | # include <assert.h> |
| 14056 | #endif |
| 14057 | |
| 14058 | #undef $ac_func |
| 14059 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14060 | /* Override any GCC internal prototype to avoid an error. |
| 14061 | Use char because int might match the return type of a GCC |
| 14062 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14063 | #ifdef __cplusplus |
| 14064 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14065 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14066 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14067 | /* The GNU C library defines this for functions which it implements |
| 14068 | to always fail with ENOSYS. Some functions are actually named |
| 14069 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14070 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14071 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14072 | #endif |
| 14073 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14074 | int |
| 14075 | main () |
| 14076 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14077 | return $ac_func (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14078 | ; |
| 14079 | return 0; |
| 14080 | } |
| 14081 | _ACEOF |
| 14082 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14083 | if { (ac_try="$ac_link" |
| 14084 | case "(($ac_try" in |
| 14085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14086 | *) ac_try_echo=$ac_try;; |
| 14087 | esac |
| 14088 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14089 | $as_echo "$ac_try_echo") >&5 |
| 14090 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14091 | ac_status=$? |
| 14092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14093 | rm -f conftest.er1 |
| 14094 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14096 | (exit $ac_status); } && { |
| 14097 | test -z "$ac_c_werror_flag" || |
| 14098 | test ! -s conftest.err |
| 14099 | } && test -s conftest$ac_exeext && { |
| 14100 | test "$cross_compiling" = yes || |
| 14101 | $as_test_x conftest$ac_exeext |
| 14102 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14103 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14104 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14105 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14106 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14107 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14108 | eval "$as_ac_var=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14109 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14110 | |
| 14111 | rm -rf conftest.dSYM |
| 14112 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14113 | conftest$ac_exeext conftest.$ac_ext |
| 14114 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14115 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 14116 | $as_echo "$as_val"'` |
| 14117 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14118 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 14119 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 14120 | $as_echo "$as_val"'` |
| 14121 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14122 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14123 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14124 | _ACEOF |
| 14125 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14126 | fi |
| 14127 | done |
| 14128 | |
| 14129 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14130 | { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5 |
| 14131 | $as_echo_n "checking for st_blksize... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14132 | cat >conftest.$ac_ext <<_ACEOF |
| 14133 | /* confdefs.h. */ |
| 14134 | _ACEOF |
| 14135 | cat confdefs.h >>conftest.$ac_ext |
| 14136 | cat >>conftest.$ac_ext <<_ACEOF |
| 14137 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14138 | #include <sys/types.h> |
| 14139 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14140 | int |
| 14141 | main () |
| 14142 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14143 | struct stat st; |
| 14144 | int n; |
| 14145 | |
| 14146 | stat("/", &st); |
| 14147 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14148 | ; |
| 14149 | return 0; |
| 14150 | } |
| 14151 | _ACEOF |
| 14152 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14153 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14161 | ac_status=$? |
| 14162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14163 | rm -f conftest.er1 |
| 14164 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 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_objext; then |
| 14170 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14171 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14172 | #define HAVE_ST_BLKSIZE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14173 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14174 | |
| 14175 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14176 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14178 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14179 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14180 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14181 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14182 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14184 | |
| 14185 | { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
| 14186 | $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } |
| 14187 | if test "${vim_cv_stat_ignores_slash+set}" = set; then |
| 14188 | $as_echo_n "(cached) " >&6 |
| 14189 | else |
| 14190 | |
| 14191 | if test "$cross_compiling" = yes; then |
| 14192 | |
| 14193 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5 |
| 14194 | $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] | 14195 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14196 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14197 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14198 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14199 | |
| 14200 | #include "confdefs.h" |
| 14201 | #if STDC_HEADERS |
| 14202 | # include <stdlib.h> |
| 14203 | # include <stddef.h> |
| 14204 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14205 | #include <sys/types.h> |
| 14206 | #include <sys/stat.h> |
| 14207 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14208 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14209 | _ACEOF |
| 14210 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14211 | if { (ac_try="$ac_link" |
| 14212 | case "(($ac_try" in |
| 14213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14214 | *) ac_try_echo=$ac_try;; |
| 14215 | esac |
| 14216 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14217 | $as_echo "$ac_try_echo") >&5 |
| 14218 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14219 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14220 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14221 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14222 | { (case "(($ac_try" in |
| 14223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14224 | *) ac_try_echo=$ac_try;; |
| 14225 | esac |
| 14226 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14227 | $as_echo "$ac_try_echo") >&5 |
| 14228 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14229 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14231 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14232 | |
| 14233 | vim_cv_stat_ignores_slash=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14234 | |
| 14235 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14236 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 14237 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14239 | |
| 14240 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14241 | |
| 14242 | vim_cv_stat_ignores_slash=no |
| 14243 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14244 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14245 | rm -rf conftest.dSYM |
| 14246 | 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] | 14247 | fi |
| 14248 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14249 | |
| 14250 | |
| 14251 | fi |
| 14252 | { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5 |
| 14253 | $as_echo "$vim_cv_stat_ignores_slash" >&6; } |
| 14254 | |
| 14255 | if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then |
| 14256 | cat >>confdefs.h <<\_ACEOF |
| 14257 | #define STAT_IGNORES_SLASH 1 |
| 14258 | _ACEOF |
| 14259 | |
| 14260 | fi |
| 14261 | |
| 14262 | { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5 |
| 14263 | $as_echo_n "checking for iconv_open()... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14264 | save_LIBS="$LIBS" |
| 14265 | LIBS="$LIBS -liconv" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14266 | cat >conftest.$ac_ext <<_ACEOF |
| 14267 | /* confdefs.h. */ |
| 14268 | _ACEOF |
| 14269 | cat confdefs.h >>conftest.$ac_ext |
| 14270 | cat >>conftest.$ac_ext <<_ACEOF |
| 14271 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14272 | |
| 14273 | #ifdef HAVE_ICONV_H |
| 14274 | # include <iconv.h> |
| 14275 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14276 | |
| 14277 | int |
| 14278 | main () |
| 14279 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14280 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14281 | ; |
| 14282 | return 0; |
| 14283 | } |
| 14284 | _ACEOF |
| 14285 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14286 | if { (ac_try="$ac_link" |
| 14287 | case "(($ac_try" in |
| 14288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14289 | *) ac_try_echo=$ac_try;; |
| 14290 | esac |
| 14291 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14292 | $as_echo "$ac_try_echo") >&5 |
| 14293 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14294 | ac_status=$? |
| 14295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14296 | rm -f conftest.er1 |
| 14297 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14298 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14299 | (exit $ac_status); } && { |
| 14300 | test -z "$ac_c_werror_flag" || |
| 14301 | test ! -s conftest.err |
| 14302 | } && test -s conftest$ac_exeext && { |
| 14303 | test "$cross_compiling" = yes || |
| 14304 | $as_test_x conftest$ac_exeext |
| 14305 | }; then |
| 14306 | { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5 |
| 14307 | $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14308 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14309 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14310 | |
| 14311 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14312 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14314 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14315 | LIBS="$save_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14316 | cat >conftest.$ac_ext <<_ACEOF |
| 14317 | /* confdefs.h. */ |
| 14318 | _ACEOF |
| 14319 | cat confdefs.h >>conftest.$ac_ext |
| 14320 | cat >>conftest.$ac_ext <<_ACEOF |
| 14321 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14322 | |
| 14323 | #ifdef HAVE_ICONV_H |
| 14324 | # include <iconv.h> |
| 14325 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14326 | |
| 14327 | int |
| 14328 | main () |
| 14329 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14330 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14331 | ; |
| 14332 | return 0; |
| 14333 | } |
| 14334 | _ACEOF |
| 14335 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14336 | if { (ac_try="$ac_link" |
| 14337 | case "(($ac_try" in |
| 14338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14339 | *) ac_try_echo=$ac_try;; |
| 14340 | esac |
| 14341 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14342 | $as_echo "$ac_try_echo") >&5 |
| 14343 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14344 | ac_status=$? |
| 14345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14346 | rm -f conftest.er1 |
| 14347 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14348 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14349 | (exit $ac_status); } && { |
| 14350 | test -z "$ac_c_werror_flag" || |
| 14351 | test ! -s conftest.err |
| 14352 | } && test -s conftest$ac_exeext && { |
| 14353 | test "$cross_compiling" = yes || |
| 14354 | $as_test_x conftest$ac_exeext |
| 14355 | }; then |
| 14356 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14357 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14358 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14359 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14360 | |
| 14361 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14362 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14364 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14365 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14366 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14367 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14368 | |
| 14369 | rm -rf conftest.dSYM |
| 14370 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14371 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14372 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14373 | |
| 14374 | rm -rf conftest.dSYM |
| 14375 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14376 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14377 | |
| 14378 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14379 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
| 14380 | $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14381 | cat >conftest.$ac_ext <<_ACEOF |
| 14382 | /* confdefs.h. */ |
| 14383 | _ACEOF |
| 14384 | cat confdefs.h >>conftest.$ac_ext |
| 14385 | cat >>conftest.$ac_ext <<_ACEOF |
| 14386 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14387 | |
| 14388 | #ifdef HAVE_LANGINFO_H |
| 14389 | # include <langinfo.h> |
| 14390 | #endif |
| 14391 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14392 | int |
| 14393 | main () |
| 14394 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14395 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14396 | ; |
| 14397 | return 0; |
| 14398 | } |
| 14399 | _ACEOF |
| 14400 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14401 | if { (ac_try="$ac_link" |
| 14402 | case "(($ac_try" in |
| 14403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14404 | *) ac_try_echo=$ac_try;; |
| 14405 | esac |
| 14406 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14407 | $as_echo "$ac_try_echo") >&5 |
| 14408 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14409 | ac_status=$? |
| 14410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14411 | rm -f conftest.er1 |
| 14412 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14413 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14414 | (exit $ac_status); } && { |
| 14415 | test -z "$ac_c_werror_flag" || |
| 14416 | test ! -s conftest.err |
| 14417 | } && test -s conftest$ac_exeext && { |
| 14418 | test "$cross_compiling" = yes || |
| 14419 | $as_test_x conftest$ac_exeext |
| 14420 | }; then |
| 14421 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14422 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14423 | #define HAVE_NL_LANGINFO_CODESET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14424 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14425 | |
| 14426 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14427 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14428 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14429 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14430 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14431 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14432 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14433 | |
| 14434 | rm -rf conftest.dSYM |
| 14435 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14436 | conftest$ac_exeext conftest.$ac_ext |
| 14437 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14438 | |
| 14439 | { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5 |
| 14440 | $as_echo_n "checking for strtod in -lm... " >&6; } |
| 14441 | if test "${ac_cv_lib_m_strtod+set}" = set; then |
| 14442 | $as_echo_n "(cached) " >&6 |
| 14443 | else |
| 14444 | ac_check_lib_save_LIBS=$LIBS |
| 14445 | LIBS="-lm $LIBS" |
| 14446 | cat >conftest.$ac_ext <<_ACEOF |
| 14447 | /* confdefs.h. */ |
| 14448 | _ACEOF |
| 14449 | cat confdefs.h >>conftest.$ac_ext |
| 14450 | cat >>conftest.$ac_ext <<_ACEOF |
| 14451 | /* end confdefs.h. */ |
| 14452 | |
| 14453 | /* Override any GCC internal prototype to avoid an error. |
| 14454 | Use char because int might match the return type of a GCC |
| 14455 | builtin and then its argument prototype would still apply. */ |
| 14456 | #ifdef __cplusplus |
| 14457 | extern "C" |
| 14458 | #endif |
| 14459 | char strtod (); |
| 14460 | int |
| 14461 | main () |
| 14462 | { |
| 14463 | return strtod (); |
| 14464 | ; |
| 14465 | return 0; |
| 14466 | } |
| 14467 | _ACEOF |
| 14468 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14469 | if { (ac_try="$ac_link" |
| 14470 | case "(($ac_try" in |
| 14471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14472 | *) ac_try_echo=$ac_try;; |
| 14473 | esac |
| 14474 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14475 | $as_echo "$ac_try_echo") >&5 |
| 14476 | (eval "$ac_link") 2>conftest.er1 |
| 14477 | ac_status=$? |
| 14478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14479 | rm -f conftest.er1 |
| 14480 | cat conftest.err >&5 |
| 14481 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14482 | (exit $ac_status); } && { |
| 14483 | test -z "$ac_c_werror_flag" || |
| 14484 | test ! -s conftest.err |
| 14485 | } && test -s conftest$ac_exeext && { |
| 14486 | test "$cross_compiling" = yes || |
| 14487 | $as_test_x conftest$ac_exeext |
| 14488 | }; then |
| 14489 | ac_cv_lib_m_strtod=yes |
| 14490 | else |
| 14491 | $as_echo "$as_me: failed program was:" >&5 |
| 14492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14493 | |
| 14494 | ac_cv_lib_m_strtod=no |
| 14495 | fi |
| 14496 | |
| 14497 | rm -rf conftest.dSYM |
| 14498 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14499 | conftest$ac_exeext conftest.$ac_ext |
| 14500 | LIBS=$ac_check_lib_save_LIBS |
| 14501 | fi |
| 14502 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5 |
| 14503 | $as_echo "$ac_cv_lib_m_strtod" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 14504 | if test "x$ac_cv_lib_m_strtod" = x""yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14505 | cat >>confdefs.h <<_ACEOF |
| 14506 | #define HAVE_LIBM 1 |
| 14507 | _ACEOF |
| 14508 | |
| 14509 | LIBS="-lm $LIBS" |
| 14510 | |
| 14511 | fi |
| 14512 | |
| 14513 | { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5 |
| 14514 | $as_echo_n "checking for strtod() and other floating point functions... " >&6; } |
| 14515 | cat >conftest.$ac_ext <<_ACEOF |
| 14516 | /* confdefs.h. */ |
| 14517 | _ACEOF |
| 14518 | cat confdefs.h >>conftest.$ac_ext |
| 14519 | cat >>conftest.$ac_ext <<_ACEOF |
| 14520 | /* end confdefs.h. */ |
| 14521 | |
| 14522 | #ifdef HAVE_MATH_H |
| 14523 | # include <math.h> |
| 14524 | #endif |
| 14525 | #if STDC_HEADERS |
| 14526 | # include <stdlib.h> |
| 14527 | # include <stddef.h> |
| 14528 | #endif |
| 14529 | |
| 14530 | int |
| 14531 | main () |
| 14532 | { |
| 14533 | char *s; double d; |
| 14534 | d = strtod("1.1", &s); |
| 14535 | d = fabs(1.11); |
| 14536 | d = ceil(1.11); |
| 14537 | d = floor(1.11); |
| 14538 | d = log10(1.11); |
| 14539 | d = pow(1.11, 2.22); |
| 14540 | d = sqrt(1.11); |
| 14541 | d = sin(1.11); |
| 14542 | d = cos(1.11); |
| 14543 | d = atan(1.11); |
| 14544 | |
| 14545 | ; |
| 14546 | return 0; |
| 14547 | } |
| 14548 | _ACEOF |
| 14549 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14550 | if { (ac_try="$ac_link" |
| 14551 | case "(($ac_try" in |
| 14552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14553 | *) ac_try_echo=$ac_try;; |
| 14554 | esac |
| 14555 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14556 | $as_echo "$ac_try_echo") >&5 |
| 14557 | (eval "$ac_link") 2>conftest.er1 |
| 14558 | ac_status=$? |
| 14559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14560 | rm -f conftest.er1 |
| 14561 | cat conftest.err >&5 |
| 14562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14563 | (exit $ac_status); } && { |
| 14564 | test -z "$ac_c_werror_flag" || |
| 14565 | test ! -s conftest.err |
| 14566 | } && test -s conftest$ac_exeext && { |
| 14567 | test "$cross_compiling" = yes || |
| 14568 | $as_test_x conftest$ac_exeext |
| 14569 | }; then |
| 14570 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14571 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
| 14572 | #define HAVE_FLOAT_FUNCS 1 |
| 14573 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14574 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14575 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14576 | $as_echo "$as_me: failed program was:" >&5 |
| 14577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14578 | |
| 14579 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14580 | $as_echo "no" >&6; } |
| 14581 | fi |
| 14582 | |
| 14583 | rm -rf conftest.dSYM |
| 14584 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14585 | conftest$ac_exeext conftest.$ac_ext |
| 14586 | |
| 14587 | { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5 |
| 14588 | $as_echo_n "checking --disable-acl argument... " >&6; } |
| 14589 | # Check whether --enable-acl was given. |
| 14590 | if test "${enable_acl+set}" = set; then |
| 14591 | enableval=$enable_acl; |
| 14592 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14593 | enable_acl="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14594 | fi |
| 14595 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14596 | if test "$enable_acl" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14597 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14598 | $as_echo "no" >&6; } |
| 14599 | { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
| 14600 | $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14601 | if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14602 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14603 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14604 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14605 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14606 | cat >conftest.$ac_ext <<_ACEOF |
| 14607 | /* confdefs.h. */ |
| 14608 | _ACEOF |
| 14609 | cat confdefs.h >>conftest.$ac_ext |
| 14610 | cat >>conftest.$ac_ext <<_ACEOF |
| 14611 | /* end confdefs.h. */ |
| 14612 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14613 | /* Override any GCC internal prototype to avoid an error. |
| 14614 | Use char because int might match the return type of a GCC |
| 14615 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14616 | #ifdef __cplusplus |
| 14617 | extern "C" |
| 14618 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14619 | char acl_get_file (); |
| 14620 | int |
| 14621 | main () |
| 14622 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14623 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14624 | ; |
| 14625 | return 0; |
| 14626 | } |
| 14627 | _ACEOF |
| 14628 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14629 | if { (ac_try="$ac_link" |
| 14630 | case "(($ac_try" in |
| 14631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14632 | *) ac_try_echo=$ac_try;; |
| 14633 | esac |
| 14634 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14635 | $as_echo "$ac_try_echo") >&5 |
| 14636 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14637 | ac_status=$? |
| 14638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14639 | rm -f conftest.er1 |
| 14640 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14641 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14642 | (exit $ac_status); } && { |
| 14643 | test -z "$ac_c_werror_flag" || |
| 14644 | test ! -s conftest.err |
| 14645 | } && test -s conftest$ac_exeext && { |
| 14646 | test "$cross_compiling" = yes || |
| 14647 | $as_test_x conftest$ac_exeext |
| 14648 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14649 | ac_cv_lib_posix1e_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14650 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14651 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14652 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14653 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14654 | ac_cv_lib_posix1e_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14655 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14656 | |
| 14657 | rm -rf conftest.dSYM |
| 14658 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14659 | conftest$ac_exeext conftest.$ac_ext |
| 14660 | LIBS=$ac_check_lib_save_LIBS |
| 14661 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14662 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 14663 | $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 14664 | if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14665 | LIBS="$LIBS -lposix1e" |
| 14666 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14667 | { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
| 14668 | $as_echo_n "checking for acl_get_file in -lacl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14669 | if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14670 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14671 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14672 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14673 | LIBS="-lacl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14674 | cat >conftest.$ac_ext <<_ACEOF |
| 14675 | /* confdefs.h. */ |
| 14676 | _ACEOF |
| 14677 | cat confdefs.h >>conftest.$ac_ext |
| 14678 | cat >>conftest.$ac_ext <<_ACEOF |
| 14679 | /* end confdefs.h. */ |
| 14680 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14681 | /* Override any GCC internal prototype to avoid an error. |
| 14682 | Use char because int might match the return type of a GCC |
| 14683 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14684 | #ifdef __cplusplus |
| 14685 | extern "C" |
| 14686 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14687 | char acl_get_file (); |
| 14688 | int |
| 14689 | main () |
| 14690 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14691 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14692 | ; |
| 14693 | return 0; |
| 14694 | } |
| 14695 | _ACEOF |
| 14696 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14697 | if { (ac_try="$ac_link" |
| 14698 | case "(($ac_try" in |
| 14699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14700 | *) ac_try_echo=$ac_try;; |
| 14701 | esac |
| 14702 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14703 | $as_echo "$ac_try_echo") >&5 |
| 14704 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14705 | ac_status=$? |
| 14706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14707 | rm -f conftest.er1 |
| 14708 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14710 | (exit $ac_status); } && { |
| 14711 | test -z "$ac_c_werror_flag" || |
| 14712 | test ! -s conftest.err |
| 14713 | } && test -s conftest$ac_exeext && { |
| 14714 | test "$cross_compiling" = yes || |
| 14715 | $as_test_x conftest$ac_exeext |
| 14716 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14717 | ac_cv_lib_acl_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14718 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14719 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14720 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14721 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14722 | ac_cv_lib_acl_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14723 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14724 | |
| 14725 | rm -rf conftest.dSYM |
| 14726 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14727 | conftest$ac_exeext conftest.$ac_ext |
| 14728 | LIBS=$ac_check_lib_save_LIBS |
| 14729 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14730 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 14731 | $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 14732 | if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14733 | LIBS="$LIBS -lacl" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14734 | { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
| 14735 | $as_echo_n "checking for fgetxattr in -lattr... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14736 | if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14737 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14738 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14739 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14740 | LIBS="-lattr $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14741 | cat >conftest.$ac_ext <<_ACEOF |
| 14742 | /* confdefs.h. */ |
| 14743 | _ACEOF |
| 14744 | cat confdefs.h >>conftest.$ac_ext |
| 14745 | cat >>conftest.$ac_ext <<_ACEOF |
| 14746 | /* end confdefs.h. */ |
| 14747 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14748 | /* Override any GCC internal prototype to avoid an error. |
| 14749 | Use char because int might match the return type of a GCC |
| 14750 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14751 | #ifdef __cplusplus |
| 14752 | extern "C" |
| 14753 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14754 | char fgetxattr (); |
| 14755 | int |
| 14756 | main () |
| 14757 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14758 | return fgetxattr (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14759 | ; |
| 14760 | return 0; |
| 14761 | } |
| 14762 | _ACEOF |
| 14763 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14764 | if { (ac_try="$ac_link" |
| 14765 | case "(($ac_try" in |
| 14766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14767 | *) ac_try_echo=$ac_try;; |
| 14768 | esac |
| 14769 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14770 | $as_echo "$ac_try_echo") >&5 |
| 14771 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14772 | ac_status=$? |
| 14773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14774 | rm -f conftest.er1 |
| 14775 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14776 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14777 | (exit $ac_status); } && { |
| 14778 | test -z "$ac_c_werror_flag" || |
| 14779 | test ! -s conftest.err |
| 14780 | } && test -s conftest$ac_exeext && { |
| 14781 | test "$cross_compiling" = yes || |
| 14782 | $as_test_x conftest$ac_exeext |
| 14783 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14784 | ac_cv_lib_attr_fgetxattr=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14785 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14786 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14787 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14788 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14789 | ac_cv_lib_attr_fgetxattr=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14790 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14791 | |
| 14792 | rm -rf conftest.dSYM |
| 14793 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14794 | conftest$ac_exeext conftest.$ac_ext |
| 14795 | LIBS=$ac_check_lib_save_LIBS |
| 14796 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14797 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 14798 | $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 14799 | if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14800 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14801 | fi |
| 14802 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14803 | fi |
| 14804 | |
| 14805 | fi |
| 14806 | |
| 14807 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14808 | { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
| 14809 | $as_echo_n "checking for POSIX ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14810 | cat >conftest.$ac_ext <<_ACEOF |
| 14811 | /* confdefs.h. */ |
| 14812 | _ACEOF |
| 14813 | cat confdefs.h >>conftest.$ac_ext |
| 14814 | cat >>conftest.$ac_ext <<_ACEOF |
| 14815 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14816 | |
| 14817 | #include <sys/types.h> |
| 14818 | #ifdef HAVE_SYS_ACL_H |
| 14819 | # include <sys/acl.h> |
| 14820 | #endif |
| 14821 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14822 | int |
| 14823 | main () |
| 14824 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14825 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 14826 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 14827 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14828 | ; |
| 14829 | return 0; |
| 14830 | } |
| 14831 | _ACEOF |
| 14832 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14833 | if { (ac_try="$ac_link" |
| 14834 | case "(($ac_try" in |
| 14835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14836 | *) ac_try_echo=$ac_try;; |
| 14837 | esac |
| 14838 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14839 | $as_echo "$ac_try_echo") >&5 |
| 14840 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14841 | ac_status=$? |
| 14842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14843 | rm -f conftest.er1 |
| 14844 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14845 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14846 | (exit $ac_status); } && { |
| 14847 | test -z "$ac_c_werror_flag" || |
| 14848 | test ! -s conftest.err |
| 14849 | } && test -s conftest$ac_exeext && { |
| 14850 | test "$cross_compiling" = yes || |
| 14851 | $as_test_x conftest$ac_exeext |
| 14852 | }; then |
| 14853 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14854 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14855 | #define HAVE_POSIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14856 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14857 | |
| 14858 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14859 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14860 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14861 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14862 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14863 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14864 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14865 | |
| 14866 | rm -rf conftest.dSYM |
| 14867 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14868 | conftest$ac_exeext conftest.$ac_ext |
| 14869 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14870 | { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
| 14871 | $as_echo_n "checking for Solaris ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14872 | cat >conftest.$ac_ext <<_ACEOF |
| 14873 | /* confdefs.h. */ |
| 14874 | _ACEOF |
| 14875 | cat confdefs.h >>conftest.$ac_ext |
| 14876 | cat >>conftest.$ac_ext <<_ACEOF |
| 14877 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14878 | |
| 14879 | #ifdef HAVE_SYS_ACL_H |
| 14880 | # include <sys/acl.h> |
| 14881 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14882 | int |
| 14883 | main () |
| 14884 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14885 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14886 | |
| 14887 | ; |
| 14888 | return 0; |
| 14889 | } |
| 14890 | _ACEOF |
| 14891 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14892 | if { (ac_try="$ac_link" |
| 14893 | case "(($ac_try" in |
| 14894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14895 | *) ac_try_echo=$ac_try;; |
| 14896 | esac |
| 14897 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14898 | $as_echo "$ac_try_echo") >&5 |
| 14899 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14900 | ac_status=$? |
| 14901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14902 | rm -f conftest.er1 |
| 14903 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14905 | (exit $ac_status); } && { |
| 14906 | test -z "$ac_c_werror_flag" || |
| 14907 | test ! -s conftest.err |
| 14908 | } && test -s conftest$ac_exeext && { |
| 14909 | test "$cross_compiling" = yes || |
| 14910 | $as_test_x conftest$ac_exeext |
| 14911 | }; then |
| 14912 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14913 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14914 | #define HAVE_SOLARIS_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14915 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14916 | |
| 14917 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14918 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14919 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14920 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14921 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14922 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14923 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14924 | |
| 14925 | rm -rf conftest.dSYM |
| 14926 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14927 | conftest$ac_exeext conftest.$ac_ext |
| 14928 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14929 | { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
| 14930 | $as_echo_n "checking for AIX ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14931 | cat >conftest.$ac_ext <<_ACEOF |
| 14932 | /* confdefs.h. */ |
| 14933 | _ACEOF |
| 14934 | cat confdefs.h >>conftest.$ac_ext |
| 14935 | cat >>conftest.$ac_ext <<_ACEOF |
| 14936 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14937 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14938 | #if STDC_HEADERS |
| 14939 | # include <stdlib.h> |
| 14940 | # include <stddef.h> |
| 14941 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14942 | #ifdef HAVE_SYS_ACL_H |
| 14943 | # include <sys/acl.h> |
| 14944 | #endif |
| 14945 | #ifdef HAVE_SYS_ACCESS_H |
| 14946 | # include <sys/access.h> |
| 14947 | #endif |
| 14948 | #define _ALL_SOURCE |
| 14949 | |
| 14950 | #include <sys/stat.h> |
| 14951 | |
| 14952 | int aclsize; |
| 14953 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14954 | int |
| 14955 | main () |
| 14956 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14957 | aclsize = sizeof(struct acl); |
| 14958 | aclent = (void *)malloc(aclsize); |
| 14959 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14960 | |
| 14961 | ; |
| 14962 | return 0; |
| 14963 | } |
| 14964 | _ACEOF |
| 14965 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14966 | if { (ac_try="$ac_link" |
| 14967 | case "(($ac_try" in |
| 14968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14969 | *) ac_try_echo=$ac_try;; |
| 14970 | esac |
| 14971 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14972 | $as_echo "$ac_try_echo") >&5 |
| 14973 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14974 | ac_status=$? |
| 14975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14976 | rm -f conftest.er1 |
| 14977 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14978 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14979 | (exit $ac_status); } && { |
| 14980 | test -z "$ac_c_werror_flag" || |
| 14981 | test ! -s conftest.err |
| 14982 | } && test -s conftest$ac_exeext && { |
| 14983 | test "$cross_compiling" = yes || |
| 14984 | $as_test_x conftest$ac_exeext |
| 14985 | }; then |
| 14986 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14987 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14988 | #define HAVE_AIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14989 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14990 | |
| 14991 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14992 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14994 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14995 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14996 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14997 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14998 | |
| 14999 | rm -rf conftest.dSYM |
| 15000 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15001 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15002 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15003 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15004 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15005 | fi |
| 15006 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15007 | { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 |
| 15008 | $as_echo_n "checking --disable-gpm argument... " >&6; } |
| 15009 | # Check whether --enable-gpm was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15010 | if test "${enable_gpm+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15011 | enableval=$enable_gpm; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15012 | else |
| 15013 | enable_gpm="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15014 | fi |
| 15015 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15016 | |
| 15017 | if test "$enable_gpm" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15018 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15019 | $as_echo "no" >&6; } |
| 15020 | { $as_echo "$as_me:$LINENO: checking for gpm" >&5 |
| 15021 | $as_echo_n "checking for gpm... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15022 | if test "${vi_cv_have_gpm+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15023 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15024 | else |
| 15025 | olibs="$LIBS" ; LIBS="-lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15026 | cat >conftest.$ac_ext <<_ACEOF |
| 15027 | /* confdefs.h. */ |
| 15028 | _ACEOF |
| 15029 | cat confdefs.h >>conftest.$ac_ext |
| 15030 | cat >>conftest.$ac_ext <<_ACEOF |
| 15031 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15032 | #include <gpm.h> |
| 15033 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15034 | int |
| 15035 | main () |
| 15036 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15037 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15038 | ; |
| 15039 | return 0; |
| 15040 | } |
| 15041 | _ACEOF |
| 15042 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15043 | if { (ac_try="$ac_link" |
| 15044 | case "(($ac_try" in |
| 15045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15046 | *) ac_try_echo=$ac_try;; |
| 15047 | esac |
| 15048 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15049 | $as_echo "$ac_try_echo") >&5 |
| 15050 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15051 | ac_status=$? |
| 15052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15053 | rm -f conftest.er1 |
| 15054 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15055 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15056 | (exit $ac_status); } && { |
| 15057 | test -z "$ac_c_werror_flag" || |
| 15058 | test ! -s conftest.err |
| 15059 | } && test -s conftest$ac_exeext && { |
| 15060 | test "$cross_compiling" = yes || |
| 15061 | $as_test_x conftest$ac_exeext |
| 15062 | }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15063 | vi_cv_have_gpm=yes |
| 15064 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15065 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15066 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15067 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15068 | vi_cv_have_gpm=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15069 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15070 | |
| 15071 | rm -rf conftest.dSYM |
| 15072 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15073 | conftest$ac_exeext conftest.$ac_ext |
| 15074 | LIBS="$olibs" |
| 15075 | |
| 15076 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15077 | { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
| 15078 | $as_echo "$vi_cv_have_gpm" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15079 | if test $vi_cv_have_gpm = yes; then |
| 15080 | LIBS="$LIBS -lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15081 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15082 | #define HAVE_GPM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15083 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15084 | |
| 15085 | fi |
| 15086 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15087 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15088 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15089 | fi |
| 15090 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15091 | { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5 |
| 15092 | $as_echo_n "checking --disable-sysmouse argument... " >&6; } |
| 15093 | # Check whether --enable-sysmouse was given. |
| 15094 | if test "${enable_sysmouse+set}" = set; then |
| 15095 | enableval=$enable_sysmouse; |
| 15096 | else |
| 15097 | enable_sysmouse="yes" |
| 15098 | fi |
| 15099 | |
| 15100 | |
| 15101 | if test "$enable_sysmouse" = "yes"; then |
| 15102 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15103 | $as_echo "no" >&6; } |
| 15104 | { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5 |
| 15105 | $as_echo_n "checking for sysmouse... " >&6; } |
| 15106 | if test "${vi_cv_have_sysmouse+set}" = set; then |
| 15107 | $as_echo_n "(cached) " >&6 |
| 15108 | else |
| 15109 | cat >conftest.$ac_ext <<_ACEOF |
| 15110 | /* confdefs.h. */ |
| 15111 | _ACEOF |
| 15112 | cat confdefs.h >>conftest.$ac_ext |
| 15113 | cat >>conftest.$ac_ext <<_ACEOF |
| 15114 | /* end confdefs.h. */ |
| 15115 | #include <sys/consio.h> |
| 15116 | #include <signal.h> |
| 15117 | #include <sys/fbio.h> |
| 15118 | int |
| 15119 | main () |
| 15120 | { |
| 15121 | struct mouse_info mouse; |
| 15122 | mouse.operation = MOUSE_MODE; |
| 15123 | mouse.operation = MOUSE_SHOW; |
| 15124 | mouse.u.mode.mode = 0; |
| 15125 | mouse.u.mode.signal = SIGUSR2; |
| 15126 | ; |
| 15127 | return 0; |
| 15128 | } |
| 15129 | _ACEOF |
| 15130 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15131 | if { (ac_try="$ac_link" |
| 15132 | case "(($ac_try" in |
| 15133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15134 | *) ac_try_echo=$ac_try;; |
| 15135 | esac |
| 15136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15137 | $as_echo "$ac_try_echo") >&5 |
| 15138 | (eval "$ac_link") 2>conftest.er1 |
| 15139 | ac_status=$? |
| 15140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15141 | rm -f conftest.er1 |
| 15142 | cat conftest.err >&5 |
| 15143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15144 | (exit $ac_status); } && { |
| 15145 | test -z "$ac_c_werror_flag" || |
| 15146 | test ! -s conftest.err |
| 15147 | } && test -s conftest$ac_exeext && { |
| 15148 | test "$cross_compiling" = yes || |
| 15149 | $as_test_x conftest$ac_exeext |
| 15150 | }; then |
| 15151 | vi_cv_have_sysmouse=yes |
| 15152 | else |
| 15153 | $as_echo "$as_me: failed program was:" >&5 |
| 15154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15155 | |
| 15156 | vi_cv_have_sysmouse=no |
| 15157 | fi |
| 15158 | |
| 15159 | rm -rf conftest.dSYM |
| 15160 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15161 | conftest$ac_exeext conftest.$ac_ext |
| 15162 | |
| 15163 | fi |
| 15164 | { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5 |
| 15165 | $as_echo "$vi_cv_have_sysmouse" >&6; } |
| 15166 | if test $vi_cv_have_sysmouse = yes; then |
| 15167 | cat >>confdefs.h <<\_ACEOF |
| 15168 | #define HAVE_SYSMOUSE 1 |
| 15169 | _ACEOF |
| 15170 | |
| 15171 | fi |
| 15172 | else |
| 15173 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15174 | $as_echo "yes" >&6; } |
| 15175 | fi |
| 15176 | |
| 15177 | { $as_echo "$as_me:$LINENO: checking for rename" >&5 |
| 15178 | $as_echo_n "checking for rename... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15179 | cat >conftest.$ac_ext <<_ACEOF |
| 15180 | /* confdefs.h. */ |
| 15181 | _ACEOF |
| 15182 | cat confdefs.h >>conftest.$ac_ext |
| 15183 | cat >>conftest.$ac_ext <<_ACEOF |
| 15184 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15185 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15186 | int |
| 15187 | main () |
| 15188 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15189 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15190 | ; |
| 15191 | return 0; |
| 15192 | } |
| 15193 | _ACEOF |
| 15194 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15195 | if { (ac_try="$ac_link" |
| 15196 | case "(($ac_try" in |
| 15197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15198 | *) ac_try_echo=$ac_try;; |
| 15199 | esac |
| 15200 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15201 | $as_echo "$ac_try_echo") >&5 |
| 15202 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15203 | ac_status=$? |
| 15204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15205 | rm -f conftest.er1 |
| 15206 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15207 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15208 | (exit $ac_status); } && { |
| 15209 | test -z "$ac_c_werror_flag" || |
| 15210 | test ! -s conftest.err |
| 15211 | } && test -s conftest$ac_exeext && { |
| 15212 | test "$cross_compiling" = yes || |
| 15213 | $as_test_x conftest$ac_exeext |
| 15214 | }; then |
| 15215 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15216 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15217 | #define HAVE_RENAME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15218 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15219 | |
| 15220 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15221 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15222 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15223 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15224 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15225 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15226 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15227 | |
| 15228 | rm -rf conftest.dSYM |
| 15229 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15230 | conftest$ac_exeext conftest.$ac_ext |
| 15231 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15232 | { $as_echo "$as_me:$LINENO: checking for sysctl" >&5 |
| 15233 | $as_echo_n "checking for sysctl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15234 | cat >conftest.$ac_ext <<_ACEOF |
| 15235 | /* confdefs.h. */ |
| 15236 | _ACEOF |
| 15237 | cat confdefs.h >>conftest.$ac_ext |
| 15238 | cat >>conftest.$ac_ext <<_ACEOF |
| 15239 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15240 | #include <sys/types.h> |
| 15241 | #include <sys/sysctl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15242 | int |
| 15243 | main () |
| 15244 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15245 | int mib[2], r; |
| 15246 | size_t len; |
| 15247 | |
| 15248 | mib[0] = CTL_HW; |
| 15249 | mib[1] = HW_USERMEM; |
| 15250 | len = sizeof(r); |
| 15251 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15252 | |
| 15253 | ; |
| 15254 | return 0; |
| 15255 | } |
| 15256 | _ACEOF |
| 15257 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15258 | if { (ac_try="$ac_compile" |
| 15259 | case "(($ac_try" in |
| 15260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15261 | *) ac_try_echo=$ac_try;; |
| 15262 | esac |
| 15263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15264 | $as_echo "$ac_try_echo") >&5 |
| 15265 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15266 | ac_status=$? |
| 15267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15268 | rm -f conftest.er1 |
| 15269 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15271 | (exit $ac_status); } && { |
| 15272 | test -z "$ac_c_werror_flag" || |
| 15273 | test ! -s conftest.err |
| 15274 | } && test -s conftest.$ac_objext; then |
| 15275 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15276 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15277 | #define HAVE_SYSCTL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15278 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15279 | |
| 15280 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15281 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15282 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15283 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15284 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15285 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15286 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15287 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15289 | |
| 15290 | { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5 |
| 15291 | $as_echo_n "checking for sysinfo... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15292 | cat >conftest.$ac_ext <<_ACEOF |
| 15293 | /* confdefs.h. */ |
| 15294 | _ACEOF |
| 15295 | cat confdefs.h >>conftest.$ac_ext |
| 15296 | cat >>conftest.$ac_ext <<_ACEOF |
| 15297 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15298 | #include <sys/types.h> |
| 15299 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15300 | int |
| 15301 | main () |
| 15302 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15303 | struct sysinfo sinfo; |
| 15304 | int t; |
| 15305 | |
| 15306 | (void)sysinfo(&sinfo); |
| 15307 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15308 | |
| 15309 | ; |
| 15310 | return 0; |
| 15311 | } |
| 15312 | _ACEOF |
| 15313 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15314 | if { (ac_try="$ac_compile" |
| 15315 | case "(($ac_try" in |
| 15316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15317 | *) ac_try_echo=$ac_try;; |
| 15318 | esac |
| 15319 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15320 | $as_echo "$ac_try_echo") >&5 |
| 15321 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15322 | ac_status=$? |
| 15323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15324 | rm -f conftest.er1 |
| 15325 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15326 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15327 | (exit $ac_status); } && { |
| 15328 | test -z "$ac_c_werror_flag" || |
| 15329 | test ! -s conftest.err |
| 15330 | } && test -s conftest.$ac_objext; then |
| 15331 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15332 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15333 | #define HAVE_SYSINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15334 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15335 | |
| 15336 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15337 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15338 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15339 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15340 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15341 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15342 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15343 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15345 | |
| 15346 | { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5 |
| 15347 | $as_echo_n "checking for sysinfo.mem_unit... " >&6; } |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15348 | cat >conftest.$ac_ext <<_ACEOF |
| 15349 | /* confdefs.h. */ |
| 15350 | _ACEOF |
| 15351 | cat confdefs.h >>conftest.$ac_ext |
| 15352 | cat >>conftest.$ac_ext <<_ACEOF |
| 15353 | /* end confdefs.h. */ |
| 15354 | #include <sys/types.h> |
| 15355 | #include <sys/sysinfo.h> |
| 15356 | int |
| 15357 | main () |
| 15358 | { |
| 15359 | struct sysinfo sinfo; |
| 15360 | sinfo.mem_unit = 1; |
| 15361 | |
| 15362 | ; |
| 15363 | return 0; |
| 15364 | } |
| 15365 | _ACEOF |
| 15366 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15367 | if { (ac_try="$ac_compile" |
| 15368 | case "(($ac_try" in |
| 15369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15370 | *) ac_try_echo=$ac_try;; |
| 15371 | esac |
| 15372 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15373 | $as_echo "$ac_try_echo") >&5 |
| 15374 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15375 | ac_status=$? |
| 15376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15377 | rm -f conftest.er1 |
| 15378 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15380 | (exit $ac_status); } && { |
| 15381 | test -z "$ac_c_werror_flag" || |
| 15382 | test ! -s conftest.err |
| 15383 | } && test -s conftest.$ac_objext; then |
| 15384 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15385 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15386 | #define HAVE_SYSINFO_MEM_UNIT 1 |
| 15387 | _ACEOF |
| 15388 | |
| 15389 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15390 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15392 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15393 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15394 | $as_echo "no" >&6; } |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15395 | fi |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15396 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15398 | |
| 15399 | { $as_echo "$as_me:$LINENO: checking for sysconf" >&5 |
| 15400 | $as_echo_n "checking for sysconf... " >&6; } |
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. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15407 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15408 | int |
| 15409 | main () |
| 15410 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15411 | (void)sysconf(_SC_PAGESIZE); |
| 15412 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15413 | |
| 15414 | ; |
| 15415 | return 0; |
| 15416 | } |
| 15417 | _ACEOF |
| 15418 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15419 | if { (ac_try="$ac_compile" |
| 15420 | case "(($ac_try" in |
| 15421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15422 | *) ac_try_echo=$ac_try;; |
| 15423 | esac |
| 15424 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15425 | $as_echo "$ac_try_echo") >&5 |
| 15426 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15427 | ac_status=$? |
| 15428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15429 | rm -f conftest.er1 |
| 15430 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15431 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15432 | (exit $ac_status); } && { |
| 15433 | test -z "$ac_c_werror_flag" || |
| 15434 | test ! -s conftest.err |
| 15435 | } && test -s conftest.$ac_objext; then |
| 15436 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15437 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15438 | #define HAVE_SYSCONF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15439 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15440 | |
| 15441 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15442 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15444 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15445 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15446 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15447 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15448 | |
| 15449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15450 | |
| 15451 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15452 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
| 15453 | $as_echo_n "checking size of int... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15454 | if test "${ac_cv_sizeof_int+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15455 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15456 | else |
| 15457 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15458 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 15459 | $as_echo "$as_me: error: failed to compile test program" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15460 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15461 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15462 | cat >conftest.$ac_ext <<_ACEOF |
| 15463 | /* confdefs.h. */ |
| 15464 | _ACEOF |
| 15465 | cat confdefs.h >>conftest.$ac_ext |
| 15466 | cat >>conftest.$ac_ext <<_ACEOF |
| 15467 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15468 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15469 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15470 | #if STDC_HEADERS |
| 15471 | # include <stdlib.h> |
| 15472 | # include <stddef.h> |
| 15473 | #endif |
| 15474 | main() |
| 15475 | { |
| 15476 | FILE *f=fopen("conftestval", "w"); |
| 15477 | if (!f) exit(1); |
| 15478 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 15479 | exit(0); |
| 15480 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15481 | _ACEOF |
| 15482 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15483 | if { (ac_try="$ac_link" |
| 15484 | case "(($ac_try" in |
| 15485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15486 | *) ac_try_echo=$ac_try;; |
| 15487 | esac |
| 15488 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15489 | $as_echo "$ac_try_echo") >&5 |
| 15490 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15491 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15492 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15493 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15494 | { (case "(($ac_try" in |
| 15495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15496 | *) ac_try_echo=$ac_try;; |
| 15497 | esac |
| 15498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15499 | $as_echo "$ac_try_echo") >&5 |
| 15500 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15501 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15503 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15504 | ac_cv_sizeof_int=`cat conftestval` |
| 15505 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15506 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15507 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15509 | |
| 15510 | ( exit $ac_status ) |
| 15511 | ac_cv_sizeof_int=0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15512 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15513 | rm -rf conftest.dSYM |
| 15514 | 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] | 15515 | fi |
| 15516 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15517 | |
| 15518 | fi |
| 15519 | |
| 15520 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 15521 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15522 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15523 | #define SIZEOF_INT $ac_cv_sizeof_int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15524 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15525 | |
| 15526 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15527 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15528 | bcopy_test_prog=' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15529 | #include "confdefs.h" |
| 15530 | #ifdef HAVE_STRING_H |
| 15531 | # include <string.h> |
| 15532 | #endif |
| 15533 | #if STDC_HEADERS |
| 15534 | # include <stdlib.h> |
| 15535 | # include <stddef.h> |
| 15536 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15537 | main() { |
| 15538 | char buf[10]; |
| 15539 | strcpy(buf, "abcdefghi"); |
| 15540 | mch_memmove(buf, buf + 2, 3); |
| 15541 | if (strncmp(buf, "ababcf", 6)) |
| 15542 | exit(1); |
| 15543 | strcpy(buf, "abcdefghi"); |
| 15544 | mch_memmove(buf + 2, buf, 3); |
| 15545 | if (strncmp(buf, "cdedef", 6)) |
| 15546 | exit(1); |
| 15547 | exit(0); /* libc version works properly. */ |
| 15548 | }' |
| 15549 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15550 | { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5 |
| 15551 | $as_echo_n "checking whether memmove handles overlaps... " >&6; } |
| 15552 | if test "${vim_cv_memmove_handles_overlap+set}" = set; then |
| 15553 | $as_echo_n "(cached) " >&6 |
| 15554 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15555 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15556 | if test "$cross_compiling" = yes; then |
| 15557 | |
| 15558 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5 |
| 15559 | $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] | 15560 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15561 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15562 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15563 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15564 | #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] | 15565 | _ACEOF |
| 15566 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15567 | if { (ac_try="$ac_link" |
| 15568 | case "(($ac_try" in |
| 15569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15570 | *) ac_try_echo=$ac_try;; |
| 15571 | esac |
| 15572 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15573 | $as_echo "$ac_try_echo") >&5 |
| 15574 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15575 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15577 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15578 | { (case "(($ac_try" in |
| 15579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15580 | *) ac_try_echo=$ac_try;; |
| 15581 | esac |
| 15582 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15583 | $as_echo "$ac_try_echo") >&5 |
| 15584 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15585 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15587 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15588 | |
| 15589 | vim_cv_memmove_handles_overlap=yes |
| 15590 | |
| 15591 | else |
| 15592 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15593 | $as_echo "$as_me: failed program was:" >&5 |
| 15594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15595 | |
| 15596 | ( exit $ac_status ) |
| 15597 | |
| 15598 | vim_cv_memmove_handles_overlap=no |
| 15599 | |
| 15600 | fi |
| 15601 | rm -rf conftest.dSYM |
| 15602 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15603 | fi |
| 15604 | |
| 15605 | |
| 15606 | |
| 15607 | fi |
| 15608 | { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5 |
| 15609 | $as_echo "$vim_cv_memmove_handles_overlap" >&6; } |
| 15610 | |
| 15611 | if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15612 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15613 | #define USEMEMMOVE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15614 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15615 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15616 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15617 | { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5 |
| 15618 | $as_echo_n "checking whether bcopy handles overlaps... " >&6; } |
| 15619 | if test "${vim_cv_bcopy_handles_overlap+set}" = set; then |
| 15620 | $as_echo_n "(cached) " >&6 |
| 15621 | else |
| 15622 | |
| 15623 | if test "$cross_compiling" = yes; then |
| 15624 | |
| 15625 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5 |
| 15626 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;} |
| 15627 | { (exit 1); exit 1; }; } |
| 15628 | |
| 15629 | else |
| 15630 | cat >conftest.$ac_ext <<_ACEOF |
| 15631 | #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog |
| 15632 | _ACEOF |
| 15633 | rm -f conftest$ac_exeext |
| 15634 | if { (ac_try="$ac_link" |
| 15635 | case "(($ac_try" in |
| 15636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15637 | *) ac_try_echo=$ac_try;; |
| 15638 | esac |
| 15639 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15640 | $as_echo "$ac_try_echo") >&5 |
| 15641 | (eval "$ac_link") 2>&5 |
| 15642 | ac_status=$? |
| 15643 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15644 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15645 | { (case "(($ac_try" in |
| 15646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15647 | *) ac_try_echo=$ac_try;; |
| 15648 | esac |
| 15649 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15650 | $as_echo "$ac_try_echo") >&5 |
| 15651 | (eval "$ac_try") 2>&5 |
| 15652 | ac_status=$? |
| 15653 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15654 | (exit $ac_status); }; }; then |
| 15655 | |
| 15656 | vim_cv_bcopy_handles_overlap=yes |
| 15657 | |
| 15658 | else |
| 15659 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15660 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15662 | |
| 15663 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15664 | |
| 15665 | vim_cv_bcopy_handles_overlap=no |
| 15666 | |
| 15667 | fi |
| 15668 | rm -rf conftest.dSYM |
| 15669 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15670 | fi |
| 15671 | |
| 15672 | |
| 15673 | |
| 15674 | fi |
| 15675 | { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5 |
| 15676 | $as_echo "$vim_cv_bcopy_handles_overlap" >&6; } |
| 15677 | |
| 15678 | if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then |
| 15679 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15680 | #define USEBCOPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15681 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15682 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15683 | else |
| 15684 | { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5 |
| 15685 | $as_echo_n "checking whether memcpy handles overlaps... " >&6; } |
| 15686 | if test "${vim_cv_memcpy_handles_overlap+set}" = set; then |
| 15687 | $as_echo_n "(cached) " >&6 |
| 15688 | else |
| 15689 | |
| 15690 | if test "$cross_compiling" = yes; then |
| 15691 | |
| 15692 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5 |
| 15693 | $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] | 15694 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15695 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15696 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15697 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15698 | #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] | 15699 | _ACEOF |
| 15700 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15701 | if { (ac_try="$ac_link" |
| 15702 | case "(($ac_try" in |
| 15703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15704 | *) ac_try_echo=$ac_try;; |
| 15705 | esac |
| 15706 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15707 | $as_echo "$ac_try_echo") >&5 |
| 15708 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15709 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15710 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15711 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15712 | { (case "(($ac_try" in |
| 15713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15714 | *) ac_try_echo=$ac_try;; |
| 15715 | esac |
| 15716 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15717 | $as_echo "$ac_try_echo") >&5 |
| 15718 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15719 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15720 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15721 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15722 | |
| 15723 | vim_cv_memcpy_handles_overlap=yes |
| 15724 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15725 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15726 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15727 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15728 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15729 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15730 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15731 | |
| 15732 | vim_cv_memcpy_handles_overlap=no |
| 15733 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15734 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15735 | rm -rf conftest.dSYM |
| 15736 | 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] | 15737 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15738 | |
| 15739 | |
| 15740 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15741 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15742 | { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5 |
| 15743 | $as_echo "$vim_cv_memcpy_handles_overlap" >&6; } |
| 15744 | |
| 15745 | if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then |
| 15746 | cat >>confdefs.h <<\_ACEOF |
| 15747 | #define USEMEMCPY 1 |
| 15748 | _ACEOF |
| 15749 | |
| 15750 | fi |
| 15751 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15752 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15753 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15754 | |
| 15755 | |
| 15756 | if test "$enable_multibyte" = "yes"; then |
| 15757 | cflags_save=$CFLAGS |
| 15758 | ldflags_save=$LDFLAGS |
Bram Moolenaar | 94ba1ce | 2009-04-22 15:53:09 +0000 | [diff] [blame] | 15759 | if test "x$x_includes" != "xNONE" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15760 | CFLAGS="$CFLAGS -I$x_includes" |
| 15761 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15762 | { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
| 15763 | $as_echo_n "checking whether X_LOCALE needed... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15764 | cat >conftest.$ac_ext <<_ACEOF |
| 15765 | /* confdefs.h. */ |
| 15766 | _ACEOF |
| 15767 | cat confdefs.h >>conftest.$ac_ext |
| 15768 | cat >>conftest.$ac_ext <<_ACEOF |
| 15769 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15770 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15771 | int |
| 15772 | main () |
| 15773 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15774 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15775 | ; |
| 15776 | return 0; |
| 15777 | } |
| 15778 | _ACEOF |
| 15779 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15780 | if { (ac_try="$ac_compile" |
| 15781 | case "(($ac_try" in |
| 15782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15783 | *) ac_try_echo=$ac_try;; |
| 15784 | esac |
| 15785 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15786 | $as_echo "$ac_try_echo") >&5 |
| 15787 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15788 | ac_status=$? |
| 15789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15790 | rm -f conftest.er1 |
| 15791 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15792 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15793 | (exit $ac_status); } && { |
| 15794 | test -z "$ac_c_werror_flag" || |
| 15795 | test ! -s conftest.err |
| 15796 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15797 | cat >conftest.$ac_ext <<_ACEOF |
| 15798 | /* confdefs.h. */ |
| 15799 | _ACEOF |
| 15800 | cat confdefs.h >>conftest.$ac_ext |
| 15801 | cat >>conftest.$ac_ext <<_ACEOF |
| 15802 | /* end confdefs.h. */ |
| 15803 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15804 | /* Override any GCC internal prototype to avoid an error. |
| 15805 | Use char because int might match the return type of a GCC |
| 15806 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15807 | #ifdef __cplusplus |
| 15808 | extern "C" |
| 15809 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15810 | char _Xsetlocale (); |
| 15811 | int |
| 15812 | main () |
| 15813 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15814 | return _Xsetlocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15815 | ; |
| 15816 | return 0; |
| 15817 | } |
| 15818 | _ACEOF |
| 15819 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15820 | if { (ac_try="$ac_link" |
| 15821 | case "(($ac_try" in |
| 15822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15823 | *) ac_try_echo=$ac_try;; |
| 15824 | esac |
| 15825 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15826 | $as_echo "$ac_try_echo") >&5 |
| 15827 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15828 | ac_status=$? |
| 15829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15830 | rm -f conftest.er1 |
| 15831 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15832 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15833 | (exit $ac_status); } && { |
| 15834 | test -z "$ac_c_werror_flag" || |
| 15835 | test ! -s conftest.err |
| 15836 | } && test -s conftest$ac_exeext && { |
| 15837 | test "$cross_compiling" = yes || |
| 15838 | $as_test_x conftest$ac_exeext |
| 15839 | }; then |
| 15840 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15841 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15842 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15843 | #define X_LOCALE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15844 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15845 | |
| 15846 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15847 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15849 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15850 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15851 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15852 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15853 | |
| 15854 | rm -rf conftest.dSYM |
| 15855 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15856 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15857 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15858 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15860 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15861 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15862 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15863 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15864 | |
| 15865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15866 | fi |
| 15867 | CFLAGS=$cflags_save |
| 15868 | LDFLAGS=$ldflags_save |
| 15869 | fi |
| 15870 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15871 | { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 15872 | $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15873 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15874 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15875 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15876 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15877 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15878 | cat >conftest.$ac_ext <<_ACEOF |
| 15879 | /* confdefs.h. */ |
| 15880 | _ACEOF |
| 15881 | cat confdefs.h >>conftest.$ac_ext |
| 15882 | cat >>conftest.$ac_ext <<_ACEOF |
| 15883 | /* end confdefs.h. */ |
| 15884 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15885 | /* Override any GCC internal prototype to avoid an error. |
| 15886 | Use char because int might match the return type of a GCC |
| 15887 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15888 | #ifdef __cplusplus |
| 15889 | extern "C" |
| 15890 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15891 | char _xpg4_setrunelocale (); |
| 15892 | int |
| 15893 | main () |
| 15894 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15895 | return _xpg4_setrunelocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15896 | ; |
| 15897 | return 0; |
| 15898 | } |
| 15899 | _ACEOF |
| 15900 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15901 | if { (ac_try="$ac_link" |
| 15902 | case "(($ac_try" in |
| 15903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15904 | *) ac_try_echo=$ac_try;; |
| 15905 | esac |
| 15906 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15907 | $as_echo "$ac_try_echo") >&5 |
| 15908 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15909 | ac_status=$? |
| 15910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15911 | rm -f conftest.er1 |
| 15912 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15913 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15914 | (exit $ac_status); } && { |
| 15915 | test -z "$ac_c_werror_flag" || |
| 15916 | test ! -s conftest.err |
| 15917 | } && test -s conftest$ac_exeext && { |
| 15918 | test "$cross_compiling" = yes || |
| 15919 | $as_test_x conftest$ac_exeext |
| 15920 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15921 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15922 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15923 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15924 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15925 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15926 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15927 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15928 | |
| 15929 | rm -rf conftest.dSYM |
| 15930 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15931 | conftest$ac_exeext conftest.$ac_ext |
| 15932 | LIBS=$ac_check_lib_save_LIBS |
| 15933 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15934 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 15935 | $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 15936 | if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15937 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15938 | fi |
| 15939 | |
| 15940 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15941 | { $as_echo "$as_me:$LINENO: checking how to create tags" >&5 |
| 15942 | $as_echo_n "checking how to create tags... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15943 | test -f tags && mv tags tags.save |
| 15944 | 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] | 15945 | TAGPRG="ctags -I INIT+ --fields=+S" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15946 | else |
Bram Moolenaar | 0c7ce77 | 2009-05-13 12:49:39 +0000 | [diff] [blame] | 15947 | TAGPRG="ctags" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15948 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 15949 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 15950 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 15951 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 15952 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 15953 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 15954 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 15955 | fi |
| 15956 | test -f tags.save && mv tags.save tags |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15957 | { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
| 15958 | $as_echo "$TAGPRG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15959 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15960 | { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
| 15961 | $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] | 15962 | MANDEF="man" |
Bram Moolenaar | 8b13150 | 2008-02-13 09:28:19 +0000 | [diff] [blame] | 15963 | (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] | 15964 | { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5 |
| 15965 | $as_echo "$MANDEF" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15966 | if test "$MANDEF" = "man -s"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15967 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15968 | #define USEMAN_S 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15969 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15970 | |
| 15971 | fi |
| 15972 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15973 | { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
| 15974 | $as_echo_n "checking --disable-nls argument... " >&6; } |
| 15975 | # Check whether --enable-nls was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15976 | if test "${enable_nls+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15977 | enableval=$enable_nls; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15978 | else |
| 15979 | enable_nls="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15980 | fi |
| 15981 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15982 | |
| 15983 | if test "$enable_nls" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15984 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15985 | $as_echo "no" >&6; } |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 15986 | |
| 15987 | INSTALL_LANGS=install-languages |
| 15988 | |
| 15989 | INSTALL_TOOL_LANGS=install-tool-languages |
| 15990 | |
| 15991 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15992 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 15993 | set dummy msgfmt; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15994 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15995 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15996 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15997 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15998 | else |
| 15999 | if test -n "$MSGFMT"; then |
| 16000 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 16001 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16003 | for as_dir in $PATH |
| 16004 | do |
| 16005 | IFS=$as_save_IFS |
| 16006 | test -z "$as_dir" && as_dir=. |
| 16007 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16008 | 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] | 16009 | ac_cv_prog_MSGFMT="msgfmt" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16010 | $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] | 16011 | break 2 |
| 16012 | fi |
| 16013 | done |
| 16014 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16015 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16016 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16017 | fi |
| 16018 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16019 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16020 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16021 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 16022 | $as_echo "$MSGFMT" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16023 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16024 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16025 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16026 | fi |
| 16027 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16028 | |
| 16029 | { $as_echo "$as_me:$LINENO: checking for NLS" >&5 |
| 16030 | $as_echo_n "checking for NLS... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16031 | if test -f po/Makefile; then |
| 16032 | have_gettext="no" |
| 16033 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16034 | cat >conftest.$ac_ext <<_ACEOF |
| 16035 | /* confdefs.h. */ |
| 16036 | _ACEOF |
| 16037 | cat confdefs.h >>conftest.$ac_ext |
| 16038 | cat >>conftest.$ac_ext <<_ACEOF |
| 16039 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16040 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16041 | int |
| 16042 | main () |
| 16043 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16044 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16045 | ; |
| 16046 | return 0; |
| 16047 | } |
| 16048 | _ACEOF |
| 16049 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16050 | if { (ac_try="$ac_link" |
| 16051 | case "(($ac_try" in |
| 16052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16053 | *) ac_try_echo=$ac_try;; |
| 16054 | esac |
| 16055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16056 | $as_echo "$ac_try_echo") >&5 |
| 16057 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16058 | ac_status=$? |
| 16059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16060 | rm -f conftest.er1 |
| 16061 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16063 | (exit $ac_status); } && { |
| 16064 | test -z "$ac_c_werror_flag" || |
| 16065 | test ! -s conftest.err |
| 16066 | } && test -s conftest$ac_exeext && { |
| 16067 | test "$cross_compiling" = yes || |
| 16068 | $as_test_x conftest$ac_exeext |
| 16069 | }; then |
| 16070 | { $as_echo "$as_me:$LINENO: result: gettext() works" >&5 |
| 16071 | $as_echo "gettext() works" >&6; }; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16072 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16073 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16075 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16076 | olibs=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16077 | LIBS="$LIBS -lintl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16078 | cat >conftest.$ac_ext <<_ACEOF |
| 16079 | /* confdefs.h. */ |
| 16080 | _ACEOF |
| 16081 | cat confdefs.h >>conftest.$ac_ext |
| 16082 | cat >>conftest.$ac_ext <<_ACEOF |
| 16083 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16084 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16085 | int |
| 16086 | main () |
| 16087 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16088 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16089 | ; |
| 16090 | return 0; |
| 16091 | } |
| 16092 | _ACEOF |
| 16093 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16094 | if { (ac_try="$ac_link" |
| 16095 | case "(($ac_try" in |
| 16096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16097 | *) ac_try_echo=$ac_try;; |
| 16098 | esac |
| 16099 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16100 | $as_echo "$ac_try_echo") >&5 |
| 16101 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16102 | ac_status=$? |
| 16103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16104 | rm -f conftest.er1 |
| 16105 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16106 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16107 | (exit $ac_status); } && { |
| 16108 | test -z "$ac_c_werror_flag" || |
| 16109 | test ! -s conftest.err |
| 16110 | } && test -s conftest$ac_exeext && { |
| 16111 | test "$cross_compiling" = yes || |
| 16112 | $as_test_x conftest$ac_exeext |
| 16113 | }; then |
| 16114 | { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 |
| 16115 | $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16116 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16117 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16119 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16120 | { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 |
| 16121 | $as_echo "gettext() doesn't work" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16122 | LIBS=$olibs |
| 16123 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16124 | |
| 16125 | rm -rf conftest.dSYM |
| 16126 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16127 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16128 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16129 | |
| 16130 | rm -rf conftest.dSYM |
| 16131 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16132 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16133 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16134 | { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
| 16135 | $as_echo "msgfmt not found - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16136 | fi |
| 16137 | if test $have_gettext = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16138 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16139 | #define HAVE_GETTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16140 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16141 | |
| 16142 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16143 | |
| 16144 | |
| 16145 | for ac_func in bind_textdomain_codeset |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16146 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16147 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16148 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16149 | $as_echo_n "checking for $ac_func... " >&6; } |
| 16150 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16151 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16152 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16153 | cat >conftest.$ac_ext <<_ACEOF |
| 16154 | /* confdefs.h. */ |
| 16155 | _ACEOF |
| 16156 | cat confdefs.h >>conftest.$ac_ext |
| 16157 | cat >>conftest.$ac_ext <<_ACEOF |
| 16158 | /* end confdefs.h. */ |
| 16159 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16160 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16161 | #define $ac_func innocuous_$ac_func |
| 16162 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16163 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16164 | which can conflict with char $ac_func (); below. |
| 16165 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16166 | <limits.h> exists even on freestanding compilers. */ |
| 16167 | |
| 16168 | #ifdef __STDC__ |
| 16169 | # include <limits.h> |
| 16170 | #else |
| 16171 | # include <assert.h> |
| 16172 | #endif |
| 16173 | |
| 16174 | #undef $ac_func |
| 16175 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16176 | /* Override any GCC internal prototype to avoid an error. |
| 16177 | Use char because int might match the return type of a GCC |
| 16178 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16179 | #ifdef __cplusplus |
| 16180 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16181 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16182 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16183 | /* The GNU C library defines this for functions which it implements |
| 16184 | to always fail with ENOSYS. Some functions are actually named |
| 16185 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16186 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16187 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16188 | #endif |
| 16189 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16190 | int |
| 16191 | main () |
| 16192 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16193 | return $ac_func (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16194 | ; |
| 16195 | return 0; |
| 16196 | } |
| 16197 | _ACEOF |
| 16198 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16199 | if { (ac_try="$ac_link" |
| 16200 | case "(($ac_try" in |
| 16201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16202 | *) ac_try_echo=$ac_try;; |
| 16203 | esac |
| 16204 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16205 | $as_echo "$ac_try_echo") >&5 |
| 16206 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16207 | ac_status=$? |
| 16208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16209 | rm -f conftest.er1 |
| 16210 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16211 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16212 | (exit $ac_status); } && { |
| 16213 | test -z "$ac_c_werror_flag" || |
| 16214 | test ! -s conftest.err |
| 16215 | } && test -s conftest$ac_exeext && { |
| 16216 | test "$cross_compiling" = yes || |
| 16217 | $as_test_x conftest$ac_exeext |
| 16218 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16219 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16220 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16221 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16222 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16223 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16224 | eval "$as_ac_var=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16225 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16226 | |
| 16227 | rm -rf conftest.dSYM |
| 16228 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16229 | conftest$ac_exeext conftest.$ac_ext |
| 16230 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16231 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 16232 | $as_echo "$as_val"'` |
| 16233 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16234 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 16235 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 16236 | $as_echo "$as_val"'` |
| 16237 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16238 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16239 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16240 | _ACEOF |
| 16241 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16242 | fi |
| 16243 | done |
| 16244 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16245 | { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
| 16246 | $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16247 | cat >conftest.$ac_ext <<_ACEOF |
| 16248 | /* confdefs.h. */ |
| 16249 | _ACEOF |
| 16250 | cat confdefs.h >>conftest.$ac_ext |
| 16251 | cat >>conftest.$ac_ext <<_ACEOF |
| 16252 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16253 | #include <libintl.h> |
| 16254 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16255 | int |
| 16256 | main () |
| 16257 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16258 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16259 | ; |
| 16260 | return 0; |
| 16261 | } |
| 16262 | _ACEOF |
| 16263 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16264 | if { (ac_try="$ac_link" |
| 16265 | case "(($ac_try" in |
| 16266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16267 | *) ac_try_echo=$ac_try;; |
| 16268 | esac |
| 16269 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16270 | $as_echo "$ac_try_echo") >&5 |
| 16271 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16272 | ac_status=$? |
| 16273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16274 | rm -f conftest.er1 |
| 16275 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16276 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16277 | (exit $ac_status); } && { |
| 16278 | test -z "$ac_c_werror_flag" || |
| 16279 | test ! -s conftest.err |
| 16280 | } && test -s conftest$ac_exeext && { |
| 16281 | test "$cross_compiling" = yes || |
| 16282 | $as_test_x conftest$ac_exeext |
| 16283 | }; then |
| 16284 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16285 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16286 | #define HAVE_NL_MSG_CAT_CNTR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16287 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16288 | |
| 16289 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16290 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16292 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16293 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16294 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16295 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16296 | |
| 16297 | rm -rf conftest.dSYM |
| 16298 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16299 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16300 | fi |
| 16301 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16302 | { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
| 16303 | $as_echo "no \"po/Makefile\" - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16304 | fi |
| 16305 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16306 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16307 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16308 | fi |
| 16309 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16310 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16311 | { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 16312 | $as_echo_n "checking for dlfcn.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16313 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16314 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16315 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16316 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 16317 | $as_echo "$ac_cv_header_dlfcn_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16318 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16319 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16320 | { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 16321 | $as_echo_n "checking dlfcn.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16322 | cat >conftest.$ac_ext <<_ACEOF |
| 16323 | /* confdefs.h. */ |
| 16324 | _ACEOF |
| 16325 | cat confdefs.h >>conftest.$ac_ext |
| 16326 | cat >>conftest.$ac_ext <<_ACEOF |
| 16327 | /* end confdefs.h. */ |
| 16328 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16329 | #include <dlfcn.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16330 | _ACEOF |
| 16331 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16332 | if { (ac_try="$ac_compile" |
| 16333 | case "(($ac_try" in |
| 16334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16335 | *) ac_try_echo=$ac_try;; |
| 16336 | esac |
| 16337 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16338 | $as_echo "$ac_try_echo") >&5 |
| 16339 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16340 | ac_status=$? |
| 16341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16342 | rm -f conftest.er1 |
| 16343 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16345 | (exit $ac_status); } && { |
| 16346 | test -z "$ac_c_werror_flag" || |
| 16347 | test ! -s conftest.err |
| 16348 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16349 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16350 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16351 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16353 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16354 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16355 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16356 | |
| 16357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16358 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16359 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16360 | |
| 16361 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16362 | { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 16363 | $as_echo_n "checking dlfcn.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16364 | cat >conftest.$ac_ext <<_ACEOF |
| 16365 | /* confdefs.h. */ |
| 16366 | _ACEOF |
| 16367 | cat confdefs.h >>conftest.$ac_ext |
| 16368 | cat >>conftest.$ac_ext <<_ACEOF |
| 16369 | /* end confdefs.h. */ |
| 16370 | #include <dlfcn.h> |
| 16371 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16372 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16373 | case "(($ac_try" in |
| 16374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16375 | *) ac_try_echo=$ac_try;; |
| 16376 | esac |
| 16377 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16378 | $as_echo "$ac_try_echo") >&5 |
| 16379 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16380 | ac_status=$? |
| 16381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16382 | rm -f conftest.er1 |
| 16383 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16384 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16385 | (exit $ac_status); } >/dev/null && { |
| 16386 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16387 | test ! -s conftest.err |
| 16388 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16389 | ac_header_preproc=yes |
| 16390 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16391 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16393 | |
| 16394 | ac_header_preproc=no |
| 16395 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16396 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16397 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16398 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16399 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16400 | |
| 16401 | # So? What about this header? |
| 16402 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16403 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16404 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16405 | $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16406 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 16407 | $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] | 16408 | ac_header_preproc=yes |
| 16409 | ;; |
| 16410 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16411 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 16412 | $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 16413 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 16414 | $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 16415 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 16416 | $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 16417 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16418 | $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16419 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 16420 | $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 16421 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 16422 | $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 16423 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16424 | ;; |
| 16425 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16426 | { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 16427 | $as_echo_n "checking for dlfcn.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16428 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16429 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16430 | else |
| 16431 | ac_cv_header_dlfcn_h=$ac_header_preproc |
| 16432 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16433 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 16434 | $as_echo "$ac_cv_header_dlfcn_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16435 | |
| 16436 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 16437 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16438 | DLL=dlfcn.h |
| 16439 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16440 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16441 | { $as_echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 16442 | $as_echo_n "checking for dl.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16443 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16444 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16445 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16446 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 16447 | $as_echo "$ac_cv_header_dl_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16448 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16449 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16450 | { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5 |
| 16451 | $as_echo_n "checking dl.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16452 | cat >conftest.$ac_ext <<_ACEOF |
| 16453 | /* confdefs.h. */ |
| 16454 | _ACEOF |
| 16455 | cat confdefs.h >>conftest.$ac_ext |
| 16456 | cat >>conftest.$ac_ext <<_ACEOF |
| 16457 | /* end confdefs.h. */ |
| 16458 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16459 | #include <dl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16460 | _ACEOF |
| 16461 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16462 | if { (ac_try="$ac_compile" |
| 16463 | case "(($ac_try" in |
| 16464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16465 | *) ac_try_echo=$ac_try;; |
| 16466 | esac |
| 16467 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16468 | $as_echo "$ac_try_echo") >&5 |
| 16469 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16470 | ac_status=$? |
| 16471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16472 | rm -f conftest.er1 |
| 16473 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16474 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16475 | (exit $ac_status); } && { |
| 16476 | test -z "$ac_c_werror_flag" || |
| 16477 | test ! -s conftest.err |
| 16478 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16479 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16480 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16481 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16483 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16484 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16485 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16486 | |
| 16487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16488 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16489 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16490 | |
| 16491 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16492 | { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5 |
| 16493 | $as_echo_n "checking dl.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16494 | cat >conftest.$ac_ext <<_ACEOF |
| 16495 | /* confdefs.h. */ |
| 16496 | _ACEOF |
| 16497 | cat confdefs.h >>conftest.$ac_ext |
| 16498 | cat >>conftest.$ac_ext <<_ACEOF |
| 16499 | /* end confdefs.h. */ |
| 16500 | #include <dl.h> |
| 16501 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16502 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16503 | case "(($ac_try" in |
| 16504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16505 | *) ac_try_echo=$ac_try;; |
| 16506 | esac |
| 16507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16508 | $as_echo "$ac_try_echo") >&5 |
| 16509 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16510 | ac_status=$? |
| 16511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16512 | rm -f conftest.er1 |
| 16513 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16515 | (exit $ac_status); } >/dev/null && { |
| 16516 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16517 | test ! -s conftest.err |
| 16518 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16519 | ac_header_preproc=yes |
| 16520 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16521 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16523 | |
| 16524 | ac_header_preproc=no |
| 16525 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16526 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16527 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16528 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16529 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16530 | |
| 16531 | # So? What about this header? |
| 16532 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16533 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16534 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16535 | $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16536 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 |
| 16537 | $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] | 16538 | ac_header_preproc=yes |
| 16539 | ;; |
| 16540 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16541 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 |
| 16542 | $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} |
| 16543 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 |
| 16544 | $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} |
| 16545 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 |
| 16546 | $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} |
| 16547 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16548 | $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16549 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 |
| 16550 | $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} |
| 16551 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 |
| 16552 | $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} |
| 16553 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16554 | ;; |
| 16555 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16556 | { $as_echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 16557 | $as_echo_n "checking for dl.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16558 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16559 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16560 | else |
| 16561 | ac_cv_header_dl_h=$ac_header_preproc |
| 16562 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16563 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 16564 | $as_echo "$ac_cv_header_dl_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16565 | |
| 16566 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 16567 | if test "x$ac_cv_header_dl_h" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16568 | DLL=dl.h |
| 16569 | fi |
| 16570 | |
| 16571 | |
| 16572 | fi |
| 16573 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16574 | |
| 16575 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16576 | |
| 16577 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16578 | #define HAVE_DLFCN_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16579 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16580 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16581 | { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5 |
| 16582 | $as_echo_n "checking for dlopen()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16583 | cat >conftest.$ac_ext <<_ACEOF |
| 16584 | /* confdefs.h. */ |
| 16585 | _ACEOF |
| 16586 | cat confdefs.h >>conftest.$ac_ext |
| 16587 | cat >>conftest.$ac_ext <<_ACEOF |
| 16588 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16589 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16590 | int |
| 16591 | main () |
| 16592 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16593 | |
| 16594 | extern void* dlopen(); |
| 16595 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16596 | |
| 16597 | ; |
| 16598 | return 0; |
| 16599 | } |
| 16600 | _ACEOF |
| 16601 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16602 | if { (ac_try="$ac_link" |
| 16603 | case "(($ac_try" in |
| 16604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16605 | *) ac_try_echo=$ac_try;; |
| 16606 | esac |
| 16607 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16608 | $as_echo "$ac_try_echo") >&5 |
| 16609 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16610 | ac_status=$? |
| 16611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16612 | rm -f conftest.er1 |
| 16613 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16615 | (exit $ac_status); } && { |
| 16616 | test -z "$ac_c_werror_flag" || |
| 16617 | test ! -s conftest.err |
| 16618 | } && test -s conftest$ac_exeext && { |
| 16619 | test "$cross_compiling" = yes || |
| 16620 | $as_test_x conftest$ac_exeext |
| 16621 | }; then |
| 16622 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16623 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16624 | |
| 16625 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16626 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16627 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16628 | |
| 16629 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16630 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16632 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16633 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16634 | $as_echo "no" >&6; }; |
| 16635 | { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
| 16636 | $as_echo_n "checking for dlopen() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16637 | olibs=$LIBS |
| 16638 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16639 | cat >conftest.$ac_ext <<_ACEOF |
| 16640 | /* confdefs.h. */ |
| 16641 | _ACEOF |
| 16642 | cat confdefs.h >>conftest.$ac_ext |
| 16643 | cat >>conftest.$ac_ext <<_ACEOF |
| 16644 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16645 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16646 | int |
| 16647 | main () |
| 16648 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16649 | |
| 16650 | extern void* dlopen(); |
| 16651 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16652 | |
| 16653 | ; |
| 16654 | return 0; |
| 16655 | } |
| 16656 | _ACEOF |
| 16657 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16658 | if { (ac_try="$ac_link" |
| 16659 | case "(($ac_try" in |
| 16660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16661 | *) ac_try_echo=$ac_try;; |
| 16662 | esac |
| 16663 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16664 | $as_echo "$ac_try_echo") >&5 |
| 16665 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16666 | ac_status=$? |
| 16667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16668 | rm -f conftest.er1 |
| 16669 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16670 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16671 | (exit $ac_status); } && { |
| 16672 | test -z "$ac_c_werror_flag" || |
| 16673 | test ! -s conftest.err |
| 16674 | } && test -s conftest$ac_exeext && { |
| 16675 | test "$cross_compiling" = yes || |
| 16676 | $as_test_x conftest$ac_exeext |
| 16677 | }; then |
| 16678 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16679 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16680 | |
| 16681 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16682 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16683 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16684 | |
| 16685 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16686 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16688 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16689 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16690 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16691 | LIBS=$olibs |
| 16692 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16693 | |
| 16694 | rm -rf conftest.dSYM |
| 16695 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16696 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16697 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16698 | |
| 16699 | rm -rf conftest.dSYM |
| 16700 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16701 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16702 | { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5 |
| 16703 | $as_echo_n "checking for dlsym()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16704 | cat >conftest.$ac_ext <<_ACEOF |
| 16705 | /* confdefs.h. */ |
| 16706 | _ACEOF |
| 16707 | cat confdefs.h >>conftest.$ac_ext |
| 16708 | cat >>conftest.$ac_ext <<_ACEOF |
| 16709 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16710 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16711 | int |
| 16712 | main () |
| 16713 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16714 | |
| 16715 | extern void* dlsym(); |
| 16716 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16717 | |
| 16718 | ; |
| 16719 | return 0; |
| 16720 | } |
| 16721 | _ACEOF |
| 16722 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16723 | if { (ac_try="$ac_link" |
| 16724 | case "(($ac_try" in |
| 16725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16726 | *) ac_try_echo=$ac_try;; |
| 16727 | esac |
| 16728 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16729 | $as_echo "$ac_try_echo") >&5 |
| 16730 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16731 | ac_status=$? |
| 16732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16733 | rm -f conftest.er1 |
| 16734 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16735 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16736 | (exit $ac_status); } && { |
| 16737 | test -z "$ac_c_werror_flag" || |
| 16738 | test ! -s conftest.err |
| 16739 | } && test -s conftest$ac_exeext && { |
| 16740 | test "$cross_compiling" = yes || |
| 16741 | $as_test_x conftest$ac_exeext |
| 16742 | }; then |
| 16743 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16744 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16745 | |
| 16746 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16747 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16748 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16749 | |
| 16750 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16751 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16753 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16754 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16755 | $as_echo "no" >&6; }; |
| 16756 | { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
| 16757 | $as_echo_n "checking for dlsym() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16758 | olibs=$LIBS |
| 16759 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16760 | cat >conftest.$ac_ext <<_ACEOF |
| 16761 | /* confdefs.h. */ |
| 16762 | _ACEOF |
| 16763 | cat confdefs.h >>conftest.$ac_ext |
| 16764 | cat >>conftest.$ac_ext <<_ACEOF |
| 16765 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16766 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16767 | int |
| 16768 | main () |
| 16769 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16770 | |
| 16771 | extern void* dlsym(); |
| 16772 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16773 | |
| 16774 | ; |
| 16775 | return 0; |
| 16776 | } |
| 16777 | _ACEOF |
| 16778 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16779 | if { (ac_try="$ac_link" |
| 16780 | case "(($ac_try" in |
| 16781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16782 | *) ac_try_echo=$ac_try;; |
| 16783 | esac |
| 16784 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16785 | $as_echo "$ac_try_echo") >&5 |
| 16786 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16787 | ac_status=$? |
| 16788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16789 | rm -f conftest.er1 |
| 16790 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16791 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16792 | (exit $ac_status); } && { |
| 16793 | test -z "$ac_c_werror_flag" || |
| 16794 | test ! -s conftest.err |
| 16795 | } && test -s conftest$ac_exeext && { |
| 16796 | test "$cross_compiling" = yes || |
| 16797 | $as_test_x conftest$ac_exeext |
| 16798 | }; then |
| 16799 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16800 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16801 | |
| 16802 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16803 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16804 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16805 | |
| 16806 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16807 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16809 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16810 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16811 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16812 | LIBS=$olibs |
| 16813 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16814 | |
| 16815 | rm -rf conftest.dSYM |
| 16816 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16817 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16818 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16819 | |
| 16820 | rm -rf conftest.dSYM |
| 16821 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16822 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16823 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16824 | |
| 16825 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16826 | #define HAVE_DL_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16827 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16828 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16829 | { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5 |
| 16830 | $as_echo_n "checking for shl_load()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16831 | cat >conftest.$ac_ext <<_ACEOF |
| 16832 | /* confdefs.h. */ |
| 16833 | _ACEOF |
| 16834 | cat confdefs.h >>conftest.$ac_ext |
| 16835 | cat >>conftest.$ac_ext <<_ACEOF |
| 16836 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16837 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16838 | int |
| 16839 | main () |
| 16840 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16841 | |
| 16842 | extern void* shl_load(); |
| 16843 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16844 | |
| 16845 | ; |
| 16846 | return 0; |
| 16847 | } |
| 16848 | _ACEOF |
| 16849 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16850 | if { (ac_try="$ac_link" |
| 16851 | case "(($ac_try" in |
| 16852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16853 | *) ac_try_echo=$ac_try;; |
| 16854 | esac |
| 16855 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16856 | $as_echo "$ac_try_echo") >&5 |
| 16857 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16858 | ac_status=$? |
| 16859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16860 | rm -f conftest.er1 |
| 16861 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16862 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16863 | (exit $ac_status); } && { |
| 16864 | test -z "$ac_c_werror_flag" || |
| 16865 | test ! -s conftest.err |
| 16866 | } && test -s conftest$ac_exeext && { |
| 16867 | test "$cross_compiling" = yes || |
| 16868 | $as_test_x conftest$ac_exeext |
| 16869 | }; then |
| 16870 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16871 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16872 | |
| 16873 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16874 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16875 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16876 | |
| 16877 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16878 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16880 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16881 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16882 | $as_echo "no" >&6; }; |
| 16883 | { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
| 16884 | $as_echo_n "checking for shl_load() in -ldld... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16885 | olibs=$LIBS |
| 16886 | LIBS="$LIBS -ldld" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16887 | cat >conftest.$ac_ext <<_ACEOF |
| 16888 | /* confdefs.h. */ |
| 16889 | _ACEOF |
| 16890 | cat confdefs.h >>conftest.$ac_ext |
| 16891 | cat >>conftest.$ac_ext <<_ACEOF |
| 16892 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16893 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16894 | int |
| 16895 | main () |
| 16896 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16897 | |
| 16898 | extern void* shl_load(); |
| 16899 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16900 | |
| 16901 | ; |
| 16902 | return 0; |
| 16903 | } |
| 16904 | _ACEOF |
| 16905 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16906 | if { (ac_try="$ac_link" |
| 16907 | case "(($ac_try" in |
| 16908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16909 | *) ac_try_echo=$ac_try;; |
| 16910 | esac |
| 16911 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16912 | $as_echo "$ac_try_echo") >&5 |
| 16913 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16914 | ac_status=$? |
| 16915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16916 | rm -f conftest.er1 |
| 16917 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16918 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16919 | (exit $ac_status); } && { |
| 16920 | test -z "$ac_c_werror_flag" || |
| 16921 | test ! -s conftest.err |
| 16922 | } && test -s conftest$ac_exeext && { |
| 16923 | test "$cross_compiling" = yes || |
| 16924 | $as_test_x conftest$ac_exeext |
| 16925 | }; then |
| 16926 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16927 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16928 | |
| 16929 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16930 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16931 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16932 | |
| 16933 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16934 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16936 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16937 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16938 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16939 | LIBS=$olibs |
| 16940 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16941 | |
| 16942 | rm -rf conftest.dSYM |
| 16943 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16944 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16945 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16946 | |
| 16947 | rm -rf conftest.dSYM |
| 16948 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16949 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16950 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16951 | |
| 16952 | for ac_header in setjmp.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16953 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16954 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16955 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16956 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16957 | $as_echo_n "checking for $ac_header... " >&6; } |
| 16958 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16959 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16960 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16961 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 16962 | $as_echo "$as_val"'` |
| 16963 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16964 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16965 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16966 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16967 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16968 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16969 | cat >conftest.$ac_ext <<_ACEOF |
| 16970 | /* confdefs.h. */ |
| 16971 | _ACEOF |
| 16972 | cat confdefs.h >>conftest.$ac_ext |
| 16973 | cat >>conftest.$ac_ext <<_ACEOF |
| 16974 | /* end confdefs.h. */ |
| 16975 | $ac_includes_default |
| 16976 | #include <$ac_header> |
| 16977 | _ACEOF |
| 16978 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16979 | if { (ac_try="$ac_compile" |
| 16980 | case "(($ac_try" in |
| 16981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16982 | *) ac_try_echo=$ac_try;; |
| 16983 | esac |
| 16984 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16985 | $as_echo "$ac_try_echo") >&5 |
| 16986 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16987 | ac_status=$? |
| 16988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16989 | rm -f conftest.er1 |
| 16990 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16992 | (exit $ac_status); } && { |
| 16993 | test -z "$ac_c_werror_flag" || |
| 16994 | test ! -s conftest.err |
| 16995 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16996 | ac_header_compiler=yes |
| 16997 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16998 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17000 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17001 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17002 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17003 | |
| 17004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17005 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17006 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17007 | |
| 17008 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17009 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17010 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17011 | cat >conftest.$ac_ext <<_ACEOF |
| 17012 | /* confdefs.h. */ |
| 17013 | _ACEOF |
| 17014 | cat confdefs.h >>conftest.$ac_ext |
| 17015 | cat >>conftest.$ac_ext <<_ACEOF |
| 17016 | /* end confdefs.h. */ |
| 17017 | #include <$ac_header> |
| 17018 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17019 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17020 | case "(($ac_try" in |
| 17021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17022 | *) ac_try_echo=$ac_try;; |
| 17023 | esac |
| 17024 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17025 | $as_echo "$ac_try_echo") >&5 |
| 17026 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17027 | ac_status=$? |
| 17028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17029 | rm -f conftest.er1 |
| 17030 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17031 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17032 | (exit $ac_status); } >/dev/null && { |
| 17033 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 17034 | test ! -s conftest.err |
| 17035 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17036 | ac_header_preproc=yes |
| 17037 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17038 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17040 | |
| 17041 | ac_header_preproc=no |
| 17042 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17043 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17044 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17045 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17046 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17047 | |
| 17048 | # So? What about this header? |
| 17049 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17050 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17051 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17052 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17053 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17054 | $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] | 17055 | ac_header_preproc=yes |
| 17056 | ;; |
| 17057 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17058 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17059 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17060 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17061 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17062 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17063 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17064 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17065 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17066 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17067 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17068 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17069 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17070 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17071 | ;; |
| 17072 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17073 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17074 | $as_echo_n "checking for $ac_header... " >&6; } |
| 17075 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17076 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17077 | else |
| 17078 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17079 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17080 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 17081 | $as_echo "$as_val"'` |
| 17082 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17083 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17084 | |
| 17085 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17086 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 17087 | $as_echo "$as_val"'` |
| 17088 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17089 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17090 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17091 | _ACEOF |
| 17092 | |
| 17093 | fi |
| 17094 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17095 | done |
| 17096 | |
| 17097 | |
| 17098 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 17099 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 17100 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 17101 | PERL_LIBS="$PERL_LIBS -ldl" |
| 17102 | fi |
| 17103 | fi |
| 17104 | |
| 17105 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 17106 | && test "x$GUITYPE" != "xCARBONGUI"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17107 | { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
| 17108 | $as_echo_n "checking whether we need -framework Carbon... " >&6; } |
Bram Moolenaar | b90daee | 2006-10-17 09:49:09 +0000 | [diff] [blame] | 17109 | if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17110 | || test "x$features" = "xhuge"; then |
| 17111 | LIBS="$LIBS -framework Carbon" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17112 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17113 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17114 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17115 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17116 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17117 | fi |
| 17118 | fi |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 17119 | if test "x$MACARCH" = "xboth"; then |
| 17120 | LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 17121 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17122 | |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 17123 | DEPEND_CFLAGS_FILTER= |
| 17124 | if test "$GCC" = yes; then |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 17125 | { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 |
| 17126 | $as_echo_n "checking for GCC 3 or later... " >&6; } |
Bram Moolenaar | 2217cae | 2006-03-25 21:55:52 +0000 | [diff] [blame] | 17127 | gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` |
Bram Moolenaar | f740b29 | 2006-02-16 22:11:02 +0000 | [diff] [blame] | 17128 | if test "$gccmajor" -gt "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 17129 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 17130 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17131 | $as_echo "yes" >&6; } |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 17132 | else |
| 17133 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17134 | $as_echo "no" >&6; } |
| 17135 | fi |
| 17136 | { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5 |
| 17137 | $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } |
| 17138 | if test "$gccmajor" -gt "3"; then |
Bram Moolenaar | 1d7ad73 | 2009-09-11 11:44:54 +0000 | [diff] [blame] | 17139 | CFLAGS=`echo "$CFLAGS -D_FORTIFY_SOURCE=1" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' -e 's/-D_FORTIFY_SOURCE=2//g'` |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 17140 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17141 | $as_echo "yes" >&6; } |
| 17142 | else |
| 17143 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17144 | $as_echo "no" >&6; } |
| 17145 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 17146 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 17147 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17148 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17149 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 17150 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17151 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17152 | # This file is a shell script that caches the results of configure |
| 17153 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17154 | # scripts and configure runs, see configure's option --config-cache. |
| 17155 | # It is not useful on other systems. If it contains results you don't |
| 17156 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17157 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17158 | # config.status only pays attention to the cache file if you give it |
| 17159 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17160 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17161 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 17162 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 17163 | # following values. |
| 17164 | |
| 17165 | _ACEOF |
| 17166 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17167 | # The following way of writing the cache mishandles newlines in values, |
| 17168 | # but we know of no workaround that is simple, portable, and efficient. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17169 | # So, we kill variables containing newlines. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17170 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 17171 | # 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] | 17172 | ( |
| 17173 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 17174 | eval ac_val=\$$ac_var |
| 17175 | case $ac_val in #( |
| 17176 | *${as_nl}*) |
| 17177 | case $ac_var in #( |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17178 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 17179 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17180 | esac |
| 17181 | case $ac_var in #( |
| 17182 | _ | IFS | as_nl) ;; #( |
| 17183 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 17184 | *) $as_unset $ac_var ;; |
| 17185 | esac ;; |
| 17186 | esac |
| 17187 | done |
| 17188 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17189 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17190 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 17191 | *${as_nl}ac_space=\ *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17192 | # `set' does not quote correctly, so add quotes (double-quote |
| 17193 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 17194 | sed -n \ |
| 17195 | "s/'/'\\\\''/g; |
| 17196 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17197 | ;; #( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17198 | *) |
| 17199 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17200 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17201 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17202 | esac | |
| 17203 | sort |
| 17204 | ) | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17205 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17206 | /^ac_cv_env_/b end |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17207 | t clear |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17208 | :clear |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17209 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 17210 | t end |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17211 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 17212 | :end' >>confcache |
| 17213 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 17214 | if test -w "$cache_file"; then |
| 17215 | test "x$cache_file" != "x/dev/null" && |
| 17216 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 17217 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17218 | cat confcache >$cache_file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17219 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17220 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 17221 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17222 | fi |
| 17223 | fi |
| 17224 | rm -f confcache |
| 17225 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17226 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 17227 | # Let make expand exec_prefix. |
| 17228 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 17229 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17230 | DEFS=-DHAVE_CONFIG_H |
| 17231 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17232 | ac_libobjs= |
| 17233 | ac_ltlibobjs= |
| 17234 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 17235 | # 1. Remove the extension, and $U if already installed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17236 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 17237 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 17238 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 17239 | # will be set to the directory where LIBOBJS objects are built. |
| 17240 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 17241 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17242 | done |
| 17243 | LIBOBJS=$ac_libobjs |
| 17244 | |
| 17245 | LTLIBOBJS=$ac_ltlibobjs |
| 17246 | |
| 17247 | |
| 17248 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17249 | : ${CONFIG_STATUS=./config.status} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17250 | ac_write_fail=0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17251 | ac_clean_files_save=$ac_clean_files |
| 17252 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17253 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 17254 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 17255 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17256 | #! $SHELL |
| 17257 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17258 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17259 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17260 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17261 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17262 | debug=false |
| 17263 | ac_cs_recheck=false |
| 17264 | ac_cs_silent=false |
| 17265 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 17266 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17267 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17268 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17269 | ## --------------------- ## |
| 17270 | ## M4sh Initialization. ## |
| 17271 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17272 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17273 | # Be more Bourne compatible |
| 17274 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17275 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17276 | emulate sh |
| 17277 | NULLCMD=: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17278 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17279 | # is contrary to our usage. Disable this feature. |
| 17280 | alias -g '${1+"$@"}'='"$@"' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17281 | setopt NO_GLOB_SUBST |
| 17282 | else |
| 17283 | case `(set -o) 2>/dev/null` in |
| 17284 | *posix*) set -o posix ;; |
| 17285 | esac |
| 17286 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17287 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17288 | |
| 17289 | |
| 17290 | |
| 17291 | |
| 17292 | # PATH needs CR |
| 17293 | # Avoid depending upon Character Ranges. |
| 17294 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 17295 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 17296 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 17297 | as_cr_digits='0123456789' |
| 17298 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 17299 | |
| 17300 | as_nl=' |
| 17301 | ' |
| 17302 | export as_nl |
| 17303 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 17304 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 17305 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 17306 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 17307 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 17308 | as_echo='printf %s\n' |
| 17309 | as_echo_n='printf %s' |
| 17310 | else |
| 17311 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 17312 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 17313 | as_echo_n='/usr/ucb/echo -n' |
| 17314 | else |
| 17315 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 17316 | as_echo_n_body='eval |
| 17317 | arg=$1; |
| 17318 | case $arg in |
| 17319 | *"$as_nl"*) |
| 17320 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 17321 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 17322 | esac; |
| 17323 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 17324 | ' |
| 17325 | export as_echo_n_body |
| 17326 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 17327 | fi |
| 17328 | export as_echo_body |
| 17329 | as_echo='sh -c $as_echo_body as_echo' |
| 17330 | fi |
| 17331 | |
| 17332 | # The user is always right. |
| 17333 | if test "${PATH_SEPARATOR+set}" != set; then |
| 17334 | PATH_SEPARATOR=: |
| 17335 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 17336 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 17337 | PATH_SEPARATOR=';' |
| 17338 | } |
| 17339 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17340 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17341 | # Support unset when possible. |
| 17342 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 17343 | as_unset=unset |
| 17344 | else |
| 17345 | as_unset=false |
| 17346 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17347 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17348 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17349 | # IFS |
| 17350 | # We need space, tab and new line, in precisely that order. Quoting is |
| 17351 | # there to prevent editors from complaining about space-tab. |
| 17352 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 17353 | # splitting by setting IFS to empty value.) |
| 17354 | IFS=" "" $as_nl" |
| 17355 | |
| 17356 | # Find who we are. Look in the path if we contain no directory separator. |
| 17357 | case $0 in |
| 17358 | *[\\/]* ) as_myself=$0 ;; |
| 17359 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17360 | for as_dir in $PATH |
| 17361 | do |
| 17362 | IFS=$as_save_IFS |
| 17363 | test -z "$as_dir" && as_dir=. |
| 17364 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17365 | done |
| 17366 | IFS=$as_save_IFS |
| 17367 | |
| 17368 | ;; |
| 17369 | esac |
| 17370 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17371 | # in which case we are not to be found in the path. |
| 17372 | if test "x$as_myself" = x; then |
| 17373 | as_myself=$0 |
| 17374 | fi |
| 17375 | if test ! -f "$as_myself"; then |
| 17376 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 17377 | { (exit 1); exit 1; } |
| 17378 | fi |
| 17379 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17380 | # Work around bugs in pre-3.0 UWIN ksh. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17381 | for as_var in ENV MAIL MAILPATH |
| 17382 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 17383 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17384 | PS1='$ ' |
| 17385 | PS2='> ' |
| 17386 | PS4='+ ' |
| 17387 | |
| 17388 | # NLS nuisances. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17389 | LC_ALL=C |
| 17390 | export LC_ALL |
| 17391 | LANGUAGE=C |
| 17392 | export LANGUAGE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17393 | |
| 17394 | # Required to use basename. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17395 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17396 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17397 | as_expr=expr |
| 17398 | else |
| 17399 | as_expr=false |
| 17400 | fi |
| 17401 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17402 | 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] | 17403 | as_basename=basename |
| 17404 | else |
| 17405 | as_basename=false |
| 17406 | fi |
| 17407 | |
| 17408 | |
| 17409 | # Name of the executable. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17410 | as_me=`$as_basename -- "$0" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17411 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17412 | X"$0" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17413 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 17414 | $as_echo X/"$0" | |
| 17415 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 17416 | s//\1/ |
| 17417 | q |
| 17418 | } |
| 17419 | /^X\/\(\/\/\)$/{ |
| 17420 | s//\1/ |
| 17421 | q |
| 17422 | } |
| 17423 | /^X\/\(\/\).*/{ |
| 17424 | s//\1/ |
| 17425 | q |
| 17426 | } |
| 17427 | s/.*/./; q'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17428 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17429 | # CDPATH. |
| 17430 | $as_unset CDPATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17431 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17432 | |
| 17433 | |
| 17434 | as_lineno_1=$LINENO |
| 17435 | as_lineno_2=$LINENO |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17436 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17437 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17438 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17439 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 17440 | # uniformly replaced by the line number. The first 'sed' inserts a |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17441 | # line-number line after each line using $LINENO; the second 'sed' |
| 17442 | # does the real work. The second script uses 'N' to pair each |
| 17443 | # line-number line with the line containing $LINENO, and appends |
| 17444 | # trailing '-' during substitution so that $LINENO is not a special |
| 17445 | # case at line end. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17446 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17447 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 17448 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 17449 | sed -n ' |
| 17450 | p |
| 17451 | /[$]LINENO/= |
| 17452 | ' <$as_myself | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17453 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17454 | s/[$]LINENO.*/&-/ |
| 17455 | t lineno |
| 17456 | b |
| 17457 | :lineno |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17458 | N |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17459 | :loop |
| 17460 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17461 | t loop |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17462 | s/-\n.*// |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17463 | ' >$as_me.lineno && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17464 | chmod +x "$as_me.lineno" || |
| 17465 | { $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] | 17466 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17467 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17468 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 17469 | # (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] | 17470 | # original and so on. Autoconf is especially sensitive to this). |
| 17471 | . "./$as_me.lineno" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17472 | # Exit status is that of the last command. |
| 17473 | exit |
| 17474 | } |
| 17475 | |
| 17476 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17477 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 17478 | as_dirname=dirname |
| 17479 | else |
| 17480 | as_dirname=false |
| 17481 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17482 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17483 | ECHO_C= ECHO_N= ECHO_T= |
| 17484 | case `echo -n x` in |
| 17485 | -n*) |
| 17486 | case `echo 'x\c'` in |
| 17487 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 17488 | *) ECHO_C='\c';; |
| 17489 | esac;; |
| 17490 | *) |
| 17491 | ECHO_N='-n';; |
| 17492 | esac |
| 17493 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17494 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17495 | as_expr=expr |
| 17496 | else |
| 17497 | as_expr=false |
| 17498 | fi |
| 17499 | |
| 17500 | rm -f conf$$ conf$$.exe conf$$.file |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17501 | if test -d conf$$.dir; then |
| 17502 | rm -f conf$$.dir/conf$$.file |
| 17503 | else |
| 17504 | rm -f conf$$.dir |
| 17505 | mkdir conf$$.dir 2>/dev/null |
| 17506 | fi |
| 17507 | if (echo >conf$$.file) 2>/dev/null; then |
| 17508 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17509 | as_ln_s='ln -s' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17510 | # ... but there are two gotchas: |
| 17511 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 17512 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 17513 | # In both cases, we have to default to `cp -p'. |
| 17514 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 17515 | as_ln_s='cp -p' |
| 17516 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17517 | as_ln_s=ln |
| 17518 | else |
| 17519 | as_ln_s='cp -p' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17520 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17521 | else |
| 17522 | as_ln_s='cp -p' |
| 17523 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17524 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 17525 | rmdir conf$$.dir 2>/dev/null |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17526 | |
| 17527 | if mkdir -p . 2>/dev/null; then |
| 17528 | as_mkdir_p=: |
| 17529 | else |
| 17530 | test -d ./-p && rmdir ./-p |
| 17531 | as_mkdir_p=false |
| 17532 | fi |
| 17533 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17534 | if test -x / >/dev/null 2>&1; then |
| 17535 | as_test_x='test -x' |
| 17536 | else |
| 17537 | if ls -dL / >/dev/null 2>&1; then |
| 17538 | as_ls_L_option=L |
| 17539 | else |
| 17540 | as_ls_L_option= |
| 17541 | fi |
| 17542 | as_test_x=' |
| 17543 | eval sh -c '\'' |
| 17544 | if test -d "$1"; then |
| 17545 | test -d "$1/."; |
| 17546 | else |
| 17547 | case $1 in |
| 17548 | -*)set "./$1";; |
| 17549 | esac; |
| 17550 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 17551 | ???[sx]*):;;*)false;;esac;fi |
| 17552 | '\'' sh |
| 17553 | ' |
| 17554 | fi |
| 17555 | as_executable_p=$as_test_x |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17556 | |
| 17557 | # Sed expression to map a string onto a valid CPP name. |
| 17558 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 17559 | |
| 17560 | # Sed expression to map a string onto a valid variable name. |
| 17561 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 17562 | |
| 17563 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17564 | exec 6>&1 |
| 17565 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17566 | # 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] | 17567 | # report actual input values of CONFIG_FILES etc. instead of their |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17568 | # values after options handling. |
| 17569 | ac_log=" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17570 | This file was extended by $as_me, which was |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17571 | generated by GNU Autoconf 2.63. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17572 | |
| 17573 | CONFIG_FILES = $CONFIG_FILES |
| 17574 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17575 | CONFIG_LINKS = $CONFIG_LINKS |
| 17576 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17577 | $ $0 $@ |
| 17578 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17579 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 17580 | " |
| 17581 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17582 | _ACEOF |
| 17583 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17584 | case $ac_config_files in *" |
| 17585 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 17586 | esac |
| 17587 | |
| 17588 | case $ac_config_headers in *" |
| 17589 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 17590 | esac |
| 17591 | |
| 17592 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17593 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17594 | # Files that config.status was made for. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17595 | config_files="$ac_config_files" |
| 17596 | config_headers="$ac_config_headers" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17597 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17598 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17599 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17600 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17601 | ac_cs_usage="\ |
| 17602 | \`$as_me' instantiates files from templates according to the |
| 17603 | current configuration. |
| 17604 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17605 | Usage: $0 [OPTION]... [FILE]... |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17606 | |
| 17607 | -h, --help print this help, then exit |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17608 | -V, --version print version number and configuration settings, then exit |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17609 | -q, --quiet, --silent |
| 17610 | do not print progress messages |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17611 | -d, --debug don't remove temporary files |
| 17612 | --recheck update $as_me by reconfiguring in the same conditions |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17613 | --file=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17614 | instantiate the configuration file FILE |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17615 | --header=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17616 | instantiate the configuration header FILE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17617 | |
| 17618 | Configuration files: |
| 17619 | $config_files |
| 17620 | |
| 17621 | Configuration headers: |
| 17622 | $config_headers |
| 17623 | |
| 17624 | Report bugs to <bug-autoconf@gnu.org>." |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17625 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17626 | _ACEOF |
| 17627 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17628 | ac_cs_version="\\ |
| 17629 | config.status |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17630 | configured by $0, generated by GNU Autoconf 2.63, |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17631 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17632 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17633 | Copyright (C) 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17634 | This config.status script is free software; the Free Software Foundation |
| 17635 | gives unlimited permission to copy, distribute and modify it." |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17636 | |
| 17637 | ac_pwd='$ac_pwd' |
| 17638 | srcdir='$srcdir' |
| 17639 | AWK='$AWK' |
| 17640 | test -n "\$AWK" || AWK=awk |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17641 | _ACEOF |
| 17642 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17643 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17644 | # The default lists apply if the user does not specify any file. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17645 | ac_need_defaults=: |
| 17646 | while test $# != 0 |
| 17647 | do |
| 17648 | case $1 in |
| 17649 | --*=*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17650 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17651 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17652 | ac_shift=: |
| 17653 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17654 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17655 | ac_option=$1 |
| 17656 | ac_optarg=$2 |
| 17657 | ac_shift=shift |
| 17658 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17659 | esac |
| 17660 | |
| 17661 | case $ac_option in |
| 17662 | # Handling of the options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17663 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17664 | ac_cs_recheck=: ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17665 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 17666 | $as_echo "$ac_cs_version"; exit ;; |
| 17667 | --debug | --debu | --deb | --de | --d | -d ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17668 | debug=: ;; |
| 17669 | --file | --fil | --fi | --f ) |
| 17670 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17671 | case $ac_optarg in |
| 17672 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17673 | esac |
| 17674 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17675 | ac_need_defaults=false;; |
| 17676 | --header | --heade | --head | --hea ) |
| 17677 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17678 | case $ac_optarg in |
| 17679 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17680 | esac |
| 17681 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17682 | ac_need_defaults=false;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17683 | --he | --h) |
| 17684 | # Conflict between --help and --header |
| 17685 | { $as_echo "$as_me: error: ambiguous option: $1 |
| 17686 | Try \`$0 --help' for more information." >&2 |
| 17687 | { (exit 1); exit 1; }; };; |
| 17688 | --help | --hel | -h ) |
| 17689 | $as_echo "$ac_cs_usage"; exit ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17690 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 17691 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 17692 | ac_cs_silent=: ;; |
| 17693 | |
| 17694 | # This is an error. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17695 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
| 17696 | Try \`$0 --help' for more information." >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17697 | { (exit 1); exit 1; }; } ;; |
| 17698 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17699 | *) ac_config_targets="$ac_config_targets $1" |
| 17700 | ac_need_defaults=false ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17701 | |
| 17702 | esac |
| 17703 | shift |
| 17704 | done |
| 17705 | |
| 17706 | ac_configure_extra_args= |
| 17707 | |
| 17708 | if $ac_cs_silent; then |
| 17709 | exec 6>/dev/null |
| 17710 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 17711 | fi |
| 17712 | |
| 17713 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17714 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17715 | if \$ac_cs_recheck; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17716 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 17717 | shift |
| 17718 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 17719 | CONFIG_SHELL='$SHELL' |
| 17720 | export CONFIG_SHELL |
| 17721 | exec "\$@" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17722 | fi |
| 17723 | |
| 17724 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17725 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17726 | exec 5>>auto/config.log |
| 17727 | { |
| 17728 | echo |
| 17729 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17730 | ## Running $as_me. ## |
| 17731 | _ASBOX |
| 17732 | $as_echo "$ac_log" |
| 17733 | } >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17734 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17735 | _ACEOF |
| 17736 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17737 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17738 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17739 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17740 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17741 | # Handling of arguments. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17742 | for ac_config_target in $ac_config_targets |
| 17743 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17744 | case $ac_config_target in |
| 17745 | "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 17746 | "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 17747 | |
| 17748 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17749 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17750 | { (exit 1); exit 1; }; };; |
| 17751 | esac |
| 17752 | done |
| 17753 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17754 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17755 | # If the user did not use the arguments to specify the items to instantiate, |
| 17756 | # then the envvar interface is used. Set only those that are not. |
| 17757 | # We use the long form for the default assignment because of an extremely |
| 17758 | # bizarre bug on SunOS 4.1.3. |
| 17759 | if $ac_need_defaults; then |
| 17760 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17761 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17762 | fi |
| 17763 | |
| 17764 | # Have a temporary directory for convenience. Make it in the build tree |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17765 | # 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] | 17766 | # creating and moving files from /tmp can sometimes cause problems. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17767 | # Hook for its removal unless debugging. |
| 17768 | # Note that there is a small window in which the directory will not be cleaned: |
| 17769 | # after its creation but before its name has been assigned to `$tmp'. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17770 | $debug || |
| 17771 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17772 | tmp= |
| 17773 | trap 'exit_status=$? |
| 17774 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 17775 | ' 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17776 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17777 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17778 | # Create a (secure) tmp directory for tmp files. |
| 17779 | |
| 17780 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17781 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17782 | test -n "$tmp" && test -d "$tmp" |
| 17783 | } || |
| 17784 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17785 | tmp=./conf$$-$RANDOM |
| 17786 | (umask 077 && mkdir "$tmp") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17787 | } || |
| 17788 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17789 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17790 | { (exit 1); exit 1; } |
| 17791 | } |
| 17792 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17793 | # Set up the scripts for CONFIG_FILES section. |
| 17794 | # No need to generate them if there are no CONFIG_FILES. |
| 17795 | # This happens for instance with `./config.status config.h'. |
| 17796 | if test -n "$CONFIG_FILES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17797 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17798 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17799 | ac_cr='
' |
| 17800 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 17801 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 17802 | ac_cs_awk_cr='\\r' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17803 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17804 | ac_cs_awk_cr=$ac_cr |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17805 | fi |
| 17806 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17807 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17808 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17809 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17810 | |
| 17811 | { |
| 17812 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 17813 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 17814 | echo "_ACEOF" |
| 17815 | } >conf$$subs.sh || |
| 17816 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17817 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17818 | { (exit 1); exit 1; }; } |
| 17819 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 17820 | ac_delim='%!_!# ' |
| 17821 | for ac_last_try in false false false false false :; do |
| 17822 | . ./conf$$subs.sh || |
| 17823 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17824 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17825 | { (exit 1); exit 1; }; } |
| 17826 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17827 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 17828 | if test $ac_delim_n = $ac_delim_num; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17829 | break |
| 17830 | elif $ac_last_try; then |
| 17831 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17832 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17833 | { (exit 1); exit 1; }; } |
| 17834 | else |
| 17835 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17836 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17837 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17838 | rm -f conf$$subs.sh |
| 17839 | |
| 17840 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17841 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17842 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17843 | sed -n ' |
| 17844 | h |
| 17845 | s/^/S["/; s/!.*/"]=/ |
| 17846 | p |
| 17847 | g |
| 17848 | s/^[^!]*!// |
| 17849 | :repl |
| 17850 | t repl |
| 17851 | s/'"$ac_delim"'$// |
| 17852 | t delim |
| 17853 | :nl |
| 17854 | h |
| 17855 | s/\(.\{148\}\).*/\1/ |
| 17856 | t more1 |
| 17857 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 17858 | p |
| 17859 | n |
| 17860 | b repl |
| 17861 | :more1 |
| 17862 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17863 | p |
| 17864 | g |
| 17865 | s/.\{148\}// |
| 17866 | t nl |
| 17867 | :delim |
| 17868 | h |
| 17869 | s/\(.\{148\}\).*/\1/ |
| 17870 | t more2 |
| 17871 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 17872 | p |
| 17873 | b |
| 17874 | :more2 |
| 17875 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17876 | p |
| 17877 | g |
| 17878 | s/.\{148\}// |
| 17879 | t delim |
| 17880 | ' <conf$$subs.awk | sed ' |
| 17881 | /^[^""]/{ |
| 17882 | N |
| 17883 | s/\n// |
| 17884 | } |
| 17885 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17886 | rm -f conf$$subs.awk |
| 17887 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17888 | _ACAWK |
| 17889 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 17890 | for (key in S) S_is_set[key] = 1 |
| 17891 | FS = "" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17892 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17893 | } |
| 17894 | { |
| 17895 | line = $ 0 |
| 17896 | nfields = split(line, field, "@") |
| 17897 | substed = 0 |
| 17898 | len = length(field[1]) |
| 17899 | for (i = 2; i < nfields; i++) { |
| 17900 | key = field[i] |
| 17901 | keylen = length(key) |
| 17902 | if (S_is_set[key]) { |
| 17903 | value = S[key] |
| 17904 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 17905 | len += length(value) + length(field[++i]) |
| 17906 | substed = 1 |
| 17907 | } else |
| 17908 | len += 1 + keylen |
| 17909 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17910 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17911 | print line |
| 17912 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17913 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17914 | _ACAWK |
| 17915 | _ACEOF |
| 17916 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17917 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 17918 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 17919 | else |
| 17920 | cat |
| 17921 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 17922 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 17923 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
| 17924 | { (exit 1); exit 1; }; } |
| 17925 | _ACEOF |
| 17926 | |
| 17927 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 17928 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 17929 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17930 | # (actually we leave an empty line to preserve line numbers). |
| 17931 | if test "x$srcdir" = x.; then |
| 17932 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 17933 | s/:*\$(srcdir):*/:/ |
| 17934 | s/:*\${srcdir}:*/:/ |
| 17935 | s/:*@srcdir@:*/:/ |
| 17936 | s/^\([^=]*=[ ]*\):*/\1/ |
| 17937 | s/:*$// |
| 17938 | s/^[^=]*=[ ]*$// |
| 17939 | }' |
| 17940 | fi |
| 17941 | |
| 17942 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17943 | fi # test -n "$CONFIG_FILES" |
| 17944 | |
| 17945 | # Set up the scripts for CONFIG_HEADERS section. |
| 17946 | # No need to generate them if there are no CONFIG_HEADERS. |
| 17947 | # This happens for instance with `./config.status Makefile'. |
| 17948 | if test -n "$CONFIG_HEADERS"; then |
| 17949 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 17950 | BEGIN { |
| 17951 | _ACEOF |
| 17952 | |
| 17953 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 17954 | # here-document in config.status, that substitutes the proper values into |
| 17955 | # config.h.in to produce config.h. |
| 17956 | |
| 17957 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 17958 | # handling of long lines. |
| 17959 | ac_delim='%!_!# ' |
| 17960 | for ac_last_try in false false :; do |
| 17961 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 17962 | if test -z "$ac_t"; then |
| 17963 | break |
| 17964 | elif $ac_last_try; then |
| 17965 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 17966 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 17967 | { (exit 1); exit 1; }; } |
| 17968 | else |
| 17969 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17970 | fi |
| 17971 | done |
| 17972 | |
| 17973 | # For the awk script, D is an array of macro values keyed by name, |
| 17974 | # likewise P contains macro parameters if any. Preserve backslash |
| 17975 | # newline sequences. |
| 17976 | |
| 17977 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 17978 | sed -n ' |
| 17979 | s/.\{148\}/&'"$ac_delim"'/g |
| 17980 | t rset |
| 17981 | :rset |
| 17982 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 17983 | t def |
| 17984 | d |
| 17985 | :def |
| 17986 | s/\\$// |
| 17987 | t bsnl |
| 17988 | s/["\\]/\\&/g |
| 17989 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17990 | D["\1"]=" \3"/p |
| 17991 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 17992 | d |
| 17993 | :bsnl |
| 17994 | s/["\\]/\\&/g |
| 17995 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17996 | D["\1"]=" \3\\\\\\n"\\/p |
| 17997 | t cont |
| 17998 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 17999 | t cont |
| 18000 | d |
| 18001 | :cont |
| 18002 | n |
| 18003 | s/.\{148\}/&'"$ac_delim"'/g |
| 18004 | t clear |
| 18005 | :clear |
| 18006 | s/\\$// |
| 18007 | t bsnlc |
| 18008 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 18009 | d |
| 18010 | :bsnlc |
| 18011 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 18012 | b cont |
| 18013 | ' <confdefs.h | sed ' |
| 18014 | s/'"$ac_delim"'/"\\\ |
| 18015 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 18016 | |
| 18017 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18018 | for (key in D) D_is_set[key] = 1 |
| 18019 | FS = "" |
| 18020 | } |
| 18021 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 18022 | line = \$ 0 |
| 18023 | split(line, arg, " ") |
| 18024 | if (arg[1] == "#") { |
| 18025 | defundef = arg[2] |
| 18026 | mac1 = arg[3] |
| 18027 | } else { |
| 18028 | defundef = substr(arg[1], 2) |
| 18029 | mac1 = arg[2] |
| 18030 | } |
| 18031 | split(mac1, mac2, "(") #) |
| 18032 | macro = mac2[1] |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18033 | prefix = substr(line, 1, index(line, defundef) - 1) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18034 | if (D_is_set[macro]) { |
| 18035 | # Preserve the white space surrounding the "#". |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18036 | print prefix "define", macro P[macro] D[macro] |
| 18037 | next |
| 18038 | } else { |
| 18039 | # Replace #undef with comments. This is necessary, for example, |
| 18040 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 18041 | # on some systems where configure will not decide to define it. |
| 18042 | if (defundef == "undef") { |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18043 | print "/*", prefix defundef, macro, "*/" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18044 | next |
| 18045 | } |
| 18046 | } |
| 18047 | } |
| 18048 | { print } |
| 18049 | _ACAWK |
| 18050 | _ACEOF |
| 18051 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18052 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 18053 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 18054 | { (exit 1); exit 1; }; } |
| 18055 | fi # test -n "$CONFIG_HEADERS" |
| 18056 | |
| 18057 | |
| 18058 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 18059 | shift |
| 18060 | for ac_tag |
| 18061 | do |
| 18062 | case $ac_tag in |
| 18063 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 18064 | esac |
| 18065 | case $ac_mode$ac_tag in |
| 18066 | :[FHL]*:*);; |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18067 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
| 18068 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18069 | { (exit 1); exit 1; }; };; |
| 18070 | :[FH]-) ac_tag=-:-;; |
| 18071 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 18072 | esac |
| 18073 | ac_save_IFS=$IFS |
| 18074 | IFS=: |
| 18075 | set x $ac_tag |
| 18076 | IFS=$ac_save_IFS |
| 18077 | shift |
| 18078 | ac_file=$1 |
| 18079 | shift |
| 18080 | |
| 18081 | case $ac_mode in |
| 18082 | :L) ac_source=$1;; |
| 18083 | :[FH]) |
| 18084 | ac_file_inputs= |
| 18085 | for ac_f |
| 18086 | do |
| 18087 | case $ac_f in |
| 18088 | -) ac_f="$tmp/stdin";; |
| 18089 | *) # Look for the file first in the build tree, then in the source tree |
| 18090 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 18091 | # because $ac_f cannot contain `:'. |
| 18092 | test -f "$ac_f" || |
| 18093 | case $ac_f in |
| 18094 | [\\/$]*) false;; |
| 18095 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 18096 | esac || |
| 18097 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 18098 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 18099 | { (exit 1); exit 1; }; };; |
| 18100 | esac |
| 18101 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 18102 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
| 18103 | done |
| 18104 | |
| 18105 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18106 | # use $as_me), people would be surprised to read: |
| 18107 | # /* config.h. Generated by config.status. */ |
| 18108 | configure_input='Generated from '` |
| 18109 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 18110 | `' by configure.' |
| 18111 | if test x"$ac_file" != x-; then |
| 18112 | configure_input="$ac_file. $configure_input" |
| 18113 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18114 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 18115 | fi |
| 18116 | # Neutralize special characters interpreted by sed in replacement strings. |
| 18117 | case $configure_input in #( |
| 18118 | *\&* | *\|* | *\\* ) |
| 18119 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 18120 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 18121 | *) ac_sed_conf_input=$configure_input;; |
| 18122 | esac |
| 18123 | |
| 18124 | case $ac_tag in |
| 18125 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 18126 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18127 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18128 | { (exit 1); exit 1; }; } ;; |
| 18129 | esac |
| 18130 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18131 | esac |
| 18132 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18133 | ac_dir=`$as_dirname -- "$ac_file" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18134 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18135 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18136 | X"$ac_file" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18137 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 18138 | $as_echo X"$ac_file" | |
| 18139 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18140 | s//\1/ |
| 18141 | q |
| 18142 | } |
| 18143 | /^X\(\/\/\)[^/].*/{ |
| 18144 | s//\1/ |
| 18145 | q |
| 18146 | } |
| 18147 | /^X\(\/\/\)$/{ |
| 18148 | s//\1/ |
| 18149 | q |
| 18150 | } |
| 18151 | /^X\(\/\).*/{ |
| 18152 | s//\1/ |
| 18153 | q |
| 18154 | } |
| 18155 | s/.*/./; q'` |
| 18156 | { as_dir="$ac_dir" |
| 18157 | case $as_dir in #( |
| 18158 | -*) as_dir=./$as_dir;; |
| 18159 | esac |
| 18160 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18161 | as_dirs= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18162 | while :; do |
| 18163 | case $as_dir in #( |
| 18164 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 18165 | *) as_qdir=$as_dir;; |
| 18166 | esac |
| 18167 | as_dirs="'$as_qdir' $as_dirs" |
| 18168 | as_dir=`$as_dirname -- "$as_dir" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18169 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18170 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 18171 | X"$as_dir" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18172 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 18173 | $as_echo X"$as_dir" | |
| 18174 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18175 | s//\1/ |
| 18176 | q |
| 18177 | } |
| 18178 | /^X\(\/\/\)[^/].*/{ |
| 18179 | s//\1/ |
| 18180 | q |
| 18181 | } |
| 18182 | /^X\(\/\/\)$/{ |
| 18183 | s//\1/ |
| 18184 | q |
| 18185 | } |
| 18186 | /^X\(\/\).*/{ |
| 18187 | s//\1/ |
| 18188 | q |
| 18189 | } |
| 18190 | s/.*/./; q'` |
| 18191 | test -d "$as_dir" && break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18192 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18193 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 18194 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 18195 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18196 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18197 | ac_builddir=. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18198 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18199 | case "$ac_dir" in |
| 18200 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18201 | *) |
| 18202 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 18203 | # A ".." for each directory in $ac_dir_suffix. |
| 18204 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 18205 | case $ac_top_builddir_sub in |
| 18206 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18207 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 18208 | esac ;; |
| 18209 | esac |
| 18210 | ac_abs_top_builddir=$ac_pwd |
| 18211 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 18212 | # for backward compatibility: |
| 18213 | ac_top_builddir=$ac_top_build_prefix |
| 18214 | |
| 18215 | case $srcdir in |
| 18216 | .) # We are building in place. |
| 18217 | ac_srcdir=. |
| 18218 | ac_top_srcdir=$ac_top_builddir_sub |
| 18219 | ac_abs_top_srcdir=$ac_pwd ;; |
| 18220 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 18221 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 18222 | ac_top_srcdir=$srcdir |
| 18223 | ac_abs_top_srcdir=$srcdir ;; |
| 18224 | *) # Relative name. |
| 18225 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 18226 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 18227 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 18228 | esac |
| 18229 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 18230 | |
| 18231 | |
| 18232 | case $ac_mode in |
| 18233 | :F) |
| 18234 | # |
| 18235 | # CONFIG_FILE |
| 18236 | # |
| 18237 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18238 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18239 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18240 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18241 | # If the template does not know about datarootdir, expand it. |
| 18242 | # FIXME: This hack should be removed a few years after 2.60. |
| 18243 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 18244 | |
| 18245 | ac_sed_dataroot=' |
| 18246 | /datarootdir/ { |
| 18247 | p |
| 18248 | q |
| 18249 | } |
| 18250 | /@datadir@/p |
| 18251 | /@docdir@/p |
| 18252 | /@infodir@/p |
| 18253 | /@localedir@/p |
| 18254 | /@mandir@/p |
| 18255 | ' |
| 18256 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 18257 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 18258 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 18259 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 18260 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 18261 | _ACEOF |
| 18262 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18263 | ac_datarootdir_hack=' |
| 18264 | s&@datadir@&$datadir&g |
| 18265 | s&@docdir@&$docdir&g |
| 18266 | s&@infodir@&$infodir&g |
| 18267 | s&@localedir@&$localedir&g |
| 18268 | s&@mandir@&$mandir&g |
| 18269 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 18270 | esac |
| 18271 | _ACEOF |
| 18272 | |
| 18273 | # Neutralize VPATH when `$srcdir' = `.'. |
| 18274 | # Shell code in configure.ac might set extrasub. |
| 18275 | # FIXME: do we really want to maintain this feature? |
| 18276 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18277 | ac_sed_extra="$ac_vpsub |
| 18278 | $extrasub |
| 18279 | _ACEOF |
| 18280 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18281 | :t |
| 18282 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 18283 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 18284 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 18285 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 18286 | s&@srcdir@&$ac_srcdir&;t t |
| 18287 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 18288 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 18289 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 18290 | s&@builddir@&$ac_builddir&;t t |
| 18291 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 18292 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 18293 | $ac_datarootdir_hack |
| 18294 | " |
| 18295 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 18296 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18297 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18298 | { (exit 1); exit 1; }; } |
| 18299 | |
| 18300 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 18301 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 18302 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 18303 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 18304 | which seems to be undefined. Please make sure it is defined." >&5 |
| 18305 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 18306 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 18307 | |
| 18308 | rm -f "$tmp/stdin" |
| 18309 | case $ac_file in |
| 18310 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 18311 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 18312 | esac \ |
| 18313 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18314 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18315 | { (exit 1); exit 1; }; } |
| 18316 | ;; |
| 18317 | :H) |
| 18318 | # |
| 18319 | # CONFIG_HEADER |
| 18320 | # |
| 18321 | if test x"$ac_file" != x-; then |
| 18322 | { |
| 18323 | $as_echo "/* $configure_input */" \ |
| 18324 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 18325 | } >"$tmp/config.h" \ |
| 18326 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18327 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18328 | { (exit 1); exit 1; }; } |
| 18329 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 18330 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 18331 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 18332 | else |
| 18333 | rm -f "$ac_file" |
| 18334 | mv "$tmp/config.h" "$ac_file" \ |
| 18335 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18336 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18337 | { (exit 1); exit 1; }; } |
| 18338 | fi |
| 18339 | else |
| 18340 | $as_echo "/* $configure_input */" \ |
| 18341 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 18342 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 18343 | $as_echo "$as_me: error: could not create -" >&2;} |
| 18344 | { (exit 1); exit 1; }; } |
| 18345 | fi |
| 18346 | ;; |
| 18347 | |
| 18348 | |
| 18349 | esac |
| 18350 | |
| 18351 | done # for ac_tag |
| 18352 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18353 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18354 | { (exit 0); exit 0; } |
| 18355 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18356 | chmod +x $CONFIG_STATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18357 | ac_clean_files=$ac_clean_files_save |
| 18358 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18359 | test $ac_write_fail = 0 || |
| 18360 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 18361 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 18362 | { (exit 1); exit 1; }; } |
| 18363 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18364 | |
| 18365 | # configure is writing to config.log, and then calls config.status. |
| 18366 | # config.status does its own redirection, appending to config.log. |
| 18367 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 18368 | # by configure, so config.status won't be able to write to it; its |
| 18369 | # output is simply discarded. So we exec the FD to /dev/null, |
| 18370 | # effectively closing config.log, so it can be properly (re)opened and |
| 18371 | # appended to by config.status. When coming back to configure, we |
| 18372 | # need to make the FD available again. |
| 18373 | if test "$no_create" != yes; then |
| 18374 | ac_cs_success=: |
| 18375 | ac_config_status_args= |
| 18376 | test "$silent" = yes && |
| 18377 | ac_config_status_args="$ac_config_status_args --quiet" |
| 18378 | exec 5>/dev/null |
| 18379 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 18380 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18381 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18382 | # would make configure fail if this is the last instruction. |
| 18383 | $ac_cs_success || { (exit 1); exit 1; } |
| 18384 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18385 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18386 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 18387 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18388 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18389 | |
| 18390 | |