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 |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 796 | with_ruby_command |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 797 | enable_cscope |
| 798 | enable_workshop |
| 799 | enable_netbeans |
| 800 | enable_sniff |
| 801 | enable_multibyte |
| 802 | enable_hangulinput |
| 803 | enable_xim |
| 804 | enable_fontset |
| 805 | with_x |
| 806 | enable_gui |
| 807 | enable_gtk_check |
| 808 | enable_gtk2_check |
| 809 | enable_gnome_check |
| 810 | enable_motif_check |
| 811 | enable_athena_check |
| 812 | enable_nextaw_check |
| 813 | enable_carbon_check |
| 814 | with_gtk_prefix |
| 815 | with_gtk_exec_prefix |
| 816 | enable_gtktest |
| 817 | with_gnome_includes |
| 818 | with_gnome_libs |
| 819 | with_gnome |
| 820 | with_motif_lib |
| 821 | with_tlib |
| 822 | enable_acl |
| 823 | enable_gpm |
| 824 | enable_sysmouse |
| 825 | enable_nls |
| 826 | ' |
| 827 | ac_precious_vars='build_alias |
| 828 | host_alias |
| 829 | target_alias |
| 830 | CC |
| 831 | CFLAGS |
| 832 | LDFLAGS |
| 833 | LIBS |
| 834 | CPPFLAGS |
| 835 | CPP |
| 836 | XMKMF' |
| 837 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 838 | |
| 839 | # Initialize some variables set by options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 840 | ac_init_help= |
| 841 | ac_init_version=false |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 842 | ac_unrecognized_opts= |
| 843 | ac_unrecognized_sep= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 844 | # The variables have the same names as the options, with |
| 845 | # dashes changed to underlines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 846 | cache_file=/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 847 | exec_prefix=NONE |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 848 | no_create= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 849 | no_recursion= |
| 850 | prefix=NONE |
| 851 | program_prefix=NONE |
| 852 | program_suffix=NONE |
| 853 | program_transform_name=s,x,x, |
| 854 | silent= |
| 855 | site= |
| 856 | srcdir= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 857 | verbose= |
| 858 | x_includes=NONE |
| 859 | x_libraries=NONE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 860 | |
| 861 | # Installation directory options. |
| 862 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 863 | # and all the variables that are supposed to be based on exec_prefix |
| 864 | # by default will actually change. |
| 865 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 866 | # (The list follows the same order as the GNU Coding Standards.) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 867 | bindir='${exec_prefix}/bin' |
| 868 | sbindir='${exec_prefix}/sbin' |
| 869 | libexecdir='${exec_prefix}/libexec' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 870 | datarootdir='${prefix}/share' |
| 871 | datadir='${datarootdir}' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 872 | sysconfdir='${prefix}/etc' |
| 873 | sharedstatedir='${prefix}/com' |
| 874 | localstatedir='${prefix}/var' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 875 | includedir='${prefix}/include' |
| 876 | oldincludedir='/usr/include' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 877 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 878 | infodir='${datarootdir}/info' |
| 879 | htmldir='${docdir}' |
| 880 | dvidir='${docdir}' |
| 881 | pdfdir='${docdir}' |
| 882 | psdir='${docdir}' |
| 883 | libdir='${exec_prefix}/lib' |
| 884 | localedir='${datarootdir}/locale' |
| 885 | mandir='${datarootdir}/man' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 886 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 887 | ac_prev= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 888 | ac_dashdash= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 889 | for ac_option |
| 890 | do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 891 | # If the previous option needs an argument, assign it. |
| 892 | if test -n "$ac_prev"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 893 | eval $ac_prev=\$ac_option |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 894 | ac_prev= |
| 895 | continue |
| 896 | fi |
| 897 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 898 | case $ac_option in |
| 899 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 900 | *) ac_optarg=yes ;; |
| 901 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 902 | |
| 903 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 904 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 905 | case $ac_dashdash$ac_option in |
| 906 | --) |
| 907 | ac_dashdash=yes ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 908 | |
| 909 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 910 | ac_prev=bindir ;; |
| 911 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 912 | bindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 913 | |
| 914 | -build | --build | --buil | --bui | --bu) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 915 | ac_prev=build_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 916 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 917 | build_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 918 | |
| 919 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 920 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 921 | ac_prev=cache_file ;; |
| 922 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 923 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 924 | cache_file=$ac_optarg ;; |
| 925 | |
| 926 | --config-cache | -C) |
| 927 | cache_file=config.cache ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 928 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 929 | -datadir | --datadir | --datadi | --datad) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 930 | ac_prev=datadir ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 931 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 932 | datadir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 933 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 934 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 935 | | --dataroo | --dataro | --datar) |
| 936 | ac_prev=datarootdir ;; |
| 937 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 938 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 939 | datarootdir=$ac_optarg ;; |
| 940 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 941 | -disable-* | --disable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 942 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 943 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 944 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 945 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 946 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 947 | ac_useropt_orig=$ac_useropt |
| 948 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 949 | case $ac_user_opts in |
| 950 | *" |
| 951 | "enable_$ac_useropt" |
| 952 | "*) ;; |
| 953 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 954 | ac_unrecognized_sep=', ';; |
| 955 | esac |
| 956 | eval enable_$ac_useropt=no ;; |
| 957 | |
| 958 | -docdir | --docdir | --docdi | --doc | --do) |
| 959 | ac_prev=docdir ;; |
| 960 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 961 | docdir=$ac_optarg ;; |
| 962 | |
| 963 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 964 | ac_prev=dvidir ;; |
| 965 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 966 | dvidir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 967 | |
| 968 | -enable-* | --enable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 969 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 970 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 971 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 972 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 973 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 974 | ac_useropt_orig=$ac_useropt |
| 975 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 976 | case $ac_user_opts in |
| 977 | *" |
| 978 | "enable_$ac_useropt" |
| 979 | "*) ;; |
| 980 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 981 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 982 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 983 | eval enable_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 984 | |
| 985 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 986 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 987 | | --exec | --exe | --ex) |
| 988 | ac_prev=exec_prefix ;; |
| 989 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 990 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 991 | | --exec=* | --exe=* | --ex=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 992 | exec_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 993 | |
| 994 | -gas | --gas | --ga | --g) |
| 995 | # Obsolete; use --with-gas. |
| 996 | with_gas=yes ;; |
| 997 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 998 | -help | --help | --hel | --he | -h) |
| 999 | ac_init_help=long ;; |
| 1000 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1001 | ac_init_help=recursive ;; |
| 1002 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1003 | ac_init_help=short ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1004 | |
| 1005 | -host | --host | --hos | --ho) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1006 | ac_prev=host_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1007 | -host=* | --host=* | --hos=* | --ho=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1008 | host_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1009 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1010 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1011 | ac_prev=htmldir ;; |
| 1012 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1013 | | --ht=*) |
| 1014 | htmldir=$ac_optarg ;; |
| 1015 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1016 | -includedir | --includedir | --includedi | --included | --include \ |
| 1017 | | --includ | --inclu | --incl | --inc) |
| 1018 | ac_prev=includedir ;; |
| 1019 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1020 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1021 | includedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1022 | |
| 1023 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1024 | ac_prev=infodir ;; |
| 1025 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1026 | infodir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1027 | |
| 1028 | -libdir | --libdir | --libdi | --libd) |
| 1029 | ac_prev=libdir ;; |
| 1030 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1031 | libdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1032 | |
| 1033 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1034 | | --libexe | --libex | --libe) |
| 1035 | ac_prev=libexecdir ;; |
| 1036 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1037 | | --libexe=* | --libex=* | --libe=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1038 | libexecdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1039 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1040 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1041 | ac_prev=localedir ;; |
| 1042 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1043 | localedir=$ac_optarg ;; |
| 1044 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1045 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1046 | | --localstate | --localstat | --localsta | --localst | --locals) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1047 | ac_prev=localstatedir ;; |
| 1048 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1049 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1050 | localstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1051 | |
| 1052 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1053 | ac_prev=mandir ;; |
| 1054 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1055 | mandir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1056 | |
| 1057 | -nfp | --nfp | --nf) |
| 1058 | # Obsolete; use --without-fp. |
| 1059 | with_fp=no ;; |
| 1060 | |
| 1061 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1062 | | --no-cr | --no-c | -n) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1063 | no_create=yes ;; |
| 1064 | |
| 1065 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1066 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1067 | no_recursion=yes ;; |
| 1068 | |
| 1069 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1070 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1071 | | --oldin | --oldi | --old | --ol | --o) |
| 1072 | ac_prev=oldincludedir ;; |
| 1073 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1074 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1075 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1076 | oldincludedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1077 | |
| 1078 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1079 | ac_prev=prefix ;; |
| 1080 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1081 | prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1082 | |
| 1083 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1084 | | --program-pre | --program-pr | --program-p) |
| 1085 | ac_prev=program_prefix ;; |
| 1086 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1087 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1088 | program_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1089 | |
| 1090 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1091 | | --program-suf | --program-su | --program-s) |
| 1092 | ac_prev=program_suffix ;; |
| 1093 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1094 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1095 | program_suffix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1096 | |
| 1097 | -program-transform-name | --program-transform-name \ |
| 1098 | | --program-transform-nam | --program-transform-na \ |
| 1099 | | --program-transform-n | --program-transform- \ |
| 1100 | | --program-transform | --program-transfor \ |
| 1101 | | --program-transfo | --program-transf \ |
| 1102 | | --program-trans | --program-tran \ |
| 1103 | | --progr-tra | --program-tr | --program-t) |
| 1104 | ac_prev=program_transform_name ;; |
| 1105 | -program-transform-name=* | --program-transform-name=* \ |
| 1106 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1107 | | --program-transform-n=* | --program-transform-=* \ |
| 1108 | | --program-transform=* | --program-transfor=* \ |
| 1109 | | --program-transfo=* | --program-transf=* \ |
| 1110 | | --program-trans=* | --program-tran=* \ |
| 1111 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1112 | program_transform_name=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1113 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1114 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1115 | ac_prev=pdfdir ;; |
| 1116 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1117 | pdfdir=$ac_optarg ;; |
| 1118 | |
| 1119 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1120 | ac_prev=psdir ;; |
| 1121 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1122 | psdir=$ac_optarg ;; |
| 1123 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1124 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1125 | | -silent | --silent | --silen | --sile | --sil) |
| 1126 | silent=yes ;; |
| 1127 | |
| 1128 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1129 | ac_prev=sbindir ;; |
| 1130 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1131 | | --sbi=* | --sb=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1132 | sbindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1133 | |
| 1134 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1135 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1136 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1137 | | --sha | --sh) |
| 1138 | ac_prev=sharedstatedir ;; |
| 1139 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1140 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1141 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1142 | | --sha=* | --sh=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1143 | sharedstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1144 | |
| 1145 | -site | --site | --sit) |
| 1146 | ac_prev=site ;; |
| 1147 | -site=* | --site=* | --sit=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1148 | site=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1149 | |
| 1150 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1151 | ac_prev=srcdir ;; |
| 1152 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1153 | srcdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1154 | |
| 1155 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1156 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1157 | ac_prev=sysconfdir ;; |
| 1158 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1159 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1160 | sysconfdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1161 | |
| 1162 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1163 | ac_prev=target_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1164 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1165 | target_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1166 | |
| 1167 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1168 | verbose=yes ;; |
| 1169 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1170 | -version | --version | --versio | --versi | --vers | -V) |
| 1171 | ac_init_version=: ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1172 | |
| 1173 | -with-* | --with-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1174 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1175 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1176 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1177 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1178 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1179 | ac_useropt_orig=$ac_useropt |
| 1180 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1181 | case $ac_user_opts in |
| 1182 | *" |
| 1183 | "with_$ac_useropt" |
| 1184 | "*) ;; |
| 1185 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1186 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1187 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1188 | eval with_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1189 | |
| 1190 | -without-* | --without-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1191 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1192 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1193 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1194 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1195 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1196 | ac_useropt_orig=$ac_useropt |
| 1197 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1198 | case $ac_user_opts in |
| 1199 | *" |
| 1200 | "with_$ac_useropt" |
| 1201 | "*) ;; |
| 1202 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1203 | ac_unrecognized_sep=', ';; |
| 1204 | esac |
| 1205 | eval with_$ac_useropt=no ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1206 | |
| 1207 | --x) |
| 1208 | # Obsolete; use --with-x. |
| 1209 | with_x=yes ;; |
| 1210 | |
| 1211 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1212 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1213 | ac_prev=x_includes ;; |
| 1214 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1215 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1216 | x_includes=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1217 | |
| 1218 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1219 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1220 | ac_prev=x_libraries ;; |
| 1221 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1222 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1223 | x_libraries=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1224 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1225 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1226 | Try \`$0 --help' for more information." >&2 |
| 1227 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1228 | ;; |
| 1229 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1230 | *=*) |
| 1231 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1232 | # Reject names that are not valid shell variable names. |
| 1233 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1234 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1235 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1236 | eval $ac_envvar=\$ac_optarg |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1237 | export $ac_envvar ;; |
| 1238 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1239 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1240 | # FIXME: should be removed in autoconf 3.0. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1241 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1242 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1243 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1244 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1245 | ;; |
| 1246 | |
| 1247 | esac |
| 1248 | done |
| 1249 | |
| 1250 | if test -n "$ac_prev"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1251 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1252 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1253 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1254 | fi |
| 1255 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1256 | if test -n "$ac_unrecognized_opts"; then |
| 1257 | case $enable_option_checking in |
| 1258 | no) ;; |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1259 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1260 | { (exit 1); exit 1; }; } ;; |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1261 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1262 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1263 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1264 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1265 | # Check all directory arguments for consistency. |
| 1266 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1267 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1268 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1269 | libdir localedir mandir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1270 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1271 | eval ac_val=\$$ac_var |
| 1272 | # Remove trailing slashes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1273 | case $ac_val in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1274 | */ ) |
| 1275 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1276 | eval $ac_var=\$ac_val;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1277 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1278 | # Be sure to have absolute directory names. |
| 1279 | case $ac_val in |
| 1280 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1281 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1282 | esac |
| 1283 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1284 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1285 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1286 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1287 | # There might be people who depend on the old broken behavior: `$host' |
| 1288 | # used to hold the argument of --host etc. |
| 1289 | # FIXME: To remove some day. |
| 1290 | build=$build_alias |
| 1291 | host=$host_alias |
| 1292 | target=$target_alias |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1293 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1294 | # FIXME: To remove some day. |
| 1295 | if test "x$host_alias" != x; then |
| 1296 | if test "x$build_alias" = x; then |
| 1297 | cross_compiling=maybe |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1298 | $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] | 1299 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1300 | elif test "x$build_alias" != "x$host_alias"; then |
| 1301 | cross_compiling=yes |
| 1302 | fi |
| 1303 | fi |
| 1304 | |
| 1305 | ac_tool_prefix= |
| 1306 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1307 | |
| 1308 | test "$silent" = yes && exec 6>/dev/null |
| 1309 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1310 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1311 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1312 | ac_ls_di=`ls -di .` && |
| 1313 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1314 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1315 | { (exit 1); exit 1; }; } |
| 1316 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1317 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1318 | { (exit 1); exit 1; }; } |
| 1319 | |
| 1320 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1321 | # Find the source files, if location was not specified. |
| 1322 | if test -z "$srcdir"; then |
| 1323 | ac_srcdir_defaulted=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1324 | # Try the directory containing this script, then the parent directory. |
| 1325 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1326 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1327 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1328 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1329 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1330 | $as_echo X"$as_myself" | |
| 1331 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1332 | s//\1/ |
| 1333 | q |
| 1334 | } |
| 1335 | /^X\(\/\/\)[^/].*/{ |
| 1336 | s//\1/ |
| 1337 | q |
| 1338 | } |
| 1339 | /^X\(\/\/\)$/{ |
| 1340 | s//\1/ |
| 1341 | q |
| 1342 | } |
| 1343 | /^X\(\/\).*/{ |
| 1344 | s//\1/ |
| 1345 | q |
| 1346 | } |
| 1347 | s/.*/./; q'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1348 | srcdir=$ac_confdir |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1349 | if test ! -r "$srcdir/$ac_unique_file"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1350 | srcdir=.. |
| 1351 | fi |
| 1352 | else |
| 1353 | ac_srcdir_defaulted=no |
| 1354 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1355 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1356 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1357 | { $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] | 1358 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1359 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1360 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1361 | ac_abs_confdir=`( |
| 1362 | 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] | 1363 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1364 | pwd)` |
| 1365 | # When building in place, set srcdir=. |
| 1366 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1367 | srcdir=. |
| 1368 | fi |
| 1369 | # Remove unnecessary trailing slashes from srcdir. |
| 1370 | # Double slashes in file names in object file debugging info |
| 1371 | # mess up M-x gdb in Emacs. |
| 1372 | case $srcdir in |
| 1373 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1374 | esac |
| 1375 | for ac_var in $ac_precious_vars; do |
| 1376 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1377 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1378 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1379 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1380 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1381 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1382 | # |
| 1383 | # Report the --help message. |
| 1384 | # |
| 1385 | if test "$ac_init_help" = "long"; then |
| 1386 | # Omit some internal or obsolete options to make the list less imposing. |
| 1387 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1388 | cat <<_ACEOF |
| 1389 | \`configure' configures this package to adapt to many kinds of systems. |
| 1390 | |
| 1391 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1392 | |
| 1393 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1394 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1395 | |
| 1396 | Defaults for the options are specified in brackets. |
| 1397 | |
| 1398 | Configuration: |
| 1399 | -h, --help display this help and exit |
| 1400 | --help=short display options specific to this package |
| 1401 | --help=recursive display the short help of all the included packages |
| 1402 | -V, --version display version information and exit |
| 1403 | -q, --quiet, --silent do not print \`checking...' messages |
| 1404 | --cache-file=FILE cache test results in FILE [disabled] |
| 1405 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1406 | -n, --no-create do not create output files |
| 1407 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1408 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1409 | Installation directories: |
| 1410 | --prefix=PREFIX install architecture-independent files in PREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1411 | [$ac_default_prefix] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1412 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1413 | [PREFIX] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1414 | |
| 1415 | By default, \`make install' will install all the files in |
| 1416 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1417 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1418 | for instance \`--prefix=\$HOME'. |
| 1419 | |
| 1420 | For better control, use the options below. |
| 1421 | |
| 1422 | Fine tuning of the installation directories: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1423 | --bindir=DIR user executables [EPREFIX/bin] |
| 1424 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1425 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1426 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1427 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1428 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1429 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1430 | --includedir=DIR C header files [PREFIX/include] |
| 1431 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1432 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1433 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1434 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1435 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1436 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1437 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1438 | --htmldir=DIR html documentation [DOCDIR] |
| 1439 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1440 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1441 | --psdir=DIR ps documentation [DOCDIR] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1442 | _ACEOF |
| 1443 | |
| 1444 | cat <<\_ACEOF |
| 1445 | |
| 1446 | X features: |
| 1447 | --x-includes=DIR X include files are in DIR |
| 1448 | --x-libraries=DIR X library files are in DIR |
| 1449 | _ACEOF |
| 1450 | fi |
| 1451 | |
| 1452 | if test -n "$ac_init_help"; then |
| 1453 | |
| 1454 | cat <<\_ACEOF |
| 1455 | |
| 1456 | Optional Features: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1457 | --disable-option-checking ignore unrecognized --enable/--with options |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1458 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1459 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1460 | --disable-darwin Disable Darwin (Mac OS X) support. |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 1461 | --disable-selinux Don't check for SELinux support. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1462 | --disable-xsmp Disable XSMP session management |
| 1463 | --disable-xsmp-interact Disable XSMP interaction |
| 1464 | --enable-mzschemeinterp Include MzScheme interpreter. |
| 1465 | --enable-perlinterp Include Perl interpreter. |
| 1466 | --enable-pythoninterp Include Python interpreter. |
| 1467 | --enable-tclinterp Include Tcl interpreter. |
| 1468 | --enable-rubyinterp Include Ruby interpreter. |
| 1469 | --enable-cscope Include cscope interface. |
| 1470 | --enable-workshop Include Sun Visual Workshop support. |
| 1471 | --disable-netbeans Disable NetBeans integration support. |
| 1472 | --enable-sniff Include Sniff interface. |
| 1473 | --enable-multibyte Include multibyte editing support. |
| 1474 | --enable-hangulinput Include Hangul input support. |
| 1475 | --enable-xim Include XIM input support. |
| 1476 | --enable-fontset Include X fontset output support. |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 1477 | --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] | 1478 | --enable-gtk-check If auto-select GUI, check for GTK default=yes |
| 1479 | --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes |
| 1480 | --enable-gnome-check If GTK GUI, check for GNOME default=no |
| 1481 | --enable-motif-check If auto-select GUI, check for Motif default=yes |
| 1482 | --enable-athena-check If auto-select GUI, check for Athena default=yes |
| 1483 | --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes |
| 1484 | --enable-carbon-check If auto-select GUI, check for Carbon default=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1485 | --disable-gtktest Do not try to compile and run a test GTK program |
| 1486 | --disable-acl Don't check for ACL support. |
| 1487 | --disable-gpm Don't use gpm (Linux mouse daemon). |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1488 | --disable-sysmouse Don't use sysmouse (mouse in *BSD console). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1489 | --disable-nls Don't support NLS (gettext()). |
| 1490 | |
| 1491 | Optional Packages: |
| 1492 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1493 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Bram Moolenaar | 899dddf | 2006-03-26 21:06:50 +0000 | [diff] [blame] | 1494 | --with-mac-arch=ARCH current, intel, ppc or both |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 1495 | --with-local-dir=PATH search PATH instead of /usr/local for local libraries. |
| 1496 | --without-local-dir do not search /usr/local for local libraries. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1497 | --with-vim-name=NAME what to call the Vim executable |
| 1498 | --with-ex-name=NAME what to call the Ex executable |
| 1499 | --with-view-name=NAME what to call the View executable |
| 1500 | --with-global-runtime=DIR global runtime directory in 'runtimepath' |
| 1501 | --with-modified-by=NAME name of who modified a release version |
| 1502 | --with-features=TYPE tiny, small, normal, big or huge (default: normal) |
| 1503 | --with-compiledby=NAME name to show in :version message |
| 1504 | --with-plthome=PLTHOME Use PLTHOME. |
| 1505 | --with-python-config-dir=PATH Python's config directory |
| 1506 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 1507 | --with-ruby-command=RUBY name of the Ruby command (default: ruby) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1508 | --with-x use the X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1509 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
| 1510 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
| 1511 | --with-gnome-includes=DIR Specify location of GNOME headers |
| 1512 | --with-gnome-libs=DIR Specify location of GNOME libs |
| 1513 | --with-gnome Specify prefix for GNOME files |
| 1514 | --with-motif-lib=STRING Library for Motif |
| 1515 | --with-tlib=library terminal library to be used |
| 1516 | |
| 1517 | Some influential environment variables: |
| 1518 | CC C compiler command |
| 1519 | CFLAGS C compiler flags |
| 1520 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1521 | nonstandard directory <lib dir> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1522 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1523 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1524 | you have headers in a nonstandard directory <include dir> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1525 | CPP C preprocessor |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1526 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1527 | |
| 1528 | Use these variables to override the choices made by `configure' or to help |
| 1529 | it to find libraries and programs with nonstandard names/locations. |
| 1530 | |
| 1531 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1532 | ac_status=$? |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1533 | fi |
| 1534 | |
| 1535 | if test "$ac_init_help" = "recursive"; then |
| 1536 | # If there are subdirs, report their specific --help. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1537 | 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] | 1538 | test -d "$ac_dir" || |
| 1539 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1540 | continue |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1541 | ac_builddir=. |
| 1542 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1543 | case "$ac_dir" in |
| 1544 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1545 | *) |
| 1546 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1547 | # A ".." for each directory in $ac_dir_suffix. |
| 1548 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1549 | case $ac_top_builddir_sub in |
| 1550 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1551 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1552 | esac ;; |
| 1553 | esac |
| 1554 | ac_abs_top_builddir=$ac_pwd |
| 1555 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1556 | # for backward compatibility: |
| 1557 | ac_top_builddir=$ac_top_build_prefix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1558 | |
| 1559 | case $srcdir in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1560 | .) # We are building in place. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1561 | ac_srcdir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1562 | ac_top_srcdir=$ac_top_builddir_sub |
| 1563 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1564 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1565 | ac_srcdir=$srcdir$ac_dir_suffix; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1566 | ac_top_srcdir=$srcdir |
| 1567 | ac_abs_top_srcdir=$srcdir ;; |
| 1568 | *) # Relative name. |
| 1569 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1570 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1571 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1572 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1573 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1574 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1575 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1576 | # Check for guested configure. |
| 1577 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1578 | echo && |
| 1579 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1580 | elif test -f "$ac_srcdir/configure"; then |
| 1581 | echo && |
| 1582 | $SHELL "$ac_srcdir/configure" --help=recursive |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1583 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1584 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1585 | fi || ac_status=$? |
| 1586 | cd "$ac_pwd" || { ac_status=$?; break; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1587 | done |
| 1588 | fi |
| 1589 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1590 | test -n "$ac_init_help" && exit $ac_status |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1591 | if $ac_init_version; then |
| 1592 | cat <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1593 | configure |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1594 | generated by GNU Autoconf 2.63 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1595 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1596 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1597 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1598 | This configure script is free software; the Free Software Foundation |
| 1599 | gives unlimited permission to copy, distribute and modify it. |
| 1600 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1601 | exit |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1602 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1603 | cat >auto/config.log <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1604 | This file contains any messages produced by compilers while |
| 1605 | running configure, to aid debugging if configure makes a mistake. |
| 1606 | |
| 1607 | It was created by $as_me, which was |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1608 | generated by GNU Autoconf 2.63. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1609 | |
| 1610 | $ $0 $@ |
| 1611 | |
| 1612 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1613 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1614 | { |
| 1615 | cat <<_ASUNAME |
| 1616 | ## --------- ## |
| 1617 | ## Platform. ## |
| 1618 | ## --------- ## |
| 1619 | |
| 1620 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1621 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1622 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1623 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1624 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1625 | |
| 1626 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1627 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1628 | |
| 1629 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1630 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1631 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1632 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1633 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1634 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1635 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1636 | |
| 1637 | _ASUNAME |
| 1638 | |
| 1639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1640 | for as_dir in $PATH |
| 1641 | do |
| 1642 | IFS=$as_save_IFS |
| 1643 | test -z "$as_dir" && as_dir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1644 | $as_echo "PATH: $as_dir" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1645 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1646 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1647 | |
| 1648 | } >&5 |
| 1649 | |
| 1650 | cat >&5 <<_ACEOF |
| 1651 | |
| 1652 | |
| 1653 | ## ----------- ## |
| 1654 | ## Core tests. ## |
| 1655 | ## ----------- ## |
| 1656 | |
| 1657 | _ACEOF |
| 1658 | |
| 1659 | |
| 1660 | # Keep a trace of the command line. |
| 1661 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1662 | # Strip out --silent because we don't want to record it for future runs. |
| 1663 | # Also quote any args containing shell meta-characters. |
| 1664 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1665 | ac_configure_args= |
| 1666 | ac_configure_args0= |
| 1667 | ac_configure_args1= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1668 | ac_must_keep_next=false |
| 1669 | for ac_pass in 1 2 |
| 1670 | do |
| 1671 | for ac_arg |
| 1672 | do |
| 1673 | case $ac_arg in |
| 1674 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1675 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1676 | | -silent | --silent | --silen | --sile | --sil) |
| 1677 | continue ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1678 | *\'*) |
| 1679 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1680 | esac |
| 1681 | case $ac_pass in |
| 1682 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1683 | 2) |
| 1684 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1685 | if test $ac_must_keep_next = true; then |
| 1686 | ac_must_keep_next=false # Got value, back to normal. |
| 1687 | else |
| 1688 | case $ac_arg in |
| 1689 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1690 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1691 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1692 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1693 | case "$ac_configure_args0 " in |
| 1694 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1695 | esac |
| 1696 | ;; |
| 1697 | -* ) ac_must_keep_next=true ;; |
| 1698 | esac |
| 1699 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1700 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1701 | ;; |
| 1702 | esac |
| 1703 | done |
| 1704 | done |
| 1705 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1706 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1707 | |
| 1708 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1709 | # config.log. We remove comments because anyway the quotes in there |
| 1710 | # would cause problems or look ugly. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1711 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1712 | # 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] | 1713 | trap 'exit_status=$? |
| 1714 | # Save into config.log some information that might help in debugging. |
| 1715 | { |
| 1716 | echo |
| 1717 | |
| 1718 | cat <<\_ASBOX |
| 1719 | ## ---------------- ## |
| 1720 | ## Cache variables. ## |
| 1721 | ## ---------------- ## |
| 1722 | _ASBOX |
| 1723 | echo |
| 1724 | # The following way of writing the cache mishandles newlines in values, |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1725 | ( |
| 1726 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1727 | eval ac_val=\$$ac_var |
| 1728 | case $ac_val in #( |
| 1729 | *${as_nl}*) |
| 1730 | case $ac_var in #( |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1731 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1732 | $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] | 1733 | esac |
| 1734 | case $ac_var in #( |
| 1735 | _ | IFS | as_nl) ;; #( |
| 1736 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1737 | *) $as_unset $ac_var ;; |
| 1738 | esac ;; |
| 1739 | esac |
| 1740 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1741 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1742 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1743 | *${as_nl}ac_space=\ *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1744 | sed -n \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1745 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1746 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1747 | ;; #( |
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 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1750 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1751 | esac | |
| 1752 | sort |
| 1753 | ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1754 | echo |
| 1755 | |
| 1756 | cat <<\_ASBOX |
| 1757 | ## ----------------- ## |
| 1758 | ## Output variables. ## |
| 1759 | ## ----------------- ## |
| 1760 | _ASBOX |
| 1761 | echo |
| 1762 | for ac_var in $ac_subst_vars |
| 1763 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1764 | eval ac_val=\$$ac_var |
| 1765 | case $ac_val in |
| 1766 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1767 | esac |
| 1768 | $as_echo "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1769 | done | sort |
| 1770 | echo |
| 1771 | |
| 1772 | if test -n "$ac_subst_files"; then |
| 1773 | cat <<\_ASBOX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1774 | ## ------------------- ## |
| 1775 | ## File substitutions. ## |
| 1776 | ## ------------------- ## |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1777 | _ASBOX |
| 1778 | echo |
| 1779 | for ac_var in $ac_subst_files |
| 1780 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1781 | eval ac_val=\$$ac_var |
| 1782 | case $ac_val in |
| 1783 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1784 | esac |
| 1785 | $as_echo "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1786 | done | sort |
| 1787 | echo |
| 1788 | fi |
| 1789 | |
| 1790 | if test -s confdefs.h; then |
| 1791 | cat <<\_ASBOX |
| 1792 | ## ----------- ## |
| 1793 | ## confdefs.h. ## |
| 1794 | ## ----------- ## |
| 1795 | _ASBOX |
| 1796 | echo |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1797 | cat confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1798 | echo |
| 1799 | fi |
| 1800 | test "$ac_signal" != 0 && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1801 | $as_echo "$as_me: caught signal $ac_signal" |
| 1802 | $as_echo "$as_me: exit $exit_status" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1803 | } >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1804 | rm -f core *.core core.conftest.* && |
| 1805 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1806 | exit $exit_status |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1807 | ' 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1808 | for ac_signal in 1 2 13 15; do |
| 1809 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1810 | done |
| 1811 | ac_signal=0 |
| 1812 | |
| 1813 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1814 | rm -f -r conftest* confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1815 | |
| 1816 | # Predefined preprocessor variables. |
| 1817 | |
| 1818 | cat >>confdefs.h <<_ACEOF |
| 1819 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1820 | _ACEOF |
| 1821 | |
| 1822 | |
| 1823 | cat >>confdefs.h <<_ACEOF |
| 1824 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1825 | _ACEOF |
| 1826 | |
| 1827 | |
| 1828 | cat >>confdefs.h <<_ACEOF |
| 1829 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1830 | _ACEOF |
| 1831 | |
| 1832 | |
| 1833 | cat >>confdefs.h <<_ACEOF |
| 1834 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1835 | _ACEOF |
| 1836 | |
| 1837 | |
| 1838 | cat >>confdefs.h <<_ACEOF |
| 1839 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1840 | _ACEOF |
| 1841 | |
| 1842 | |
| 1843 | # 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] | 1844 | # Prefer an explicitly selected file to automatically selected ones. |
| 1845 | ac_site_file1=NONE |
| 1846 | ac_site_file2=NONE |
| 1847 | if test -n "$CONFIG_SITE"; then |
| 1848 | ac_site_file1=$CONFIG_SITE |
| 1849 | elif test "x$prefix" != xNONE; then |
| 1850 | ac_site_file1=$prefix/share/config.site |
| 1851 | ac_site_file2=$prefix/etc/config.site |
| 1852 | else |
| 1853 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1854 | ac_site_file2=$ac_default_prefix/etc/config.site |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1855 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1856 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1857 | do |
| 1858 | test "x$ac_site_file" = xNONE && continue |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1859 | if test -r "$ac_site_file"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1860 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1861 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1862 | sed 's/^/| /' "$ac_site_file" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1863 | . "$ac_site_file" |
| 1864 | fi |
| 1865 | done |
| 1866 | |
| 1867 | if test -r "$cache_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1868 | # Some versions of bash will fail to source /dev/null (special |
| 1869 | # files actually), so we avoid doing that. |
| 1870 | if test -f "$cache_file"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1871 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1872 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1873 | case $cache_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1874 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1875 | *) . "./$cache_file";; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1876 | esac |
| 1877 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1878 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1879 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1880 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1881 | >$cache_file |
| 1882 | fi |
| 1883 | |
| 1884 | # Check that the precious variables saved in the cache have kept the same |
| 1885 | # value. |
| 1886 | ac_cache_corrupted=false |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1887 | for ac_var in $ac_precious_vars; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1888 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1889 | eval ac_new_set=\$ac_env_${ac_var}_set |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1890 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1891 | eval ac_new_val=\$ac_env_${ac_var}_value |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1892 | case $ac_old_set,$ac_new_set in |
| 1893 | set,) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1894 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1895 | $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] | 1896 | ac_cache_corrupted=: ;; |
| 1897 | ,set) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1898 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1899 | $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] | 1900 | ac_cache_corrupted=: ;; |
| 1901 | ,);; |
| 1902 | *) |
| 1903 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1904 | # differences in whitespace do not lead to failure. |
| 1905 | ac_old_val_w=`echo x $ac_old_val` |
| 1906 | ac_new_val_w=`echo x $ac_new_val` |
| 1907 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1908 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1909 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1910 | ac_cache_corrupted=: |
| 1911 | else |
| 1912 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1913 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1914 | eval $ac_var=\$ac_old_val |
| 1915 | fi |
| 1916 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1917 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1918 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1919 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1920 | fi;; |
| 1921 | esac |
| 1922 | # Pass precious variables to config.status. |
| 1923 | if test "$ac_new_set" = set; then |
| 1924 | case $ac_new_val in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1925 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1926 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1927 | esac |
| 1928 | case " $ac_configure_args " in |
| 1929 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1930 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1931 | esac |
| 1932 | fi |
| 1933 | done |
| 1934 | if $ac_cache_corrupted; then |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1935 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1936 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1937 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1938 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1939 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1940 | $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] | 1941 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1942 | fi |
| 1943 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1944 | |
| 1945 | |
| 1946 | |
| 1947 | |
| 1948 | |
| 1949 | |
| 1950 | |
| 1951 | |
| 1952 | |
| 1953 | |
| 1954 | |
| 1955 | |
| 1956 | |
| 1957 | |
| 1958 | |
| 1959 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1960 | ac_ext=c |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1961 | ac_cpp='$CPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1965 | |
| 1966 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1967 | ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1968 | |
| 1969 | |
| 1970 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1971 | #define UNIX 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1972 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1973 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1974 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1975 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 1976 | set x ${MAKE-make} |
| 1977 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 1978 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 1979 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1980 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1981 | cat >conftest.make <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1982 | SHELL = /bin/sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1983 | all: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1984 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1985 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1986 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1987 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 1988 | *@@@%%%=?*=@@@%%%*) |
| 1989 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 1990 | *) |
| 1991 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 1992 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1993 | rm -f conftest.make |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1994 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1995 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 1996 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 1997 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1998 | SET_MAKE= |
| 1999 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2000 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2001 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2002 | SET_MAKE="MAKE=${MAKE-make}" |
| 2003 | fi |
| 2004 | |
| 2005 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2006 | ac_ext=c |
| 2007 | ac_cpp='$CPP $CPPFLAGS' |
| 2008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2011 | if test -n "$ac_tool_prefix"; then |
| 2012 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2013 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2014 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2015 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2016 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2017 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2018 | else |
| 2019 | if test -n "$CC"; then |
| 2020 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2021 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2023 | for as_dir in $PATH |
| 2024 | do |
| 2025 | IFS=$as_save_IFS |
| 2026 | test -z "$as_dir" && as_dir=. |
| 2027 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2028 | 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] | 2029 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2030 | $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] | 2031 | break 2 |
| 2032 | fi |
| 2033 | done |
| 2034 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2035 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2036 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2037 | fi |
| 2038 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2039 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2040 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2041 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2042 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2043 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2044 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2045 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2046 | fi |
| 2047 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2048 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2049 | fi |
| 2050 | if test -z "$ac_cv_prog_CC"; then |
| 2051 | ac_ct_CC=$CC |
| 2052 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2053 | set dummy gcc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2054 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2055 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2056 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2057 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2058 | else |
| 2059 | if test -n "$ac_ct_CC"; then |
| 2060 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2061 | else |
| 2062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2063 | for as_dir in $PATH |
| 2064 | do |
| 2065 | IFS=$as_save_IFS |
| 2066 | test -z "$as_dir" && as_dir=. |
| 2067 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2068 | 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] | 2069 | ac_cv_prog_ac_ct_CC="gcc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2070 | $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] | 2071 | break 2 |
| 2072 | fi |
| 2073 | done |
| 2074 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2075 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2076 | |
| 2077 | fi |
| 2078 | fi |
| 2079 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2080 | if test -n "$ac_ct_CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2081 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2082 | $as_echo "$ac_ct_CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2083 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2084 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2085 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2086 | fi |
| 2087 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2088 | if test "x$ac_ct_CC" = x; then |
| 2089 | CC="" |
| 2090 | else |
| 2091 | case $cross_compiling:$ac_tool_warned in |
| 2092 | yes:) |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2093 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2094 | $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] | 2095 | ac_tool_warned=yes ;; |
| 2096 | esac |
| 2097 | CC=$ac_ct_CC |
| 2098 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2099 | else |
| 2100 | CC="$ac_cv_prog_CC" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2101 | fi |
| 2102 | |
| 2103 | if test -z "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2104 | if test -n "$ac_tool_prefix"; then |
| 2105 | # 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] | 2106 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2107 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2108 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2109 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2110 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2111 | else |
| 2112 | if test -n "$CC"; then |
| 2113 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2114 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2116 | for as_dir in $PATH |
| 2117 | do |
| 2118 | IFS=$as_save_IFS |
| 2119 | test -z "$as_dir" && as_dir=. |
| 2120 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2121 | 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] | 2122 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2123 | $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] | 2124 | break 2 |
| 2125 | fi |
| 2126 | done |
| 2127 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2128 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2129 | |
| 2130 | fi |
| 2131 | fi |
| 2132 | CC=$ac_cv_prog_CC |
| 2133 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2134 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2135 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2136 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2137 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2138 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2139 | fi |
| 2140 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2141 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2142 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2143 | fi |
| 2144 | if test -z "$CC"; then |
| 2145 | # Extract the first word of "cc", so it can be a program name with args. |
| 2146 | set dummy cc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2147 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2148 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2149 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2150 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2151 | else |
| 2152 | if test -n "$CC"; then |
| 2153 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2154 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2155 | ac_prog_rejected=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2157 | for as_dir in $PATH |
| 2158 | do |
| 2159 | IFS=$as_save_IFS |
| 2160 | test -z "$as_dir" && as_dir=. |
| 2161 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2162 | 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] | 2163 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2164 | ac_prog_rejected=yes |
| 2165 | continue |
| 2166 | fi |
| 2167 | ac_cv_prog_CC="cc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2168 | $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] | 2169 | break 2 |
| 2170 | fi |
| 2171 | done |
| 2172 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2173 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2174 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2175 | if test $ac_prog_rejected = yes; then |
| 2176 | # We found a bogon in the path, so make sure we never use it. |
| 2177 | set dummy $ac_cv_prog_CC |
| 2178 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2179 | if test $# != 0; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2180 | # We chose a different compiler from the bogus one. |
| 2181 | # However, it has the same basename, so the bogon will be chosen |
| 2182 | # first if we set CC to just the basename; use the full file name. |
| 2183 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2184 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2185 | fi |
| 2186 | fi |
| 2187 | fi |
| 2188 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2189 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2190 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2191 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2192 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2193 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2194 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2195 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2196 | fi |
| 2197 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2198 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2199 | fi |
| 2200 | if test -z "$CC"; then |
| 2201 | if test -n "$ac_tool_prefix"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2202 | for ac_prog in cl.exe |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2203 | do |
| 2204 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2205 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2206 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2207 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2208 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2209 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2210 | else |
| 2211 | if test -n "$CC"; then |
| 2212 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2213 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2215 | for as_dir in $PATH |
| 2216 | do |
| 2217 | IFS=$as_save_IFS |
| 2218 | test -z "$as_dir" && as_dir=. |
| 2219 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2220 | 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] | 2221 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2222 | $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] | 2223 | break 2 |
| 2224 | fi |
| 2225 | done |
| 2226 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2227 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2228 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2229 | fi |
| 2230 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2231 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2232 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2233 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2234 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2235 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2236 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2237 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2238 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2239 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2240 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2241 | test -n "$CC" && break |
| 2242 | done |
| 2243 | fi |
| 2244 | if test -z "$CC"; then |
| 2245 | ac_ct_CC=$CC |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2246 | for ac_prog in cl.exe |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2247 | do |
| 2248 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2249 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2250 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2251 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2252 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2253 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2254 | else |
| 2255 | if test -n "$ac_ct_CC"; then |
| 2256 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2257 | else |
| 2258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2259 | for as_dir in $PATH |
| 2260 | do |
| 2261 | IFS=$as_save_IFS |
| 2262 | test -z "$as_dir" && as_dir=. |
| 2263 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2264 | 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] | 2265 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2266 | $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] | 2267 | break 2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2268 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2269 | done |
| 2270 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2271 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2272 | |
| 2273 | fi |
| 2274 | fi |
| 2275 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2276 | if test -n "$ac_ct_CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2277 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2278 | $as_echo "$ac_ct_CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2279 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2280 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2281 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2282 | fi |
| 2283 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2284 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2285 | test -n "$ac_ct_CC" && break |
| 2286 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2287 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2288 | if test "x$ac_ct_CC" = x; then |
| 2289 | CC="" |
| 2290 | else |
| 2291 | case $cross_compiling:$ac_tool_warned in |
| 2292 | yes:) |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2293 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2294 | $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] | 2295 | ac_tool_warned=yes ;; |
| 2296 | esac |
| 2297 | CC=$ac_ct_CC |
| 2298 | fi |
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 | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2301 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2302 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2303 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2304 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2305 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2306 | { { $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] | 2307 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2308 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2309 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2310 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2311 | |
| 2312 | # Provide some information about the compiler. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2313 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2314 | set X $ac_compile |
| 2315 | ac_compiler=$2 |
| 2316 | { (ac_try="$ac_compiler --version >&5" |
| 2317 | case "(($ac_try" in |
| 2318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2319 | *) ac_try_echo=$ac_try;; |
| 2320 | esac |
| 2321 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2322 | $as_echo "$ac_try_echo") >&5 |
| 2323 | (eval "$ac_compiler --version >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2324 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2325 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2326 | (exit $ac_status); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2327 | { (ac_try="$ac_compiler -v >&5" |
| 2328 | case "(($ac_try" in |
| 2329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2330 | *) ac_try_echo=$ac_try;; |
| 2331 | esac |
| 2332 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2333 | $as_echo "$ac_try_echo") >&5 |
| 2334 | (eval "$ac_compiler -v >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2335 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2337 | (exit $ac_status); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2338 | { (ac_try="$ac_compiler -V >&5" |
| 2339 | case "(($ac_try" in |
| 2340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2341 | *) ac_try_echo=$ac_try;; |
| 2342 | esac |
| 2343 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2344 | $as_echo "$ac_try_echo") >&5 |
| 2345 | (eval "$ac_compiler -V >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2346 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2347 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2348 | (exit $ac_status); } |
| 2349 | |
| 2350 | cat >conftest.$ac_ext <<_ACEOF |
| 2351 | /* confdefs.h. */ |
| 2352 | _ACEOF |
| 2353 | cat confdefs.h >>conftest.$ac_ext |
| 2354 | cat >>conftest.$ac_ext <<_ACEOF |
| 2355 | /* end confdefs.h. */ |
| 2356 | |
| 2357 | int |
| 2358 | main () |
| 2359 | { |
| 2360 | |
| 2361 | ; |
| 2362 | return 0; |
| 2363 | } |
| 2364 | _ACEOF |
| 2365 | ac_clean_files_save=$ac_clean_files |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2366 | 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] | 2367 | # Try to create an executable without -o first, disregard a.out. |
| 2368 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2369 | # of exeext. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2370 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2371 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2372 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2373 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2374 | # The possible output files: |
| 2375 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2376 | |
| 2377 | ac_rmfiles= |
| 2378 | for ac_file in $ac_files |
| 2379 | do |
| 2380 | case $ac_file in |
| 2381 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2382 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2383 | esac |
| 2384 | done |
| 2385 | rm -f $ac_rmfiles |
| 2386 | |
| 2387 | if { (ac_try="$ac_link_default" |
| 2388 | case "(($ac_try" in |
| 2389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2390 | *) ac_try_echo=$ac_try;; |
| 2391 | esac |
| 2392 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2393 | $as_echo "$ac_try_echo") >&5 |
| 2394 | (eval "$ac_link_default") 2>&5 |
| 2395 | ac_status=$? |
| 2396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); }; then |
| 2398 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2399 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2400 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2401 | # so that the user can short-circuit this test for compilers unknown to |
| 2402 | # Autoconf. |
| 2403 | for ac_file in $ac_files '' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2404 | do |
| 2405 | test -f "$ac_file" || continue |
| 2406 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2407 | *.$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] | 2408 | ;; |
| 2409 | [ab].out ) |
| 2410 | # We found the default executable, but exeext='' is most |
| 2411 | # certainly right. |
| 2412 | break;; |
| 2413 | *.* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2414 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2415 | then :; else |
| 2416 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2417 | fi |
| 2418 | # We set ac_cv_exeext here because the later test for it is not |
| 2419 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2420 | # argument, so we may need to know it at that point already. |
| 2421 | # Even if this section looks crufty: it has the advantage of |
| 2422 | # actually working. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2423 | break;; |
| 2424 | * ) |
| 2425 | break;; |
| 2426 | esac |
| 2427 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2428 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2429 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2430 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2431 | ac_file='' |
| 2432 | fi |
| 2433 | |
| 2434 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2435 | $as_echo "$ac_file" >&6; } |
| 2436 | if test -z "$ac_file"; then |
| 2437 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2439 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2440 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2442 | { { $as_echo "$as_me:$LINENO: 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." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2444 | $as_echo "$as_me: error: C compiler cannot create executables |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2445 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2446 | { (exit 77); exit 77; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2447 | fi |
| 2448 | |
| 2449 | ac_exeext=$ac_cv_exeext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2450 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2451 | # Check that the compiler produces executables we can run. If not, either |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2452 | # the compiler is broken, or we cross compile. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2453 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2454 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2455 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2456 | # If not cross compiling, check that we can run a simple program. |
| 2457 | if test "$cross_compiling" != yes; then |
| 2458 | if { ac_try='./$ac_file' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2459 | { (case "(($ac_try" in |
| 2460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2461 | *) ac_try_echo=$ac_try;; |
| 2462 | esac |
| 2463 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2464 | $as_echo "$ac_try_echo") >&5 |
| 2465 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2466 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2468 | (exit $ac_status); }; }; then |
| 2469 | cross_compiling=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2470 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2471 | if test "$cross_compiling" = maybe; then |
| 2472 | cross_compiling=yes |
| 2473 | else |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2474 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2475 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2476 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2477 | If you meant to cross compile, use \`--host'. |
| 2478 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2479 | $as_echo "$as_me: error: cannot run C compiled programs. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2480 | If you meant to cross compile, use \`--host'. |
| 2481 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2482 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2483 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2484 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2485 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2486 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2487 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2488 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2489 | 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] | 2490 | ac_clean_files=$ac_clean_files_save |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2491 | # Check that the compiler produces executables we can run. If not, either |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2492 | # the compiler is broken, or we cross compile. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2493 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2494 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2495 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2496 | $as_echo "$cross_compiling" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2497 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2498 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2499 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2500 | if { (ac_try="$ac_link" |
| 2501 | case "(($ac_try" in |
| 2502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2503 | *) ac_try_echo=$ac_try;; |
| 2504 | esac |
| 2505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2506 | $as_echo "$ac_try_echo") >&5 |
| 2507 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2508 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2510 | (exit $ac_status); }; then |
| 2511 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2512 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2513 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2514 | # `rm'. |
| 2515 | for ac_file in conftest.exe conftest conftest.*; do |
| 2516 | test -f "$ac_file" || continue |
| 2517 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2518 | *.$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] | 2519 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2520 | break;; |
| 2521 | * ) break;; |
| 2522 | esac |
| 2523 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2524 | else |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2525 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2526 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2527 | { { $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] | 2528 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2529 | $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] | 2530 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2531 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2532 | fi |
| 2533 | |
| 2534 | rm -f conftest$ac_cv_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2535 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2536 | $as_echo "$ac_cv_exeext" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2537 | |
| 2538 | rm -f conftest.$ac_ext |
| 2539 | EXEEXT=$ac_cv_exeext |
| 2540 | ac_exeext=$EXEEXT |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2541 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2542 | $as_echo_n "checking for suffix of object files... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2543 | if test "${ac_cv_objext+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2544 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2545 | else |
| 2546 | cat >conftest.$ac_ext <<_ACEOF |
| 2547 | /* confdefs.h. */ |
| 2548 | _ACEOF |
| 2549 | cat confdefs.h >>conftest.$ac_ext |
| 2550 | cat >>conftest.$ac_ext <<_ACEOF |
| 2551 | /* end confdefs.h. */ |
| 2552 | |
| 2553 | int |
| 2554 | main () |
| 2555 | { |
| 2556 | |
| 2557 | ; |
| 2558 | return 0; |
| 2559 | } |
| 2560 | _ACEOF |
| 2561 | rm -f conftest.o conftest.obj |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2562 | if { (ac_try="$ac_compile" |
| 2563 | case "(($ac_try" in |
| 2564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2565 | *) ac_try_echo=$ac_try;; |
| 2566 | esac |
| 2567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2568 | $as_echo "$ac_try_echo") >&5 |
| 2569 | (eval "$ac_compile") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2570 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2571 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2572 | (exit $ac_status); }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2573 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2574 | test -f "$ac_file" || continue; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2575 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2576 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2577 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2578 | break;; |
| 2579 | esac |
| 2580 | done |
| 2581 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2582 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2584 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2585 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2586 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2587 | { { $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] | 2588 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2589 | $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] | 2590 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2591 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2592 | fi |
| 2593 | |
| 2594 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2595 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2596 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2597 | $as_echo "$ac_cv_objext" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2598 | OBJEXT=$ac_cv_objext |
| 2599 | ac_objext=$OBJEXT |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2600 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2601 | $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] | 2602 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2603 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2604 | else |
| 2605 | cat >conftest.$ac_ext <<_ACEOF |
| 2606 | /* confdefs.h. */ |
| 2607 | _ACEOF |
| 2608 | cat confdefs.h >>conftest.$ac_ext |
| 2609 | cat >>conftest.$ac_ext <<_ACEOF |
| 2610 | /* end confdefs.h. */ |
| 2611 | |
| 2612 | int |
| 2613 | main () |
| 2614 | { |
| 2615 | #ifndef __GNUC__ |
| 2616 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2617 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2618 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2619 | ; |
| 2620 | return 0; |
| 2621 | } |
| 2622 | _ACEOF |
| 2623 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2624 | if { (ac_try="$ac_compile" |
| 2625 | case "(($ac_try" in |
| 2626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2627 | *) ac_try_echo=$ac_try;; |
| 2628 | esac |
| 2629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2630 | $as_echo "$ac_try_echo") >&5 |
| 2631 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2632 | ac_status=$? |
| 2633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2634 | rm -f conftest.er1 |
| 2635 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2637 | (exit $ac_status); } && { |
| 2638 | test -z "$ac_c_werror_flag" || |
| 2639 | test ! -s conftest.err |
| 2640 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2641 | ac_compiler_gnu=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2642 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2643 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2645 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2646 | ac_compiler_gnu=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2647 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2648 | |
| 2649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2650 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2651 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2652 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2653 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2654 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2655 | if test $ac_compiler_gnu = yes; then |
| 2656 | GCC=yes |
| 2657 | else |
| 2658 | GCC= |
| 2659 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2660 | ac_test_CFLAGS=${CFLAGS+set} |
| 2661 | ac_save_CFLAGS=$CFLAGS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2662 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2663 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2664 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2665 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2666 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2667 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2668 | ac_c_werror_flag=yes |
| 2669 | ac_cv_prog_cc_g=no |
| 2670 | CFLAGS="-g" |
| 2671 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2672 | /* confdefs.h. */ |
| 2673 | _ACEOF |
| 2674 | cat confdefs.h >>conftest.$ac_ext |
| 2675 | cat >>conftest.$ac_ext <<_ACEOF |
| 2676 | /* end confdefs.h. */ |
| 2677 | |
| 2678 | int |
| 2679 | main () |
| 2680 | { |
| 2681 | |
| 2682 | ; |
| 2683 | return 0; |
| 2684 | } |
| 2685 | _ACEOF |
| 2686 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2687 | if { (ac_try="$ac_compile" |
| 2688 | case "(($ac_try" in |
| 2689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2690 | *) ac_try_echo=$ac_try;; |
| 2691 | esac |
| 2692 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2693 | $as_echo "$ac_try_echo") >&5 |
| 2694 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2695 | ac_status=$? |
| 2696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2697 | rm -f conftest.er1 |
| 2698 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2699 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2700 | (exit $ac_status); } && { |
| 2701 | test -z "$ac_c_werror_flag" || |
| 2702 | test ! -s conftest.err |
| 2703 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2704 | ac_cv_prog_cc_g=yes |
| 2705 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2706 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2707 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2708 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2709 | CFLAGS="" |
| 2710 | cat >conftest.$ac_ext <<_ACEOF |
| 2711 | /* confdefs.h. */ |
| 2712 | _ACEOF |
| 2713 | cat confdefs.h >>conftest.$ac_ext |
| 2714 | cat >>conftest.$ac_ext <<_ACEOF |
| 2715 | /* end confdefs.h. */ |
| 2716 | |
| 2717 | int |
| 2718 | main () |
| 2719 | { |
| 2720 | |
| 2721 | ; |
| 2722 | return 0; |
| 2723 | } |
| 2724 | _ACEOF |
| 2725 | rm -f conftest.$ac_objext |
| 2726 | if { (ac_try="$ac_compile" |
| 2727 | case "(($ac_try" in |
| 2728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2729 | *) ac_try_echo=$ac_try;; |
| 2730 | esac |
| 2731 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2732 | $as_echo "$ac_try_echo") >&5 |
| 2733 | (eval "$ac_compile") 2>conftest.er1 |
| 2734 | ac_status=$? |
| 2735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2736 | rm -f conftest.er1 |
| 2737 | cat conftest.err >&5 |
| 2738 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2739 | (exit $ac_status); } && { |
| 2740 | test -z "$ac_c_werror_flag" || |
| 2741 | test ! -s conftest.err |
| 2742 | } && test -s conftest.$ac_objext; then |
| 2743 | : |
| 2744 | else |
| 2745 | $as_echo "$as_me: failed program was:" >&5 |
| 2746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2747 | |
| 2748 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2749 | CFLAGS="-g" |
| 2750 | cat >conftest.$ac_ext <<_ACEOF |
| 2751 | /* confdefs.h. */ |
| 2752 | _ACEOF |
| 2753 | cat confdefs.h >>conftest.$ac_ext |
| 2754 | cat >>conftest.$ac_ext <<_ACEOF |
| 2755 | /* end confdefs.h. */ |
| 2756 | |
| 2757 | int |
| 2758 | main () |
| 2759 | { |
| 2760 | |
| 2761 | ; |
| 2762 | return 0; |
| 2763 | } |
| 2764 | _ACEOF |
| 2765 | rm -f conftest.$ac_objext |
| 2766 | if { (ac_try="$ac_compile" |
| 2767 | case "(($ac_try" in |
| 2768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2769 | *) ac_try_echo=$ac_try;; |
| 2770 | esac |
| 2771 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2772 | $as_echo "$ac_try_echo") >&5 |
| 2773 | (eval "$ac_compile") 2>conftest.er1 |
| 2774 | ac_status=$? |
| 2775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2776 | rm -f conftest.er1 |
| 2777 | cat conftest.err >&5 |
| 2778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2779 | (exit $ac_status); } && { |
| 2780 | test -z "$ac_c_werror_flag" || |
| 2781 | test ! -s conftest.err |
| 2782 | } && test -s conftest.$ac_objext; then |
| 2783 | ac_cv_prog_cc_g=yes |
| 2784 | else |
| 2785 | $as_echo "$as_me: failed program was:" >&5 |
| 2786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2787 | |
| 2788 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2789 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2790 | |
| 2791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2792 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2793 | |
| 2794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2795 | fi |
| 2796 | |
| 2797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2798 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2799 | fi |
| 2800 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2801 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2802 | if test "$ac_test_CFLAGS" = set; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2803 | CFLAGS=$ac_save_CFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2804 | elif test $ac_cv_prog_cc_g = yes; then |
| 2805 | if test "$GCC" = yes; then |
| 2806 | CFLAGS="-g -O2" |
| 2807 | else |
| 2808 | CFLAGS="-g" |
| 2809 | fi |
| 2810 | else |
| 2811 | if test "$GCC" = yes; then |
| 2812 | CFLAGS="-O2" |
| 2813 | else |
| 2814 | CFLAGS= |
| 2815 | fi |
| 2816 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2817 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2818 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 2819 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2820 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2821 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2822 | ac_cv_prog_cc_c89=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2823 | ac_save_CC=$CC |
| 2824 | cat >conftest.$ac_ext <<_ACEOF |
| 2825 | /* confdefs.h. */ |
| 2826 | _ACEOF |
| 2827 | cat confdefs.h >>conftest.$ac_ext |
| 2828 | cat >>conftest.$ac_ext <<_ACEOF |
| 2829 | /* end confdefs.h. */ |
| 2830 | #include <stdarg.h> |
| 2831 | #include <stdio.h> |
| 2832 | #include <sys/types.h> |
| 2833 | #include <sys/stat.h> |
| 2834 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2835 | struct buf { int x; }; |
| 2836 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2837 | static char *e (p, i) |
| 2838 | char **p; |
| 2839 | int i; |
| 2840 | { |
| 2841 | return p[i]; |
| 2842 | } |
| 2843 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2844 | { |
| 2845 | char *s; |
| 2846 | va_list v; |
| 2847 | va_start (v,p); |
| 2848 | s = g (p, va_arg (v,int)); |
| 2849 | va_end (v); |
| 2850 | return s; |
| 2851 | } |
| 2852 | |
| 2853 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2854 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2855 | These don't provoke an error unfortunately, instead are silently treated |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2856 | 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] | 2857 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2858 | 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] | 2859 | that's true only with -std. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2860 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2861 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2862 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2863 | inside strings and character constants. */ |
| 2864 | #define FOO(x) 'x' |
| 2865 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2866 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2867 | int test (int i, double x); |
| 2868 | struct s1 {int (*f) (int a);}; |
| 2869 | struct s2 {int (*f) (double a);}; |
| 2870 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2871 | int argc; |
| 2872 | char **argv; |
| 2873 | int |
| 2874 | main () |
| 2875 | { |
| 2876 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2877 | ; |
| 2878 | return 0; |
| 2879 | } |
| 2880 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2881 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2882 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2883 | do |
| 2884 | CC="$ac_save_CC $ac_arg" |
| 2885 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2886 | if { (ac_try="$ac_compile" |
| 2887 | case "(($ac_try" in |
| 2888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2889 | *) ac_try_echo=$ac_try;; |
| 2890 | esac |
| 2891 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2892 | $as_echo "$ac_try_echo") >&5 |
| 2893 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2894 | ac_status=$? |
| 2895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2896 | rm -f conftest.er1 |
| 2897 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2898 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2899 | (exit $ac_status); } && { |
| 2900 | test -z "$ac_c_werror_flag" || |
| 2901 | test ! -s conftest.err |
| 2902 | } && test -s conftest.$ac_objext; then |
| 2903 | ac_cv_prog_cc_c89=$ac_arg |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2904 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2905 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2907 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2908 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2909 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2910 | |
| 2911 | rm -f core conftest.err conftest.$ac_objext |
| 2912 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2913 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2914 | rm -f conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2915 | CC=$ac_save_CC |
| 2916 | |
| 2917 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2918 | # AC_CACHE_VAL |
| 2919 | case "x$ac_cv_prog_cc_c89" in |
| 2920 | x) |
| 2921 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 2922 | $as_echo "none needed" >&6; } ;; |
| 2923 | xno) |
| 2924 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2925 | $as_echo "unsupported" >&6; } ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2926 | *) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2927 | CC="$CC $ac_cv_prog_cc_c89" |
| 2928 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2929 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2930 | esac |
| 2931 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2932 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2933 | ac_ext=c |
| 2934 | ac_cpp='$CPP $CPPFLAGS' |
| 2935 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2936 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2937 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2938 | ac_ext=c |
| 2939 | ac_cpp='$CPP $CPPFLAGS' |
| 2940 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2941 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2942 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2943 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2944 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2945 | # On Suns, sometimes $CPP names a directory. |
| 2946 | if test -n "$CPP" && test -d "$CPP"; then |
| 2947 | CPP= |
| 2948 | fi |
| 2949 | if test -z "$CPP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2950 | if test "${ac_cv_prog_CPP+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2951 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2952 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2953 | # Double quotes because CPP needs to be expanded |
| 2954 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2955 | do |
| 2956 | ac_preproc_ok=false |
| 2957 | for ac_c_preproc_warn_flag in '' yes |
| 2958 | do |
| 2959 | # Use a header file that comes with gcc, so configuring glibc |
| 2960 | # with a fresh cross-compiler works. |
| 2961 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2962 | # <limits.h> exists even on freestanding compilers. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2963 | # 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] | 2964 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2965 | cat >conftest.$ac_ext <<_ACEOF |
| 2966 | /* confdefs.h. */ |
| 2967 | _ACEOF |
| 2968 | cat confdefs.h >>conftest.$ac_ext |
| 2969 | cat >>conftest.$ac_ext <<_ACEOF |
| 2970 | /* end confdefs.h. */ |
| 2971 | #ifdef __STDC__ |
| 2972 | # include <limits.h> |
| 2973 | #else |
| 2974 | # include <assert.h> |
| 2975 | #endif |
| 2976 | Syntax error |
| 2977 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2978 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2979 | case "(($ac_try" in |
| 2980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2981 | *) ac_try_echo=$ac_try;; |
| 2982 | esac |
| 2983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2984 | $as_echo "$ac_try_echo") >&5 |
| 2985 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2986 | ac_status=$? |
| 2987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2988 | rm -f conftest.er1 |
| 2989 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2991 | (exit $ac_status); } >/dev/null && { |
| 2992 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2993 | test ! -s conftest.err |
| 2994 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2995 | : |
| 2996 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2997 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2999 | |
| 3000 | # Broken: fails on valid input. |
| 3001 | continue |
| 3002 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3003 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3004 | rm -f conftest.err conftest.$ac_ext |
| 3005 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3006 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3007 | # can be detected and how. |
| 3008 | cat >conftest.$ac_ext <<_ACEOF |
| 3009 | /* confdefs.h. */ |
| 3010 | _ACEOF |
| 3011 | cat confdefs.h >>conftest.$ac_ext |
| 3012 | cat >>conftest.$ac_ext <<_ACEOF |
| 3013 | /* end confdefs.h. */ |
| 3014 | #include <ac_nonexistent.h> |
| 3015 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3016 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3017 | case "(($ac_try" in |
| 3018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3019 | *) ac_try_echo=$ac_try;; |
| 3020 | esac |
| 3021 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3022 | $as_echo "$ac_try_echo") >&5 |
| 3023 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3024 | ac_status=$? |
| 3025 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3026 | rm -f conftest.er1 |
| 3027 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3028 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3029 | (exit $ac_status); } >/dev/null && { |
| 3030 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3031 | test ! -s conftest.err |
| 3032 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3033 | # Broken: success on invalid input. |
| 3034 | continue |
| 3035 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3036 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3038 | |
| 3039 | # Passes both tests. |
| 3040 | ac_preproc_ok=: |
| 3041 | break |
| 3042 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3043 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3044 | rm -f conftest.err conftest.$ac_ext |
| 3045 | |
| 3046 | done |
| 3047 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3048 | rm -f conftest.err conftest.$ac_ext |
| 3049 | if $ac_preproc_ok; then |
| 3050 | break |
| 3051 | fi |
| 3052 | |
| 3053 | done |
| 3054 | ac_cv_prog_CPP=$CPP |
| 3055 | |
| 3056 | fi |
| 3057 | CPP=$ac_cv_prog_CPP |
| 3058 | else |
| 3059 | ac_cv_prog_CPP=$CPP |
| 3060 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3061 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3062 | $as_echo "$CPP" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3063 | ac_preproc_ok=false |
| 3064 | for ac_c_preproc_warn_flag in '' yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3065 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3066 | # Use a header file that comes with gcc, so configuring glibc |
| 3067 | # with a fresh cross-compiler works. |
| 3068 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3069 | # <limits.h> exists even on freestanding compilers. |
| 3070 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3071 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3072 | cat >conftest.$ac_ext <<_ACEOF |
| 3073 | /* confdefs.h. */ |
| 3074 | _ACEOF |
| 3075 | cat confdefs.h >>conftest.$ac_ext |
| 3076 | cat >>conftest.$ac_ext <<_ACEOF |
| 3077 | /* end confdefs.h. */ |
| 3078 | #ifdef __STDC__ |
| 3079 | # include <limits.h> |
| 3080 | #else |
| 3081 | # include <assert.h> |
| 3082 | #endif |
| 3083 | Syntax error |
| 3084 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3085 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3086 | case "(($ac_try" in |
| 3087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3088 | *) ac_try_echo=$ac_try;; |
| 3089 | esac |
| 3090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3091 | $as_echo "$ac_try_echo") >&5 |
| 3092 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3093 | ac_status=$? |
| 3094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3095 | rm -f conftest.er1 |
| 3096 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3098 | (exit $ac_status); } >/dev/null && { |
| 3099 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3100 | test ! -s conftest.err |
| 3101 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3102 | : |
| 3103 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3104 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3106 | |
| 3107 | # Broken: fails on valid input. |
| 3108 | continue |
| 3109 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3110 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3111 | rm -f conftest.err conftest.$ac_ext |
| 3112 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3113 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3114 | # can be detected and how. |
| 3115 | cat >conftest.$ac_ext <<_ACEOF |
| 3116 | /* confdefs.h. */ |
| 3117 | _ACEOF |
| 3118 | cat confdefs.h >>conftest.$ac_ext |
| 3119 | cat >>conftest.$ac_ext <<_ACEOF |
| 3120 | /* end confdefs.h. */ |
| 3121 | #include <ac_nonexistent.h> |
| 3122 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3123 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3124 | case "(($ac_try" in |
| 3125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3126 | *) ac_try_echo=$ac_try;; |
| 3127 | esac |
| 3128 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3129 | $as_echo "$ac_try_echo") >&5 |
| 3130 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3131 | ac_status=$? |
| 3132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3133 | rm -f conftest.er1 |
| 3134 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3135 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3136 | (exit $ac_status); } >/dev/null && { |
| 3137 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3138 | test ! -s conftest.err |
| 3139 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3140 | # Broken: success on invalid input. |
| 3141 | continue |
| 3142 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3143 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3145 | |
| 3146 | # Passes both tests. |
| 3147 | ac_preproc_ok=: |
| 3148 | break |
| 3149 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3150 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3151 | rm -f conftest.err conftest.$ac_ext |
| 3152 | |
| 3153 | done |
| 3154 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3155 | rm -f conftest.err conftest.$ac_ext |
| 3156 | if $ac_preproc_ok; then |
| 3157 | : |
| 3158 | else |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 3159 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3160 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3161 | { { $as_echo "$as_me:$LINENO: 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." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3163 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3164 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 3165 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3166 | fi |
| 3167 | |
| 3168 | ac_ext=c |
| 3169 | ac_cpp='$CPP $CPPFLAGS' |
| 3170 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3171 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3172 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3173 | |
| 3174 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3175 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3176 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3177 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3178 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3179 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3180 | if test -z "$GREP"; then |
| 3181 | ac_path_GREP_found=false |
| 3182 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3184 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3185 | do |
| 3186 | IFS=$as_save_IFS |
| 3187 | test -z "$as_dir" && as_dir=. |
| 3188 | for ac_prog in grep ggrep; do |
| 3189 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3190 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3191 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3192 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3193 | # Check for GNU $ac_path_GREP |
| 3194 | case `"$ac_path_GREP" --version 2>&1` in |
| 3195 | *GNU*) |
| 3196 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3197 | *) |
| 3198 | ac_count=0 |
| 3199 | $as_echo_n 0123456789 >"conftest.in" |
| 3200 | while : |
| 3201 | do |
| 3202 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3203 | mv "conftest.tmp" "conftest.in" |
| 3204 | cp "conftest.in" "conftest.nl" |
| 3205 | $as_echo 'GREP' >> "conftest.nl" |
| 3206 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3207 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3208 | ac_count=`expr $ac_count + 1` |
| 3209 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3210 | # Best one so far, save it but keep looking for a better one |
| 3211 | ac_cv_path_GREP="$ac_path_GREP" |
| 3212 | ac_path_GREP_max=$ac_count |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3213 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3214 | # 10*(2^10) chars as input seems more than enough |
| 3215 | test $ac_count -gt 10 && break |
| 3216 | done |
| 3217 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3218 | esac |
| 3219 | |
| 3220 | $ac_path_GREP_found && break 3 |
| 3221 | done |
| 3222 | done |
| 3223 | done |
| 3224 | IFS=$as_save_IFS |
| 3225 | if test -z "$ac_cv_path_GREP"; then |
| 3226 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3227 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3228 | { (exit 1); exit 1; }; } |
| 3229 | fi |
| 3230 | else |
| 3231 | ac_cv_path_GREP=$GREP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3232 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3233 | |
| 3234 | fi |
| 3235 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3236 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3237 | GREP="$ac_cv_path_GREP" |
| 3238 | |
| 3239 | |
| 3240 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3241 | $as_echo_n "checking for egrep... " >&6; } |
| 3242 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3243 | $as_echo_n "(cached) " >&6 |
| 3244 | else |
| 3245 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3246 | then ac_cv_path_EGREP="$GREP -E" |
| 3247 | else |
| 3248 | if test -z "$EGREP"; then |
| 3249 | ac_path_EGREP_found=false |
| 3250 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3252 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3253 | do |
| 3254 | IFS=$as_save_IFS |
| 3255 | test -z "$as_dir" && as_dir=. |
| 3256 | for ac_prog in egrep; do |
| 3257 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3258 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3259 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3260 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3261 | # Check for GNU $ac_path_EGREP |
| 3262 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3263 | *GNU*) |
| 3264 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3265 | *) |
| 3266 | ac_count=0 |
| 3267 | $as_echo_n 0123456789 >"conftest.in" |
| 3268 | while : |
| 3269 | do |
| 3270 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3271 | mv "conftest.tmp" "conftest.in" |
| 3272 | cp "conftest.in" "conftest.nl" |
| 3273 | $as_echo 'EGREP' >> "conftest.nl" |
| 3274 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3275 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3276 | ac_count=`expr $ac_count + 1` |
| 3277 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3278 | # Best one so far, save it but keep looking for a better one |
| 3279 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3280 | ac_path_EGREP_max=$ac_count |
| 3281 | fi |
| 3282 | # 10*(2^10) chars as input seems more than enough |
| 3283 | test $ac_count -gt 10 && break |
| 3284 | done |
| 3285 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3286 | esac |
| 3287 | |
| 3288 | $ac_path_EGREP_found && break 3 |
| 3289 | done |
| 3290 | done |
| 3291 | done |
| 3292 | IFS=$as_save_IFS |
| 3293 | if test -z "$ac_cv_path_EGREP"; then |
| 3294 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3295 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3296 | { (exit 1); exit 1; }; } |
| 3297 | fi |
| 3298 | else |
| 3299 | ac_cv_path_EGREP=$EGREP |
| 3300 | fi |
| 3301 | |
| 3302 | fi |
| 3303 | fi |
| 3304 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3305 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3306 | EGREP="$ac_cv_path_EGREP" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3307 | |
| 3308 | |
| 3309 | cat >conftest.$ac_ext <<_ACEOF |
| 3310 | /* confdefs.h. */ |
| 3311 | _ACEOF |
| 3312 | cat confdefs.h >>conftest.$ac_ext |
| 3313 | cat >>conftest.$ac_ext <<_ACEOF |
| 3314 | /* end confdefs.h. */ |
| 3315 | |
| 3316 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3317 | rm -f conftest* |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3318 | { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 3319 | $as_echo_n "checking for library containing strerror... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3320 | if test "${ac_cv_search_strerror+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3321 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3322 | else |
| 3323 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3324 | cat >conftest.$ac_ext <<_ACEOF |
| 3325 | /* confdefs.h. */ |
| 3326 | _ACEOF |
| 3327 | cat confdefs.h >>conftest.$ac_ext |
| 3328 | cat >>conftest.$ac_ext <<_ACEOF |
| 3329 | /* end confdefs.h. */ |
| 3330 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3331 | /* Override any GCC internal prototype to avoid an error. |
| 3332 | Use char because int might match the return type of a GCC |
| 3333 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3334 | #ifdef __cplusplus |
| 3335 | extern "C" |
| 3336 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3337 | char strerror (); |
| 3338 | int |
| 3339 | main () |
| 3340 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3341 | return strerror (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3342 | ; |
| 3343 | return 0; |
| 3344 | } |
| 3345 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3346 | for ac_lib in '' cposix; do |
| 3347 | if test -z "$ac_lib"; then |
| 3348 | ac_res="none required" |
| 3349 | else |
| 3350 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3351 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3352 | fi |
| 3353 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3354 | if { (ac_try="$ac_link" |
| 3355 | case "(($ac_try" in |
| 3356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3357 | *) ac_try_echo=$ac_try;; |
| 3358 | esac |
| 3359 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3360 | $as_echo "$ac_try_echo") >&5 |
| 3361 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3362 | ac_status=$? |
| 3363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3364 | rm -f conftest.er1 |
| 3365 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3366 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3367 | (exit $ac_status); } && { |
| 3368 | test -z "$ac_c_werror_flag" || |
| 3369 | test ! -s conftest.err |
| 3370 | } && test -s conftest$ac_exeext && { |
| 3371 | test "$cross_compiling" = yes || |
| 3372 | $as_test_x conftest$ac_exeext |
| 3373 | }; then |
| 3374 | ac_cv_search_strerror=$ac_res |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3375 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3376 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3378 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3379 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3380 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3381 | |
| 3382 | rm -rf conftest.dSYM |
| 3383 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3384 | conftest$ac_exeext |
| 3385 | if test "${ac_cv_search_strerror+set}" = set; then |
| 3386 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3387 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3388 | done |
| 3389 | if test "${ac_cv_search_strerror+set}" = set; then |
| 3390 | : |
| 3391 | else |
| 3392 | ac_cv_search_strerror=no |
| 3393 | fi |
| 3394 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3395 | LIBS=$ac_func_search_save_LIBS |
| 3396 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3397 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 3398 | $as_echo "$ac_cv_search_strerror" >&6; } |
| 3399 | ac_res=$ac_cv_search_strerror |
| 3400 | if test "$ac_res" != no; then |
| 3401 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3402 | |
| 3403 | fi |
| 3404 | for ac_prog in gawk mawk nawk awk |
| 3405 | do |
| 3406 | # 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] | 3407 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3408 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3409 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3410 | if test "${ac_cv_prog_AWK+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3411 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3412 | else |
| 3413 | if test -n "$AWK"; then |
| 3414 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3415 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3417 | for as_dir in $PATH |
| 3418 | do |
| 3419 | IFS=$as_save_IFS |
| 3420 | test -z "$as_dir" && as_dir=. |
| 3421 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3422 | 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] | 3423 | ac_cv_prog_AWK="$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3424 | $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] | 3425 | break 2 |
| 3426 | fi |
| 3427 | done |
| 3428 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3429 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3430 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3431 | fi |
| 3432 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3433 | AWK=$ac_cv_prog_AWK |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3434 | if test -n "$AWK"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3435 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
| 3436 | $as_echo "$AWK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3437 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3438 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3439 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3440 | fi |
| 3441 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3442 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3443 | test -n "$AWK" && break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3444 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3445 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3446 | # Extract the first word of "strip", so it can be a program name with args. |
| 3447 | set dummy strip; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3448 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3449 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3450 | if test "${ac_cv_prog_STRIP+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3451 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3452 | else |
| 3453 | if test -n "$STRIP"; then |
| 3454 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3455 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3457 | for as_dir in $PATH |
| 3458 | do |
| 3459 | IFS=$as_save_IFS |
| 3460 | test -z "$as_dir" && as_dir=. |
| 3461 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3462 | 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] | 3463 | ac_cv_prog_STRIP="strip" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3464 | $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] | 3465 | break 2 |
| 3466 | fi |
| 3467 | done |
| 3468 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3469 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3470 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3471 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 3472 | fi |
| 3473 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3474 | STRIP=$ac_cv_prog_STRIP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3475 | if test -n "$STRIP"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3476 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 3477 | $as_echo "$STRIP" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3478 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3479 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3480 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3481 | fi |
| 3482 | |
| 3483 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3484 | |
| 3485 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3486 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3487 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3488 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3489 | if test "${ac_cv_header_stdc+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3490 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3491 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3492 | cat >conftest.$ac_ext <<_ACEOF |
| 3493 | /* confdefs.h. */ |
| 3494 | _ACEOF |
| 3495 | cat confdefs.h >>conftest.$ac_ext |
| 3496 | cat >>conftest.$ac_ext <<_ACEOF |
| 3497 | /* end confdefs.h. */ |
| 3498 | #include <stdlib.h> |
| 3499 | #include <stdarg.h> |
| 3500 | #include <string.h> |
| 3501 | #include <float.h> |
| 3502 | |
| 3503 | int |
| 3504 | main () |
| 3505 | { |
| 3506 | |
| 3507 | ; |
| 3508 | return 0; |
| 3509 | } |
| 3510 | _ACEOF |
| 3511 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3512 | if { (ac_try="$ac_compile" |
| 3513 | case "(($ac_try" in |
| 3514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3515 | *) ac_try_echo=$ac_try;; |
| 3516 | esac |
| 3517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3518 | $as_echo "$ac_try_echo") >&5 |
| 3519 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3520 | ac_status=$? |
| 3521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3522 | rm -f conftest.er1 |
| 3523 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3525 | (exit $ac_status); } && { |
| 3526 | test -z "$ac_c_werror_flag" || |
| 3527 | test ! -s conftest.err |
| 3528 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3529 | ac_cv_header_stdc=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3530 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3531 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3533 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3534 | ac_cv_header_stdc=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3535 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3536 | |
| 3537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3538 | |
| 3539 | if test $ac_cv_header_stdc = yes; then |
| 3540 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3541 | cat >conftest.$ac_ext <<_ACEOF |
| 3542 | /* confdefs.h. */ |
| 3543 | _ACEOF |
| 3544 | cat confdefs.h >>conftest.$ac_ext |
| 3545 | cat >>conftest.$ac_ext <<_ACEOF |
| 3546 | /* end confdefs.h. */ |
| 3547 | #include <string.h> |
| 3548 | |
| 3549 | _ACEOF |
| 3550 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3551 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3552 | : |
| 3553 | else |
| 3554 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3555 | fi |
| 3556 | rm -f conftest* |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3557 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3558 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3559 | |
| 3560 | if test $ac_cv_header_stdc = yes; then |
| 3561 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3562 | cat >conftest.$ac_ext <<_ACEOF |
| 3563 | /* confdefs.h. */ |
| 3564 | _ACEOF |
| 3565 | cat confdefs.h >>conftest.$ac_ext |
| 3566 | cat >>conftest.$ac_ext <<_ACEOF |
| 3567 | /* end confdefs.h. */ |
| 3568 | #include <stdlib.h> |
| 3569 | |
| 3570 | _ACEOF |
| 3571 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3572 | $EGREP "free" >/dev/null 2>&1; then |
| 3573 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3574 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3575 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3576 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3577 | rm -f conftest* |
| 3578 | |
| 3579 | fi |
| 3580 | |
| 3581 | if test $ac_cv_header_stdc = yes; then |
| 3582 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3583 | if test "$cross_compiling" = yes; then |
| 3584 | : |
| 3585 | else |
| 3586 | cat >conftest.$ac_ext <<_ACEOF |
| 3587 | /* confdefs.h. */ |
| 3588 | _ACEOF |
| 3589 | cat confdefs.h >>conftest.$ac_ext |
| 3590 | cat >>conftest.$ac_ext <<_ACEOF |
| 3591 | /* end confdefs.h. */ |
| 3592 | #include <ctype.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3593 | #include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3594 | #if ((' ' & 0x0FF) == 0x020) |
| 3595 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3596 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3597 | #else |
| 3598 | # define ISLOWER(c) \ |
| 3599 | (('a' <= (c) && (c) <= 'i') \ |
| 3600 | || ('j' <= (c) && (c) <= 'r') \ |
| 3601 | || ('s' <= (c) && (c) <= 'z')) |
| 3602 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3603 | #endif |
| 3604 | |
| 3605 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3606 | int |
| 3607 | main () |
| 3608 | { |
| 3609 | int i; |
| 3610 | for (i = 0; i < 256; i++) |
| 3611 | if (XOR (islower (i), ISLOWER (i)) |
| 3612 | || toupper (i) != TOUPPER (i)) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3613 | return 2; |
| 3614 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3615 | } |
| 3616 | _ACEOF |
| 3617 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3618 | if { (ac_try="$ac_link" |
| 3619 | case "(($ac_try" in |
| 3620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3621 | *) ac_try_echo=$ac_try;; |
| 3622 | esac |
| 3623 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3624 | $as_echo "$ac_try_echo") >&5 |
| 3625 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3626 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3627 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3628 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3629 | { (case "(($ac_try" in |
| 3630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3631 | *) ac_try_echo=$ac_try;; |
| 3632 | esac |
| 3633 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3634 | $as_echo "$ac_try_echo") >&5 |
| 3635 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3636 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3638 | (exit $ac_status); }; }; then |
| 3639 | : |
| 3640 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3641 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 3642 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3644 | |
| 3645 | ( exit $ac_status ) |
| 3646 | ac_cv_header_stdc=no |
| 3647 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3648 | rm -rf conftest.dSYM |
| 3649 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3650 | fi |
| 3651 | |
| 3652 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3653 | fi |
| 3654 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3655 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3656 | $as_echo "$ac_cv_header_stdc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3657 | if test $ac_cv_header_stdc = yes; then |
| 3658 | |
| 3659 | cat >>confdefs.h <<\_ACEOF |
| 3660 | #define STDC_HEADERS 1 |
| 3661 | _ACEOF |
| 3662 | |
| 3663 | fi |
| 3664 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3665 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 3666 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 3667 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 3668 | $as_echo_n "(cached) " >&6 |
| 3669 | else |
| 3670 | cat >conftest.$ac_ext <<_ACEOF |
| 3671 | /* confdefs.h. */ |
| 3672 | _ACEOF |
| 3673 | cat confdefs.h >>conftest.$ac_ext |
| 3674 | cat >>conftest.$ac_ext <<_ACEOF |
| 3675 | /* end confdefs.h. */ |
| 3676 | #include <sys/types.h> |
| 3677 | #include <sys/wait.h> |
| 3678 | #ifndef WEXITSTATUS |
| 3679 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 3680 | #endif |
| 3681 | #ifndef WIFEXITED |
| 3682 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 3683 | #endif |
| 3684 | |
| 3685 | int |
| 3686 | main () |
| 3687 | { |
| 3688 | int s; |
| 3689 | wait (&s); |
| 3690 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 3691 | ; |
| 3692 | return 0; |
| 3693 | } |
| 3694 | _ACEOF |
| 3695 | rm -f conftest.$ac_objext |
| 3696 | if { (ac_try="$ac_compile" |
| 3697 | case "(($ac_try" in |
| 3698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3699 | *) ac_try_echo=$ac_try;; |
| 3700 | esac |
| 3701 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3702 | $as_echo "$ac_try_echo") >&5 |
| 3703 | (eval "$ac_compile") 2>conftest.er1 |
| 3704 | ac_status=$? |
| 3705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3706 | rm -f conftest.er1 |
| 3707 | cat conftest.err >&5 |
| 3708 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3709 | (exit $ac_status); } && { |
| 3710 | test -z "$ac_c_werror_flag" || |
| 3711 | test ! -s conftest.err |
| 3712 | } && test -s conftest.$ac_objext; then |
| 3713 | ac_cv_header_sys_wait_h=yes |
| 3714 | else |
| 3715 | $as_echo "$as_me: failed program was:" >&5 |
| 3716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3717 | |
| 3718 | ac_cv_header_sys_wait_h=no |
| 3719 | fi |
| 3720 | |
| 3721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3722 | fi |
| 3723 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 3724 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
| 3725 | if test $ac_cv_header_sys_wait_h = yes; then |
| 3726 | |
| 3727 | cat >>confdefs.h <<\_ACEOF |
| 3728 | #define HAVE_SYS_WAIT_H 1 |
| 3729 | _ACEOF |
| 3730 | |
| 3731 | fi |
| 3732 | |
| 3733 | |
| 3734 | if test -z "$CFLAGS"; then |
| 3735 | CFLAGS="-O" |
| 3736 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 3737 | fi |
| 3738 | if test "$GCC" = yes; then |
| 3739 | gccversion=`"$CC" -dumpversion` |
| 3740 | if test "x$gccversion" = "x"; then |
| 3741 | gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
| 3742 | fi |
| 3743 | if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then |
| 3744 | echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' |
| 3745 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 3746 | else |
| 3747 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 3748 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 3749 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 3750 | fi |
| 3751 | fi |
| 3752 | fi |
| 3753 | |
| 3754 | if test "$cross_compiling" = yes; then |
| 3755 | { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 |
| 3756 | $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } |
| 3757 | fi |
| 3758 | |
| 3759 | test "$GCC" = yes && CPP_MM=M; |
| 3760 | |
| 3761 | if test -f ./toolcheck; then |
| 3762 | { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
| 3763 | $as_echo "$as_me: checking for buggy tools..." >&6;} |
| 3764 | sh ./toolcheck 1>&6 |
| 3765 | fi |
| 3766 | |
| 3767 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 3768 | |
| 3769 | { $as_echo "$as_me:$LINENO: checking for BeOS" >&5 |
| 3770 | $as_echo_n "checking for BeOS... " >&6; } |
| 3771 | case `uname` in |
| 3772 | BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o |
| 3773 | BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3774 | $as_echo "yes" >&6; };; |
| 3775 | *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3776 | $as_echo "no" >&6; };; |
| 3777 | esac |
| 3778 | |
| 3779 | { $as_echo "$as_me:$LINENO: checking for QNX" >&5 |
| 3780 | $as_echo_n "checking for QNX... " >&6; } |
| 3781 | case `uname` in |
| 3782 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 3783 | test -z "$with_x" && with_x=no |
| 3784 | QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3785 | $as_echo "yes" >&6; };; |
| 3786 | *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3787 | $as_echo "no" >&6; };; |
| 3788 | esac |
| 3789 | |
| 3790 | { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
| 3791 | $as_echo_n "checking for Darwin (Mac OS X)... " >&6; } |
| 3792 | if test "`(uname) 2>/dev/null`" = Darwin; then |
| 3793 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3794 | $as_echo "yes" >&6; } |
| 3795 | |
| 3796 | { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
| 3797 | $as_echo_n "checking --disable-darwin argument... " >&6; } |
| 3798 | # Check whether --enable-darwin was given. |
| 3799 | if test "${enable_darwin+set}" = set; then |
| 3800 | enableval=$enable_darwin; |
| 3801 | else |
| 3802 | enable_darwin="yes" |
| 3803 | fi |
| 3804 | |
| 3805 | if test "$enable_darwin" = "yes"; then |
| 3806 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3807 | $as_echo "no" >&6; } |
| 3808 | { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
| 3809 | $as_echo_n "checking if Darwin files are there... " >&6; } |
| 3810 | if test -f os_macosx.c; then |
| 3811 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3812 | $as_echo "yes" >&6; } |
| 3813 | else |
| 3814 | { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
| 3815 | $as_echo "no, Darwin support disabled" >&6; } |
| 3816 | enable_darwin=no |
| 3817 | fi |
| 3818 | else |
| 3819 | { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
| 3820 | $as_echo "yes, Darwin support excluded" >&6; } |
| 3821 | fi |
| 3822 | |
| 3823 | { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5 |
| 3824 | $as_echo_n "checking --with-mac-arch argument... " >&6; } |
| 3825 | |
| 3826 | # Check whether --with-mac-arch was given. |
| 3827 | if test "${with_mac_arch+set}" = set; then |
| 3828 | withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5 |
| 3829 | $as_echo "$MACARCH" >&6; } |
| 3830 | else |
| 3831 | MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5 |
| 3832 | $as_echo "defaulting to $MACARCH" >&6; } |
| 3833 | fi |
| 3834 | |
| 3835 | |
| 3836 | if test "x$MACARCH" = "xboth"; then |
| 3837 | { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5 |
| 3838 | $as_echo_n "checking for 10.4 universal SDK... " >&6; } |
| 3839 | save_cppflags="$CPPFLAGS" |
| 3840 | save_cflags="$CFLAGS" |
| 3841 | save_ldflags="$LDFLAGS" |
| 3842 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 3843 | cat >conftest.$ac_ext <<_ACEOF |
| 3844 | /* confdefs.h. */ |
| 3845 | _ACEOF |
| 3846 | cat confdefs.h >>conftest.$ac_ext |
| 3847 | cat >>conftest.$ac_ext <<_ACEOF |
| 3848 | /* end confdefs.h. */ |
| 3849 | |
| 3850 | int |
| 3851 | main () |
| 3852 | { |
| 3853 | |
| 3854 | ; |
| 3855 | return 0; |
| 3856 | } |
| 3857 | _ACEOF |
| 3858 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3859 | if { (ac_try="$ac_link" |
| 3860 | case "(($ac_try" in |
| 3861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3862 | *) ac_try_echo=$ac_try;; |
| 3863 | esac |
| 3864 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3865 | $as_echo "$ac_try_echo") >&5 |
| 3866 | (eval "$ac_link") 2>conftest.er1 |
| 3867 | ac_status=$? |
| 3868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3869 | rm -f conftest.er1 |
| 3870 | cat conftest.err >&5 |
| 3871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3872 | (exit $ac_status); } && { |
| 3873 | test -z "$ac_c_werror_flag" || |
| 3874 | test ! -s conftest.err |
| 3875 | } && test -s conftest$ac_exeext && { |
| 3876 | test "$cross_compiling" = yes || |
| 3877 | $as_test_x conftest$ac_exeext |
| 3878 | }; then |
| 3879 | { $as_echo "$as_me:$LINENO: result: found" >&5 |
| 3880 | $as_echo "found" >&6; } |
| 3881 | else |
| 3882 | $as_echo "$as_me: failed program was:" >&5 |
| 3883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3884 | |
| 3885 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 3886 | $as_echo "not found" >&6; } |
| 3887 | CFLAGS="$save_cflags" |
| 3888 | { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5 |
| 3889 | $as_echo_n "checking if Intel architecture is supported... " >&6; } |
| 3890 | CPPFLAGS="$CPPFLAGS -arch i386" |
| 3891 | LDFLAGS="$save_ldflags -arch i386" |
| 3892 | cat >conftest.$ac_ext <<_ACEOF |
| 3893 | /* confdefs.h. */ |
| 3894 | _ACEOF |
| 3895 | cat confdefs.h >>conftest.$ac_ext |
| 3896 | cat >>conftest.$ac_ext <<_ACEOF |
| 3897 | /* end confdefs.h. */ |
| 3898 | |
| 3899 | int |
| 3900 | main () |
| 3901 | { |
| 3902 | |
| 3903 | ; |
| 3904 | return 0; |
| 3905 | } |
| 3906 | _ACEOF |
| 3907 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3908 | if { (ac_try="$ac_link" |
| 3909 | case "(($ac_try" in |
| 3910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3911 | *) ac_try_echo=$ac_try;; |
| 3912 | esac |
| 3913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3914 | $as_echo "$ac_try_echo") >&5 |
| 3915 | (eval "$ac_link") 2>conftest.er1 |
| 3916 | ac_status=$? |
| 3917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3918 | rm -f conftest.er1 |
| 3919 | cat conftest.err >&5 |
| 3920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3921 | (exit $ac_status); } && { |
| 3922 | test -z "$ac_c_werror_flag" || |
| 3923 | test ! -s conftest.err |
| 3924 | } && test -s conftest$ac_exeext && { |
| 3925 | test "$cross_compiling" = yes || |
| 3926 | $as_test_x conftest$ac_exeext |
| 3927 | }; then |
| 3928 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3929 | $as_echo "yes" >&6; }; MACARCH="intel" |
| 3930 | else |
| 3931 | $as_echo "$as_me: failed program was:" >&5 |
| 3932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3933 | |
| 3934 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3935 | $as_echo "no" >&6; } |
| 3936 | MACARCH="ppc" |
| 3937 | CPPFLAGS="$save_cppflags -arch ppc" |
| 3938 | LDFLAGS="$save_ldflags -arch ppc" |
| 3939 | fi |
| 3940 | |
| 3941 | rm -rf conftest.dSYM |
| 3942 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3943 | conftest$ac_exeext conftest.$ac_ext |
| 3944 | fi |
| 3945 | |
| 3946 | rm -rf conftest.dSYM |
| 3947 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3948 | conftest$ac_exeext conftest.$ac_ext |
| 3949 | elif test "x$MACARCH" = "xintel"; then |
| 3950 | CPPFLAGS="$CPPFLAGS -arch intel" |
| 3951 | LDFLAGS="$LDFLAGS -arch intel" |
| 3952 | elif test "x$MACARCH" = "xppc"; then |
| 3953 | CPPFLAGS="$CPPFLAGS -arch ppc" |
| 3954 | LDFLAGS="$LDFLAGS -arch ppc" |
| 3955 | fi |
| 3956 | |
| 3957 | if test "$enable_darwin" = "yes"; then |
| 3958 | MACOSX=yes |
Bram Moolenaar | 3a02540 | 2008-07-24 15:20:50 +0000 | [diff] [blame] | 3959 | OS_EXTRA_SRC="os_macosx.c os_mac_conv.c"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3960 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
| 3961 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" |
| 3962 | if test "x$MACARCH" = "xboth"; then |
| 3963 | CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" |
| 3964 | else |
| 3965 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon" |
| 3966 | fi |
| 3967 | |
| 3968 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3969 | |
| 3970 | |
| 3971 | |
| 3972 | |
| 3973 | |
| 3974 | |
| 3975 | |
| 3976 | |
| 3977 | |
| 3978 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3979 | inttypes.h stdint.h unistd.h |
| 3980 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3981 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3982 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3983 | $as_echo_n "checking for $ac_header... " >&6; } |
| 3984 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3985 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3986 | else |
| 3987 | cat >conftest.$ac_ext <<_ACEOF |
| 3988 | /* confdefs.h. */ |
| 3989 | _ACEOF |
| 3990 | cat confdefs.h >>conftest.$ac_ext |
| 3991 | cat >>conftest.$ac_ext <<_ACEOF |
| 3992 | /* end confdefs.h. */ |
| 3993 | $ac_includes_default |
| 3994 | |
| 3995 | #include <$ac_header> |
| 3996 | _ACEOF |
| 3997 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3998 | if { (ac_try="$ac_compile" |
| 3999 | case "(($ac_try" in |
| 4000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4001 | *) ac_try_echo=$ac_try;; |
| 4002 | esac |
| 4003 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4004 | $as_echo "$ac_try_echo") >&5 |
| 4005 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4006 | ac_status=$? |
| 4007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4008 | rm -f conftest.er1 |
| 4009 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4010 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4011 | (exit $ac_status); } && { |
| 4012 | test -z "$ac_c_werror_flag" || |
| 4013 | test ! -s conftest.err |
| 4014 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4015 | eval "$as_ac_Header=yes" |
| 4016 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4017 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4019 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4020 | eval "$as_ac_Header=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4021 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4022 | |
| 4023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4024 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4025 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 4026 | $as_echo "$as_val"'` |
| 4027 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4028 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 4029 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 4030 | $as_echo "$as_val"'` |
| 4031 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4032 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4033 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4034 | _ACEOF |
| 4035 | |
| 4036 | fi |
| 4037 | |
| 4038 | done |
| 4039 | |
| 4040 | |
| 4041 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4042 | { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 4043 | $as_echo_n "checking for Carbon/Carbon.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4044 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4045 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4046 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4047 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 4048 | $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4049 | else |
| 4050 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4051 | { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 4052 | $as_echo_n "checking Carbon/Carbon.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4053 | cat >conftest.$ac_ext <<_ACEOF |
| 4054 | /* confdefs.h. */ |
| 4055 | _ACEOF |
| 4056 | cat confdefs.h >>conftest.$ac_ext |
| 4057 | cat >>conftest.$ac_ext <<_ACEOF |
| 4058 | /* end confdefs.h. */ |
| 4059 | $ac_includes_default |
| 4060 | #include <Carbon/Carbon.h> |
| 4061 | _ACEOF |
| 4062 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4063 | if { (ac_try="$ac_compile" |
| 4064 | case "(($ac_try" in |
| 4065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4066 | *) ac_try_echo=$ac_try;; |
| 4067 | esac |
| 4068 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4069 | $as_echo "$ac_try_echo") >&5 |
| 4070 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4071 | ac_status=$? |
| 4072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4073 | rm -f conftest.er1 |
| 4074 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4075 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4076 | (exit $ac_status); } && { |
| 4077 | test -z "$ac_c_werror_flag" || |
| 4078 | test ! -s conftest.err |
| 4079 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4080 | ac_header_compiler=yes |
| 4081 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4082 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4084 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4085 | ac_header_compiler=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4086 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4087 | |
| 4088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4089 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4090 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4091 | |
| 4092 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4093 | { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 4094 | $as_echo_n "checking Carbon/Carbon.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4095 | cat >conftest.$ac_ext <<_ACEOF |
| 4096 | /* confdefs.h. */ |
| 4097 | _ACEOF |
| 4098 | cat confdefs.h >>conftest.$ac_ext |
| 4099 | cat >>conftest.$ac_ext <<_ACEOF |
| 4100 | /* end confdefs.h. */ |
| 4101 | #include <Carbon/Carbon.h> |
| 4102 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4103 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4104 | case "(($ac_try" in |
| 4105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4106 | *) ac_try_echo=$ac_try;; |
| 4107 | esac |
| 4108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4109 | $as_echo "$ac_try_echo") >&5 |
| 4110 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4111 | ac_status=$? |
| 4112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4113 | rm -f conftest.er1 |
| 4114 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4115 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4116 | (exit $ac_status); } >/dev/null && { |
| 4117 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4118 | test ! -s conftest.err |
| 4119 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4120 | ac_header_preproc=yes |
| 4121 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4122 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4124 | |
| 4125 | ac_header_preproc=no |
| 4126 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4127 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4128 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4129 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4130 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4131 | |
| 4132 | # So? What about this header? |
| 4133 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4134 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4135 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4136 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4137 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 4138 | $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] | 4139 | ac_header_preproc=yes |
| 4140 | ;; |
| 4141 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4142 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 4143 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 4144 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 4145 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 4146 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 4147 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 4148 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4149 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4150 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 4151 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 4152 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 4153 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 4154 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4155 | ;; |
| 4156 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4157 | { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 4158 | $as_echo_n "checking for Carbon/Carbon.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4159 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4160 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4161 | else |
| 4162 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 4163 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4164 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 4165 | $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4166 | |
| 4167 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 4168 | if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4169 | CARBON=yes |
| 4170 | fi |
| 4171 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4172 | |
| 4173 | if test "x$CARBON" = "xyes"; then |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 4174 | 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] | 4175 | with_x=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4176 | fi |
| 4177 | fi |
| 4178 | fi |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 4179 | |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 4180 | if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 4181 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` |
| 4182 | fi |
| 4183 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4184 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4185 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4186 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4187 | fi |
| 4188 | |
| 4189 | |
| 4190 | |
| 4191 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4192 | if test "$cross_compiling" = no; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4193 | { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5 |
| 4194 | $as_echo_n "checking --with-local-dir argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4195 | have_local_include='' |
| 4196 | have_local_lib='' |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4197 | |
| 4198 | # Check whether --with-local-dir was given. |
| 4199 | if test "${with_local_dir+set}" = set; then |
| 4200 | withval=$with_local_dir; |
| 4201 | local_dir="$withval" |
| 4202 | case "$withval" in |
| 4203 | */*) ;; |
| 4204 | no) |
| 4205 | # avoid adding local dir to LDFLAGS and CPPFLAGS |
| 4206 | have_local_dir=yes |
| 4207 | have_local_lib=yes |
| 4208 | ;; |
| 4209 | *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5 |
| 4210 | $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;} |
| 4211 | { (exit 1); exit 1; }; } ;; |
| 4212 | esac |
| 4213 | { $as_echo "$as_me:$LINENO: result: $local_dir" >&5 |
| 4214 | $as_echo "$local_dir" >&6; } |
| 4215 | |
| 4216 | else |
| 4217 | |
| 4218 | local_dir=/usr/local |
| 4219 | { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5 |
| 4220 | $as_echo "Defaulting to $local_dir" >&6; } |
| 4221 | |
| 4222 | fi |
| 4223 | |
| 4224 | if test "$GCC" = yes -a "$local_dir" != no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4225 | echo 'void f(){}' > conftest.c |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4226 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"` |
| 4227 | 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] | 4228 | rm -f conftest.c conftest.o |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4229 | fi |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4230 | if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then |
| 4231 | 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] | 4232 | if test "$tt" = "$LDFLAGS"; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4233 | LDFLAGS="$LDFLAGS -L${local_dir}/lib" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4234 | fi |
| 4235 | fi |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4236 | if test -z "$have_local_include" -a -d "${local_dir}/include"; then |
| 4237 | 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] | 4238 | if test "$tt" = "$CPPFLAGS"; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4239 | CPPFLAGS="$CPPFLAGS -I${local_dir}/include" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4240 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4241 | fi |
| 4242 | fi |
| 4243 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4244 | { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 |
| 4245 | $as_echo_n "checking --with-vim-name argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4246 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4247 | # Check whether --with-vim-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4248 | if test "${with_vim_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4249 | withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5 |
| 4250 | $as_echo "$VIMNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4251 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4252 | VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 |
| 4253 | $as_echo "Defaulting to $VIMNAME" >&6; } |
| 4254 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4255 | |
| 4256 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4257 | { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 |
| 4258 | $as_echo_n "checking --with-ex-name argument... " >&6; } |
| 4259 | |
| 4260 | # Check whether --with-ex-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4261 | if test "${with_ex_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4262 | withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5 |
| 4263 | $as_echo "$EXNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4264 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4265 | EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5 |
| 4266 | $as_echo "Defaulting to ex" >&6; } |
| 4267 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4268 | |
| 4269 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4270 | { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5 |
| 4271 | $as_echo_n "checking --with-view-name argument... " >&6; } |
| 4272 | |
| 4273 | # Check whether --with-view-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4274 | if test "${with_view_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4275 | withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5 |
| 4276 | $as_echo "$VIEWNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4277 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4278 | VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5 |
| 4279 | $as_echo "Defaulting to view" >&6; } |
| 4280 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4281 | |
| 4282 | |
| 4283 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4284 | { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 |
| 4285 | $as_echo_n "checking --with-global-runtime argument... " >&6; } |
| 4286 | |
| 4287 | # Check whether --with-global-runtime was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4288 | if test "${with_global_runtime+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4289 | withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4290 | $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4291 | #define RUNTIME_GLOBAL "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4292 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4293 | |
| 4294 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4295 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4296 | $as_echo "no" >&6; } |
| 4297 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4298 | |
| 4299 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4300 | { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 |
| 4301 | $as_echo_n "checking --with-modified-by argument... " >&6; } |
| 4302 | |
| 4303 | # Check whether --with-modified-by was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4304 | if test "${with_modified_by+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4305 | withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4306 | $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4307 | #define MODIFIED_BY "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4308 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4309 | |
| 4310 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4311 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4312 | $as_echo "no" >&6; } |
| 4313 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4314 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4315 | |
| 4316 | { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 |
| 4317 | $as_echo_n "checking if character set is EBCDIC... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4318 | cat >conftest.$ac_ext <<_ACEOF |
| 4319 | /* confdefs.h. */ |
| 4320 | _ACEOF |
| 4321 | cat confdefs.h >>conftest.$ac_ext |
| 4322 | cat >>conftest.$ac_ext <<_ACEOF |
| 4323 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4324 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4325 | int |
| 4326 | main () |
| 4327 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4328 | /* TryCompile function for CharSet. |
| 4329 | Treat any failure as ASCII for compatibility with existing art. |
| 4330 | Use compile-time rather than run-time tests for cross-compiler |
| 4331 | tolerance. */ |
| 4332 | #if '0'!=240 |
| 4333 | make an error "Character set is not EBCDIC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4334 | #endif |
| 4335 | ; |
| 4336 | return 0; |
| 4337 | } |
| 4338 | _ACEOF |
| 4339 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4340 | if { (ac_try="$ac_compile" |
| 4341 | case "(($ac_try" in |
| 4342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4343 | *) ac_try_echo=$ac_try;; |
| 4344 | esac |
| 4345 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4346 | $as_echo "$ac_try_echo") >&5 |
| 4347 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4348 | ac_status=$? |
| 4349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4350 | rm -f conftest.er1 |
| 4351 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4352 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4353 | (exit $ac_status); } && { |
| 4354 | test -z "$ac_c_werror_flag" || |
| 4355 | test ! -s conftest.err |
| 4356 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4357 | # TryCompile action if true |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4358 | cf_cv_ebcdic=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4359 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4360 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4362 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4363 | # TryCompile action if false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4364 | cf_cv_ebcdic=no |
| 4365 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4366 | |
| 4367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4368 | # end of TryCompile ]) |
| 4369 | # end of CacheVal CvEbcdic |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4370 | { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 |
| 4371 | $as_echo "$cf_cv_ebcdic" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4372 | case "$cf_cv_ebcdic" in #(vi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4373 | yes) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4374 | #define EBCDIC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4375 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4376 | |
| 4377 | line_break='"\\n"' |
| 4378 | ;; |
| 4379 | *) line_break='"\\012"';; |
| 4380 | esac |
| 4381 | |
| 4382 | |
| 4383 | if test "$cf_cv_ebcdic" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4384 | { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 |
| 4385 | $as_echo_n "checking for OS/390 Unix... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4386 | case `uname` in |
| 4387 | OS/390) OS390Unix="yes"; |
| 4388 | if test "$CC" = "cc"; then |
| 4389 | ccm="$_CC_CCMODE" |
| 4390 | ccn="CC" |
| 4391 | else |
| 4392 | if test "$CC" = "c89"; then |
| 4393 | ccm="$_CC_C89MODE" |
| 4394 | ccn="C89" |
| 4395 | else |
| 4396 | ccm=1 |
| 4397 | fi |
| 4398 | fi |
| 4399 | if test "$ccm" != "1"; then |
| 4400 | echo "" |
| 4401 | echo "------------------------------------------" |
| 4402 | echo " On OS/390 Unix, the environment variable" |
| 4403 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 4404 | echo " Do:" |
| 4405 | echo " export _CC_${ccn}MODE=1" |
| 4406 | echo " and then call configure again." |
| 4407 | echo "------------------------------------------" |
| 4408 | exit 1 |
| 4409 | fi |
| 4410 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4411 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4412 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4413 | ;; |
| 4414 | *) OS390Unix="no"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4415 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4416 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4417 | ;; |
| 4418 | esac |
| 4419 | fi |
| 4420 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4421 | { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5 |
| 4422 | $as_echo_n "checking --disable-selinux argument... " >&6; } |
| 4423 | # Check whether --enable-selinux was given. |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4424 | if test "${enable_selinux+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4425 | enableval=$enable_selinux; |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4426 | else |
| 4427 | enable_selinux="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4428 | fi |
| 4429 | |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4430 | if test "$enable_selinux" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4431 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4432 | $as_echo "no" >&6; } |
| 4433 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
| 4434 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4435 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4436 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4437 | else |
| 4438 | ac_check_lib_save_LIBS=$LIBS |
| 4439 | LIBS="-lselinux $LIBS" |
| 4440 | cat >conftest.$ac_ext <<_ACEOF |
| 4441 | /* confdefs.h. */ |
| 4442 | _ACEOF |
| 4443 | cat confdefs.h >>conftest.$ac_ext |
| 4444 | cat >>conftest.$ac_ext <<_ACEOF |
| 4445 | /* end confdefs.h. */ |
| 4446 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4447 | /* Override any GCC internal prototype to avoid an error. |
| 4448 | Use char because int might match the return type of a GCC |
| 4449 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4450 | #ifdef __cplusplus |
| 4451 | extern "C" |
| 4452 | #endif |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4453 | char is_selinux_enabled (); |
| 4454 | int |
| 4455 | main () |
| 4456 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4457 | return is_selinux_enabled (); |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4458 | ; |
| 4459 | return 0; |
| 4460 | } |
| 4461 | _ACEOF |
| 4462 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4463 | if { (ac_try="$ac_link" |
| 4464 | case "(($ac_try" in |
| 4465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4466 | *) ac_try_echo=$ac_try;; |
| 4467 | esac |
| 4468 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4469 | $as_echo "$ac_try_echo") >&5 |
| 4470 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4471 | ac_status=$? |
| 4472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4473 | rm -f conftest.er1 |
| 4474 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4476 | (exit $ac_status); } && { |
| 4477 | test -z "$ac_c_werror_flag" || |
| 4478 | test ! -s conftest.err |
| 4479 | } && test -s conftest$ac_exeext && { |
| 4480 | test "$cross_compiling" = yes || |
| 4481 | $as_test_x conftest$ac_exeext |
| 4482 | }; then |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4483 | ac_cv_lib_selinux_is_selinux_enabled=yes |
| 4484 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4485 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4487 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4488 | ac_cv_lib_selinux_is_selinux_enabled=no |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4489 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4490 | |
| 4491 | rm -rf conftest.dSYM |
| 4492 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4493 | conftest$ac_exeext conftest.$ac_ext |
| 4494 | LIBS=$ac_check_lib_save_LIBS |
| 4495 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4496 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
| 4497 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 4498 | 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] | 4499 | LIBS="$LIBS -lselinux" |
| 4500 | cat >>confdefs.h <<\_ACEOF |
| 4501 | #define HAVE_SELINUX 1 |
| 4502 | _ACEOF |
| 4503 | |
| 4504 | fi |
| 4505 | |
| 4506 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4507 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4508 | $as_echo "yes" >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4509 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4510 | |
| 4511 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4512 | { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5 |
| 4513 | $as_echo_n "checking --with-features argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4514 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4515 | # Check whether --with-features was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4516 | if test "${with_features+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4517 | withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5 |
| 4518 | $as_echo "$features" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4519 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4520 | features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5 |
| 4521 | $as_echo "Defaulting to normal" >&6; } |
| 4522 | fi |
| 4523 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4524 | |
| 4525 | dovimdiff="" |
| 4526 | dogvimdiff="" |
| 4527 | case "$features" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4528 | tiny) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4529 | #define FEAT_TINY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4530 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4531 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4532 | small) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4533 | #define FEAT_SMALL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4534 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4535 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4536 | normal) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4537 | #define FEAT_NORMAL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4538 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4539 | dovimdiff="installvimdiff"; |
| 4540 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4541 | big) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4542 | #define FEAT_BIG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4543 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4544 | dovimdiff="installvimdiff"; |
| 4545 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4546 | huge) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4547 | #define FEAT_HUGE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4548 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4549 | dovimdiff="installvimdiff"; |
| 4550 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4551 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 |
| 4552 | $as_echo "Sorry, $features is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4553 | esac |
| 4554 | |
| 4555 | |
| 4556 | |
| 4557 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4558 | { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 |
| 4559 | $as_echo_n "checking --with-compiledby argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4560 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4561 | # Check whether --with-compiledby was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4562 | if test "${with_compiledby+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4563 | withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4564 | $as_echo "$withval" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4565 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4566 | compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4567 | $as_echo "no" >&6; } |
| 4568 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4569 | |
| 4570 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4571 | |
| 4572 | { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 |
| 4573 | $as_echo_n "checking --disable-xsmp argument... " >&6; } |
| 4574 | # Check whether --enable-xsmp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4575 | if test "${enable_xsmp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4576 | enableval=$enable_xsmp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4577 | else |
| 4578 | enable_xsmp="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4579 | fi |
| 4580 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4581 | |
| 4582 | if test "$enable_xsmp" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4583 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4584 | $as_echo "no" >&6; } |
| 4585 | { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 |
| 4586 | $as_echo_n "checking --disable-xsmp-interact argument... " >&6; } |
| 4587 | # Check whether --enable-xsmp-interact was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4588 | if test "${enable_xsmp_interact+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4589 | enableval=$enable_xsmp_interact; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4590 | else |
| 4591 | enable_xsmp_interact="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4592 | fi |
| 4593 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4594 | if test "$enable_xsmp_interact" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4595 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4596 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4597 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4598 | #define USE_XSMP_INTERACT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4599 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4600 | |
| 4601 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4602 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4603 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4604 | fi |
| 4605 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4606 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4607 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4608 | fi |
| 4609 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4610 | { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 |
| 4611 | $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } |
| 4612 | # Check whether --enable-mzschemeinterp was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4613 | if test "${enable_mzschemeinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4614 | enableval=$enable_mzschemeinterp; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4615 | else |
| 4616 | enable_mzschemeinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4617 | fi |
| 4618 | |
| 4619 | { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 |
| 4620 | $as_echo "$enable_mzschemeinterp" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4621 | |
| 4622 | if test "$enable_mzschemeinterp" = "yes"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4623 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4624 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4625 | { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5 |
| 4626 | $as_echo_n "checking --with-plthome argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4627 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4628 | # Check whether --with-plthome was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4629 | if test "${with_plthome+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4630 | withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5 |
| 4631 | $as_echo "$with_plthome" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4632 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4633 | with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 4634 | $as_echo "\"no\"" >&6; } |
| 4635 | fi |
| 4636 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4637 | |
| 4638 | if test "X$with_plthome" != "X"; then |
| 4639 | vi_cv_path_mzscheme_pfx="$with_plthome" |
| 4640 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4641 | { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 |
| 4642 | $as_echo_n "checking PLTHOME environment var... " >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4643 | if test "X$PLTHOME" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4644 | { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 |
| 4645 | $as_echo "\"$PLTHOME\"" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4646 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4647 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4648 | { $as_echo "$as_me:$LINENO: result: not set" >&5 |
| 4649 | $as_echo "not set" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4650 | # 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] | 4651 | set dummy mzscheme; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4652 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4653 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4654 | if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4655 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4656 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4657 | case $vi_cv_path_mzscheme in |
| 4658 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4659 | ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 4660 | ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4661 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4663 | for as_dir in $PATH |
| 4664 | do |
| 4665 | IFS=$as_save_IFS |
| 4666 | test -z "$as_dir" && as_dir=. |
| 4667 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4668 | 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] | 4669 | 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] | 4670 | $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] | 4671 | break 2 |
| 4672 | fi |
| 4673 | done |
| 4674 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4675 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4676 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4677 | ;; |
| 4678 | esac |
| 4679 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4680 | vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4681 | if test -n "$vi_cv_path_mzscheme"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4682 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 |
| 4683 | $as_echo "$vi_cv_path_mzscheme" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4684 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4685 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4686 | $as_echo "no" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4687 | fi |
| 4688 | |
| 4689 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4690 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4691 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4692 | lsout=`ls -l $vi_cv_path_mzscheme` |
| 4693 | if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 4694 | vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 4695 | fi |
| 4696 | fi |
| 4697 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4698 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4699 | { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
| 4700 | $as_echo_n "checking MzScheme install prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4701 | if test "${vi_cv_path_mzscheme_pfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4702 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4703 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4704 | echo "(display (simplify-path \ |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4705 | (build-path (call-with-values \ |
| 4706 | (lambda () (split-path (find-system-path (quote exec-file)))) \ |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4707 | (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm |
| 4708 | vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ |
| 4709 | sed -e 's+/$++'` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4710 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4711 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 4712 | $as_echo "$vi_cv_path_mzscheme_pfx" >&6; } |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4713 | rm -f mzdirs.scm |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4714 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4715 | fi |
| 4716 | fi |
| 4717 | |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4718 | SCHEME_INC= |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4719 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4720 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 4721 | $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] | 4722 | if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4723 | SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include |
| 4724 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4725 | $as_echo "yes" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4726 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4727 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4728 | $as_echo "no" >&6; } |
| 4729 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 |
| 4730 | $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] | 4731 | 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] | 4732 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4733 | $as_echo "yes" >&6; } |
| 4734 | SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4735 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4736 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4737 | $as_echo "no" >&6; } |
| 4738 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5 |
| 4739 | $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } |
| 4740 | if test -f /usr/include/plt/scheme.h; then |
| 4741 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4742 | $as_echo "yes" >&6; } |
| 4743 | SCHEME_INC=/usr/include/plt |
| 4744 | else |
| 4745 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4746 | $as_echo "no" >&6; } |
| 4747 | vi_cv_path_mzscheme_pfx= |
| 4748 | fi |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4749 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4750 | fi |
| 4751 | fi |
| 4752 | |
| 4753 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | f15f943 | 2007-06-28 11:07:21 +0000 | [diff] [blame] | 4754 | if test "x$MACOSX" = "xyes"; then |
| 4755 | MZSCHEME_LIBS="-framework PLT_MzScheme" |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4756 | elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then |
| 4757 | MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a" |
| 4758 | MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
Bram Moolenaar | f15f943 | 2007-06-28 11:07:21 +0000 | [diff] [blame] | 4759 | elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then |
Bram Moolenaar | e0d7b3c | 2007-05-12 14:23:41 +0000 | [diff] [blame] | 4760 | 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] | 4761 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4762 | if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then |
| 4763 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m" |
| 4764 | MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
| 4765 | else |
| 4766 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc" |
| 4767 | fi |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 4768 | if test "$GCC" = yes; then |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4769 | 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] | 4770 | elif test "`(uname) 2>/dev/null`" = SunOS && |
| 4771 | uname -r | grep '^5' >/dev/null; then |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4772 | MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 4773 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4774 | fi |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4775 | if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then |
| 4776 | SCHEME_COLLECTS=lib/plt/ |
| 4777 | fi |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4778 | if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then |
| 4779 | MZSCHEME_EXTRA="mzscheme_base.c" |
| 4780 | MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" |
| 4781 | MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" |
| 4782 | fi |
| 4783 | MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4784 | -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4785 | MZSCHEME_SRC="if_mzsch.c" |
| 4786 | MZSCHEME_OBJ="objects/if_mzsch.o" |
| 4787 | MZSCHEME_PRO="if_mzsch.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4788 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4789 | #define FEAT_MZSCHEME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4790 | _ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4791 | |
| 4792 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4793 | |
| 4794 | |
| 4795 | |
| 4796 | |
| 4797 | |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4798 | |
| 4799 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4800 | fi |
| 4801 | |
| 4802 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4803 | { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 |
| 4804 | $as_echo_n "checking --enable-perlinterp argument... " >&6; } |
| 4805 | # Check whether --enable-perlinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4806 | if test "${enable_perlinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4807 | enableval=$enable_perlinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4808 | else |
| 4809 | enable_perlinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4810 | fi |
| 4811 | |
| 4812 | { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 |
| 4813 | $as_echo "$enable_perlinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4814 | if test "$enable_perlinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4815 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4816 | # Extract the first word of "perl", so it can be a program name with args. |
| 4817 | set dummy perl; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4818 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4819 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4820 | if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4821 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4822 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4823 | case $vi_cv_path_perl in |
| 4824 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4825 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 4826 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4827 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4829 | for as_dir in $PATH |
| 4830 | do |
| 4831 | IFS=$as_save_IFS |
| 4832 | test -z "$as_dir" && as_dir=. |
| 4833 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4834 | 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] | 4835 | 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] | 4836 | $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] | 4837 | break 2 |
| 4838 | fi |
| 4839 | done |
| 4840 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4841 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4842 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4843 | ;; |
| 4844 | esac |
| 4845 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4846 | vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4847 | if test -n "$vi_cv_path_perl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4848 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 |
| 4849 | $as_echo "$vi_cv_path_perl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4850 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4851 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4852 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4853 | fi |
| 4854 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4855 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4856 | if test "X$vi_cv_path_perl" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4857 | { $as_echo "$as_me:$LINENO: checking Perl version" >&5 |
| 4858 | $as_echo_n "checking Perl version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4859 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 4860 | eval `$vi_cv_path_perl -V:usethreads` |
| 4861 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 4862 | badthreads=no |
| 4863 | else |
| 4864 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 4865 | eval `$vi_cv_path_perl -V:use5005threads` |
| 4866 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 4867 | badthreads=no |
| 4868 | else |
| 4869 | badthreads=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4870 | { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 4871 | $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] | 4872 | fi |
| 4873 | else |
| 4874 | badthreads=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4875 | { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 4876 | $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4877 | fi |
| 4878 | fi |
| 4879 | if test $badthreads = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4880 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 4881 | $as_echo "OK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4882 | eval `$vi_cv_path_perl -V:shrpenv` |
| 4883 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 4884 | shrpenv="" |
| 4885 | fi |
| 4886 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4887 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4888 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 4889 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 4890 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 4891 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 4892 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 4893 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 4894 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 4895 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4896 | { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 |
| 4897 | $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] | 4898 | cflags_save=$CFLAGS |
| 4899 | libs_save=$LIBS |
| 4900 | ldflags_save=$LDFLAGS |
| 4901 | CFLAGS="$CFLAGS $perlcppflags" |
| 4902 | LIBS="$LIBS $perllibs" |
| 4903 | LDFLAGS="$perlldflags $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4904 | cat >conftest.$ac_ext <<_ACEOF |
| 4905 | /* confdefs.h. */ |
| 4906 | _ACEOF |
| 4907 | cat confdefs.h >>conftest.$ac_ext |
| 4908 | cat >>conftest.$ac_ext <<_ACEOF |
| 4909 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4910 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4911 | int |
| 4912 | main () |
| 4913 | { |
| 4914 | |
| 4915 | ; |
| 4916 | return 0; |
| 4917 | } |
| 4918 | _ACEOF |
| 4919 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4920 | if { (ac_try="$ac_link" |
| 4921 | case "(($ac_try" in |
| 4922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4923 | *) ac_try_echo=$ac_try;; |
| 4924 | esac |
| 4925 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4926 | $as_echo "$ac_try_echo") >&5 |
| 4927 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4928 | ac_status=$? |
| 4929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4930 | rm -f conftest.er1 |
| 4931 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4933 | (exit $ac_status); } && { |
| 4934 | test -z "$ac_c_werror_flag" || |
| 4935 | test ! -s conftest.err |
| 4936 | } && test -s conftest$ac_exeext && { |
| 4937 | test "$cross_compiling" = yes || |
| 4938 | $as_test_x conftest$ac_exeext |
| 4939 | }; then |
| 4940 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4941 | $as_echo "yes" >&6; }; perl_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4942 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4943 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4945 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4946 | { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 |
| 4947 | $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4948 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4949 | |
| 4950 | rm -rf conftest.dSYM |
| 4951 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4952 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4953 | CFLAGS=$cflags_save |
| 4954 | LIBS=$libs_save |
| 4955 | LDFLAGS=$ldflags_save |
| 4956 | if test $perl_ok = yes; then |
| 4957 | if test "X$perlcppflags" != "X"; then |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4958 | PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4959 | fi |
| 4960 | if test "X$perlldflags" != "X"; then |
| 4961 | LDFLAGS="$perlldflags $LDFLAGS" |
| 4962 | fi |
| 4963 | PERL_LIBS=$perllibs |
| 4964 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 4965 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 4966 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4967 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4968 | #define FEAT_PERL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4969 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4970 | |
| 4971 | fi |
| 4972 | fi |
| 4973 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4974 | { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 4975 | $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] | 4976 | fi |
| 4977 | fi |
| 4978 | |
| 4979 | if test "x$MACOSX" = "xyes"; then |
| 4980 | dir=/System/Library/Perl |
| 4981 | darwindir=$dir/darwin |
| 4982 | if test -d $darwindir; then |
| 4983 | PERL=/usr/bin/perl |
| 4984 | else |
| 4985 | dir=/System/Library/Perl/5.8.1 |
| 4986 | darwindir=$dir/darwin-thread-multi-2level |
| 4987 | if test -d $darwindir; then |
| 4988 | PERL=/usr/bin/perl |
| 4989 | fi |
| 4990 | fi |
| 4991 | if test -n "$PERL"; then |
| 4992 | PERL_DIR="$dir" |
| 4993 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 4994 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 4995 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 4996 | fi |
| 4997 | fi |
| 4998 | fi |
| 4999 | |
| 5000 | |
| 5001 | |
| 5002 | |
| 5003 | |
| 5004 | |
| 5005 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5006 | { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 |
| 5007 | $as_echo_n "checking --enable-pythoninterp argument... " >&6; } |
| 5008 | # Check whether --enable-pythoninterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5009 | if test "${enable_pythoninterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5010 | enableval=$enable_pythoninterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5011 | else |
| 5012 | enable_pythoninterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5013 | fi |
| 5014 | |
| 5015 | { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 |
| 5016 | $as_echo "$enable_pythoninterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5017 | if test "$enable_pythoninterp" = "yes"; then |
| 5018 | # Extract the first word of "python", so it can be a program name with args. |
| 5019 | set dummy python; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5020 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5021 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5022 | if test "${ac_cv_path_vi_cv_path_python+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5023 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5024 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5025 | case $vi_cv_path_python in |
| 5026 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5027 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 5028 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5029 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5031 | for as_dir in $PATH |
| 5032 | do |
| 5033 | IFS=$as_save_IFS |
| 5034 | test -z "$as_dir" && as_dir=. |
| 5035 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5036 | 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] | 5037 | 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] | 5038 | $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] | 5039 | break 2 |
| 5040 | fi |
| 5041 | done |
| 5042 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5043 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5044 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5045 | ;; |
| 5046 | esac |
| 5047 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5048 | vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5049 | if test -n "$vi_cv_path_python"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5050 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 |
| 5051 | $as_echo "$vi_cv_path_python" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5052 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5053 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5054 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5055 | fi |
| 5056 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5057 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5058 | if test "X$vi_cv_path_python" != "X"; then |
| 5059 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5060 | { $as_echo "$as_me:$LINENO: checking Python version" >&5 |
| 5061 | $as_echo_n "checking Python version... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5062 | if test "${vi_cv_var_python_version+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5063 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5064 | else |
| 5065 | vi_cv_var_python_version=` |
| 5066 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5067 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5068 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5069 | { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 |
| 5070 | $as_echo "$vi_cv_var_python_version" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5071 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5072 | { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 |
| 5073 | $as_echo_n "checking Python is 1.4 or better... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5074 | if ${vi_cv_path_python} -c \ |
| 5075 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 5076 | then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5077 | { $as_echo "$as_me:$LINENO: result: yep" >&5 |
| 5078 | $as_echo "yep" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5079 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5080 | { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5 |
| 5081 | $as_echo_n "checking Python's install prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5082 | if test "${vi_cv_path_python_pfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5083 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5084 | else |
| 5085 | vi_cv_path_python_pfx=` |
| 5086 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5087 | "import sys; print sys.prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5088 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5089 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 |
| 5090 | $as_echo "$vi_cv_path_python_pfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5091 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5092 | { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5 |
| 5093 | $as_echo_n "checking Python's execution prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5094 | if test "${vi_cv_path_python_epfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5095 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5096 | else |
| 5097 | vi_cv_path_python_epfx=` |
| 5098 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5099 | "import sys; print sys.exec_prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5100 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5101 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 |
| 5102 | $as_echo "$vi_cv_path_python_epfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5103 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5104 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5105 | if test "${vi_cv_path_pythonpath+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5106 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5107 | else |
| 5108 | vi_cv_path_pythonpath=` |
| 5109 | unset PYTHONPATH; |
| 5110 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5111 | "import sys, string; print string.join(sys.path,':')"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5112 | fi |
| 5113 | |
| 5114 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5115 | |
| 5116 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5117 | # Check whether --with-python-config-dir was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5118 | if test "${with_python_config_dir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5119 | withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" |
| 5120 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5121 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5122 | |
| 5123 | { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5 |
| 5124 | $as_echo_n "checking Python's configuration directory... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5125 | if test "${vi_cv_path_python_conf+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5126 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5127 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5128 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5129 | vi_cv_path_python_conf= |
| 5130 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
Bram Moolenaar | 7295107 | 2009-12-02 16:58:33 +0000 | [diff] [blame] | 5131 | for subdir in lib64 lib share; do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5132 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 5133 | if test -d "$d" && test -f "$d/config.c"; then |
| 5134 | vi_cv_path_python_conf="$d" |
| 5135 | fi |
| 5136 | done |
| 5137 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5138 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5139 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5140 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 |
| 5141 | $as_echo "$vi_cv_path_python_conf" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5142 | |
| 5143 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 5144 | |
| 5145 | if test "X$PYTHON_CONFDIR" = "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5146 | { $as_echo "$as_me:$LINENO: result: can't find it!" >&5 |
| 5147 | $as_echo "can't find it!" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5148 | else |
| 5149 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5150 | if test "${vi_cv_path_python_plibs+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5151 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5152 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5153 | |
Bram Moolenaar | 01dd60c | 2008-07-24 14:24:48 +0000 | [diff] [blame] | 5154 | pwd=`pwd` |
| 5155 | tmp_mkf="$pwd/config-PyMake$$" |
| 5156 | cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5157 | __: |
| 5158 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 5159 | @echo "python_LIBS='$(LIBS)'" |
| 5160 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 5161 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 5162 | eof |
Bram Moolenaar | 01dd60c | 2008-07-24 14:24:48 +0000 | [diff] [blame] | 5163 | eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" |
| 5164 | rm -f -- "${tmp_mkf}" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5165 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 5166 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 5167 | vi_cv_path_python_plibs="-framework Python" |
| 5168 | else |
| 5169 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 5170 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 5171 | else |
| 5172 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 5173 | fi |
| 5174 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 5175 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 5176 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5177 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5178 | fi |
| 5179 | |
| 5180 | |
| 5181 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 5182 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 5183 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 5184 | else |
| 5185 | 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}" |
| 5186 | fi |
| 5187 | PYTHON_SRC="if_python.c" |
| 5188 | if test "x$MACOSX" = "xyes"; then |
| 5189 | PYTHON_OBJ="objects/if_python.o" |
| 5190 | else |
| 5191 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 5192 | fi |
| 5193 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 5194 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 5195 | fi |
| 5196 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 5197 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5198 | { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5 |
| 5199 | $as_echo_n "checking if -pthread should be used... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5200 | threadsafe_flag= |
| 5201 | thread_lib= |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 5202 | if test "`(uname) 2>/dev/null`" != Darwin; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5203 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 5204 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 5205 | threadsafe_flag="-D_THREAD_SAFE" |
| 5206 | thread_lib="-pthread" |
| 5207 | fi |
| 5208 | fi |
| 5209 | libs_save_old=$LIBS |
| 5210 | if test -n "$threadsafe_flag"; then |
| 5211 | cflags_save=$CFLAGS |
| 5212 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 5213 | LIBS="$LIBS $thread_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5214 | cat >conftest.$ac_ext <<_ACEOF |
| 5215 | /* confdefs.h. */ |
| 5216 | _ACEOF |
| 5217 | cat confdefs.h >>conftest.$ac_ext |
| 5218 | cat >>conftest.$ac_ext <<_ACEOF |
| 5219 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5220 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5221 | int |
| 5222 | main () |
| 5223 | { |
| 5224 | |
| 5225 | ; |
| 5226 | return 0; |
| 5227 | } |
| 5228 | _ACEOF |
| 5229 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5230 | if { (ac_try="$ac_link" |
| 5231 | case "(($ac_try" in |
| 5232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5233 | *) ac_try_echo=$ac_try;; |
| 5234 | esac |
| 5235 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5236 | $as_echo "$ac_try_echo") >&5 |
| 5237 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5238 | ac_status=$? |
| 5239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5240 | rm -f conftest.er1 |
| 5241 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5242 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5243 | (exit $ac_status); } && { |
| 5244 | test -z "$ac_c_werror_flag" || |
| 5245 | test ! -s conftest.err |
| 5246 | } && test -s conftest$ac_exeext && { |
| 5247 | test "$cross_compiling" = yes || |
| 5248 | $as_test_x conftest$ac_exeext |
| 5249 | }; then |
| 5250 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5251 | $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5252 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5253 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5255 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5256 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5257 | $as_echo "no" >&6; }; LIBS=$libs_save_old |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5258 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5259 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5260 | |
| 5261 | rm -rf conftest.dSYM |
| 5262 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5263 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5264 | CFLAGS=$cflags_save |
| 5265 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5266 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5267 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5268 | fi |
| 5269 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5270 | { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 |
| 5271 | $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] | 5272 | cflags_save=$CFLAGS |
| 5273 | libs_save=$LIBS |
| 5274 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 5275 | LIBS="$LIBS $PYTHON_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5276 | cat >conftest.$ac_ext <<_ACEOF |
| 5277 | /* confdefs.h. */ |
| 5278 | _ACEOF |
| 5279 | cat confdefs.h >>conftest.$ac_ext |
| 5280 | cat >>conftest.$ac_ext <<_ACEOF |
| 5281 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5282 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5283 | int |
| 5284 | main () |
| 5285 | { |
| 5286 | |
| 5287 | ; |
| 5288 | return 0; |
| 5289 | } |
| 5290 | _ACEOF |
| 5291 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5292 | if { (ac_try="$ac_link" |
| 5293 | case "(($ac_try" in |
| 5294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5295 | *) ac_try_echo=$ac_try;; |
| 5296 | esac |
| 5297 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5298 | $as_echo "$ac_try_echo") >&5 |
| 5299 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5300 | ac_status=$? |
| 5301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5302 | rm -f conftest.er1 |
| 5303 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5304 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5305 | (exit $ac_status); } && { |
| 5306 | test -z "$ac_c_werror_flag" || |
| 5307 | test ! -s conftest.err |
| 5308 | } && test -s conftest$ac_exeext && { |
| 5309 | test "$cross_compiling" = yes || |
| 5310 | $as_test_x conftest$ac_exeext |
| 5311 | }; then |
| 5312 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5313 | $as_echo "yes" >&6; }; python_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5314 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5315 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5317 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5318 | { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 |
| 5319 | $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5320 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5321 | |
| 5322 | rm -rf conftest.dSYM |
| 5323 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5324 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5325 | CFLAGS=$cflags_save |
| 5326 | LIBS=$libs_save |
| 5327 | if test $python_ok = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5328 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5329 | #define FEAT_PYTHON 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5330 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5331 | |
| 5332 | else |
| 5333 | LIBS=$libs_save_old |
| 5334 | PYTHON_SRC= |
| 5335 | PYTHON_OBJ= |
| 5336 | PYTHON_LIBS= |
| 5337 | PYTHON_CFLAGS= |
| 5338 | fi |
| 5339 | |
| 5340 | fi |
| 5341 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5342 | { $as_echo "$as_me:$LINENO: result: too old" >&5 |
| 5343 | $as_echo "too old" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5344 | fi |
| 5345 | fi |
| 5346 | fi |
| 5347 | |
| 5348 | |
| 5349 | |
| 5350 | |
| 5351 | |
| 5352 | |
| 5353 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5354 | { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 |
| 5355 | $as_echo_n "checking --enable-tclinterp argument... " >&6; } |
| 5356 | # Check whether --enable-tclinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5357 | if test "${enable_tclinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5358 | enableval=$enable_tclinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5359 | else |
| 5360 | enable_tclinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5361 | fi |
| 5362 | |
| 5363 | { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 |
| 5364 | $as_echo "$enable_tclinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5365 | |
| 5366 | if test "$enable_tclinterp" = "yes"; then |
| 5367 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5368 | { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 |
| 5369 | $as_echo_n "checking --with-tclsh argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5370 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5371 | # Check whether --with-tclsh was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5372 | if test "${with_tclsh+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5373 | withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5 |
| 5374 | $as_echo "$tclsh_name" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5375 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5376 | tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5377 | $as_echo "no" >&6; } |
| 5378 | fi |
| 5379 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5380 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5381 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5382 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5383 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5384 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5385 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5386 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5387 | case $vi_cv_path_tcl in |
| 5388 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5389 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5390 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5391 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5393 | for as_dir in $PATH |
| 5394 | do |
| 5395 | IFS=$as_save_IFS |
| 5396 | test -z "$as_dir" && as_dir=. |
| 5397 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5398 | 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] | 5399 | 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] | 5400 | $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] | 5401 | break 2 |
| 5402 | fi |
| 5403 | done |
| 5404 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5405 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5406 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5407 | ;; |
| 5408 | esac |
| 5409 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5410 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5411 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5412 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5413 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5414 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5415 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5416 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5417 | fi |
| 5418 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5419 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5420 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5421 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5422 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then |
| 5423 | tclsh_name="tclsh8.4" |
| 5424 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5425 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5426 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5427 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5428 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5429 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5430 | else |
| 5431 | case $vi_cv_path_tcl in |
| 5432 | [\\/]* | ?:[\\/]*) |
| 5433 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5434 | ;; |
| 5435 | *) |
| 5436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5437 | for as_dir in $PATH |
| 5438 | do |
| 5439 | IFS=$as_save_IFS |
| 5440 | test -z "$as_dir" && as_dir=. |
| 5441 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5442 | 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] | 5443 | 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] | 5444 | $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] | 5445 | break 2 |
| 5446 | fi |
| 5447 | done |
| 5448 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5449 | IFS=$as_save_IFS |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5450 | |
| 5451 | ;; |
| 5452 | esac |
| 5453 | fi |
| 5454 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5455 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5456 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5457 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5458 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5459 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5460 | $as_echo "no" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5461 | fi |
| 5462 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5463 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5464 | fi |
| 5465 | 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] | 5466 | tclsh_name="tclsh8.2" |
| 5467 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5468 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5469 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5470 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5471 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5472 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5473 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5474 | case $vi_cv_path_tcl in |
| 5475 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5476 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5477 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5478 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5480 | for as_dir in $PATH |
| 5481 | do |
| 5482 | IFS=$as_save_IFS |
| 5483 | test -z "$as_dir" && as_dir=. |
| 5484 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5485 | 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] | 5486 | 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] | 5487 | $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] | 5488 | break 2 |
| 5489 | fi |
| 5490 | done |
| 5491 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5492 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5493 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5494 | ;; |
| 5495 | esac |
| 5496 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5497 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5498 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5499 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5500 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5501 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5502 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5503 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5504 | fi |
| 5505 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5506 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5507 | fi |
| 5508 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 5509 | tclsh_name="tclsh8.0" |
| 5510 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5511 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5512 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5513 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5514 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5515 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5516 | else |
| 5517 | case $vi_cv_path_tcl in |
| 5518 | [\\/]* | ?:[\\/]*) |
| 5519 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5520 | ;; |
| 5521 | *) |
| 5522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5523 | for as_dir in $PATH |
| 5524 | do |
| 5525 | IFS=$as_save_IFS |
| 5526 | test -z "$as_dir" && as_dir=. |
| 5527 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5528 | 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] | 5529 | 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] | 5530 | $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] | 5531 | break 2 |
| 5532 | fi |
| 5533 | done |
| 5534 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5535 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5536 | |
| 5537 | ;; |
| 5538 | esac |
| 5539 | fi |
| 5540 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5541 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5542 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5543 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5544 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5545 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5546 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5547 | fi |
| 5548 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5549 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5550 | fi |
| 5551 | if test "X$vi_cv_path_tcl" = "X"; then |
| 5552 | tclsh_name="tclsh" |
| 5553 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5554 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5555 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5556 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5557 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5558 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5559 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5560 | case $vi_cv_path_tcl in |
| 5561 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5562 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5563 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5564 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5566 | for as_dir in $PATH |
| 5567 | do |
| 5568 | IFS=$as_save_IFS |
| 5569 | test -z "$as_dir" && as_dir=. |
| 5570 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5571 | 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] | 5572 | 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] | 5573 | $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] | 5574 | break 2 |
| 5575 | fi |
| 5576 | done |
| 5577 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5578 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5579 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5580 | ;; |
| 5581 | esac |
| 5582 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5583 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5584 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5585 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5586 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5587 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5588 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5589 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5590 | fi |
| 5591 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5592 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5593 | fi |
| 5594 | if test "X$vi_cv_path_tcl" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5595 | { $as_echo "$as_me:$LINENO: checking Tcl version" >&5 |
| 5596 | $as_echo_n "checking Tcl version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5597 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 5598 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5599 | { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5 |
| 5600 | $as_echo "$tclver - OK" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5601 | 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 -` |
| 5602 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5603 | { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5 |
| 5604 | $as_echo_n "checking for location of Tcl include... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5605 | if test "x$MACOSX" != "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5606 | 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] | 5607 | else |
| 5608 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 5609 | fi |
Bram Moolenaar | 0ff8f60 | 2008-02-20 11:44:03 +0000 | [diff] [blame] | 5610 | TCL_INC= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5611 | for try in $tclinc; do |
| 5612 | if test -f "$try/tcl.h"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5613 | { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5 |
| 5614 | $as_echo "$try/tcl.h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5615 | TCL_INC=$try |
| 5616 | break |
| 5617 | fi |
| 5618 | done |
| 5619 | if test -z "$TCL_INC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5620 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5621 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5622 | SKIP_TCL=YES |
| 5623 | fi |
| 5624 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5625 | { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 |
| 5626 | $as_echo_n "checking for location of tclConfig.sh script... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5627 | if test "x$MACOSX" != "xyes"; then |
| 5628 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5629 | tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5630 | else |
| 5631 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 5632 | fi |
| 5633 | for try in $tclcnf; do |
| 5634 | if test -f $try/tclConfig.sh; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5635 | { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 |
| 5636 | $as_echo "$try/tclConfig.sh" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5637 | . $try/tclConfig.sh |
| 5638 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
Bram Moolenaar | 4394bff | 2008-07-24 11:21:31 +0000 | [diff] [blame] | 5639 | 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] | 5640 | break |
| 5641 | fi |
| 5642 | done |
| 5643 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5644 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5645 | $as_echo "<not found>" >&6; } |
| 5646 | { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 |
| 5647 | $as_echo_n "checking for Tcl library by myself... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5648 | tcllib=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5649 | tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5650 | for ext in .so .a ; do |
| 5651 | for ver in "" $tclver ; do |
| 5652 | for try in $tcllib ; do |
| 5653 | trylib=tcl$ver$ext |
| 5654 | if test -f $try/lib$trylib ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5655 | { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 |
| 5656 | $as_echo "$try/lib$trylib" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5657 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 5658 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 5659 | uname -r | grep '^5' >/dev/null; then |
| 5660 | TCL_LIBS="$TCL_LIBS -R $try" |
| 5661 | fi |
| 5662 | break 3 |
| 5663 | fi |
| 5664 | done |
| 5665 | done |
| 5666 | done |
| 5667 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5668 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5669 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5670 | SKIP_TCL=YES |
| 5671 | fi |
| 5672 | fi |
| 5673 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5674 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5675 | #define FEAT_TCL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5676 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5677 | |
| 5678 | TCL_SRC=if_tcl.c |
| 5679 | TCL_OBJ=objects/if_tcl.o |
| 5680 | TCL_PRO=if_tcl.pro |
| 5681 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 5682 | fi |
| 5683 | fi |
| 5684 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5685 | { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 |
| 5686 | $as_echo "too old; need Tcl version 8.0 or later" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5687 | fi |
| 5688 | fi |
| 5689 | fi |
| 5690 | |
| 5691 | |
| 5692 | |
| 5693 | |
| 5694 | |
| 5695 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5696 | { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 |
| 5697 | $as_echo_n "checking --enable-rubyinterp argument... " >&6; } |
| 5698 | # Check whether --enable-rubyinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5699 | if test "${enable_rubyinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5700 | enableval=$enable_rubyinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5701 | else |
| 5702 | enable_rubyinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5703 | fi |
| 5704 | |
| 5705 | { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 |
| 5706 | $as_echo "$enable_rubyinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5707 | if test "$enable_rubyinterp" = "yes"; then |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 5708 | { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5 |
| 5709 | $as_echo_n "checking --with-ruby-command argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5710 | |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 5711 | # Check whether --with-ruby-command was given. |
| 5712 | if test "${with_ruby_command+set}" = set; then |
| 5713 | withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5 |
| 5714 | $as_echo "$RUBY_CMD" >&6; } |
| 5715 | else |
| 5716 | RUBY_CMD="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5 |
| 5717 | $as_echo "defaulting to $RUBY_CMD" >&6; } |
| 5718 | fi |
| 5719 | |
| 5720 | |
| 5721 | # Extract the first word of "$RUBY_CMD", so it can be a program name with args. |
| 5722 | set dummy $RUBY_CMD; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5723 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5724 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5725 | if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5726 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5727 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5728 | case $vi_cv_path_ruby in |
| 5729 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5730 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 5731 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5732 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5734 | for as_dir in $PATH |
| 5735 | do |
| 5736 | IFS=$as_save_IFS |
| 5737 | test -z "$as_dir" && as_dir=. |
| 5738 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5739 | 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] | 5740 | 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] | 5741 | $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] | 5742 | break 2 |
| 5743 | fi |
| 5744 | done |
| 5745 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5746 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5747 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5748 | ;; |
| 5749 | esac |
| 5750 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5751 | vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5752 | if test -n "$vi_cv_path_ruby"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5753 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 |
| 5754 | $as_echo "$vi_cv_path_ruby" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5755 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5756 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5757 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5758 | fi |
| 5759 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5760 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5761 | if test "X$vi_cv_path_ruby" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5762 | { $as_echo "$as_me:$LINENO: checking Ruby version" >&5 |
| 5763 | $as_echo_n "checking Ruby version... " >&6; } |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 5764 | 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] | 5765 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 5766 | $as_echo "OK" >&6; } |
| 5767 | { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5 |
| 5768 | $as_echo_n "checking Ruby header files... " >&6; } |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 5769 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5770 | if test "X$rubyhdrdir" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5771 | { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 |
| 5772 | $as_echo "$rubyhdrdir" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5773 | RUBY_CFLAGS="-I$rubyhdrdir" |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 5774 | rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'` |
| 5775 | if test -d "$rubyhdrdir/$rubyarch"; then |
| 5776 | RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch" |
| 5777 | fi |
| 5778 | rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'` |
| 5779 | RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5780 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 5781 | if test "X$rubylibs" != "X"; then |
| 5782 | RUBY_LIBS="$rubylibs" |
| 5783 | fi |
| 5784 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 5785 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 5786 | librubyarg="$rubyhdrdir/$librubyarg" |
| 5787 | else |
| 5788 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 5789 | if test -f "$rubylibdir/$librubyarg"; then |
| 5790 | librubyarg="$rubylibdir/$librubyarg" |
| 5791 | elif test "$librubyarg" = "libruby.a"; then |
| 5792 | librubyarg="-lruby" |
| 5793 | else |
| 5794 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 5795 | fi |
| 5796 | fi |
| 5797 | |
| 5798 | if test "X$librubyarg" != "X"; then |
| 5799 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 5800 | fi |
| 5801 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 5802 | if test "X$rubyldflags" != "X"; then |
Bram Moolenaar | 996b6d8 | 2009-07-22 09:17:23 +0000 | [diff] [blame] | 5803 | rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'` |
| 5804 | if test "X$rubyldflags" != "X"; then |
| 5805 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 5806 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5807 | fi |
| 5808 | RUBY_SRC="if_ruby.c" |
| 5809 | RUBY_OBJ="objects/if_ruby.o" |
| 5810 | RUBY_PRO="if_ruby.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5811 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5812 | #define FEAT_RUBY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5813 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5814 | |
| 5815 | else |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 5816 | { $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5 |
| 5817 | $as_echo "not found; disabling Ruby" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5818 | fi |
| 5819 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5820 | { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 |
| 5821 | $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] | 5822 | fi |
| 5823 | fi |
| 5824 | fi |
| 5825 | |
| 5826 | |
| 5827 | |
| 5828 | |
| 5829 | |
| 5830 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5831 | { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 |
| 5832 | $as_echo_n "checking --enable-cscope argument... " >&6; } |
| 5833 | # Check whether --enable-cscope was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5834 | if test "${enable_cscope+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5835 | enableval=$enable_cscope; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5836 | else |
| 5837 | enable_cscope="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5838 | fi |
| 5839 | |
| 5840 | { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5 |
| 5841 | $as_echo "$enable_cscope" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5842 | if test "$enable_cscope" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5843 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5844 | #define FEAT_CSCOPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5845 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5846 | |
| 5847 | fi |
| 5848 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5849 | { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 |
| 5850 | $as_echo_n "checking --enable-workshop argument... " >&6; } |
| 5851 | # Check whether --enable-workshop was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5852 | if test "${enable_workshop+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5853 | enableval=$enable_workshop; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5854 | else |
| 5855 | enable_workshop="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5856 | fi |
| 5857 | |
| 5858 | { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5 |
| 5859 | $as_echo "$enable_workshop" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5860 | if test "$enable_workshop" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5861 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5862 | #define FEAT_SUN_WORKSHOP 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5863 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5864 | |
| 5865 | WORKSHOP_SRC="workshop.c integration.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5866 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5867 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5868 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5869 | if test "${enable_gui-xxx}" = xxx; then |
| 5870 | enable_gui=motif |
| 5871 | fi |
| 5872 | fi |
| 5873 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5874 | { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 |
| 5875 | $as_echo_n "checking --disable-netbeans argument... " >&6; } |
| 5876 | # Check whether --enable-netbeans was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5877 | if test "${enable_netbeans+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5878 | enableval=$enable_netbeans; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5879 | else |
| 5880 | enable_netbeans="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5881 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5882 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5883 | if test "$enable_netbeans" = "yes"; then |
| 5884 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5885 | $as_echo "no" >&6; } |
| 5886 | |
| 5887 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 5888 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5889 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5890 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5891 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5892 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5893 | LIBS="-lsocket $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5894 | cat >conftest.$ac_ext <<_ACEOF |
| 5895 | /* confdefs.h. */ |
| 5896 | _ACEOF |
| 5897 | cat confdefs.h >>conftest.$ac_ext |
| 5898 | cat >>conftest.$ac_ext <<_ACEOF |
| 5899 | /* end confdefs.h. */ |
| 5900 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5901 | /* Override any GCC internal prototype to avoid an error. |
| 5902 | Use char because int might match the return type of a GCC |
| 5903 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5904 | #ifdef __cplusplus |
| 5905 | extern "C" |
| 5906 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5907 | char socket (); |
| 5908 | int |
| 5909 | main () |
| 5910 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5911 | return socket (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5912 | ; |
| 5913 | return 0; |
| 5914 | } |
| 5915 | _ACEOF |
| 5916 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5917 | if { (ac_try="$ac_link" |
| 5918 | case "(($ac_try" in |
| 5919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5920 | *) ac_try_echo=$ac_try;; |
| 5921 | esac |
| 5922 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5923 | $as_echo "$ac_try_echo") >&5 |
| 5924 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5925 | ac_status=$? |
| 5926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5927 | rm -f conftest.er1 |
| 5928 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5930 | (exit $ac_status); } && { |
| 5931 | test -z "$ac_c_werror_flag" || |
| 5932 | test ! -s conftest.err |
| 5933 | } && test -s conftest$ac_exeext && { |
| 5934 | test "$cross_compiling" = yes || |
| 5935 | $as_test_x conftest$ac_exeext |
| 5936 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5937 | ac_cv_lib_socket_socket=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5938 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5939 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5940 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5941 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5942 | ac_cv_lib_socket_socket=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5943 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5944 | |
| 5945 | rm -rf conftest.dSYM |
| 5946 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5947 | conftest$ac_exeext conftest.$ac_ext |
| 5948 | LIBS=$ac_check_lib_save_LIBS |
| 5949 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5950 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 5951 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 5952 | if test "x$ac_cv_lib_socket_socket" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5953 | cat >>confdefs.h <<_ACEOF |
| 5954 | #define HAVE_LIBSOCKET 1 |
| 5955 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5956 | |
| 5957 | LIBS="-lsocket $LIBS" |
| 5958 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5959 | fi |
| 5960 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5961 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5962 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 5963 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5964 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5965 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5966 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5967 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5968 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5969 | cat >conftest.$ac_ext <<_ACEOF |
| 5970 | /* confdefs.h. */ |
| 5971 | _ACEOF |
| 5972 | cat confdefs.h >>conftest.$ac_ext |
| 5973 | cat >>conftest.$ac_ext <<_ACEOF |
| 5974 | /* end confdefs.h. */ |
| 5975 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5976 | /* Override any GCC internal prototype to avoid an error. |
| 5977 | Use char because int might match the return type of a GCC |
| 5978 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5979 | #ifdef __cplusplus |
| 5980 | extern "C" |
| 5981 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5982 | char gethostbyname (); |
| 5983 | int |
| 5984 | main () |
| 5985 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5986 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5987 | ; |
| 5988 | return 0; |
| 5989 | } |
| 5990 | _ACEOF |
| 5991 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5992 | if { (ac_try="$ac_link" |
| 5993 | case "(($ac_try" in |
| 5994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5995 | *) ac_try_echo=$ac_try;; |
| 5996 | esac |
| 5997 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5998 | $as_echo "$ac_try_echo") >&5 |
| 5999 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6000 | ac_status=$? |
| 6001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6002 | rm -f conftest.er1 |
| 6003 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6004 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6005 | (exit $ac_status); } && { |
| 6006 | test -z "$ac_c_werror_flag" || |
| 6007 | test ! -s conftest.err |
| 6008 | } && test -s conftest$ac_exeext && { |
| 6009 | test "$cross_compiling" = yes || |
| 6010 | $as_test_x conftest$ac_exeext |
| 6011 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6012 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6013 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6014 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6015 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6016 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6017 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6018 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6019 | |
| 6020 | rm -rf conftest.dSYM |
| 6021 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6022 | conftest$ac_exeext conftest.$ac_ext |
| 6023 | LIBS=$ac_check_lib_save_LIBS |
| 6024 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6025 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 6026 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6027 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6028 | cat >>confdefs.h <<_ACEOF |
| 6029 | #define HAVE_LIBNSL 1 |
| 6030 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6031 | |
| 6032 | LIBS="-lnsl $LIBS" |
| 6033 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6034 | fi |
| 6035 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6036 | { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 |
| 6037 | $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6038 | cat >conftest.$ac_ext <<_ACEOF |
| 6039 | /* confdefs.h. */ |
| 6040 | _ACEOF |
| 6041 | cat confdefs.h >>conftest.$ac_ext |
| 6042 | cat >>conftest.$ac_ext <<_ACEOF |
| 6043 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6044 | |
| 6045 | #include <stdio.h> |
| 6046 | #include <stdlib.h> |
| 6047 | #include <stdarg.h> |
| 6048 | #include <fcntl.h> |
| 6049 | #include <netdb.h> |
| 6050 | #include <netinet/in.h> |
| 6051 | #include <errno.h> |
| 6052 | #include <sys/types.h> |
| 6053 | #include <sys/socket.h> |
| 6054 | /* Check bitfields */ |
| 6055 | struct nbbuf { |
| 6056 | unsigned int initDone:1; |
| 6057 | ushort signmaplen; |
| 6058 | }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6059 | |
| 6060 | int |
| 6061 | main () |
| 6062 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6063 | |
| 6064 | /* Check creating a socket. */ |
| 6065 | struct sockaddr_in server; |
| 6066 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 6067 | (void)htons(100); |
| 6068 | (void)gethostbyname("microsoft.com"); |
| 6069 | if (errno == ECONNREFUSED) |
| 6070 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6071 | |
| 6072 | ; |
| 6073 | return 0; |
| 6074 | } |
| 6075 | _ACEOF |
| 6076 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6077 | if { (ac_try="$ac_link" |
| 6078 | case "(($ac_try" in |
| 6079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6080 | *) ac_try_echo=$ac_try;; |
| 6081 | esac |
| 6082 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6083 | $as_echo "$ac_try_echo") >&5 |
| 6084 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6085 | ac_status=$? |
| 6086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6087 | rm -f conftest.er1 |
| 6088 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6089 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6090 | (exit $ac_status); } && { |
| 6091 | test -z "$ac_c_werror_flag" || |
| 6092 | test ! -s conftest.err |
| 6093 | } && test -s conftest$ac_exeext && { |
| 6094 | test "$cross_compiling" = yes || |
| 6095 | $as_test_x conftest$ac_exeext |
| 6096 | }; then |
| 6097 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6098 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6099 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6100 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6102 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6103 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6104 | $as_echo "no" >&6; }; enable_netbeans="no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6105 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6106 | |
| 6107 | rm -rf conftest.dSYM |
| 6108 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6109 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6110 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6111 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6112 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6113 | fi |
| 6114 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6115 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6116 | #define FEAT_NETBEANS_INTG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6117 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6118 | |
| 6119 | NETBEANS_SRC="netbeans.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6120 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6121 | NETBEANS_OBJ="objects/netbeans.o" |
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 | fi |
| 6124 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6125 | { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 |
| 6126 | $as_echo_n "checking --enable-sniff argument... " >&6; } |
| 6127 | # Check whether --enable-sniff was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6128 | if test "${enable_sniff+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6129 | enableval=$enable_sniff; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6130 | else |
| 6131 | enable_sniff="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6132 | fi |
| 6133 | |
| 6134 | { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5 |
| 6135 | $as_echo "$enable_sniff" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6136 | if test "$enable_sniff" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6137 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6138 | #define FEAT_SNIFF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6139 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6140 | |
| 6141 | SNIFF_SRC="if_sniff.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6142 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6143 | SNIFF_OBJ="objects/if_sniff.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6144 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6145 | fi |
| 6146 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6147 | { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 |
| 6148 | $as_echo_n "checking --enable-multibyte argument... " >&6; } |
| 6149 | # Check whether --enable-multibyte was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6150 | if test "${enable_multibyte+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6151 | enableval=$enable_multibyte; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6152 | else |
| 6153 | enable_multibyte="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6154 | fi |
| 6155 | |
| 6156 | { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5 |
| 6157 | $as_echo "$enable_multibyte" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6158 | if test "$enable_multibyte" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6159 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6160 | #define FEAT_MBYTE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6161 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6162 | |
| 6163 | fi |
| 6164 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6165 | { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 |
| 6166 | $as_echo_n "checking --enable-hangulinput argument... " >&6; } |
| 6167 | # Check whether --enable-hangulinput was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6168 | if test "${enable_hangulinput+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6169 | enableval=$enable_hangulinput; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6170 | else |
| 6171 | enable_hangulinput="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6172 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6173 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6174 | { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 |
| 6175 | $as_echo "$enable_hangulinput" >&6; } |
| 6176 | |
| 6177 | { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5 |
| 6178 | $as_echo_n "checking --enable-xim argument... " >&6; } |
| 6179 | # Check whether --enable-xim was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6180 | if test "${enable_xim+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6181 | enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5 |
| 6182 | $as_echo "$enable_xim" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6183 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6184 | enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5 |
| 6185 | $as_echo "defaulting to auto" >&6; } |
| 6186 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6187 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6188 | |
| 6189 | { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 |
| 6190 | $as_echo_n "checking --enable-fontset argument... " >&6; } |
| 6191 | # Check whether --enable-fontset was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6192 | if test "${enable_fontset+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6193 | enableval=$enable_fontset; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6194 | else |
| 6195 | enable_fontset="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6196 | fi |
| 6197 | |
| 6198 | { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5 |
| 6199 | $as_echo "$enable_fontset" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6200 | |
| 6201 | test -z "$with_x" && with_x=yes |
| 6202 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 6203 | if test "$with_x" = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6204 | { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 |
| 6205 | $as_echo "defaulting to: don't HAVE_X11" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6206 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6207 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6208 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 6209 | set dummy xmkmf; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6210 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6211 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6212 | if test "${ac_cv_path_xmkmfpath+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6213 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6214 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6215 | case $xmkmfpath in |
| 6216 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6217 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 6218 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6219 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6221 | for as_dir in $PATH |
| 6222 | do |
| 6223 | IFS=$as_save_IFS |
| 6224 | test -z "$as_dir" && as_dir=. |
| 6225 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6226 | 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] | 6227 | ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6228 | $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] | 6229 | break 2 |
| 6230 | fi |
| 6231 | done |
| 6232 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6233 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6234 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6235 | ;; |
| 6236 | esac |
| 6237 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6238 | xmkmfpath=$ac_cv_path_xmkmfpath |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6239 | if test -n "$xmkmfpath"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6240 | { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5 |
| 6241 | $as_echo "$xmkmfpath" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6242 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6243 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6244 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6245 | fi |
| 6246 | |
| 6247 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6248 | |
| 6249 | { $as_echo "$as_me:$LINENO: checking for X" >&5 |
| 6250 | $as_echo_n "checking for X... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6251 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6252 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6253 | # Check whether --with-x was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6254 | if test "${with_x+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6255 | withval=$with_x; |
| 6256 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6257 | |
| 6258 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 6259 | if test "x$with_x" = xno; then |
| 6260 | # The user explicitly disabled X. |
| 6261 | have_x=disabled |
| 6262 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6263 | case $x_includes,$x_libraries in #( |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6264 | *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5 |
| 6265 | $as_echo "$as_me: error: cannot use X directory names containing '" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6266 | { (exit 1); exit 1; }; };; #( |
| 6267 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
| 6268 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6269 | else |
| 6270 | # 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] | 6271 | ac_x_includes=no ac_x_libraries=no |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6272 | rm -f -r conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6273 | if mkdir conftest.dir; then |
| 6274 | cd conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6275 | cat >Imakefile <<'_ACEOF' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6276 | incroot: |
| 6277 | @echo incroot='${INCROOT}' |
| 6278 | usrlibdir: |
| 6279 | @echo usrlibdir='${USRLIBDIR}' |
| 6280 | libdir: |
| 6281 | @echo libdir='${LIBDIR}' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6282 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6283 | 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] | 6284 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6285 | for ac_var in incroot usrlibdir libdir; do |
| 6286 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 6287 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6288 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6289 | for ac_extension in a so sl dylib la dll; do |
| 6290 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 6291 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6292 | ac_im_usrlibdir=$ac_im_libdir; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6293 | fi |
| 6294 | done |
| 6295 | # Screen out bogus values from the imake configuration. They are |
| 6296 | # bogus both because they are the default anyway, and because |
| 6297 | # using them would break gcc on systems where it needs fixed includes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6298 | case $ac_im_incroot in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6299 | /usr/include) ac_x_includes= ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6300 | *) 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] | 6301 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6302 | case $ac_im_usrlibdir in |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6303 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6304 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6305 | esac |
| 6306 | fi |
| 6307 | cd .. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6308 | rm -f -r conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6309 | fi |
| 6310 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6311 | # Standard set of common directories for X headers. |
| 6312 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 6313 | ac_x_header_dirs=' |
| 6314 | /usr/X11/include |
| 6315 | /usr/X11R6/include |
| 6316 | /usr/X11R5/include |
| 6317 | /usr/X11R4/include |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6318 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6319 | /usr/include/X11 |
| 6320 | /usr/include/X11R6 |
| 6321 | /usr/include/X11R5 |
| 6322 | /usr/include/X11R4 |
| 6323 | |
| 6324 | /usr/local/X11/include |
| 6325 | /usr/local/X11R6/include |
| 6326 | /usr/local/X11R5/include |
| 6327 | /usr/local/X11R4/include |
| 6328 | |
| 6329 | /usr/local/include/X11 |
| 6330 | /usr/local/include/X11R6 |
| 6331 | /usr/local/include/X11R5 |
| 6332 | /usr/local/include/X11R4 |
| 6333 | |
| 6334 | /usr/X386/include |
| 6335 | /usr/x386/include |
| 6336 | /usr/XFree86/include/X11 |
| 6337 | |
| 6338 | /usr/include |
| 6339 | /usr/local/include |
| 6340 | /usr/unsupported/include |
| 6341 | /usr/athena/include |
| 6342 | /usr/local/x11r5/include |
| 6343 | /usr/lpp/Xamples/include |
| 6344 | |
| 6345 | /usr/openwin/include |
| 6346 | /usr/openwin/share/include' |
| 6347 | |
| 6348 | if test "$ac_x_includes" = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6349 | # Guess where to find include files, by looking for Xlib.h. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6350 | # First, try using that file with no special directory specified. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6351 | cat >conftest.$ac_ext <<_ACEOF |
| 6352 | /* confdefs.h. */ |
| 6353 | _ACEOF |
| 6354 | cat confdefs.h >>conftest.$ac_ext |
| 6355 | cat >>conftest.$ac_ext <<_ACEOF |
| 6356 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6357 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6358 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6359 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6360 | case "(($ac_try" in |
| 6361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6362 | *) ac_try_echo=$ac_try;; |
| 6363 | esac |
| 6364 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6365 | $as_echo "$ac_try_echo") >&5 |
| 6366 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6367 | ac_status=$? |
| 6368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6369 | rm -f conftest.er1 |
| 6370 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6372 | (exit $ac_status); } >/dev/null && { |
| 6373 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6374 | test ! -s conftest.err |
| 6375 | }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6376 | # We can compile using X headers with no special include directory. |
| 6377 | ac_x_includes= |
| 6378 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6379 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6381 | |
| 6382 | for ac_dir in $ac_x_header_dirs; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6383 | if test -r "$ac_dir/X11/Xlib.h"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6384 | ac_x_includes=$ac_dir |
| 6385 | break |
| 6386 | fi |
| 6387 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6388 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6389 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6390 | rm -f conftest.err conftest.$ac_ext |
| 6391 | fi # $ac_x_includes = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6392 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6393 | if test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6394 | # Check for the libraries. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6395 | # See if we find them without any special options. |
| 6396 | # Don't add to $LIBS permanently. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6397 | ac_save_LIBS=$LIBS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6398 | LIBS="-lX11 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6399 | cat >conftest.$ac_ext <<_ACEOF |
| 6400 | /* confdefs.h. */ |
| 6401 | _ACEOF |
| 6402 | cat confdefs.h >>conftest.$ac_ext |
| 6403 | cat >>conftest.$ac_ext <<_ACEOF |
| 6404 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6405 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6406 | int |
| 6407 | main () |
| 6408 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6409 | XrmInitialize () |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6410 | ; |
| 6411 | return 0; |
| 6412 | } |
| 6413 | _ACEOF |
| 6414 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6415 | if { (ac_try="$ac_link" |
| 6416 | case "(($ac_try" in |
| 6417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6418 | *) ac_try_echo=$ac_try;; |
| 6419 | esac |
| 6420 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6421 | $as_echo "$ac_try_echo") >&5 |
| 6422 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6423 | ac_status=$? |
| 6424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6425 | rm -f conftest.er1 |
| 6426 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6427 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6428 | (exit $ac_status); } && { |
| 6429 | test -z "$ac_c_werror_flag" || |
| 6430 | test ! -s conftest.err |
| 6431 | } && test -s conftest$ac_exeext && { |
| 6432 | test "$cross_compiling" = yes || |
| 6433 | $as_test_x conftest$ac_exeext |
| 6434 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6435 | LIBS=$ac_save_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6436 | # We can link X programs with no special library path. |
| 6437 | ac_x_libraries= |
| 6438 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6439 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6441 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6442 | LIBS=$ac_save_LIBS |
| 6443 | 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] | 6444 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6445 | # 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] | 6446 | for ac_extension in a so sl dylib la dll; do |
| 6447 | if test -r "$ac_dir/libX11.$ac_extension"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6448 | ac_x_libraries=$ac_dir |
| 6449 | break 2 |
| 6450 | fi |
| 6451 | done |
| 6452 | done |
| 6453 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6454 | |
| 6455 | rm -rf conftest.dSYM |
| 6456 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6457 | conftest$ac_exeext conftest.$ac_ext |
| 6458 | fi # $ac_x_libraries = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6459 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6460 | case $ac_x_includes,$ac_x_libraries in #( |
| 6461 | no,* | *,no | *\'*) |
| 6462 | # Didn't find X, or a directory has "'" in its name. |
| 6463 | ac_cv_have_x="have_x=no";; #( |
| 6464 | *) |
| 6465 | # Record where we found X for the cache. |
| 6466 | ac_cv_have_x="have_x=yes\ |
| 6467 | ac_x_includes='$ac_x_includes'\ |
| 6468 | ac_x_libraries='$ac_x_libraries'" |
| 6469 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6470 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6471 | ;; #( |
| 6472 | *) have_x=yes;; |
| 6473 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6474 | eval "$ac_cv_have_x" |
| 6475 | fi # $with_x != no |
| 6476 | |
| 6477 | if test "$have_x" != yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6478 | { $as_echo "$as_me:$LINENO: result: $have_x" >&5 |
| 6479 | $as_echo "$have_x" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6480 | no_x=yes |
| 6481 | else |
| 6482 | # If each of the values was on the command line, it overrides each guess. |
| 6483 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 6484 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 6485 | # Update the cache value to reflect the command line values. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6486 | ac_cv_have_x="have_x=yes\ |
| 6487 | ac_x_includes='$x_includes'\ |
| 6488 | ac_x_libraries='$x_libraries'" |
| 6489 | { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 6490 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6491 | fi |
| 6492 | |
| 6493 | if test "$no_x" = yes; then |
| 6494 | # 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] | 6495 | |
| 6496 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6497 | #define X_DISPLAY_MISSING 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6498 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6499 | |
| 6500 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 6501 | else |
| 6502 | if test -n "$x_includes"; then |
| 6503 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6504 | fi |
| 6505 | |
| 6506 | # It would also be nice to do this for all -L options, not just this one. |
| 6507 | if test -n "$x_libraries"; then |
| 6508 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6509 | # For Solaris; some versions of Sun CC require a space after -R and |
| 6510 | # others require no space. Words are not sufficient . . . . |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6511 | { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 6512 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 6513 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 6514 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 6515 | ac_c_werror_flag=yes |
| 6516 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6517 | /* confdefs.h. */ |
| 6518 | _ACEOF |
| 6519 | cat confdefs.h >>conftest.$ac_ext |
| 6520 | cat >>conftest.$ac_ext <<_ACEOF |
| 6521 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6522 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6523 | int |
| 6524 | main () |
| 6525 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6526 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6527 | ; |
| 6528 | return 0; |
| 6529 | } |
| 6530 | _ACEOF |
| 6531 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6532 | if { (ac_try="$ac_link" |
| 6533 | case "(($ac_try" in |
| 6534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6535 | *) ac_try_echo=$ac_try;; |
| 6536 | esac |
| 6537 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6538 | $as_echo "$ac_try_echo") >&5 |
| 6539 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6540 | ac_status=$? |
| 6541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6542 | rm -f conftest.er1 |
| 6543 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6544 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6545 | (exit $ac_status); } && { |
| 6546 | test -z "$ac_c_werror_flag" || |
| 6547 | test ! -s conftest.err |
| 6548 | } && test -s conftest$ac_exeext && { |
| 6549 | test "$cross_compiling" = yes || |
| 6550 | $as_test_x conftest$ac_exeext |
| 6551 | }; then |
| 6552 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6553 | $as_echo "no" >&6; } |
| 6554 | X_LIBS="$X_LIBS -R$x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6555 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6556 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6558 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6559 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6560 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6561 | /* confdefs.h. */ |
| 6562 | _ACEOF |
| 6563 | cat confdefs.h >>conftest.$ac_ext |
| 6564 | cat >>conftest.$ac_ext <<_ACEOF |
| 6565 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6566 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6567 | int |
| 6568 | main () |
| 6569 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6570 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6571 | ; |
| 6572 | return 0; |
| 6573 | } |
| 6574 | _ACEOF |
| 6575 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6576 | if { (ac_try="$ac_link" |
| 6577 | case "(($ac_try" in |
| 6578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6579 | *) ac_try_echo=$ac_try;; |
| 6580 | esac |
| 6581 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6582 | $as_echo "$ac_try_echo") >&5 |
| 6583 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6584 | ac_status=$? |
| 6585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6586 | rm -f conftest.er1 |
| 6587 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6588 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6589 | (exit $ac_status); } && { |
| 6590 | test -z "$ac_c_werror_flag" || |
| 6591 | test ! -s conftest.err |
| 6592 | } && test -s conftest$ac_exeext && { |
| 6593 | test "$cross_compiling" = yes || |
| 6594 | $as_test_x conftest$ac_exeext |
| 6595 | }; then |
| 6596 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6597 | $as_echo "yes" >&6; } |
| 6598 | X_LIBS="$X_LIBS -R $x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6599 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6600 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6602 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6603 | { $as_echo "$as_me:$LINENO: result: neither works" >&5 |
| 6604 | $as_echo "neither works" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6605 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6606 | |
| 6607 | rm -rf conftest.dSYM |
| 6608 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6609 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6610 | fi |
| 6611 | |
| 6612 | rm -rf conftest.dSYM |
| 6613 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6614 | conftest$ac_exeext conftest.$ac_ext |
| 6615 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 6616 | LIBS=$ac_xsave_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6617 | fi |
| 6618 | |
| 6619 | # Check for system-dependent libraries X programs must link with. |
| 6620 | # Do this before checking for the system-independent R6 libraries |
| 6621 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 6622 | |
| 6623 | if test "$ISC" = yes; then |
| 6624 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 6625 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6626 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 6627 | # libraries were built with DECnet support. And Karl Berry says |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6628 | # the Alpha needs dnet_stub (dnet does not exist). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6629 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 6630 | cat >conftest.$ac_ext <<_ACEOF |
| 6631 | /* confdefs.h. */ |
| 6632 | _ACEOF |
| 6633 | cat confdefs.h >>conftest.$ac_ext |
| 6634 | cat >>conftest.$ac_ext <<_ACEOF |
| 6635 | /* end confdefs.h. */ |
| 6636 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6637 | /* Override any GCC internal prototype to avoid an error. |
| 6638 | Use char because int might match the return type of a GCC |
| 6639 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6640 | #ifdef __cplusplus |
| 6641 | extern "C" |
| 6642 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6643 | char XOpenDisplay (); |
| 6644 | int |
| 6645 | main () |
| 6646 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6647 | return XOpenDisplay (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6648 | ; |
| 6649 | return 0; |
| 6650 | } |
| 6651 | _ACEOF |
| 6652 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6653 | if { (ac_try="$ac_link" |
| 6654 | case "(($ac_try" in |
| 6655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6656 | *) ac_try_echo=$ac_try;; |
| 6657 | esac |
| 6658 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6659 | $as_echo "$ac_try_echo") >&5 |
| 6660 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6661 | ac_status=$? |
| 6662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6663 | rm -f conftest.er1 |
| 6664 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6665 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6666 | (exit $ac_status); } && { |
| 6667 | test -z "$ac_c_werror_flag" || |
| 6668 | test ! -s conftest.err |
| 6669 | } && test -s conftest$ac_exeext && { |
| 6670 | test "$cross_compiling" = yes || |
| 6671 | $as_test_x conftest$ac_exeext |
| 6672 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6673 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6674 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6675 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6676 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6677 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6678 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 6679 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6680 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6681 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6682 | else |
| 6683 | ac_check_lib_save_LIBS=$LIBS |
| 6684 | LIBS="-ldnet $LIBS" |
| 6685 | cat >conftest.$ac_ext <<_ACEOF |
| 6686 | /* confdefs.h. */ |
| 6687 | _ACEOF |
| 6688 | cat confdefs.h >>conftest.$ac_ext |
| 6689 | cat >>conftest.$ac_ext <<_ACEOF |
| 6690 | /* end confdefs.h. */ |
| 6691 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6692 | /* Override any GCC internal prototype to avoid an error. |
| 6693 | Use char because int might match the return type of a GCC |
| 6694 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6695 | #ifdef __cplusplus |
| 6696 | extern "C" |
| 6697 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6698 | char dnet_ntoa (); |
| 6699 | int |
| 6700 | main () |
| 6701 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6702 | return dnet_ntoa (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6703 | ; |
| 6704 | return 0; |
| 6705 | } |
| 6706 | _ACEOF |
| 6707 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6708 | if { (ac_try="$ac_link" |
| 6709 | case "(($ac_try" in |
| 6710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6711 | *) ac_try_echo=$ac_try;; |
| 6712 | esac |
| 6713 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6714 | $as_echo "$ac_try_echo") >&5 |
| 6715 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6716 | ac_status=$? |
| 6717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6718 | rm -f conftest.er1 |
| 6719 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6720 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6721 | (exit $ac_status); } && { |
| 6722 | test -z "$ac_c_werror_flag" || |
| 6723 | test ! -s conftest.err |
| 6724 | } && test -s conftest$ac_exeext && { |
| 6725 | test "$cross_compiling" = yes || |
| 6726 | $as_test_x conftest$ac_exeext |
| 6727 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6728 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 6729 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6730 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6732 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6733 | ac_cv_lib_dnet_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6734 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6735 | |
| 6736 | rm -rf conftest.dSYM |
| 6737 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6738 | conftest$ac_exeext conftest.$ac_ext |
| 6739 | LIBS=$ac_check_lib_save_LIBS |
| 6740 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6741 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 6742 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6743 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6744 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6745 | fi |
| 6746 | |
| 6747 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6748 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 6749 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6750 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6751 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6752 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6753 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6754 | LIBS="-ldnet_stub $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6755 | cat >conftest.$ac_ext <<_ACEOF |
| 6756 | /* confdefs.h. */ |
| 6757 | _ACEOF |
| 6758 | cat confdefs.h >>conftest.$ac_ext |
| 6759 | cat >>conftest.$ac_ext <<_ACEOF |
| 6760 | /* end confdefs.h. */ |
| 6761 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6762 | /* Override any GCC internal prototype to avoid an error. |
| 6763 | Use char because int might match the return type of a GCC |
| 6764 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6765 | #ifdef __cplusplus |
| 6766 | extern "C" |
| 6767 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6768 | char dnet_ntoa (); |
| 6769 | int |
| 6770 | main () |
| 6771 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6772 | return dnet_ntoa (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6773 | ; |
| 6774 | return 0; |
| 6775 | } |
| 6776 | _ACEOF |
| 6777 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6778 | if { (ac_try="$ac_link" |
| 6779 | case "(($ac_try" in |
| 6780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6781 | *) ac_try_echo=$ac_try;; |
| 6782 | esac |
| 6783 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6784 | $as_echo "$ac_try_echo") >&5 |
| 6785 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6786 | ac_status=$? |
| 6787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6788 | rm -f conftest.er1 |
| 6789 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6790 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6791 | (exit $ac_status); } && { |
| 6792 | test -z "$ac_c_werror_flag" || |
| 6793 | test ! -s conftest.err |
| 6794 | } && test -s conftest$ac_exeext && { |
| 6795 | test "$cross_compiling" = yes || |
| 6796 | $as_test_x conftest$ac_exeext |
| 6797 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6798 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6799 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6800 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6801 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6802 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6803 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6804 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6805 | |
| 6806 | rm -rf conftest.dSYM |
| 6807 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6808 | conftest$ac_exeext conftest.$ac_ext |
| 6809 | LIBS=$ac_check_lib_save_LIBS |
| 6810 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6811 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 6812 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6813 | 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] | 6814 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6815 | fi |
| 6816 | |
| 6817 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6818 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6819 | |
| 6820 | rm -rf conftest.dSYM |
| 6821 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6822 | conftest$ac_exeext conftest.$ac_ext |
| 6823 | LIBS="$ac_xsave_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6824 | |
| 6825 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 6826 | # to get the SysV transport functions. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6827 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6828 | # needs -lnsl. |
| 6829 | # The nsl library prevents programs from opening the X display |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6830 | # on Irix 5.2, according to T.E. Dickey. |
| 6831 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 6832 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6833 | { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 6834 | $as_echo_n "checking for gethostbyname... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6835 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6836 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6837 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6838 | cat >conftest.$ac_ext <<_ACEOF |
| 6839 | /* confdefs.h. */ |
| 6840 | _ACEOF |
| 6841 | cat confdefs.h >>conftest.$ac_ext |
| 6842 | cat >>conftest.$ac_ext <<_ACEOF |
| 6843 | /* end confdefs.h. */ |
| 6844 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 6845 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6846 | #define gethostbyname innocuous_gethostbyname |
| 6847 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6848 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6849 | which can conflict with char gethostbyname (); below. |
| 6850 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6851 | <limits.h> exists even on freestanding compilers. */ |
| 6852 | |
| 6853 | #ifdef __STDC__ |
| 6854 | # include <limits.h> |
| 6855 | #else |
| 6856 | # include <assert.h> |
| 6857 | #endif |
| 6858 | |
| 6859 | #undef gethostbyname |
| 6860 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6861 | /* Override any GCC internal prototype to avoid an error. |
| 6862 | Use char because int might match the return type of a GCC |
| 6863 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6864 | #ifdef __cplusplus |
| 6865 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6866 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6867 | char gethostbyname (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6868 | /* The GNU C library defines this for functions which it implements |
| 6869 | to always fail with ENOSYS. Some functions are actually named |
| 6870 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6871 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6872 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6873 | #endif |
| 6874 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6875 | int |
| 6876 | main () |
| 6877 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6878 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6879 | ; |
| 6880 | return 0; |
| 6881 | } |
| 6882 | _ACEOF |
| 6883 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6884 | if { (ac_try="$ac_link" |
| 6885 | case "(($ac_try" in |
| 6886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6887 | *) ac_try_echo=$ac_try;; |
| 6888 | esac |
| 6889 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6890 | $as_echo "$ac_try_echo") >&5 |
| 6891 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6892 | ac_status=$? |
| 6893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6894 | rm -f conftest.er1 |
| 6895 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6896 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6897 | (exit $ac_status); } && { |
| 6898 | test -z "$ac_c_werror_flag" || |
| 6899 | test ! -s conftest.err |
| 6900 | } && test -s conftest$ac_exeext && { |
| 6901 | test "$cross_compiling" = yes || |
| 6902 | $as_test_x conftest$ac_exeext |
| 6903 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6904 | ac_cv_func_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6905 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6906 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6907 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6908 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6909 | ac_cv_func_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6910 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6911 | |
| 6912 | rm -rf conftest.dSYM |
| 6913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6914 | conftest$ac_exeext conftest.$ac_ext |
| 6915 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6916 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 6917 | $as_echo "$ac_cv_func_gethostbyname" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6918 | |
| 6919 | if test $ac_cv_func_gethostbyname = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6920 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 6921 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6922 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6923 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6924 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6925 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6926 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6927 | cat >conftest.$ac_ext <<_ACEOF |
| 6928 | /* confdefs.h. */ |
| 6929 | _ACEOF |
| 6930 | cat confdefs.h >>conftest.$ac_ext |
| 6931 | cat >>conftest.$ac_ext <<_ACEOF |
| 6932 | /* end confdefs.h. */ |
| 6933 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6934 | /* Override any GCC internal prototype to avoid an error. |
| 6935 | Use char because int might match the return type of a GCC |
| 6936 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6937 | #ifdef __cplusplus |
| 6938 | extern "C" |
| 6939 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6940 | char gethostbyname (); |
| 6941 | int |
| 6942 | main () |
| 6943 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6944 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6945 | ; |
| 6946 | return 0; |
| 6947 | } |
| 6948 | _ACEOF |
| 6949 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6950 | if { (ac_try="$ac_link" |
| 6951 | case "(($ac_try" in |
| 6952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6953 | *) ac_try_echo=$ac_try;; |
| 6954 | esac |
| 6955 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6956 | $as_echo "$ac_try_echo") >&5 |
| 6957 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6958 | ac_status=$? |
| 6959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6960 | rm -f conftest.er1 |
| 6961 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6962 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6963 | (exit $ac_status); } && { |
| 6964 | test -z "$ac_c_werror_flag" || |
| 6965 | test ! -s conftest.err |
| 6966 | } && test -s conftest$ac_exeext && { |
| 6967 | test "$cross_compiling" = yes || |
| 6968 | $as_test_x conftest$ac_exeext |
| 6969 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6970 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6971 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6972 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6973 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6974 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6975 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6976 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6977 | |
| 6978 | rm -rf conftest.dSYM |
| 6979 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6980 | conftest$ac_exeext conftest.$ac_ext |
| 6981 | LIBS=$ac_check_lib_save_LIBS |
| 6982 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6983 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 6984 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6985 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6986 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6987 | fi |
| 6988 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6989 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6990 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 6991 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6992 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6993 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6994 | else |
| 6995 | ac_check_lib_save_LIBS=$LIBS |
| 6996 | LIBS="-lbsd $LIBS" |
| 6997 | cat >conftest.$ac_ext <<_ACEOF |
| 6998 | /* confdefs.h. */ |
| 6999 | _ACEOF |
| 7000 | cat confdefs.h >>conftest.$ac_ext |
| 7001 | cat >>conftest.$ac_ext <<_ACEOF |
| 7002 | /* end confdefs.h. */ |
| 7003 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7004 | /* Override any GCC internal prototype to avoid an error. |
| 7005 | Use char because int might match the return type of a GCC |
| 7006 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7007 | #ifdef __cplusplus |
| 7008 | extern "C" |
| 7009 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7010 | char gethostbyname (); |
| 7011 | int |
| 7012 | main () |
| 7013 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7014 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7015 | ; |
| 7016 | return 0; |
| 7017 | } |
| 7018 | _ACEOF |
| 7019 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7020 | if { (ac_try="$ac_link" |
| 7021 | case "(($ac_try" in |
| 7022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7023 | *) ac_try_echo=$ac_try;; |
| 7024 | esac |
| 7025 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7026 | $as_echo "$ac_try_echo") >&5 |
| 7027 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7028 | ac_status=$? |
| 7029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7030 | rm -f conftest.er1 |
| 7031 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7032 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7033 | (exit $ac_status); } && { |
| 7034 | test -z "$ac_c_werror_flag" || |
| 7035 | test ! -s conftest.err |
| 7036 | } && test -s conftest$ac_exeext && { |
| 7037 | test "$cross_compiling" = yes || |
| 7038 | $as_test_x conftest$ac_exeext |
| 7039 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7040 | ac_cv_lib_bsd_gethostbyname=yes |
| 7041 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7042 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7044 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7045 | ac_cv_lib_bsd_gethostbyname=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7046 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7047 | |
| 7048 | rm -rf conftest.dSYM |
| 7049 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7050 | conftest$ac_exeext conftest.$ac_ext |
| 7051 | LIBS=$ac_check_lib_save_LIBS |
| 7052 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7053 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 7054 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7055 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7056 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 7057 | fi |
| 7058 | |
| 7059 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7060 | fi |
| 7061 | |
| 7062 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 7063 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 7064 | # 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] | 7065 | # on later versions), says Simon Leinen: it contains gethostby* |
| 7066 | # variants that don't use the name server (or something). -lsocket |
| 7067 | # must be given before -lnsl if both are needed. We assume that |
| 7068 | # if connect needs -lnsl, so does gethostbyname. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7069 | { $as_echo "$as_me:$LINENO: checking for connect" >&5 |
| 7070 | $as_echo_n "checking for connect... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7071 | if test "${ac_cv_func_connect+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7072 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7073 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7074 | cat >conftest.$ac_ext <<_ACEOF |
| 7075 | /* confdefs.h. */ |
| 7076 | _ACEOF |
| 7077 | cat confdefs.h >>conftest.$ac_ext |
| 7078 | cat >>conftest.$ac_ext <<_ACEOF |
| 7079 | /* end confdefs.h. */ |
| 7080 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 7081 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7082 | #define connect innocuous_connect |
| 7083 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7084 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7085 | which can conflict with char connect (); below. |
| 7086 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7087 | <limits.h> exists even on freestanding compilers. */ |
| 7088 | |
| 7089 | #ifdef __STDC__ |
| 7090 | # include <limits.h> |
| 7091 | #else |
| 7092 | # include <assert.h> |
| 7093 | #endif |
| 7094 | |
| 7095 | #undef connect |
| 7096 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7097 | /* Override any GCC internal prototype to avoid an error. |
| 7098 | Use char because int might match the return type of a GCC |
| 7099 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7100 | #ifdef __cplusplus |
| 7101 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7102 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7103 | char connect (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7104 | /* The GNU C library defines this for functions which it implements |
| 7105 | to always fail with ENOSYS. Some functions are actually named |
| 7106 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7107 | #if defined __stub_connect || defined __stub___connect |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7108 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7109 | #endif |
| 7110 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7111 | int |
| 7112 | main () |
| 7113 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7114 | return connect (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7115 | ; |
| 7116 | return 0; |
| 7117 | } |
| 7118 | _ACEOF |
| 7119 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7120 | if { (ac_try="$ac_link" |
| 7121 | case "(($ac_try" in |
| 7122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7123 | *) ac_try_echo=$ac_try;; |
| 7124 | esac |
| 7125 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7126 | $as_echo "$ac_try_echo") >&5 |
| 7127 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7128 | ac_status=$? |
| 7129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7130 | rm -f conftest.er1 |
| 7131 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7132 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7133 | (exit $ac_status); } && { |
| 7134 | test -z "$ac_c_werror_flag" || |
| 7135 | test ! -s conftest.err |
| 7136 | } && test -s conftest$ac_exeext && { |
| 7137 | test "$cross_compiling" = yes || |
| 7138 | $as_test_x conftest$ac_exeext |
| 7139 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7140 | ac_cv_func_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7141 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7142 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7143 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7144 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7145 | ac_cv_func_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7146 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7147 | |
| 7148 | rm -rf conftest.dSYM |
| 7149 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7150 | conftest$ac_exeext conftest.$ac_ext |
| 7151 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7152 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 7153 | $as_echo "$ac_cv_func_connect" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7154 | |
| 7155 | if test $ac_cv_func_connect = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7156 | { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 7157 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7158 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7159 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7160 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7161 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7162 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7163 | cat >conftest.$ac_ext <<_ACEOF |
| 7164 | /* confdefs.h. */ |
| 7165 | _ACEOF |
| 7166 | cat confdefs.h >>conftest.$ac_ext |
| 7167 | cat >>conftest.$ac_ext <<_ACEOF |
| 7168 | /* end confdefs.h. */ |
| 7169 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7170 | /* Override any GCC internal prototype to avoid an error. |
| 7171 | Use char because int might match the return type of a GCC |
| 7172 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7173 | #ifdef __cplusplus |
| 7174 | extern "C" |
| 7175 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7176 | char connect (); |
| 7177 | int |
| 7178 | main () |
| 7179 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7180 | return connect (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7181 | ; |
| 7182 | return 0; |
| 7183 | } |
| 7184 | _ACEOF |
| 7185 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7186 | if { (ac_try="$ac_link" |
| 7187 | case "(($ac_try" in |
| 7188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7189 | *) ac_try_echo=$ac_try;; |
| 7190 | esac |
| 7191 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7192 | $as_echo "$ac_try_echo") >&5 |
| 7193 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7194 | ac_status=$? |
| 7195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7196 | rm -f conftest.er1 |
| 7197 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7199 | (exit $ac_status); } && { |
| 7200 | test -z "$ac_c_werror_flag" || |
| 7201 | test ! -s conftest.err |
| 7202 | } && test -s conftest$ac_exeext && { |
| 7203 | test "$cross_compiling" = yes || |
| 7204 | $as_test_x conftest$ac_exeext |
| 7205 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7206 | ac_cv_lib_socket_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7207 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7208 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7209 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7210 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7211 | ac_cv_lib_socket_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7212 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7213 | |
| 7214 | rm -rf conftest.dSYM |
| 7215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7216 | conftest$ac_exeext conftest.$ac_ext |
| 7217 | LIBS=$ac_check_lib_save_LIBS |
| 7218 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7219 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 7220 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7221 | if test "x$ac_cv_lib_socket_connect" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7222 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7223 | fi |
| 7224 | |
| 7225 | fi |
| 7226 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7227 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7228 | { $as_echo "$as_me:$LINENO: checking for remove" >&5 |
| 7229 | $as_echo_n "checking for remove... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7230 | if test "${ac_cv_func_remove+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7231 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7232 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7233 | cat >conftest.$ac_ext <<_ACEOF |
| 7234 | /* confdefs.h. */ |
| 7235 | _ACEOF |
| 7236 | cat confdefs.h >>conftest.$ac_ext |
| 7237 | cat >>conftest.$ac_ext <<_ACEOF |
| 7238 | /* end confdefs.h. */ |
| 7239 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 7240 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7241 | #define remove innocuous_remove |
| 7242 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7243 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7244 | which can conflict with char remove (); below. |
| 7245 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7246 | <limits.h> exists even on freestanding compilers. */ |
| 7247 | |
| 7248 | #ifdef __STDC__ |
| 7249 | # include <limits.h> |
| 7250 | #else |
| 7251 | # include <assert.h> |
| 7252 | #endif |
| 7253 | |
| 7254 | #undef remove |
| 7255 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7256 | /* Override any GCC internal prototype to avoid an error. |
| 7257 | Use char because int might match the return type of a GCC |
| 7258 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7259 | #ifdef __cplusplus |
| 7260 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7261 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7262 | char remove (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7263 | /* The GNU C library defines this for functions which it implements |
| 7264 | to always fail with ENOSYS. Some functions are actually named |
| 7265 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7266 | #if defined __stub_remove || defined __stub___remove |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7267 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7268 | #endif |
| 7269 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7270 | int |
| 7271 | main () |
| 7272 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7273 | return remove (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7274 | ; |
| 7275 | return 0; |
| 7276 | } |
| 7277 | _ACEOF |
| 7278 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7279 | if { (ac_try="$ac_link" |
| 7280 | case "(($ac_try" in |
| 7281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7282 | *) ac_try_echo=$ac_try;; |
| 7283 | esac |
| 7284 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7285 | $as_echo "$ac_try_echo") >&5 |
| 7286 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7287 | ac_status=$? |
| 7288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7289 | rm -f conftest.er1 |
| 7290 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7291 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7292 | (exit $ac_status); } && { |
| 7293 | test -z "$ac_c_werror_flag" || |
| 7294 | test ! -s conftest.err |
| 7295 | } && test -s conftest$ac_exeext && { |
| 7296 | test "$cross_compiling" = yes || |
| 7297 | $as_test_x conftest$ac_exeext |
| 7298 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7299 | ac_cv_func_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7300 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7301 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7302 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7303 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7304 | ac_cv_func_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7305 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7306 | |
| 7307 | rm -rf conftest.dSYM |
| 7308 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7309 | conftest$ac_exeext conftest.$ac_ext |
| 7310 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7311 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 7312 | $as_echo "$ac_cv_func_remove" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7313 | |
| 7314 | if test $ac_cv_func_remove = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7315 | { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 7316 | $as_echo_n "checking for remove in -lposix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7317 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7318 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7319 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7320 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7321 | LIBS="-lposix $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7322 | cat >conftest.$ac_ext <<_ACEOF |
| 7323 | /* confdefs.h. */ |
| 7324 | _ACEOF |
| 7325 | cat confdefs.h >>conftest.$ac_ext |
| 7326 | cat >>conftest.$ac_ext <<_ACEOF |
| 7327 | /* end confdefs.h. */ |
| 7328 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7329 | /* Override any GCC internal prototype to avoid an error. |
| 7330 | Use char because int might match the return type of a GCC |
| 7331 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7332 | #ifdef __cplusplus |
| 7333 | extern "C" |
| 7334 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7335 | char remove (); |
| 7336 | int |
| 7337 | main () |
| 7338 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7339 | return remove (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7340 | ; |
| 7341 | return 0; |
| 7342 | } |
| 7343 | _ACEOF |
| 7344 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7345 | if { (ac_try="$ac_link" |
| 7346 | case "(($ac_try" in |
| 7347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7348 | *) ac_try_echo=$ac_try;; |
| 7349 | esac |
| 7350 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7351 | $as_echo "$ac_try_echo") >&5 |
| 7352 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7353 | ac_status=$? |
| 7354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7355 | rm -f conftest.er1 |
| 7356 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7357 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7358 | (exit $ac_status); } && { |
| 7359 | test -z "$ac_c_werror_flag" || |
| 7360 | test ! -s conftest.err |
| 7361 | } && test -s conftest$ac_exeext && { |
| 7362 | test "$cross_compiling" = yes || |
| 7363 | $as_test_x conftest$ac_exeext |
| 7364 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7365 | ac_cv_lib_posix_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7366 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7367 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7368 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7369 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7370 | ac_cv_lib_posix_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7371 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7372 | |
| 7373 | rm -rf conftest.dSYM |
| 7374 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7375 | conftest$ac_exeext conftest.$ac_ext |
| 7376 | LIBS=$ac_check_lib_save_LIBS |
| 7377 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7378 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 7379 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7380 | if test "x$ac_cv_lib_posix_remove" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7381 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7382 | fi |
| 7383 | |
| 7384 | fi |
| 7385 | |
| 7386 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7387 | { $as_echo "$as_me:$LINENO: checking for shmat" >&5 |
| 7388 | $as_echo_n "checking for shmat... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7389 | if test "${ac_cv_func_shmat+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7390 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7391 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7392 | cat >conftest.$ac_ext <<_ACEOF |
| 7393 | /* confdefs.h. */ |
| 7394 | _ACEOF |
| 7395 | cat confdefs.h >>conftest.$ac_ext |
| 7396 | cat >>conftest.$ac_ext <<_ACEOF |
| 7397 | /* end confdefs.h. */ |
| 7398 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 7399 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7400 | #define shmat innocuous_shmat |
| 7401 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7402 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7403 | which can conflict with char shmat (); below. |
| 7404 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7405 | <limits.h> exists even on freestanding compilers. */ |
| 7406 | |
| 7407 | #ifdef __STDC__ |
| 7408 | # include <limits.h> |
| 7409 | #else |
| 7410 | # include <assert.h> |
| 7411 | #endif |
| 7412 | |
| 7413 | #undef shmat |
| 7414 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7415 | /* Override any GCC internal prototype to avoid an error. |
| 7416 | Use char because int might match the return type of a GCC |
| 7417 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7418 | #ifdef __cplusplus |
| 7419 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7420 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7421 | char shmat (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7422 | /* The GNU C library defines this for functions which it implements |
| 7423 | to always fail with ENOSYS. Some functions are actually named |
| 7424 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7425 | #if defined __stub_shmat || defined __stub___shmat |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7426 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7427 | #endif |
| 7428 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7429 | int |
| 7430 | main () |
| 7431 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7432 | return shmat (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7433 | ; |
| 7434 | return 0; |
| 7435 | } |
| 7436 | _ACEOF |
| 7437 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7438 | if { (ac_try="$ac_link" |
| 7439 | case "(($ac_try" in |
| 7440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7441 | *) ac_try_echo=$ac_try;; |
| 7442 | esac |
| 7443 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7444 | $as_echo "$ac_try_echo") >&5 |
| 7445 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7446 | ac_status=$? |
| 7447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7448 | rm -f conftest.er1 |
| 7449 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7450 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7451 | (exit $ac_status); } && { |
| 7452 | test -z "$ac_c_werror_flag" || |
| 7453 | test ! -s conftest.err |
| 7454 | } && test -s conftest$ac_exeext && { |
| 7455 | test "$cross_compiling" = yes || |
| 7456 | $as_test_x conftest$ac_exeext |
| 7457 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7458 | ac_cv_func_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7459 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7460 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7461 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7462 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7463 | ac_cv_func_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7464 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7465 | |
| 7466 | rm -rf conftest.dSYM |
| 7467 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7468 | conftest$ac_exeext conftest.$ac_ext |
| 7469 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7470 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 7471 | $as_echo "$ac_cv_func_shmat" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7472 | |
| 7473 | if test $ac_cv_func_shmat = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7474 | { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 7475 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7476 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7477 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7478 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7479 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7480 | LIBS="-lipc $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7481 | cat >conftest.$ac_ext <<_ACEOF |
| 7482 | /* confdefs.h. */ |
| 7483 | _ACEOF |
| 7484 | cat confdefs.h >>conftest.$ac_ext |
| 7485 | cat >>conftest.$ac_ext <<_ACEOF |
| 7486 | /* end confdefs.h. */ |
| 7487 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7488 | /* Override any GCC internal prototype to avoid an error. |
| 7489 | Use char because int might match the return type of a GCC |
| 7490 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7491 | #ifdef __cplusplus |
| 7492 | extern "C" |
| 7493 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7494 | char shmat (); |
| 7495 | int |
| 7496 | main () |
| 7497 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7498 | return shmat (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7499 | ; |
| 7500 | return 0; |
| 7501 | } |
| 7502 | _ACEOF |
| 7503 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7504 | if { (ac_try="$ac_link" |
| 7505 | case "(($ac_try" in |
| 7506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7507 | *) ac_try_echo=$ac_try;; |
| 7508 | esac |
| 7509 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7510 | $as_echo "$ac_try_echo") >&5 |
| 7511 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7512 | ac_status=$? |
| 7513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7514 | rm -f conftest.er1 |
| 7515 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7516 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7517 | (exit $ac_status); } && { |
| 7518 | test -z "$ac_c_werror_flag" || |
| 7519 | test ! -s conftest.err |
| 7520 | } && test -s conftest$ac_exeext && { |
| 7521 | test "$cross_compiling" = yes || |
| 7522 | $as_test_x conftest$ac_exeext |
| 7523 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7524 | ac_cv_lib_ipc_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7525 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7526 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7527 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7528 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7529 | ac_cv_lib_ipc_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7530 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7531 | |
| 7532 | rm -rf conftest.dSYM |
| 7533 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7534 | conftest$ac_exeext conftest.$ac_ext |
| 7535 | LIBS=$ac_check_lib_save_LIBS |
| 7536 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7537 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 7538 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7539 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7540 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7541 | fi |
| 7542 | |
| 7543 | fi |
| 7544 | fi |
| 7545 | |
| 7546 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7547 | ac_save_LDFLAGS=$LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7548 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 7549 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 7550 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 7551 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 7552 | # These have to be linked with before -lX11, unlike the other |
| 7553 | # libraries we check for below, so use a different variable. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7554 | # John Interrante, Karl Berry |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7555 | { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 7556 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7557 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7558 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7559 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7560 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7561 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7562 | cat >conftest.$ac_ext <<_ACEOF |
| 7563 | /* confdefs.h. */ |
| 7564 | _ACEOF |
| 7565 | cat confdefs.h >>conftest.$ac_ext |
| 7566 | cat >>conftest.$ac_ext <<_ACEOF |
| 7567 | /* end confdefs.h. */ |
| 7568 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7569 | /* Override any GCC internal prototype to avoid an error. |
| 7570 | Use char because int might match the return type of a GCC |
| 7571 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7572 | #ifdef __cplusplus |
| 7573 | extern "C" |
| 7574 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7575 | char IceConnectionNumber (); |
| 7576 | int |
| 7577 | main () |
| 7578 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7579 | return IceConnectionNumber (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7580 | ; |
| 7581 | return 0; |
| 7582 | } |
| 7583 | _ACEOF |
| 7584 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7585 | if { (ac_try="$ac_link" |
| 7586 | case "(($ac_try" in |
| 7587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7588 | *) ac_try_echo=$ac_try;; |
| 7589 | esac |
| 7590 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7591 | $as_echo "$ac_try_echo") >&5 |
| 7592 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7593 | ac_status=$? |
| 7594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7595 | rm -f conftest.er1 |
| 7596 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7597 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7598 | (exit $ac_status); } && { |
| 7599 | test -z "$ac_c_werror_flag" || |
| 7600 | test ! -s conftest.err |
| 7601 | } && test -s conftest$ac_exeext && { |
| 7602 | test "$cross_compiling" = yes || |
| 7603 | $as_test_x conftest$ac_exeext |
| 7604 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7605 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7606 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7607 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7608 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7609 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7610 | ac_cv_lib_ICE_IceConnectionNumber=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7611 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7612 | |
| 7613 | rm -rf conftest.dSYM |
| 7614 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7615 | conftest$ac_exeext conftest.$ac_ext |
| 7616 | LIBS=$ac_check_lib_save_LIBS |
| 7617 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7618 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 7619 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7620 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7621 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7622 | fi |
| 7623 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7624 | LDFLAGS=$ac_save_LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7625 | |
| 7626 | fi |
| 7627 | |
| 7628 | |
| 7629 | if test "$OS390Unix" = "yes"; then |
| 7630 | CFLAGS="$CFLAGS -W c,dll" |
| 7631 | LDFLAGS="$LDFLAGS -W l,dll" |
| 7632 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 7633 | fi |
| 7634 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7635 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7636 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 7637 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7638 | { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 |
| 7639 | $as_echo "Corrected X libraries to $x_libraries" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7640 | X_LIBS="$X_LIBS -L$x_libraries" |
| 7641 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 7642 | uname -r | grep '^5' >/dev/null; then |
| 7643 | X_LIBS="$X_LIBS -R $x_libraries" |
| 7644 | fi |
| 7645 | fi |
| 7646 | |
| 7647 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 7648 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7649 | { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 |
| 7650 | $as_echo "Corrected X includes to $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7651 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 7652 | fi |
| 7653 | |
| 7654 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 7655 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 7656 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 7657 | |
| 7658 | |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 7659 | { $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] | 7660 | $as_echo_n "checking if X11 header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7661 | cflags_save=$CFLAGS |
| 7662 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7663 | cat >conftest.$ac_ext <<_ACEOF |
| 7664 | /* confdefs.h. */ |
| 7665 | _ACEOF |
| 7666 | cat confdefs.h >>conftest.$ac_ext |
| 7667 | cat >>conftest.$ac_ext <<_ACEOF |
| 7668 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7669 | #include <X11/Xlib.h> |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 7670 | #include <X11/Intrinsic.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7671 | int |
| 7672 | main () |
| 7673 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7674 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7675 | ; |
| 7676 | return 0; |
| 7677 | } |
| 7678 | _ACEOF |
| 7679 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7680 | if { (ac_try="$ac_compile" |
| 7681 | case "(($ac_try" in |
| 7682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7683 | *) ac_try_echo=$ac_try;; |
| 7684 | esac |
| 7685 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7686 | $as_echo "$ac_try_echo") >&5 |
| 7687 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7688 | ac_status=$? |
| 7689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7690 | rm -f conftest.er1 |
| 7691 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7692 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7693 | (exit $ac_status); } && { |
| 7694 | test -z "$ac_c_werror_flag" || |
| 7695 | test ! -s conftest.err |
| 7696 | } && test -s conftest.$ac_objext; then |
| 7697 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 7698 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7699 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7700 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7702 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7703 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7704 | $as_echo "no" >&6; }; no_x=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7705 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7706 | |
| 7707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7708 | CFLAGS=$cflags_save |
| 7709 | |
| 7710 | if test "${no_x-no}" = yes; then |
| 7711 | with_x=no |
| 7712 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7713 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7714 | #define HAVE_X11 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7715 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7716 | |
| 7717 | X_LIB="-lXt -lX11"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7718 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7719 | |
| 7720 | ac_save_LDFLAGS="$LDFLAGS" |
| 7721 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 7722 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7723 | { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 7724 | $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7725 | if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7726 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7727 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7728 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7729 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7730 | cat >conftest.$ac_ext <<_ACEOF |
| 7731 | /* confdefs.h. */ |
| 7732 | _ACEOF |
| 7733 | cat confdefs.h >>conftest.$ac_ext |
| 7734 | cat >>conftest.$ac_ext <<_ACEOF |
| 7735 | /* end confdefs.h. */ |
| 7736 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7737 | /* Override any GCC internal prototype to avoid an error. |
| 7738 | Use char because int might match the return type of a GCC |
| 7739 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7740 | #ifdef __cplusplus |
| 7741 | extern "C" |
| 7742 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7743 | char _XdmcpAuthDoIt (); |
| 7744 | int |
| 7745 | main () |
| 7746 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7747 | return _XdmcpAuthDoIt (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7748 | ; |
| 7749 | return 0; |
| 7750 | } |
| 7751 | _ACEOF |
| 7752 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7753 | if { (ac_try="$ac_link" |
| 7754 | case "(($ac_try" in |
| 7755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7756 | *) ac_try_echo=$ac_try;; |
| 7757 | esac |
| 7758 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7759 | $as_echo "$ac_try_echo") >&5 |
| 7760 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7761 | ac_status=$? |
| 7762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7763 | rm -f conftest.er1 |
| 7764 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7765 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7766 | (exit $ac_status); } && { |
| 7767 | test -z "$ac_c_werror_flag" || |
| 7768 | test ! -s conftest.err |
| 7769 | } && test -s conftest$ac_exeext && { |
| 7770 | test "$cross_compiling" = yes || |
| 7771 | $as_test_x conftest$ac_exeext |
| 7772 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7773 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7774 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7775 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7776 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7777 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7778 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7779 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7780 | |
| 7781 | rm -rf conftest.dSYM |
| 7782 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7783 | conftest$ac_exeext conftest.$ac_ext |
| 7784 | LIBS=$ac_check_lib_save_LIBS |
| 7785 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7786 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 |
| 7787 | $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7788 | if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7789 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7790 | fi |
| 7791 | |
| 7792 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7793 | { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 |
| 7794 | $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7795 | if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7796 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7797 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7798 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7799 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7800 | cat >conftest.$ac_ext <<_ACEOF |
| 7801 | /* confdefs.h. */ |
| 7802 | _ACEOF |
| 7803 | cat confdefs.h >>conftest.$ac_ext |
| 7804 | cat >>conftest.$ac_ext <<_ACEOF |
| 7805 | /* end confdefs.h. */ |
| 7806 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7807 | /* Override any GCC internal prototype to avoid an error. |
| 7808 | Use char because int might match the return type of a GCC |
| 7809 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7810 | #ifdef __cplusplus |
| 7811 | extern "C" |
| 7812 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7813 | char IceOpenConnection (); |
| 7814 | int |
| 7815 | main () |
| 7816 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7817 | return IceOpenConnection (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7818 | ; |
| 7819 | return 0; |
| 7820 | } |
| 7821 | _ACEOF |
| 7822 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7823 | if { (ac_try="$ac_link" |
| 7824 | case "(($ac_try" in |
| 7825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7826 | *) ac_try_echo=$ac_try;; |
| 7827 | esac |
| 7828 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7829 | $as_echo "$ac_try_echo") >&5 |
| 7830 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7831 | ac_status=$? |
| 7832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7833 | rm -f conftest.er1 |
| 7834 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7835 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7836 | (exit $ac_status); } && { |
| 7837 | test -z "$ac_c_werror_flag" || |
| 7838 | test ! -s conftest.err |
| 7839 | } && test -s conftest$ac_exeext && { |
| 7840 | test "$cross_compiling" = yes || |
| 7841 | $as_test_x conftest$ac_exeext |
| 7842 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7843 | ac_cv_lib_ICE_IceOpenConnection=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7844 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7845 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7846 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7847 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7848 | ac_cv_lib_ICE_IceOpenConnection=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7849 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7850 | |
| 7851 | rm -rf conftest.dSYM |
| 7852 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7853 | conftest$ac_exeext conftest.$ac_ext |
| 7854 | LIBS=$ac_check_lib_save_LIBS |
| 7855 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7856 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 7857 | $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7858 | if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7859 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7860 | fi |
| 7861 | |
| 7862 | |
| 7863 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7864 | { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 7865 | $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7866 | if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7867 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7868 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7869 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7870 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7871 | cat >conftest.$ac_ext <<_ACEOF |
| 7872 | /* confdefs.h. */ |
| 7873 | _ACEOF |
| 7874 | cat confdefs.h >>conftest.$ac_ext |
| 7875 | cat >>conftest.$ac_ext <<_ACEOF |
| 7876 | /* end confdefs.h. */ |
| 7877 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7878 | /* Override any GCC internal prototype to avoid an error. |
| 7879 | Use char because int might match the return type of a GCC |
| 7880 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7881 | #ifdef __cplusplus |
| 7882 | extern "C" |
| 7883 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7884 | char XpmCreatePixmapFromData (); |
| 7885 | int |
| 7886 | main () |
| 7887 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7888 | return XpmCreatePixmapFromData (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7889 | ; |
| 7890 | return 0; |
| 7891 | } |
| 7892 | _ACEOF |
| 7893 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7894 | if { (ac_try="$ac_link" |
| 7895 | case "(($ac_try" in |
| 7896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7897 | *) ac_try_echo=$ac_try;; |
| 7898 | esac |
| 7899 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7900 | $as_echo "$ac_try_echo") >&5 |
| 7901 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7902 | ac_status=$? |
| 7903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7904 | rm -f conftest.er1 |
| 7905 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7906 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7907 | (exit $ac_status); } && { |
| 7908 | test -z "$ac_c_werror_flag" || |
| 7909 | test ! -s conftest.err |
| 7910 | } && test -s conftest$ac_exeext && { |
| 7911 | test "$cross_compiling" = yes || |
| 7912 | $as_test_x conftest$ac_exeext |
| 7913 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7914 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7915 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7916 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7917 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7918 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7919 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7920 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7921 | |
| 7922 | rm -rf conftest.dSYM |
| 7923 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7924 | conftest$ac_exeext conftest.$ac_ext |
| 7925 | LIBS=$ac_check_lib_save_LIBS |
| 7926 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7927 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 7928 | $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7929 | if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7930 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7931 | fi |
| 7932 | |
| 7933 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7934 | { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 |
| 7935 | $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] | 7936 | cflags_save=$CFLAGS |
| 7937 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7938 | cat >conftest.$ac_ext <<_ACEOF |
| 7939 | /* confdefs.h. */ |
| 7940 | _ACEOF |
| 7941 | cat confdefs.h >>conftest.$ac_ext |
| 7942 | cat >>conftest.$ac_ext <<_ACEOF |
| 7943 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7944 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7945 | int |
| 7946 | main () |
| 7947 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7948 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7949 | ; |
| 7950 | return 0; |
| 7951 | } |
| 7952 | _ACEOF |
| 7953 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7954 | if { (ac_try="$ac_compile" |
| 7955 | case "(($ac_try" in |
| 7956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7957 | *) ac_try_echo=$ac_try;; |
| 7958 | esac |
| 7959 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7960 | $as_echo "$ac_try_echo") >&5 |
| 7961 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7962 | ac_status=$? |
| 7963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7964 | rm -f conftest.er1 |
| 7965 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7966 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7967 | (exit $ac_status); } && { |
| 7968 | test -z "$ac_c_werror_flag" || |
| 7969 | test ! -s conftest.err |
| 7970 | } && test -s conftest.$ac_objext; then |
| 7971 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7972 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7973 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7974 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7976 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7977 | CFLAGS="$CFLAGS -Wno-implicit-int" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7978 | cat >conftest.$ac_ext <<_ACEOF |
| 7979 | /* confdefs.h. */ |
| 7980 | _ACEOF |
| 7981 | cat confdefs.h >>conftest.$ac_ext |
| 7982 | cat >>conftest.$ac_ext <<_ACEOF |
| 7983 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7984 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7985 | int |
| 7986 | main () |
| 7987 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7988 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7989 | ; |
| 7990 | return 0; |
| 7991 | } |
| 7992 | _ACEOF |
| 7993 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7994 | if { (ac_try="$ac_compile" |
| 7995 | case "(($ac_try" in |
| 7996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7997 | *) ac_try_echo=$ac_try;; |
| 7998 | esac |
| 7999 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8000 | $as_echo "$ac_try_echo") >&5 |
| 8001 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8002 | ac_status=$? |
| 8003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8004 | rm -f conftest.er1 |
| 8005 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8006 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8007 | (exit $ac_status); } && { |
| 8008 | test -z "$ac_c_werror_flag" || |
| 8009 | test ! -s conftest.err |
| 8010 | } && test -s conftest.$ac_objext; then |
| 8011 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8012 | $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8013 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8014 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8016 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8017 | { $as_echo "$as_me:$LINENO: result: test failed" >&5 |
| 8018 | $as_echo "test failed" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8019 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8020 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8021 | |
| 8022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8023 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8024 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8025 | |
| 8026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8027 | CFLAGS=$cflags_save |
| 8028 | |
| 8029 | LDFLAGS="$ac_save_LDFLAGS" |
| 8030 | |
Bram Moolenaar | 4bdbbf7 | 2009-05-21 21:27:43 +0000 | [diff] [blame] | 8031 | { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5 |
| 8032 | $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } |
| 8033 | if test "${ac_cv_small_wchar_t+set}" = set; then |
| 8034 | $as_echo_n "(cached) " >&6 |
| 8035 | else |
| 8036 | if test "$cross_compiling" = yes; then |
| 8037 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 8038 | $as_echo "$as_me: error: failed to compile test program" >&2;} |
| 8039 | { (exit 1); exit 1; }; } |
| 8040 | else |
| 8041 | cat >conftest.$ac_ext <<_ACEOF |
| 8042 | /* confdefs.h. */ |
| 8043 | _ACEOF |
| 8044 | cat confdefs.h >>conftest.$ac_ext |
| 8045 | cat >>conftest.$ac_ext <<_ACEOF |
| 8046 | /* end confdefs.h. */ |
| 8047 | |
| 8048 | #include <X11/Xlib.h> |
| 8049 | #if STDC_HEADERS |
| 8050 | # include <stdlib.h> |
| 8051 | # include <stddef.h> |
| 8052 | #endif |
| 8053 | main() |
| 8054 | { |
| 8055 | if (sizeof(wchar_t) <= 2) |
| 8056 | exit(1); |
| 8057 | exit(0); |
| 8058 | } |
| 8059 | _ACEOF |
| 8060 | rm -f conftest$ac_exeext |
| 8061 | if { (ac_try="$ac_link" |
| 8062 | case "(($ac_try" in |
| 8063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8064 | *) ac_try_echo=$ac_try;; |
| 8065 | esac |
| 8066 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8067 | $as_echo "$ac_try_echo") >&5 |
| 8068 | (eval "$ac_link") 2>&5 |
| 8069 | ac_status=$? |
| 8070 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8071 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8072 | { (case "(($ac_try" in |
| 8073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8074 | *) ac_try_echo=$ac_try;; |
| 8075 | esac |
| 8076 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8077 | $as_echo "$ac_try_echo") >&5 |
| 8078 | (eval "$ac_try") 2>&5 |
| 8079 | ac_status=$? |
| 8080 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8081 | (exit $ac_status); }; }; then |
| 8082 | ac_cv_small_wchar_t="no" |
| 8083 | else |
| 8084 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8085 | $as_echo "$as_me: failed program was:" >&5 |
| 8086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8087 | |
| 8088 | ( exit $ac_status ) |
| 8089 | ac_cv_small_wchar_t="yes" |
| 8090 | fi |
| 8091 | rm -rf conftest.dSYM |
| 8092 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8093 | fi |
| 8094 | |
| 8095 | |
| 8096 | fi |
| 8097 | |
| 8098 | { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5 |
| 8099 | $as_echo "$ac_cv_small_wchar_t" >&6; } |
| 8100 | if test "x$ac_cv_small_wchar_t" = "xyes" ; then |
| 8101 | cat >>confdefs.h <<\_ACEOF |
| 8102 | #define SMALL_WCHAR_T 1 |
| 8103 | _ACEOF |
| 8104 | |
| 8105 | fi |
| 8106 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8107 | fi |
| 8108 | fi |
| 8109 | |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 8110 | 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] | 8111 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8112 | { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5 |
| 8113 | $as_echo_n "checking --enable-gui argument... " >&6; } |
| 8114 | # Check whether --enable-gui was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8115 | if test "${enable_gui+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8116 | enableval=$enable_gui; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8117 | else |
| 8118 | enable_gui="auto" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8119 | fi |
| 8120 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8121 | |
| 8122 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 8123 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 8124 | |
| 8125 | SKIP_GTK=YES |
| 8126 | SKIP_GTK2=YES |
| 8127 | SKIP_GNOME=YES |
| 8128 | SKIP_MOTIF=YES |
| 8129 | SKIP_ATHENA=YES |
| 8130 | SKIP_NEXTAW=YES |
| 8131 | SKIP_PHOTON=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8132 | SKIP_CARBON=YES |
| 8133 | GUITYPE=NONE |
| 8134 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8135 | if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8136 | SKIP_PHOTON= |
| 8137 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8138 | no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8139 | $as_echo "no GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8140 | SKIP_PHOTON=YES ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8141 | yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 8142 | $as_echo "yes - automatic GUI support" >&6; } ;; |
| 8143 | auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 8144 | $as_echo "auto - automatic GUI support" >&6; } ;; |
| 8145 | photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5 |
| 8146 | $as_echo "Photon GUI support" >&6; } ;; |
| 8147 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8148 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8149 | SKIP_PHOTON=YES ;; |
| 8150 | esac |
| 8151 | |
| 8152 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 8153 | SKIP_CARBON= |
| 8154 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8155 | no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8156 | $as_echo "no GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8157 | SKIP_CARBON=YES ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8158 | yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 8159 | $as_echo "yes - automatic GUI support" >&6; } ;; |
| 8160 | auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 8161 | $as_echo "auto - automatic GUI support" >&6; } ;; |
| 8162 | carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5 |
| 8163 | $as_echo "Carbon GUI support" >&6; } ;; |
| 8164 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8165 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8166 | SKIP_CARBON=YES ;; |
| 8167 | esac |
| 8168 | |
| 8169 | else |
| 8170 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8171 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8172 | no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8173 | $as_echo "no GUI support" >&6; } ;; |
| 8174 | yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 |
| 8175 | $as_echo "yes/auto - automatic GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8176 | SKIP_GTK= |
| 8177 | SKIP_GTK2= |
| 8178 | SKIP_GNOME= |
| 8179 | SKIP_MOTIF= |
| 8180 | SKIP_ATHENA= |
| 8181 | SKIP_NEXTAW= |
| 8182 | SKIP_CARBON=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8183 | gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 |
| 8184 | $as_echo "GTK+ 1.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8185 | SKIP_GTK=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8186 | gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 |
| 8187 | $as_echo "GTK+ 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8188 | SKIP_GTK= |
| 8189 | SKIP_GTK2=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8190 | gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 |
| 8191 | $as_echo "GNOME 1.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8192 | SKIP_GNOME= |
| 8193 | SKIP_GTK=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8194 | gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 |
| 8195 | $as_echo "GNOME 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8196 | SKIP_GNOME= |
| 8197 | SKIP_GTK= |
| 8198 | SKIP_GTK2=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8199 | motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5 |
| 8200 | $as_echo "Motif GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8201 | SKIP_MOTIF=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8202 | athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5 |
| 8203 | $as_echo "Athena GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8204 | SKIP_ATHENA=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8205 | nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 |
| 8206 | $as_echo "neXtaw GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8207 | SKIP_NEXTAW=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8208 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8209 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8210 | esac |
| 8211 | |
| 8212 | fi |
| 8213 | |
| 8214 | 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] | 8215 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 |
| 8216 | $as_echo_n "checking whether or not to look for GTK... " >&6; } |
| 8217 | # Check whether --enable-gtk-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8218 | if test "${enable_gtk_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8219 | enableval=$enable_gtk_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8220 | else |
| 8221 | enable_gtk_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8222 | fi |
| 8223 | |
| 8224 | { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 |
| 8225 | $as_echo "$enable_gtk_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8226 | if test "x$enable_gtk_check" = "xno"; then |
| 8227 | SKIP_GTK=YES |
| 8228 | SKIP_GNOME=YES |
| 8229 | fi |
| 8230 | fi |
| 8231 | |
| 8232 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 8233 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8234 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 |
| 8235 | $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } |
| 8236 | # Check whether --enable-gtk2-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8237 | if test "${enable_gtk2_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8238 | enableval=$enable_gtk2_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8239 | else |
| 8240 | enable_gtk2_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8241 | fi |
| 8242 | |
| 8243 | { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 |
| 8244 | $as_echo "$enable_gtk2_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8245 | if test "x$enable_gtk2_check" = "xno"; then |
| 8246 | SKIP_GTK2=YES |
| 8247 | fi |
| 8248 | fi |
| 8249 | |
| 8250 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 8251 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8252 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 |
| 8253 | $as_echo_n "checking whether or not to look for GNOME... " >&6; } |
| 8254 | # Check whether --enable-gnome-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8255 | if test "${enable_gnome_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8256 | enableval=$enable_gnome_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8257 | else |
| 8258 | enable_gnome_check="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8259 | fi |
| 8260 | |
| 8261 | { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 |
| 8262 | $as_echo "$enable_gnome_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8263 | if test "x$enable_gnome_check" = "xno"; then |
| 8264 | SKIP_GNOME=YES |
| 8265 | fi |
| 8266 | fi |
| 8267 | |
| 8268 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8269 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 |
| 8270 | $as_echo_n "checking whether or not to look for Motif... " >&6; } |
| 8271 | # Check whether --enable-motif-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8272 | if test "${enable_motif_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8273 | enableval=$enable_motif_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8274 | else |
| 8275 | enable_motif_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8276 | fi |
| 8277 | |
| 8278 | { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5 |
| 8279 | $as_echo "$enable_motif_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8280 | if test "x$enable_motif_check" = "xno"; then |
| 8281 | SKIP_MOTIF=YES |
| 8282 | fi |
| 8283 | fi |
| 8284 | |
| 8285 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8286 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 |
| 8287 | $as_echo_n "checking whether or not to look for Athena... " >&6; } |
| 8288 | # Check whether --enable-athena-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8289 | if test "${enable_athena_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8290 | enableval=$enable_athena_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8291 | else |
| 8292 | enable_athena_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8293 | fi |
| 8294 | |
| 8295 | { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5 |
| 8296 | $as_echo "$enable_athena_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8297 | if test "x$enable_athena_check" = "xno"; then |
| 8298 | SKIP_ATHENA=YES |
| 8299 | fi |
| 8300 | fi |
| 8301 | |
| 8302 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8303 | { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 |
| 8304 | $as_echo_n "checking whether or not to look for neXtaw... " >&6; } |
| 8305 | # Check whether --enable-nextaw-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8306 | if test "${enable_nextaw_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8307 | enableval=$enable_nextaw_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8308 | else |
| 8309 | enable_nextaw_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8310 | fi |
| 8311 | |
| 8312 | { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 |
| 8313 | $as_echo "$enable_nextaw_check" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8314 | if test "x$enable_nextaw_check" = "xno"; then |
| 8315 | SKIP_NEXTAW=YES |
| 8316 | fi |
| 8317 | fi |
| 8318 | |
| 8319 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8320 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 |
| 8321 | $as_echo_n "checking whether or not to look for Carbon... " >&6; } |
| 8322 | # Check whether --enable-carbon-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8323 | if test "${enable_carbon_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8324 | enableval=$enable_carbon_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8325 | else |
| 8326 | enable_carbon_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8327 | fi |
| 8328 | |
| 8329 | { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 |
| 8330 | $as_echo "$enable_carbon_check" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8331 | if test "x$enable_carbon_check" = "xno"; then |
| 8332 | SKIP_CARBON=YES |
| 8333 | fi |
| 8334 | fi |
| 8335 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 8336 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8337 | 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] | 8338 | { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5 |
| 8339 | $as_echo_n "checking for Carbon GUI... " >&6; } |
| 8340 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8341 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8342 | GUITYPE=CARBONGUI |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 8343 | if test "$VIMNAME" = "vim"; then |
| 8344 | VIMNAME=Vim |
| 8345 | fi |
Bram Moolenaar | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 8346 | |
| 8347 | if test x$prefix = xNONE; then |
| 8348 | prefix=/Applications |
| 8349 | fi |
| 8350 | |
| 8351 | datadir='${prefix}/Vim.app/Contents/Resources' |
| 8352 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8353 | SKIP_GTK=YES; |
| 8354 | SKIP_GTK2=YES; |
| 8355 | SKIP_GNOME=YES; |
| 8356 | SKIP_MOTIF=YES; |
| 8357 | SKIP_ATHENA=YES; |
| 8358 | SKIP_NEXTAW=YES; |
| 8359 | SKIP_PHOTON=YES; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8360 | SKIP_CARBON=YES |
| 8361 | fi |
| 8362 | |
| 8363 | |
| 8364 | |
| 8365 | |
| 8366 | |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8371 | if test -z "$SKIP_GTK"; then |
| 8372 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8373 | { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
| 8374 | $as_echo_n "checking --with-gtk-prefix argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8375 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8376 | # Check whether --with-gtk-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8377 | if test "${with_gtk_prefix+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8378 | withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8379 | $as_echo "$gtk_config_prefix" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8380 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8381 | gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8382 | $as_echo "no" >&6; } |
| 8383 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8384 | |
| 8385 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8386 | { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
| 8387 | $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; } |
| 8388 | |
| 8389 | # Check whether --with-gtk-exec-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8390 | if test "${with_gtk_exec_prefix+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8391 | withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8392 | $as_echo "$gtk_config_prefix" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8393 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8394 | gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8395 | $as_echo "no" >&6; } |
| 8396 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8397 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8398 | |
| 8399 | { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
| 8400 | $as_echo_n "checking --disable-gtktest argument... " >&6; } |
| 8401 | # Check whether --enable-gtktest was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8402 | if test "${enable_gtktest+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8403 | enableval=$enable_gtktest; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8404 | else |
| 8405 | enable_gtktest=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8406 | fi |
| 8407 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8408 | if test "x$enable_gtktest" = "xyes" ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8409 | { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
| 8410 | $as_echo "gtk test enabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8411 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8412 | { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
| 8413 | $as_echo "gtk test disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8414 | fi |
| 8415 | |
| 8416 | if test "x$gtk_config_prefix" != "x" ; then |
| 8417 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 8418 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 8419 | fi |
| 8420 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 8421 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 8422 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 8423 | fi |
| 8424 | if test "X$GTK_CONFIG" = "X"; then |
| 8425 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 8426 | set dummy gtk-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8427 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8428 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8429 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8430 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8431 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8432 | case $GTK_CONFIG in |
| 8433 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8434 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 8435 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8436 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8438 | for as_dir in $PATH |
| 8439 | do |
| 8440 | IFS=$as_save_IFS |
| 8441 | test -z "$as_dir" && as_dir=. |
| 8442 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8443 | 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] | 8444 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8445 | $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] | 8446 | break 2 |
| 8447 | fi |
| 8448 | done |
| 8449 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8450 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8451 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8452 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 8453 | ;; |
| 8454 | esac |
| 8455 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8456 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8457 | if test -n "$GTK_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8458 | { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
| 8459 | $as_echo "$GTK_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8460 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8461 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8462 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8463 | fi |
| 8464 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8465 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8466 | if test "X$GTK_CONFIG" = "Xno"; then |
| 8467 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 8468 | set dummy gtk12-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8469 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8470 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8471 | if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8472 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8473 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8474 | case $GTK12_CONFIG in |
| 8475 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8476 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 8477 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8478 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8480 | for as_dir in $PATH |
| 8481 | do |
| 8482 | IFS=$as_save_IFS |
| 8483 | test -z "$as_dir" && as_dir=. |
| 8484 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8485 | 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] | 8486 | ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8487 | $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] | 8488 | break 2 |
| 8489 | fi |
| 8490 | done |
| 8491 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8492 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8493 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8494 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 8495 | ;; |
| 8496 | esac |
| 8497 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8498 | GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8499 | if test -n "$GTK12_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8500 | { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
| 8501 | $as_echo "$GTK12_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8502 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8503 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8504 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8505 | fi |
| 8506 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8507 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8508 | GTK_CONFIG="$GTK12_CONFIG" |
| 8509 | fi |
| 8510 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8511 | { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
| 8512 | $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8513 | fi |
| 8514 | if test "X$PKG_CONFIG" = "X"; then |
| 8515 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8516 | set dummy pkg-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8517 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8518 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8519 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8520 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8521 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8522 | case $PKG_CONFIG in |
| 8523 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8524 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8525 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8526 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8528 | for as_dir in $PATH |
| 8529 | do |
| 8530 | IFS=$as_save_IFS |
| 8531 | test -z "$as_dir" && as_dir=. |
| 8532 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8533 | 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] | 8534 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8535 | $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] | 8536 | break 2 |
| 8537 | fi |
| 8538 | done |
| 8539 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8540 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8541 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8542 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 8543 | ;; |
| 8544 | esac |
| 8545 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8546 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8547 | if test -n "$PKG_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8548 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 8549 | $as_echo "$PKG_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8550 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8551 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8552 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8553 | fi |
| 8554 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8555 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8556 | fi |
| 8557 | |
| 8558 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 8559 | if test "X$SKIP_GTK2" != "XYES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8560 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8561 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8562 | { |
| 8563 | min_gtk_version=2.2.0 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8564 | { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8565 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8566 | no_gtk="" |
| 8567 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8568 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8569 | { |
| 8570 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8571 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8572 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8573 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8574 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8575 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8576 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8577 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8578 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8579 | } |
| 8580 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8581 | { |
| 8582 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8583 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8584 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8585 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8586 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8587 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8588 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8589 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8590 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8591 | } |
| 8592 | else |
| 8593 | no_gtk=yes |
| 8594 | fi |
| 8595 | |
| 8596 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8597 | { |
| 8598 | ac_save_CFLAGS="$CFLAGS" |
| 8599 | ac_save_LIBS="$LIBS" |
| 8600 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8601 | LIBS="$LIBS $GTK_LIBS" |
| 8602 | |
| 8603 | rm -f conf.gtktest |
| 8604 | if test "$cross_compiling" = yes; then |
| 8605 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8606 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8607 | cat >conftest.$ac_ext <<_ACEOF |
| 8608 | /* confdefs.h. */ |
| 8609 | _ACEOF |
| 8610 | cat confdefs.h >>conftest.$ac_ext |
| 8611 | cat >>conftest.$ac_ext <<_ACEOF |
| 8612 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8613 | |
| 8614 | #include <gtk/gtk.h> |
| 8615 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8616 | #if STDC_HEADERS |
| 8617 | # include <stdlib.h> |
| 8618 | # include <stddef.h> |
| 8619 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8620 | |
| 8621 | int |
| 8622 | main () |
| 8623 | { |
| 8624 | int major, minor, micro; |
| 8625 | char *tmp_version; |
| 8626 | |
| 8627 | system ("touch conf.gtktest"); |
| 8628 | |
| 8629 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8630 | tmp_version = g_strdup("$min_gtk_version"); |
| 8631 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8632 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8633 | exit(1); |
| 8634 | } |
| 8635 | |
| 8636 | if ((gtk_major_version > major) || |
| 8637 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8638 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8639 | (gtk_micro_version >= micro))) |
| 8640 | { |
| 8641 | return 0; |
| 8642 | } |
| 8643 | return 1; |
| 8644 | } |
| 8645 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8646 | _ACEOF |
| 8647 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8648 | if { (ac_try="$ac_link" |
| 8649 | case "(($ac_try" in |
| 8650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8651 | *) ac_try_echo=$ac_try;; |
| 8652 | esac |
| 8653 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8654 | $as_echo "$ac_try_echo") >&5 |
| 8655 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8656 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8658 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8659 | { (case "(($ac_try" in |
| 8660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8661 | *) ac_try_echo=$ac_try;; |
| 8662 | esac |
| 8663 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8664 | $as_echo "$ac_try_echo") >&5 |
| 8665 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8666 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8667 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8668 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8669 | : |
| 8670 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8671 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8672 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8673 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8674 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8675 | ( exit $ac_status ) |
| 8676 | no_gtk=yes |
| 8677 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8678 | rm -rf conftest.dSYM |
| 8679 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8680 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8681 | |
| 8682 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8683 | CFLAGS="$ac_save_CFLAGS" |
| 8684 | LIBS="$ac_save_LIBS" |
| 8685 | } |
| 8686 | fi |
| 8687 | if test "x$no_gtk" = x ; then |
| 8688 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8689 | { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8690 | $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8691 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8692 | { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8693 | $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8694 | fi |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8695 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 8696 | GTK_LIBNAME="$GTK_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8697 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8698 | else |
| 8699 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8700 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8701 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8702 | GTK_CFLAGS="" |
| 8703 | GTK_LIBS="" |
| 8704 | : |
| 8705 | } |
| 8706 | fi |
| 8707 | } |
| 8708 | else |
| 8709 | GTK_CFLAGS="" |
| 8710 | GTK_LIBS="" |
| 8711 | : |
| 8712 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8713 | |
| 8714 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8715 | rm -f conf.gtktest |
| 8716 | |
| 8717 | if test "x$GTK_CFLAGS" != "x"; then |
| 8718 | SKIP_ATHENA=YES |
| 8719 | SKIP_NEXTAW=YES |
| 8720 | SKIP_MOTIF=YES |
| 8721 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8722 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8723 | fi |
| 8724 | fi |
| 8725 | |
| 8726 | if test "x$GUITYPE" != "xGTK"; then |
| 8727 | SKIP_GTK2=YES |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8728 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8729 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8730 | { |
| 8731 | min_gtk_version=1.1.16 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8732 | { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8733 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8734 | no_gtk="" |
| 8735 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8736 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8737 | { |
| 8738 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8739 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8740 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8741 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8742 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8743 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8744 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8745 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8746 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8747 | } |
| 8748 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8749 | { |
| 8750 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8751 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8752 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8753 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8754 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8755 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8756 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8757 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8758 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8759 | } |
| 8760 | else |
| 8761 | no_gtk=yes |
| 8762 | fi |
| 8763 | |
| 8764 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8765 | { |
| 8766 | ac_save_CFLAGS="$CFLAGS" |
| 8767 | ac_save_LIBS="$LIBS" |
| 8768 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8769 | LIBS="$LIBS $GTK_LIBS" |
| 8770 | |
| 8771 | rm -f conf.gtktest |
| 8772 | if test "$cross_compiling" = yes; then |
| 8773 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8774 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8775 | cat >conftest.$ac_ext <<_ACEOF |
| 8776 | /* confdefs.h. */ |
| 8777 | _ACEOF |
| 8778 | cat confdefs.h >>conftest.$ac_ext |
| 8779 | cat >>conftest.$ac_ext <<_ACEOF |
| 8780 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8781 | |
| 8782 | #include <gtk/gtk.h> |
| 8783 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8784 | #if STDC_HEADERS |
| 8785 | # include <stdlib.h> |
| 8786 | # include <stddef.h> |
| 8787 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8788 | |
| 8789 | int |
| 8790 | main () |
| 8791 | { |
| 8792 | int major, minor, micro; |
| 8793 | char *tmp_version; |
| 8794 | |
| 8795 | system ("touch conf.gtktest"); |
| 8796 | |
| 8797 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8798 | tmp_version = g_strdup("$min_gtk_version"); |
| 8799 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8800 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8801 | exit(1); |
| 8802 | } |
| 8803 | |
| 8804 | if ((gtk_major_version > major) || |
| 8805 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8806 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8807 | (gtk_micro_version >= micro))) |
| 8808 | { |
| 8809 | return 0; |
| 8810 | } |
| 8811 | return 1; |
| 8812 | } |
| 8813 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8814 | _ACEOF |
| 8815 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8816 | if { (ac_try="$ac_link" |
| 8817 | case "(($ac_try" in |
| 8818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8819 | *) ac_try_echo=$ac_try;; |
| 8820 | esac |
| 8821 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8822 | $as_echo "$ac_try_echo") >&5 |
| 8823 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8824 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8825 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8826 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8827 | { (case "(($ac_try" in |
| 8828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8829 | *) ac_try_echo=$ac_try;; |
| 8830 | esac |
| 8831 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8832 | $as_echo "$ac_try_echo") >&5 |
| 8833 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8834 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8835 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8836 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8837 | : |
| 8838 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8839 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8840 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8841 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8842 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8843 | ( exit $ac_status ) |
| 8844 | no_gtk=yes |
| 8845 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8846 | rm -rf conftest.dSYM |
| 8847 | 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] | 8848 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8849 | |
| 8850 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8851 | CFLAGS="$ac_save_CFLAGS" |
| 8852 | LIBS="$ac_save_LIBS" |
| 8853 | } |
| 8854 | fi |
| 8855 | if test "x$no_gtk" = x ; then |
| 8856 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8857 | { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8858 | $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] | 8859 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8860 | { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8861 | $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] | 8862 | fi |
| 8863 | GTK_LIBNAME="$GTK_LIBS" |
| 8864 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8865 | else |
| 8866 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8867 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8868 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8869 | GTK_CFLAGS="" |
| 8870 | GTK_LIBS="" |
| 8871 | : |
| 8872 | } |
| 8873 | fi |
| 8874 | } |
| 8875 | else |
| 8876 | GTK_CFLAGS="" |
| 8877 | GTK_LIBS="" |
| 8878 | : |
| 8879 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8880 | |
| 8881 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8882 | rm -f conf.gtktest |
| 8883 | |
| 8884 | if test "x$GTK_CFLAGS" != "x"; then |
| 8885 | SKIP_ATHENA=YES |
| 8886 | SKIP_NEXTAW=YES |
| 8887 | SKIP_MOTIF=YES |
| 8888 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8889 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8890 | fi |
| 8891 | fi |
| 8892 | fi |
| 8893 | if test "x$GUITYPE" = "xGTK"; then |
| 8894 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 8895 | -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] | 8896 | { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
| 8897 | $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] | 8898 | else |
| 8899 | { |
| 8900 | if test "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8901 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8902 | #define HAVE_GTK2 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8903 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8904 | |
| 8905 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 8906 | || test "0$gtk_minor_version" -ge 2 \ |
| 8907 | || test "0$gtk_major_version" -gt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8908 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8909 | #define HAVE_GTK_MULTIHEAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8910 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8911 | |
| 8912 | fi |
| 8913 | fi |
| 8914 | if test -z "$SKIP_GNOME"; then |
| 8915 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8916 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8917 | |
| 8918 | |
| 8919 | |
| 8920 | |
| 8921 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8922 | # Check whether --with-gnome-includes was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8923 | if test "${with_gnome_includes+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8924 | withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8925 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8926 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8927 | |
| 8928 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8929 | |
| 8930 | # Check whether --with-gnome-libs was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8931 | if test "${with_gnome_libs+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8932 | withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8933 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8934 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8935 | |
| 8936 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8937 | |
| 8938 | # Check whether --with-gnome was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8939 | if test "${with_gnome+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8940 | withval=$with_gnome; if test x$withval = xyes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8941 | want_gnome=yes |
| 8942 | have_gnome=yes |
| 8943 | else |
| 8944 | if test "x$withval" = xno; then |
| 8945 | want_gnome=no |
| 8946 | else |
| 8947 | want_gnome=yes |
| 8948 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 8949 | CFLAGS="$CFLAGS -I$withval/include" |
| 8950 | gnome_prefix=$withval/lib |
| 8951 | fi |
| 8952 | fi |
| 8953 | else |
| 8954 | want_gnome=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8955 | fi |
| 8956 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8957 | |
| 8958 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 8959 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8960 | { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
| 8961 | $as_echo_n "checking for libgnomeui-2.0... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8962 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8963 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8964 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8965 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 8966 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 8967 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8968 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8969 | { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5 |
| 8970 | $as_echo_n "checking for FreeBSD... " >&6; } |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8971 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8972 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8973 | $as_echo "yes" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 8974 | GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8975 | GNOME_LIBS="$GNOME_LIBS -pthread" |
| 8976 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8977 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8978 | $as_echo "no" >&6; } |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8979 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8980 | have_gnome=yes |
| 8981 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8982 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 8983 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8984 | if test "x" = xfail; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8985 | { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
| 8986 | $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] | 8987 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8988 | fi |
| 8989 | fi |
| 8990 | } |
| 8991 | elif test "x$want_gnome" = xyes; then |
| 8992 | { |
| 8993 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 8994 | set dummy gnome-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8995 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8996 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8997 | if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8998 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8999 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9000 | case $GNOME_CONFIG in |
| 9001 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9002 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 9003 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9004 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9006 | for as_dir in $PATH |
| 9007 | do |
| 9008 | IFS=$as_save_IFS |
| 9009 | test -z "$as_dir" && as_dir=. |
| 9010 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9011 | 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] | 9012 | ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9013 | $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] | 9014 | break 2 |
| 9015 | fi |
| 9016 | done |
| 9017 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9018 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9019 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9020 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 9021 | ;; |
| 9022 | esac |
| 9023 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9024 | GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9025 | if test -n "$GNOME_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9026 | { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
| 9027 | $as_echo "$GNOME_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9028 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9029 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9030 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9031 | fi |
| 9032 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9033 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9034 | if test "$GNOME_CONFIG" = "no"; then |
| 9035 | no_gnome_config="yes" |
| 9036 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9037 | { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
| 9038 | $as_echo_n "checking if $GNOME_CONFIG works... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9039 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9040 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9041 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9042 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 9043 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 9044 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 9045 | have_gnome=yes |
| 9046 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9047 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9048 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9049 | no_gnome_config="yes" |
| 9050 | fi |
| 9051 | fi |
| 9052 | |
| 9053 | if test x$exec_prefix = xNONE; then |
| 9054 | if test x$prefix = xNONE; then |
| 9055 | gnome_prefix=$ac_default_prefix/lib |
| 9056 | else |
| 9057 | gnome_prefix=$prefix/lib |
| 9058 | fi |
| 9059 | else |
| 9060 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 9061 | fi |
| 9062 | |
| 9063 | if test "$no_gnome_config" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9064 | { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 9065 | $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9066 | if test -f $gnome_prefix/gnomeConf.sh; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9067 | { $as_echo "$as_me:$LINENO: result: found" >&5 |
| 9068 | $as_echo "found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9069 | echo "loading gnome configuration from" \ |
| 9070 | "$gnome_prefix/gnomeConf.sh" |
| 9071 | . $gnome_prefix/gnomeConf.sh |
| 9072 | have_gnome=yes |
| 9073 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9074 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 9075 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9076 | if test x = xfail; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9077 | { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
| 9078 | $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] | 9079 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9080 | fi |
| 9081 | fi |
| 9082 | fi |
| 9083 | } |
| 9084 | fi |
| 9085 | |
| 9086 | if test x$have_gnome = xyes ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9087 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9088 | #define FEAT_GUI_GNOME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9089 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9090 | |
| 9091 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 9092 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 9093 | fi |
| 9094 | } |
| 9095 | fi |
| 9096 | } |
| 9097 | fi |
| 9098 | fi |
| 9099 | fi |
| 9100 | |
| 9101 | |
| 9102 | if test -z "$SKIP_MOTIF"; then |
| 9103 | 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" |
| 9104 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 9105 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9106 | { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
| 9107 | $as_echo_n "checking for location of Motif GUI includes... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9108 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 9109 | GUI_INC_LOC= |
| 9110 | for try in $gui_includes; do |
| 9111 | if test -f "$try/Xm/Xm.h"; then |
| 9112 | GUI_INC_LOC=$try |
| 9113 | fi |
| 9114 | done |
| 9115 | if test -n "$GUI_INC_LOC"; then |
| 9116 | if test "$GUI_INC_LOC" = /usr/include; then |
| 9117 | GUI_INC_LOC= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9118 | { $as_echo "$as_me:$LINENO: result: in default path" >&5 |
| 9119 | $as_echo "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9120 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9121 | { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
| 9122 | $as_echo "$GUI_INC_LOC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9123 | fi |
| 9124 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9125 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 9126 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9127 | SKIP_MOTIF=YES |
| 9128 | fi |
| 9129 | fi |
| 9130 | |
| 9131 | |
| 9132 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9133 | { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
| 9134 | $as_echo_n "checking --with-motif-lib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9135 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9136 | # Check whether --with-motif-lib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9137 | if test "${with_motif_lib+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9138 | withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" |
| 9139 | fi |
| 9140 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9141 | |
| 9142 | if test -n "$MOTIF_LIBNAME"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9143 | { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
| 9144 | $as_echo "$MOTIF_LIBNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9145 | GUI_LIB_LOC= |
| 9146 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9147 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9148 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9149 | |
| 9150 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 9151 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9152 | { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
| 9153 | $as_echo_n "checking for location of Motif GUI libs... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9154 | 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" |
| 9155 | GUI_LIB_LOC= |
| 9156 | for try in $gui_libs; do |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 9157 | 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] | 9158 | if test -f "$libtry"; then |
| 9159 | GUI_LIB_LOC=$try |
| 9160 | fi |
| 9161 | done |
| 9162 | done |
| 9163 | if test -n "$GUI_LIB_LOC"; then |
| 9164 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 9165 | GUI_LIB_LOC= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9166 | { $as_echo "$as_me:$LINENO: result: in default path" >&5 |
| 9167 | $as_echo "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9168 | else |
| 9169 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9170 | { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
| 9171 | $as_echo "$GUI_LIB_LOC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9172 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 9173 | uname -r | grep '^5' >/dev/null; then |
| 9174 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 9175 | fi |
| 9176 | fi |
| 9177 | fi |
| 9178 | MOTIF_LIBNAME=-lXm |
| 9179 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9180 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 9181 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9182 | SKIP_MOTIF=YES |
| 9183 | fi |
| 9184 | fi |
| 9185 | fi |
| 9186 | |
| 9187 | if test -z "$SKIP_MOTIF"; then |
| 9188 | SKIP_ATHENA=YES |
| 9189 | SKIP_NEXTAW=YES |
| 9190 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9191 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9192 | fi |
| 9193 | |
| 9194 | |
| 9195 | GUI_X_LIBS= |
| 9196 | |
| 9197 | if test -z "$SKIP_ATHENA"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9198 | { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
| 9199 | $as_echo_n "checking if Athena header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9200 | cflags_save=$CFLAGS |
| 9201 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9202 | cat >conftest.$ac_ext <<_ACEOF |
| 9203 | /* confdefs.h. */ |
| 9204 | _ACEOF |
| 9205 | cat confdefs.h >>conftest.$ac_ext |
| 9206 | cat >>conftest.$ac_ext <<_ACEOF |
| 9207 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9208 | |
| 9209 | #include <X11/Intrinsic.h> |
| 9210 | #include <X11/Xaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9211 | int |
| 9212 | main () |
| 9213 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9214 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9215 | ; |
| 9216 | return 0; |
| 9217 | } |
| 9218 | _ACEOF |
| 9219 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9220 | if { (ac_try="$ac_compile" |
| 9221 | case "(($ac_try" in |
| 9222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9223 | *) ac_try_echo=$ac_try;; |
| 9224 | esac |
| 9225 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9226 | $as_echo "$ac_try_echo") >&5 |
| 9227 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9228 | ac_status=$? |
| 9229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9230 | rm -f conftest.er1 |
| 9231 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9232 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9233 | (exit $ac_status); } && { |
| 9234 | test -z "$ac_c_werror_flag" || |
| 9235 | test ! -s conftest.err |
| 9236 | } && test -s conftest.$ac_objext; then |
| 9237 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9238 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9239 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9240 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9242 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9243 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9244 | $as_echo "no" >&6; }; SKIP_ATHENA=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9245 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9246 | |
| 9247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9248 | CFLAGS=$cflags_save |
| 9249 | fi |
| 9250 | |
| 9251 | if test -z "$SKIP_ATHENA"; then |
| 9252 | GUITYPE=ATHENA |
| 9253 | fi |
| 9254 | |
| 9255 | if test -z "$SKIP_NEXTAW"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9256 | { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
| 9257 | $as_echo_n "checking if neXtaw header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9258 | cflags_save=$CFLAGS |
| 9259 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9260 | cat >conftest.$ac_ext <<_ACEOF |
| 9261 | /* confdefs.h. */ |
| 9262 | _ACEOF |
| 9263 | cat confdefs.h >>conftest.$ac_ext |
| 9264 | cat >>conftest.$ac_ext <<_ACEOF |
| 9265 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9266 | |
| 9267 | #include <X11/Intrinsic.h> |
| 9268 | #include <X11/neXtaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9269 | int |
| 9270 | main () |
| 9271 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9272 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9273 | ; |
| 9274 | return 0; |
| 9275 | } |
| 9276 | _ACEOF |
| 9277 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9278 | if { (ac_try="$ac_compile" |
| 9279 | case "(($ac_try" in |
| 9280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9281 | *) ac_try_echo=$ac_try;; |
| 9282 | esac |
| 9283 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9284 | $as_echo "$ac_try_echo") >&5 |
| 9285 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9286 | ac_status=$? |
| 9287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9288 | rm -f conftest.er1 |
| 9289 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9290 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9291 | (exit $ac_status); } && { |
| 9292 | test -z "$ac_c_werror_flag" || |
| 9293 | test ! -s conftest.err |
| 9294 | } && test -s conftest.$ac_objext; then |
| 9295 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9296 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9297 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9298 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9300 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9301 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9302 | $as_echo "no" >&6; }; SKIP_NEXTAW=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9303 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9304 | |
| 9305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9306 | CFLAGS=$cflags_save |
| 9307 | fi |
| 9308 | |
| 9309 | if test -z "$SKIP_NEXTAW"; then |
| 9310 | GUITYPE=NEXTAW |
| 9311 | fi |
| 9312 | |
| 9313 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 9314 | if test -n "$GUI_INC_LOC"; then |
| 9315 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 9316 | fi |
| 9317 | if test -n "$GUI_LIB_LOC"; then |
| 9318 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 9319 | fi |
| 9320 | |
| 9321 | ldflags_save=$LDFLAGS |
| 9322 | LDFLAGS="$X_LIBS $LDFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9323 | { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 9324 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9325 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9326 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9327 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9328 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9329 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9330 | cat >conftest.$ac_ext <<_ACEOF |
| 9331 | /* confdefs.h. */ |
| 9332 | _ACEOF |
| 9333 | cat confdefs.h >>conftest.$ac_ext |
| 9334 | cat >>conftest.$ac_ext <<_ACEOF |
| 9335 | /* end confdefs.h. */ |
| 9336 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9337 | /* Override any GCC internal prototype to avoid an error. |
| 9338 | Use char because int might match the return type of a GCC |
| 9339 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9340 | #ifdef __cplusplus |
| 9341 | extern "C" |
| 9342 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9343 | char XShapeQueryExtension (); |
| 9344 | int |
| 9345 | main () |
| 9346 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9347 | return XShapeQueryExtension (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9348 | ; |
| 9349 | return 0; |
| 9350 | } |
| 9351 | _ACEOF |
| 9352 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9353 | if { (ac_try="$ac_link" |
| 9354 | case "(($ac_try" in |
| 9355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9356 | *) ac_try_echo=$ac_try;; |
| 9357 | esac |
| 9358 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9359 | $as_echo "$ac_try_echo") >&5 |
| 9360 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9361 | ac_status=$? |
| 9362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9363 | rm -f conftest.er1 |
| 9364 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9365 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9366 | (exit $ac_status); } && { |
| 9367 | test -z "$ac_c_werror_flag" || |
| 9368 | test ! -s conftest.err |
| 9369 | } && test -s conftest$ac_exeext && { |
| 9370 | test "$cross_compiling" = yes || |
| 9371 | $as_test_x conftest$ac_exeext |
| 9372 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9373 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9374 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9375 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9376 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9377 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9378 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9379 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9380 | |
| 9381 | rm -rf conftest.dSYM |
| 9382 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9383 | conftest$ac_exeext conftest.$ac_ext |
| 9384 | LIBS=$ac_check_lib_save_LIBS |
| 9385 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9386 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 9387 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9388 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9389 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9390 | fi |
| 9391 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9392 | { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
| 9393 | $as_echo_n "checking for wslen in -lw... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9394 | if test "${ac_cv_lib_w_wslen+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9395 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9396 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9397 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9398 | 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] | 9399 | cat >conftest.$ac_ext <<_ACEOF |
| 9400 | /* confdefs.h. */ |
| 9401 | _ACEOF |
| 9402 | cat confdefs.h >>conftest.$ac_ext |
| 9403 | cat >>conftest.$ac_ext <<_ACEOF |
| 9404 | /* end confdefs.h. */ |
| 9405 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9406 | /* Override any GCC internal prototype to avoid an error. |
| 9407 | Use char because int might match the return type of a GCC |
| 9408 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9409 | #ifdef __cplusplus |
| 9410 | extern "C" |
| 9411 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9412 | char wslen (); |
| 9413 | int |
| 9414 | main () |
| 9415 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9416 | return wslen (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9417 | ; |
| 9418 | return 0; |
| 9419 | } |
| 9420 | _ACEOF |
| 9421 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9422 | if { (ac_try="$ac_link" |
| 9423 | case "(($ac_try" in |
| 9424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9425 | *) ac_try_echo=$ac_try;; |
| 9426 | esac |
| 9427 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9428 | $as_echo "$ac_try_echo") >&5 |
| 9429 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9430 | ac_status=$? |
| 9431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9432 | rm -f conftest.er1 |
| 9433 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9434 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9435 | (exit $ac_status); } && { |
| 9436 | test -z "$ac_c_werror_flag" || |
| 9437 | test ! -s conftest.err |
| 9438 | } && test -s conftest$ac_exeext && { |
| 9439 | test "$cross_compiling" = yes || |
| 9440 | $as_test_x conftest$ac_exeext |
| 9441 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9442 | ac_cv_lib_w_wslen=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9443 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9444 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9445 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9446 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9447 | ac_cv_lib_w_wslen=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9448 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9449 | |
| 9450 | rm -rf conftest.dSYM |
| 9451 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9452 | conftest$ac_exeext conftest.$ac_ext |
| 9453 | LIBS=$ac_check_lib_save_LIBS |
| 9454 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9455 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 |
| 9456 | $as_echo "$ac_cv_lib_w_wslen" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9457 | if test "x$ac_cv_lib_w_wslen" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9458 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9459 | fi |
| 9460 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9461 | { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
| 9462 | $as_echo_n "checking for dlsym in -ldl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9463 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9464 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9465 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9466 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9467 | 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] | 9468 | cat >conftest.$ac_ext <<_ACEOF |
| 9469 | /* confdefs.h. */ |
| 9470 | _ACEOF |
| 9471 | cat confdefs.h >>conftest.$ac_ext |
| 9472 | cat >>conftest.$ac_ext <<_ACEOF |
| 9473 | /* end confdefs.h. */ |
| 9474 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9475 | /* Override any GCC internal prototype to avoid an error. |
| 9476 | Use char because int might match the return type of a GCC |
| 9477 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9478 | #ifdef __cplusplus |
| 9479 | extern "C" |
| 9480 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9481 | char dlsym (); |
| 9482 | int |
| 9483 | main () |
| 9484 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9485 | return dlsym (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9486 | ; |
| 9487 | return 0; |
| 9488 | } |
| 9489 | _ACEOF |
| 9490 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9491 | if { (ac_try="$ac_link" |
| 9492 | case "(($ac_try" in |
| 9493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9494 | *) ac_try_echo=$ac_try;; |
| 9495 | esac |
| 9496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9497 | $as_echo "$ac_try_echo") >&5 |
| 9498 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9499 | ac_status=$? |
| 9500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9501 | rm -f conftest.er1 |
| 9502 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9503 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9504 | (exit $ac_status); } && { |
| 9505 | test -z "$ac_c_werror_flag" || |
| 9506 | test ! -s conftest.err |
| 9507 | } && test -s conftest$ac_exeext && { |
| 9508 | test "$cross_compiling" = yes || |
| 9509 | $as_test_x conftest$ac_exeext |
| 9510 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9511 | ac_cv_lib_dl_dlsym=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9512 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9513 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9514 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9515 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9516 | ac_cv_lib_dl_dlsym=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9517 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9518 | |
| 9519 | rm -rf conftest.dSYM |
| 9520 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9521 | conftest$ac_exeext conftest.$ac_ext |
| 9522 | LIBS=$ac_check_lib_save_LIBS |
| 9523 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9524 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
| 9525 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9526 | if test "x$ac_cv_lib_dl_dlsym" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9527 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9528 | fi |
| 9529 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9530 | { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 9531 | $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9532 | if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9533 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9534 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9535 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9536 | 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] | 9537 | cat >conftest.$ac_ext <<_ACEOF |
| 9538 | /* confdefs.h. */ |
| 9539 | _ACEOF |
| 9540 | cat confdefs.h >>conftest.$ac_ext |
| 9541 | cat >>conftest.$ac_ext <<_ACEOF |
| 9542 | /* end confdefs.h. */ |
| 9543 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9544 | /* Override any GCC internal prototype to avoid an error. |
| 9545 | Use char because int might match the return type of a GCC |
| 9546 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9547 | #ifdef __cplusplus |
| 9548 | extern "C" |
| 9549 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9550 | char XmuCreateStippledPixmap (); |
| 9551 | int |
| 9552 | main () |
| 9553 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9554 | return XmuCreateStippledPixmap (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9555 | ; |
| 9556 | return 0; |
| 9557 | } |
| 9558 | _ACEOF |
| 9559 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9560 | if { (ac_try="$ac_link" |
| 9561 | case "(($ac_try" in |
| 9562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9563 | *) ac_try_echo=$ac_try;; |
| 9564 | esac |
| 9565 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9566 | $as_echo "$ac_try_echo") >&5 |
| 9567 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9568 | ac_status=$? |
| 9569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9570 | rm -f conftest.er1 |
| 9571 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9573 | (exit $ac_status); } && { |
| 9574 | test -z "$ac_c_werror_flag" || |
| 9575 | test ! -s conftest.err |
| 9576 | } && test -s conftest$ac_exeext && { |
| 9577 | test "$cross_compiling" = yes || |
| 9578 | $as_test_x conftest$ac_exeext |
| 9579 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9580 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9581 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9582 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9583 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9584 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9585 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9586 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9587 | |
| 9588 | rm -rf conftest.dSYM |
| 9589 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9590 | conftest$ac_exeext conftest.$ac_ext |
| 9591 | LIBS=$ac_check_lib_save_LIBS |
| 9592 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9593 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 9594 | $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9595 | if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9596 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9597 | fi |
| 9598 | |
| 9599 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9600 | { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
| 9601 | $as_echo_n "checking for XpEndJob in -lXp... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9602 | if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9603 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9604 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9605 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9606 | 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] | 9607 | cat >conftest.$ac_ext <<_ACEOF |
| 9608 | /* confdefs.h. */ |
| 9609 | _ACEOF |
| 9610 | cat confdefs.h >>conftest.$ac_ext |
| 9611 | cat >>conftest.$ac_ext <<_ACEOF |
| 9612 | /* end confdefs.h. */ |
| 9613 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9614 | /* Override any GCC internal prototype to avoid an error. |
| 9615 | Use char because int might match the return type of a GCC |
| 9616 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9617 | #ifdef __cplusplus |
| 9618 | extern "C" |
| 9619 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9620 | char XpEndJob (); |
| 9621 | int |
| 9622 | main () |
| 9623 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9624 | return XpEndJob (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9625 | ; |
| 9626 | return 0; |
| 9627 | } |
| 9628 | _ACEOF |
| 9629 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9630 | if { (ac_try="$ac_link" |
| 9631 | case "(($ac_try" in |
| 9632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9633 | *) ac_try_echo=$ac_try;; |
| 9634 | esac |
| 9635 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9636 | $as_echo "$ac_try_echo") >&5 |
| 9637 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9638 | ac_status=$? |
| 9639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9640 | rm -f conftest.er1 |
| 9641 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9642 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9643 | (exit $ac_status); } && { |
| 9644 | test -z "$ac_c_werror_flag" || |
| 9645 | test ! -s conftest.err |
| 9646 | } && test -s conftest$ac_exeext && { |
| 9647 | test "$cross_compiling" = yes || |
| 9648 | $as_test_x conftest$ac_exeext |
| 9649 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9650 | ac_cv_lib_Xp_XpEndJob=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9651 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9652 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9653 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9654 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9655 | ac_cv_lib_Xp_XpEndJob=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9656 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9657 | |
| 9658 | rm -rf conftest.dSYM |
| 9659 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9660 | conftest$ac_exeext conftest.$ac_ext |
| 9661 | LIBS=$ac_check_lib_save_LIBS |
| 9662 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9663 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 9664 | $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9665 | if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9666 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9667 | fi |
| 9668 | |
| 9669 | fi |
| 9670 | LDFLAGS=$ldflags_save |
| 9671 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9672 | { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
| 9673 | $as_echo_n "checking for extra X11 defines... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9674 | NARROW_PROTO= |
| 9675 | rm -fr conftestdir |
| 9676 | if mkdir conftestdir; then |
| 9677 | cd conftestdir |
| 9678 | cat > Imakefile <<'EOF' |
| 9679 | acfindx: |
| 9680 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 9681 | EOF |
| 9682 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 9683 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 9684 | fi |
| 9685 | cd .. |
| 9686 | rm -fr conftestdir |
| 9687 | fi |
| 9688 | if test -z "$NARROW_PROTO"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9689 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9690 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9691 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9692 | { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
| 9693 | $as_echo "$NARROW_PROTO" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9694 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9695 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9696 | fi |
| 9697 | |
| 9698 | if test "$enable_xsmp" = "yes"; then |
| 9699 | cppflags_save=$CPPFLAGS |
| 9700 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9701 | |
| 9702 | for ac_header in X11/SM/SMlib.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9703 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9704 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9705 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9706 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9707 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9708 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9709 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9710 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9711 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9712 | $as_echo "$as_val"'` |
| 9713 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9714 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9715 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9716 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9717 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9718 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9719 | cat >conftest.$ac_ext <<_ACEOF |
| 9720 | /* confdefs.h. */ |
| 9721 | _ACEOF |
| 9722 | cat confdefs.h >>conftest.$ac_ext |
| 9723 | cat >>conftest.$ac_ext <<_ACEOF |
| 9724 | /* end confdefs.h. */ |
| 9725 | $ac_includes_default |
| 9726 | #include <$ac_header> |
| 9727 | _ACEOF |
| 9728 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9729 | if { (ac_try="$ac_compile" |
| 9730 | case "(($ac_try" in |
| 9731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9732 | *) ac_try_echo=$ac_try;; |
| 9733 | esac |
| 9734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9735 | $as_echo "$ac_try_echo") >&5 |
| 9736 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9737 | ac_status=$? |
| 9738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9739 | rm -f conftest.er1 |
| 9740 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9742 | (exit $ac_status); } && { |
| 9743 | test -z "$ac_c_werror_flag" || |
| 9744 | test ! -s conftest.err |
| 9745 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9746 | ac_header_compiler=yes |
| 9747 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9748 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9750 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9751 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9752 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9753 | |
| 9754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9755 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9756 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9757 | |
| 9758 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9759 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9760 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9761 | cat >conftest.$ac_ext <<_ACEOF |
| 9762 | /* confdefs.h. */ |
| 9763 | _ACEOF |
| 9764 | cat confdefs.h >>conftest.$ac_ext |
| 9765 | cat >>conftest.$ac_ext <<_ACEOF |
| 9766 | /* end confdefs.h. */ |
| 9767 | #include <$ac_header> |
| 9768 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9769 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9770 | case "(($ac_try" in |
| 9771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9772 | *) ac_try_echo=$ac_try;; |
| 9773 | esac |
| 9774 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9775 | $as_echo "$ac_try_echo") >&5 |
| 9776 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9777 | ac_status=$? |
| 9778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9779 | rm -f conftest.er1 |
| 9780 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9782 | (exit $ac_status); } >/dev/null && { |
| 9783 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9784 | test ! -s conftest.err |
| 9785 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9786 | ac_header_preproc=yes |
| 9787 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9788 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9790 | |
| 9791 | ac_header_preproc=no |
| 9792 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9793 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9794 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9795 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9796 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9797 | |
| 9798 | # So? What about this header? |
| 9799 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9800 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9801 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9802 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9803 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9804 | $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] | 9805 | ac_header_preproc=yes |
| 9806 | ;; |
| 9807 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9808 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9809 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9810 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9811 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9812 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9813 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9814 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9815 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9816 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9817 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9818 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9819 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9820 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9821 | ;; |
| 9822 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9823 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9824 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9825 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9826 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9827 | else |
| 9828 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9829 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9830 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9831 | $as_echo "$as_val"'` |
| 9832 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9833 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9834 | |
| 9835 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9836 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 9837 | $as_echo "$as_val"'` |
| 9838 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9839 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9840 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9841 | _ACEOF |
| 9842 | |
| 9843 | fi |
| 9844 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9845 | done |
| 9846 | |
| 9847 | CPPFLAGS=$cppflags_save |
| 9848 | fi |
| 9849 | |
| 9850 | |
| 9851 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 9852 | cppflags_save=$CPPFLAGS |
| 9853 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9854 | |
| 9855 | |
| 9856 | for ac_header in X11/xpm.h X11/Sunkeysym.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9857 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9858 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9859 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9860 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9861 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9862 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9863 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9864 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9865 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9866 | $as_echo "$as_val"'` |
| 9867 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9868 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9869 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9870 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9871 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9872 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9873 | cat >conftest.$ac_ext <<_ACEOF |
| 9874 | /* confdefs.h. */ |
| 9875 | _ACEOF |
| 9876 | cat confdefs.h >>conftest.$ac_ext |
| 9877 | cat >>conftest.$ac_ext <<_ACEOF |
| 9878 | /* end confdefs.h. */ |
| 9879 | $ac_includes_default |
| 9880 | #include <$ac_header> |
| 9881 | _ACEOF |
| 9882 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9883 | if { (ac_try="$ac_compile" |
| 9884 | case "(($ac_try" in |
| 9885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9886 | *) ac_try_echo=$ac_try;; |
| 9887 | esac |
| 9888 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9889 | $as_echo "$ac_try_echo") >&5 |
| 9890 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9891 | ac_status=$? |
| 9892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9893 | rm -f conftest.er1 |
| 9894 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9895 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9896 | (exit $ac_status); } && { |
| 9897 | test -z "$ac_c_werror_flag" || |
| 9898 | test ! -s conftest.err |
| 9899 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9900 | ac_header_compiler=yes |
| 9901 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9902 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9904 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9905 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9906 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9907 | |
| 9908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9909 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9910 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9911 | |
| 9912 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9913 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9914 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9915 | cat >conftest.$ac_ext <<_ACEOF |
| 9916 | /* confdefs.h. */ |
| 9917 | _ACEOF |
| 9918 | cat confdefs.h >>conftest.$ac_ext |
| 9919 | cat >>conftest.$ac_ext <<_ACEOF |
| 9920 | /* end confdefs.h. */ |
| 9921 | #include <$ac_header> |
| 9922 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9923 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9924 | case "(($ac_try" in |
| 9925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9926 | *) ac_try_echo=$ac_try;; |
| 9927 | esac |
| 9928 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9929 | $as_echo "$ac_try_echo") >&5 |
| 9930 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9931 | ac_status=$? |
| 9932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9933 | rm -f conftest.er1 |
| 9934 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9935 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9936 | (exit $ac_status); } >/dev/null && { |
| 9937 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9938 | test ! -s conftest.err |
| 9939 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9940 | ac_header_preproc=yes |
| 9941 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9942 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9944 | |
| 9945 | ac_header_preproc=no |
| 9946 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9947 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9948 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9949 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9950 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9951 | |
| 9952 | # So? What about this header? |
| 9953 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9954 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9955 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9956 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9957 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9958 | $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] | 9959 | ac_header_preproc=yes |
| 9960 | ;; |
| 9961 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9962 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9963 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9964 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9965 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9966 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9967 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9968 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9969 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9970 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9971 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9972 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9973 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9974 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9975 | ;; |
| 9976 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9977 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9978 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9979 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9980 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9981 | else |
| 9982 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9983 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9984 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9985 | $as_echo "$as_val"'` |
| 9986 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9987 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9988 | |
| 9989 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9990 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 9991 | $as_echo "$as_val"'` |
| 9992 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9993 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9994 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9995 | _ACEOF |
| 9996 | |
| 9997 | fi |
| 9998 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9999 | done |
| 10000 | |
| 10001 | |
| 10002 | if test ! "$enable_xim" = "no"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10003 | { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
| 10004 | $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10005 | cat >conftest.$ac_ext <<_ACEOF |
| 10006 | /* confdefs.h. */ |
| 10007 | _ACEOF |
| 10008 | cat confdefs.h >>conftest.$ac_ext |
| 10009 | cat >>conftest.$ac_ext <<_ACEOF |
| 10010 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10011 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10012 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10013 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10014 | $EGREP "XIMText" >/dev/null 2>&1; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10015 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10016 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10017 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10018 | { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
| 10019 | $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10020 | fi |
| 10021 | rm -f conftest* |
| 10022 | |
| 10023 | fi |
| 10024 | CPPFLAGS=$cppflags_save |
| 10025 | |
| 10026 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 10027 | -a "x$GUITYPE" != "xNONE" ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10028 | { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
| 10029 | $as_echo "X GUI selected; xim has been enabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10030 | enable_xim="yes" |
| 10031 | fi |
| 10032 | fi |
| 10033 | |
| 10034 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 10035 | cppflags_save=$CPPFLAGS |
| 10036 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10037 | { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 |
| 10038 | $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10039 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10040 | /* confdefs.h. */ |
| 10041 | _ACEOF |
| 10042 | cat confdefs.h >>conftest.$ac_ext |
| 10043 | cat >>conftest.$ac_ext <<_ACEOF |
| 10044 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10045 | |
| 10046 | #include <X11/Intrinsic.h> |
| 10047 | #include <X11/Xmu/Editres.h> |
| 10048 | int |
| 10049 | main () |
| 10050 | { |
| 10051 | int i; i = 0; |
| 10052 | ; |
| 10053 | return 0; |
| 10054 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10055 | _ACEOF |
| 10056 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10057 | if { (ac_try="$ac_compile" |
| 10058 | case "(($ac_try" in |
| 10059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10060 | *) ac_try_echo=$ac_try;; |
| 10061 | esac |
| 10062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10063 | $as_echo "$ac_try_echo") >&5 |
| 10064 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10065 | ac_status=$? |
| 10066 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10067 | rm -f conftest.er1 |
| 10068 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10070 | (exit $ac_status); } && { |
| 10071 | test -z "$ac_c_werror_flag" || |
| 10072 | test ! -s conftest.err |
| 10073 | } && test -s conftest.$ac_objext; then |
| 10074 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10075 | $as_echo "yes" >&6; } |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10076 | cat >>confdefs.h <<\_ACEOF |
| 10077 | #define HAVE_X11_XMU_EDITRES_H 1 |
| 10078 | _ACEOF |
| 10079 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10080 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10081 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10083 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10084 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10085 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10086 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10087 | |
| 10088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10089 | CPPFLAGS=$cppflags_save |
| 10090 | fi |
| 10091 | |
| 10092 | if test -z "$SKIP_MOTIF"; then |
| 10093 | cppflags_save=$CPPFLAGS |
| 10094 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10095 | |
| 10096 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10097 | |
| 10098 | |
| 10099 | |
| 10100 | |
Bram Moolenaar | fc1421e | 2006-04-20 22:17:20 +0000 | [diff] [blame] | 10101 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10102 | 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] | 10103 | Xm/UnhighlightT.h Xm/Notebook.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10104 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10105 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10106 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10107 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10108 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10109 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10110 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10111 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10112 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10113 | $as_echo "$as_val"'` |
| 10114 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10115 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10116 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10117 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10118 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10119 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10120 | cat >conftest.$ac_ext <<_ACEOF |
| 10121 | /* confdefs.h. */ |
| 10122 | _ACEOF |
| 10123 | cat confdefs.h >>conftest.$ac_ext |
| 10124 | cat >>conftest.$ac_ext <<_ACEOF |
| 10125 | /* end confdefs.h. */ |
| 10126 | $ac_includes_default |
| 10127 | #include <$ac_header> |
| 10128 | _ACEOF |
| 10129 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10130 | if { (ac_try="$ac_compile" |
| 10131 | case "(($ac_try" in |
| 10132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10133 | *) ac_try_echo=$ac_try;; |
| 10134 | esac |
| 10135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10136 | $as_echo "$ac_try_echo") >&5 |
| 10137 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10138 | ac_status=$? |
| 10139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10140 | rm -f conftest.er1 |
| 10141 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10143 | (exit $ac_status); } && { |
| 10144 | test -z "$ac_c_werror_flag" || |
| 10145 | test ! -s conftest.err |
| 10146 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10147 | ac_header_compiler=yes |
| 10148 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10149 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10151 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10152 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10153 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10154 | |
| 10155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10156 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10157 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10158 | |
| 10159 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10160 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10161 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10162 | cat >conftest.$ac_ext <<_ACEOF |
| 10163 | /* confdefs.h. */ |
| 10164 | _ACEOF |
| 10165 | cat confdefs.h >>conftest.$ac_ext |
| 10166 | cat >>conftest.$ac_ext <<_ACEOF |
| 10167 | /* end confdefs.h. */ |
| 10168 | #include <$ac_header> |
| 10169 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10170 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10171 | case "(($ac_try" in |
| 10172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10173 | *) ac_try_echo=$ac_try;; |
| 10174 | esac |
| 10175 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10176 | $as_echo "$ac_try_echo") >&5 |
| 10177 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10178 | ac_status=$? |
| 10179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10180 | rm -f conftest.er1 |
| 10181 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10182 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10183 | (exit $ac_status); } >/dev/null && { |
| 10184 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10185 | test ! -s conftest.err |
| 10186 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10187 | ac_header_preproc=yes |
| 10188 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10189 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10191 | |
| 10192 | ac_header_preproc=no |
| 10193 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10194 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10195 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10196 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10197 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10198 | |
| 10199 | # So? What about this header? |
| 10200 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10201 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10202 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10203 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10204 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10205 | $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] | 10206 | ac_header_preproc=yes |
| 10207 | ;; |
| 10208 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10209 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10210 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10211 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10212 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10213 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10214 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10215 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10216 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10217 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10218 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10219 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10220 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10221 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10222 | ;; |
| 10223 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10224 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10225 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10226 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10227 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10228 | else |
| 10229 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10230 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10231 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10232 | $as_echo "$as_val"'` |
| 10233 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10234 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10235 | |
| 10236 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 10237 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 10238 | $as_echo "$as_val"'` |
| 10239 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10240 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10241 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10242 | _ACEOF |
| 10243 | |
| 10244 | fi |
| 10245 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10246 | done |
| 10247 | |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10248 | |
| 10249 | if test $ac_cv_header_Xm_XpmP_h = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10250 | { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 |
| 10251 | $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10252 | cat >conftest.$ac_ext <<_ACEOF |
| 10253 | /* confdefs.h. */ |
| 10254 | _ACEOF |
| 10255 | cat confdefs.h >>conftest.$ac_ext |
| 10256 | cat >>conftest.$ac_ext <<_ACEOF |
| 10257 | /* end confdefs.h. */ |
| 10258 | #include <Xm/XpmP.h> |
| 10259 | int |
| 10260 | main () |
| 10261 | { |
| 10262 | XpmAttributes_21 attr; |
| 10263 | ; |
| 10264 | return 0; |
| 10265 | } |
| 10266 | _ACEOF |
| 10267 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10268 | if { (ac_try="$ac_compile" |
| 10269 | case "(($ac_try" in |
| 10270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10271 | *) ac_try_echo=$ac_try;; |
| 10272 | esac |
| 10273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10274 | $as_echo "$ac_try_echo") >&5 |
| 10275 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10276 | ac_status=$? |
| 10277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10278 | rm -f conftest.er1 |
| 10279 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10281 | (exit $ac_status); } && { |
| 10282 | test -z "$ac_c_werror_flag" || |
| 10283 | test ! -s conftest.err |
| 10284 | } && test -s conftest.$ac_objext; then |
| 10285 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10286 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10287 | #define XPMATTRIBUTES_TYPE XpmAttributes_21 |
| 10288 | _ACEOF |
| 10289 | |
| 10290 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10291 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10293 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10294 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10295 | $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10296 | #define XPMATTRIBUTES_TYPE XpmAttributes |
| 10297 | _ACEOF |
| 10298 | |
| 10299 | |
| 10300 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10301 | |
| 10302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10303 | else |
| 10304 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 57657d8 | 2006-04-21 22:12:41 +0000 | [diff] [blame] | 10305 | #define XPMATTRIBUTES_TYPE XpmAttributes |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10306 | _ACEOF |
| 10307 | |
| 10308 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10309 | CPPFLAGS=$cppflags_save |
| 10310 | fi |
| 10311 | |
| 10312 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10313 | { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
| 10314 | $as_echo "no GUI selected; xim has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10315 | enable_xim="no" |
| 10316 | fi |
| 10317 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10318 | { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
| 10319 | $as_echo "no GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10320 | enable_fontset="no" |
| 10321 | fi |
| 10322 | 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] | 10323 | { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 10324 | $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10325 | enable_fontset="no" |
| 10326 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10327 | |
| 10328 | if test -z "$SKIP_PHOTON"; then |
| 10329 | GUITYPE=PHOTONGUI |
| 10330 | fi |
| 10331 | |
| 10332 | |
| 10333 | |
| 10334 | |
| 10335 | |
| 10336 | |
| 10337 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10338 | { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
| 10339 | $as_echo "$as_me: error: cannot use workshop without Motif" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10340 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10341 | fi |
| 10342 | |
| 10343 | if test "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10344 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10345 | #define FEAT_XIM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10346 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10347 | |
| 10348 | fi |
| 10349 | if test "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10350 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10351 | #define FEAT_XFONTSET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10352 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10353 | |
| 10354 | fi |
| 10355 | |
| 10356 | |
| 10357 | |
| 10358 | |
| 10359 | if test "$enable_hangulinput" = "yes"; then |
| 10360 | if test "x$GUITYPE" = "xNONE"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10361 | { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
| 10362 | $as_echo "no GUI selected; hangul input has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10363 | enable_hangulinput=no |
| 10364 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10365 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10366 | #define FEAT_HANGULIN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10367 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10368 | |
| 10369 | HANGULIN_SRC=hangulin.c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10370 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10371 | HANGULIN_OBJ=objects/hangulin.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10372 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10373 | fi |
| 10374 | fi |
| 10375 | |
| 10376 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10377 | { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5 |
| 10378 | $as_echo_n "checking whether toupper is broken... " >&6; } |
| 10379 | if test "${vim_cv_toupper_broken+set}" = set; then |
| 10380 | $as_echo_n "(cached) " >&6 |
| 10381 | else |
| 10382 | |
| 10383 | if test "$cross_compiling" = yes; then |
| 10384 | |
| 10385 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5 |
| 10386 | $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] | 10387 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10388 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10389 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10390 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10391 | |
| 10392 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10393 | #include <ctype.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10394 | #if STDC_HEADERS |
| 10395 | # include <stdlib.h> |
| 10396 | # include <stddef.h> |
| 10397 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10398 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10399 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10400 | _ACEOF |
| 10401 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10402 | if { (ac_try="$ac_link" |
| 10403 | case "(($ac_try" in |
| 10404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10405 | *) ac_try_echo=$ac_try;; |
| 10406 | esac |
| 10407 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10408 | $as_echo "$ac_try_echo") >&5 |
| 10409 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10410 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10412 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10413 | { (case "(($ac_try" in |
| 10414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10415 | *) ac_try_echo=$ac_try;; |
| 10416 | esac |
| 10417 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10418 | $as_echo "$ac_try_echo") >&5 |
| 10419 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10420 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10421 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10422 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10423 | |
| 10424 | vim_cv_toupper_broken=yes |
| 10425 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10426 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10427 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 10428 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10430 | |
| 10431 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10432 | |
| 10433 | vim_cv_toupper_broken=no |
| 10434 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10435 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10436 | rm -rf conftest.dSYM |
| 10437 | 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] | 10438 | fi |
| 10439 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10440 | |
| 10441 | fi |
| 10442 | { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5 |
| 10443 | $as_echo "$vim_cv_toupper_broken" >&6; } |
| 10444 | |
| 10445 | if test "x$vim_cv_toupper_broken" = "xyes" ; then |
| 10446 | cat >>confdefs.h <<\_ACEOF |
| 10447 | #define BROKEN_TOUPPER 1 |
| 10448 | _ACEOF |
| 10449 | |
| 10450 | fi |
| 10451 | |
| 10452 | { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
| 10453 | $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10454 | cat >conftest.$ac_ext <<_ACEOF |
| 10455 | /* confdefs.h. */ |
| 10456 | _ACEOF |
| 10457 | cat confdefs.h >>conftest.$ac_ext |
| 10458 | cat >>conftest.$ac_ext <<_ACEOF |
| 10459 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10460 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10461 | int |
| 10462 | main () |
| 10463 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10464 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10465 | ; |
| 10466 | return 0; |
| 10467 | } |
| 10468 | _ACEOF |
| 10469 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10470 | if { (ac_try="$ac_compile" |
| 10471 | case "(($ac_try" in |
| 10472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10473 | *) ac_try_echo=$ac_try;; |
| 10474 | esac |
| 10475 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10476 | $as_echo "$ac_try_echo") >&5 |
| 10477 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10478 | ac_status=$? |
| 10479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10480 | rm -f conftest.er1 |
| 10481 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10482 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10483 | (exit $ac_status); } && { |
| 10484 | test -z "$ac_c_werror_flag" || |
| 10485 | test ! -s conftest.err |
| 10486 | } && test -s conftest.$ac_objext; then |
| 10487 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10488 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10489 | #define HAVE_DATE_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10490 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10491 | |
| 10492 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10493 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10495 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10496 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10497 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10498 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10499 | |
| 10500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10501 | |
Bram Moolenaar | 0c094b9 | 2009-05-14 20:20:33 +0000 | [diff] [blame] | 10502 | { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5 |
| 10503 | $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } |
| 10504 | cat >conftest.$ac_ext <<_ACEOF |
| 10505 | /* confdefs.h. */ |
| 10506 | _ACEOF |
| 10507 | cat confdefs.h >>conftest.$ac_ext |
| 10508 | cat >>conftest.$ac_ext <<_ACEOF |
| 10509 | /* end confdefs.h. */ |
| 10510 | #include <stdio.h> |
| 10511 | int |
| 10512 | main () |
| 10513 | { |
| 10514 | int x __attribute__((unused)); |
| 10515 | ; |
| 10516 | return 0; |
| 10517 | } |
| 10518 | _ACEOF |
| 10519 | rm -f conftest.$ac_objext |
| 10520 | if { (ac_try="$ac_compile" |
| 10521 | case "(($ac_try" in |
| 10522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10523 | *) ac_try_echo=$ac_try;; |
| 10524 | esac |
| 10525 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10526 | $as_echo "$ac_try_echo") >&5 |
| 10527 | (eval "$ac_compile") 2>conftest.er1 |
| 10528 | ac_status=$? |
| 10529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10530 | rm -f conftest.er1 |
| 10531 | cat conftest.err >&5 |
| 10532 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10533 | (exit $ac_status); } && { |
| 10534 | test -z "$ac_c_werror_flag" || |
| 10535 | test ! -s conftest.err |
| 10536 | } && test -s conftest.$ac_objext; then |
| 10537 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10538 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
| 10539 | #define HAVE_ATTRIBUTE_UNUSED 1 |
| 10540 | _ACEOF |
| 10541 | |
| 10542 | else |
| 10543 | $as_echo "$as_me: failed program was:" >&5 |
| 10544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10545 | |
| 10546 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10547 | $as_echo "no" >&6; } |
| 10548 | fi |
| 10549 | |
| 10550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10551 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10552 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10553 | { $as_echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10554 | $as_echo_n "checking for elf.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10555 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10556 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10557 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10558 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10559 | $as_echo "$ac_cv_header_elf_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10560 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10561 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10562 | { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5 |
| 10563 | $as_echo_n "checking elf.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10564 | cat >conftest.$ac_ext <<_ACEOF |
| 10565 | /* confdefs.h. */ |
| 10566 | _ACEOF |
| 10567 | cat confdefs.h >>conftest.$ac_ext |
| 10568 | cat >>conftest.$ac_ext <<_ACEOF |
| 10569 | /* end confdefs.h. */ |
| 10570 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10571 | #include <elf.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10572 | _ACEOF |
| 10573 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10574 | if { (ac_try="$ac_compile" |
| 10575 | case "(($ac_try" in |
| 10576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10577 | *) ac_try_echo=$ac_try;; |
| 10578 | esac |
| 10579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10580 | $as_echo "$ac_try_echo") >&5 |
| 10581 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10582 | ac_status=$? |
| 10583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10584 | rm -f conftest.er1 |
| 10585 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10587 | (exit $ac_status); } && { |
| 10588 | test -z "$ac_c_werror_flag" || |
| 10589 | test ! -s conftest.err |
| 10590 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10591 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10592 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10593 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10595 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10596 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10597 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10598 | |
| 10599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10600 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10601 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10602 | |
| 10603 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10604 | { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5 |
| 10605 | $as_echo_n "checking elf.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10606 | cat >conftest.$ac_ext <<_ACEOF |
| 10607 | /* confdefs.h. */ |
| 10608 | _ACEOF |
| 10609 | cat confdefs.h >>conftest.$ac_ext |
| 10610 | cat >>conftest.$ac_ext <<_ACEOF |
| 10611 | /* end confdefs.h. */ |
| 10612 | #include <elf.h> |
| 10613 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10614 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10615 | case "(($ac_try" in |
| 10616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10617 | *) ac_try_echo=$ac_try;; |
| 10618 | esac |
| 10619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10620 | $as_echo "$ac_try_echo") >&5 |
| 10621 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10622 | ac_status=$? |
| 10623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10624 | rm -f conftest.er1 |
| 10625 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10627 | (exit $ac_status); } >/dev/null && { |
| 10628 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10629 | test ! -s conftest.err |
| 10630 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10631 | ac_header_preproc=yes |
| 10632 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10633 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10635 | |
| 10636 | ac_header_preproc=no |
| 10637 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10638 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10639 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10640 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10641 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10642 | |
| 10643 | # So? What about this header? |
| 10644 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10645 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10646 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10647 | $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10648 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 |
| 10649 | $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] | 10650 | ac_header_preproc=yes |
| 10651 | ;; |
| 10652 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10653 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 |
| 10654 | $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} |
| 10655 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 |
| 10656 | $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} |
| 10657 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 |
| 10658 | $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} |
| 10659 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10660 | $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10661 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 |
| 10662 | $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} |
| 10663 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 |
| 10664 | $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} |
| 10665 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10666 | ;; |
| 10667 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10668 | { $as_echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10669 | $as_echo_n "checking for elf.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10670 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10671 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10672 | else |
| 10673 | ac_cv_header_elf_h=$ac_header_preproc |
| 10674 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10675 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10676 | $as_echo "$ac_cv_header_elf_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10677 | |
| 10678 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 10679 | if test "x$ac_cv_header_elf_h" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10680 | HAS_ELF=1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10681 | fi |
| 10682 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10683 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10684 | if test "$HAS_ELF" = 1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10685 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10686 | { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
| 10687 | $as_echo_n "checking for main in -lelf... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10688 | if test "${ac_cv_lib_elf_main+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10689 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10690 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10691 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10692 | LIBS="-lelf $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10693 | cat >conftest.$ac_ext <<_ACEOF |
| 10694 | /* confdefs.h. */ |
| 10695 | _ACEOF |
| 10696 | cat confdefs.h >>conftest.$ac_ext |
| 10697 | cat >>conftest.$ac_ext <<_ACEOF |
| 10698 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10699 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10700 | |
| 10701 | int |
| 10702 | main () |
| 10703 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10704 | return main (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10705 | ; |
| 10706 | return 0; |
| 10707 | } |
| 10708 | _ACEOF |
| 10709 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10710 | if { (ac_try="$ac_link" |
| 10711 | case "(($ac_try" in |
| 10712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10713 | *) ac_try_echo=$ac_try;; |
| 10714 | esac |
| 10715 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10716 | $as_echo "$ac_try_echo") >&5 |
| 10717 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10718 | ac_status=$? |
| 10719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10720 | rm -f conftest.er1 |
| 10721 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10722 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10723 | (exit $ac_status); } && { |
| 10724 | test -z "$ac_c_werror_flag" || |
| 10725 | test ! -s conftest.err |
| 10726 | } && test -s conftest$ac_exeext && { |
| 10727 | test "$cross_compiling" = yes || |
| 10728 | $as_test_x conftest$ac_exeext |
| 10729 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10730 | ac_cv_lib_elf_main=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10731 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10732 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10733 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10734 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10735 | ac_cv_lib_elf_main=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10736 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10737 | |
| 10738 | rm -rf conftest.dSYM |
| 10739 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10740 | conftest$ac_exeext conftest.$ac_ext |
| 10741 | LIBS=$ac_check_lib_save_LIBS |
| 10742 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10743 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 |
| 10744 | $as_echo "$ac_cv_lib_elf_main" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 10745 | if test "x$ac_cv_lib_elf_main" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10746 | cat >>confdefs.h <<_ACEOF |
| 10747 | #define HAVE_LIBELF 1 |
| 10748 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10749 | |
| 10750 | LIBS="-lelf $LIBS" |
| 10751 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10752 | fi |
| 10753 | |
| 10754 | fi |
| 10755 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10756 | |
| 10757 | |
| 10758 | |
| 10759 | |
| 10760 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10761 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10762 | 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] | 10763 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 10764 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 10765 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| 10766 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10767 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10768 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10769 | cat >conftest.$ac_ext <<_ACEOF |
| 10770 | /* confdefs.h. */ |
| 10771 | _ACEOF |
| 10772 | cat confdefs.h >>conftest.$ac_ext |
| 10773 | cat >>conftest.$ac_ext <<_ACEOF |
| 10774 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10775 | #include <sys/types.h> |
| 10776 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10777 | |
| 10778 | int |
| 10779 | main () |
| 10780 | { |
| 10781 | if ((DIR *) 0) |
| 10782 | return 0; |
| 10783 | ; |
| 10784 | return 0; |
| 10785 | } |
| 10786 | _ACEOF |
| 10787 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10788 | if { (ac_try="$ac_compile" |
| 10789 | case "(($ac_try" in |
| 10790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10791 | *) ac_try_echo=$ac_try;; |
| 10792 | esac |
| 10793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10794 | $as_echo "$ac_try_echo") >&5 |
| 10795 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10796 | ac_status=$? |
| 10797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10798 | rm -f conftest.er1 |
| 10799 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10801 | (exit $ac_status); } && { |
| 10802 | test -z "$ac_c_werror_flag" || |
| 10803 | test ! -s conftest.err |
| 10804 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10805 | eval "$as_ac_Header=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10806 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10807 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10809 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10810 | eval "$as_ac_Header=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10811 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10812 | |
| 10813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10814 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10815 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10816 | $as_echo "$as_val"'` |
| 10817 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10818 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 10819 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 10820 | $as_echo "$as_val"'` |
| 10821 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10822 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10823 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10824 | _ACEOF |
| 10825 | |
| 10826 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10827 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10828 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10829 | done |
| 10830 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 10831 | if test $ac_header_dirent = dirent.h; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10832 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10833 | $as_echo_n "checking for library containing opendir... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10834 | if test "${ac_cv_search_opendir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10835 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10836 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10837 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10838 | cat >conftest.$ac_ext <<_ACEOF |
| 10839 | /* confdefs.h. */ |
| 10840 | _ACEOF |
| 10841 | cat confdefs.h >>conftest.$ac_ext |
| 10842 | cat >>conftest.$ac_ext <<_ACEOF |
| 10843 | /* end confdefs.h. */ |
| 10844 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10845 | /* Override any GCC internal prototype to avoid an error. |
| 10846 | Use char because int might match the return type of a GCC |
| 10847 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10848 | #ifdef __cplusplus |
| 10849 | extern "C" |
| 10850 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10851 | char opendir (); |
| 10852 | int |
| 10853 | main () |
| 10854 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10855 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10856 | ; |
| 10857 | return 0; |
| 10858 | } |
| 10859 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10860 | for ac_lib in '' dir; do |
| 10861 | if test -z "$ac_lib"; then |
| 10862 | ac_res="none required" |
| 10863 | else |
| 10864 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10865 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10866 | fi |
| 10867 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10868 | if { (ac_try="$ac_link" |
| 10869 | case "(($ac_try" in |
| 10870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10871 | *) ac_try_echo=$ac_try;; |
| 10872 | esac |
| 10873 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10874 | $as_echo "$ac_try_echo") >&5 |
| 10875 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10876 | ac_status=$? |
| 10877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10878 | rm -f conftest.er1 |
| 10879 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10880 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10881 | (exit $ac_status); } && { |
| 10882 | test -z "$ac_c_werror_flag" || |
| 10883 | test ! -s conftest.err |
| 10884 | } && test -s conftest$ac_exeext && { |
| 10885 | test "$cross_compiling" = yes || |
| 10886 | $as_test_x conftest$ac_exeext |
| 10887 | }; then |
| 10888 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10889 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10890 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10891 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10892 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10893 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10894 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10895 | |
| 10896 | rm -rf conftest.dSYM |
| 10897 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10898 | conftest$ac_exeext |
| 10899 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10900 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10901 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10902 | done |
| 10903 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10904 | : |
| 10905 | else |
| 10906 | ac_cv_search_opendir=no |
| 10907 | fi |
| 10908 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10909 | LIBS=$ac_func_search_save_LIBS |
| 10910 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10911 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10912 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 10913 | ac_res=$ac_cv_search_opendir |
| 10914 | if test "$ac_res" != no; then |
| 10915 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10916 | |
| 10917 | fi |
| 10918 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10919 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10920 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10921 | $as_echo_n "checking for library containing opendir... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10922 | if test "${ac_cv_search_opendir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10923 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10924 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10925 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10926 | cat >conftest.$ac_ext <<_ACEOF |
| 10927 | /* confdefs.h. */ |
| 10928 | _ACEOF |
| 10929 | cat confdefs.h >>conftest.$ac_ext |
| 10930 | cat >>conftest.$ac_ext <<_ACEOF |
| 10931 | /* end confdefs.h. */ |
| 10932 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10933 | /* Override any GCC internal prototype to avoid an error. |
| 10934 | Use char because int might match the return type of a GCC |
| 10935 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10936 | #ifdef __cplusplus |
| 10937 | extern "C" |
| 10938 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10939 | char opendir (); |
| 10940 | int |
| 10941 | main () |
| 10942 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10943 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10944 | ; |
| 10945 | return 0; |
| 10946 | } |
| 10947 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10948 | for ac_lib in '' x; do |
| 10949 | if test -z "$ac_lib"; then |
| 10950 | ac_res="none required" |
| 10951 | else |
| 10952 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10953 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10954 | fi |
| 10955 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10956 | if { (ac_try="$ac_link" |
| 10957 | case "(($ac_try" in |
| 10958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10959 | *) ac_try_echo=$ac_try;; |
| 10960 | esac |
| 10961 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10962 | $as_echo "$ac_try_echo") >&5 |
| 10963 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10964 | ac_status=$? |
| 10965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10966 | rm -f conftest.er1 |
| 10967 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10968 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10969 | (exit $ac_status); } && { |
| 10970 | test -z "$ac_c_werror_flag" || |
| 10971 | test ! -s conftest.err |
| 10972 | } && test -s conftest$ac_exeext && { |
| 10973 | test "$cross_compiling" = yes || |
| 10974 | $as_test_x conftest$ac_exeext |
| 10975 | }; then |
| 10976 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10977 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10978 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10980 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10981 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10982 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10983 | |
| 10984 | rm -rf conftest.dSYM |
| 10985 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10986 | conftest$ac_exeext |
| 10987 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10988 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10989 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10990 | done |
| 10991 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10992 | : |
| 10993 | else |
| 10994 | ac_cv_search_opendir=no |
| 10995 | fi |
| 10996 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10997 | LIBS=$ac_func_search_save_LIBS |
| 10998 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10999 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 11000 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 11001 | ac_res=$ac_cv_search_opendir |
| 11002 | if test "$ac_res" != no; then |
| 11003 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11004 | |
| 11005 | fi |
| 11006 | |
| 11007 | fi |
| 11008 | |
| 11009 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11010 | if test $ac_cv_header_sys_wait_h = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11011 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
| 11012 | $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] | 11013 | cat >conftest.$ac_ext <<_ACEOF |
| 11014 | /* confdefs.h. */ |
| 11015 | _ACEOF |
| 11016 | cat confdefs.h >>conftest.$ac_ext |
| 11017 | cat >>conftest.$ac_ext <<_ACEOF |
| 11018 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11019 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11020 | int |
| 11021 | main () |
| 11022 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11023 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11024 | ; |
| 11025 | return 0; |
| 11026 | } |
| 11027 | _ACEOF |
| 11028 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11029 | if { (ac_try="$ac_compile" |
| 11030 | case "(($ac_try" in |
| 11031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11032 | *) ac_try_echo=$ac_try;; |
| 11033 | esac |
| 11034 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11035 | $as_echo "$ac_try_echo") >&5 |
| 11036 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11037 | ac_status=$? |
| 11038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11039 | rm -f conftest.er1 |
| 11040 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11042 | (exit $ac_status); } && { |
| 11043 | test -z "$ac_c_werror_flag" || |
| 11044 | test ! -s conftest.err |
| 11045 | } && test -s conftest.$ac_objext; then |
| 11046 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11047 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11048 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11049 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11050 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11051 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11052 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11053 | #define HAVE_UNION_WAIT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11054 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11055 | |
| 11056 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11057 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11059 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11060 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11061 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11062 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11063 | |
| 11064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11065 | fi |
| 11066 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11067 | |
| 11068 | |
| 11069 | |
| 11070 | |
| 11071 | |
| 11072 | |
| 11073 | |
| 11074 | |
| 11075 | |
| 11076 | |
| 11077 | |
| 11078 | |
| 11079 | |
| 11080 | |
| 11081 | |
| 11082 | |
| 11083 | |
| 11084 | |
| 11085 | |
| 11086 | |
| 11087 | |
| 11088 | |
| 11089 | |
| 11090 | |
| 11091 | |
| 11092 | |
| 11093 | |
| 11094 | |
| 11095 | |
| 11096 | |
| 11097 | |
| 11098 | |
| 11099 | |
| 11100 | |
| 11101 | |
| 11102 | |
| 11103 | |
| 11104 | |
| 11105 | |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 11106 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11107 | 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] | 11108 | 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] | 11109 | iconv.h langinfo.h math.h unistd.h stropts.h errno.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11110 | sys/resource.h sys/systeminfo.h locale.h \ |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 11111 | sys/stream.h termios.h libc.h sys/statfs.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11112 | 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] | 11113 | libgen.h util/debug.h util/msg18n.h frame.h \ |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11114 | 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] | 11115 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11116 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11117 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11118 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11119 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11120 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11121 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11122 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11123 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11124 | $as_echo "$as_val"'` |
| 11125 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11126 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11127 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11128 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11129 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11130 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11131 | cat >conftest.$ac_ext <<_ACEOF |
| 11132 | /* confdefs.h. */ |
| 11133 | _ACEOF |
| 11134 | cat confdefs.h >>conftest.$ac_ext |
| 11135 | cat >>conftest.$ac_ext <<_ACEOF |
| 11136 | /* end confdefs.h. */ |
| 11137 | $ac_includes_default |
| 11138 | #include <$ac_header> |
| 11139 | _ACEOF |
| 11140 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11141 | if { (ac_try="$ac_compile" |
| 11142 | case "(($ac_try" in |
| 11143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11144 | *) ac_try_echo=$ac_try;; |
| 11145 | esac |
| 11146 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11147 | $as_echo "$ac_try_echo") >&5 |
| 11148 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11149 | ac_status=$? |
| 11150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11151 | rm -f conftest.er1 |
| 11152 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11153 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11154 | (exit $ac_status); } && { |
| 11155 | test -z "$ac_c_werror_flag" || |
| 11156 | test ! -s conftest.err |
| 11157 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11158 | ac_header_compiler=yes |
| 11159 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11160 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11162 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11163 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11164 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11165 | |
| 11166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11167 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11168 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11169 | |
| 11170 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11171 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11172 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11173 | cat >conftest.$ac_ext <<_ACEOF |
| 11174 | /* confdefs.h. */ |
| 11175 | _ACEOF |
| 11176 | cat confdefs.h >>conftest.$ac_ext |
| 11177 | cat >>conftest.$ac_ext <<_ACEOF |
| 11178 | /* end confdefs.h. */ |
| 11179 | #include <$ac_header> |
| 11180 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11181 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11182 | case "(($ac_try" in |
| 11183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11184 | *) ac_try_echo=$ac_try;; |
| 11185 | esac |
| 11186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11187 | $as_echo "$ac_try_echo") >&5 |
| 11188 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11189 | ac_status=$? |
| 11190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11191 | rm -f conftest.er1 |
| 11192 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11194 | (exit $ac_status); } >/dev/null && { |
| 11195 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11196 | test ! -s conftest.err |
| 11197 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11198 | ac_header_preproc=yes |
| 11199 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11200 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11202 | |
| 11203 | ac_header_preproc=no |
| 11204 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11205 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11206 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11207 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11208 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11209 | |
| 11210 | # So? What about this header? |
| 11211 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11212 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11213 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11214 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11215 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11216 | $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] | 11217 | ac_header_preproc=yes |
| 11218 | ;; |
| 11219 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11220 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11221 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11222 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11223 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11224 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11225 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11226 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11227 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11228 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11229 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11230 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11231 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11232 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11233 | ;; |
| 11234 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11235 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11236 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11237 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11238 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11239 | else |
| 11240 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11241 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11242 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11243 | $as_echo "$as_val"'` |
| 11244 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11245 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11246 | |
| 11247 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11248 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 11249 | $as_echo "$as_val"'` |
| 11250 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11251 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11252 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11253 | _ACEOF |
| 11254 | |
| 11255 | fi |
| 11256 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11257 | done |
| 11258 | |
| 11259 | |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 11260 | |
| 11261 | for ac_header in sys/ptem.h |
| 11262 | do |
| 11263 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11264 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11265 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11266 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11267 | $as_echo_n "(cached) " >&6 |
| 11268 | else |
| 11269 | cat >conftest.$ac_ext <<_ACEOF |
| 11270 | /* confdefs.h. */ |
| 11271 | _ACEOF |
| 11272 | cat confdefs.h >>conftest.$ac_ext |
| 11273 | cat >>conftest.$ac_ext <<_ACEOF |
| 11274 | /* end confdefs.h. */ |
| 11275 | #if defined HAVE_SYS_STREAM_H |
| 11276 | # include <sys/stream.h> |
| 11277 | #endif |
| 11278 | |
| 11279 | #include <$ac_header> |
| 11280 | _ACEOF |
| 11281 | rm -f conftest.$ac_objext |
| 11282 | if { (ac_try="$ac_compile" |
| 11283 | case "(($ac_try" in |
| 11284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11285 | *) ac_try_echo=$ac_try;; |
| 11286 | esac |
| 11287 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11288 | $as_echo "$ac_try_echo") >&5 |
| 11289 | (eval "$ac_compile") 2>conftest.er1 |
| 11290 | ac_status=$? |
| 11291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11292 | rm -f conftest.er1 |
| 11293 | cat conftest.err >&5 |
| 11294 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11295 | (exit $ac_status); } && { |
| 11296 | test -z "$ac_c_werror_flag" || |
| 11297 | test ! -s conftest.err |
| 11298 | } && test -s conftest.$ac_objext; then |
| 11299 | eval "$as_ac_Header=yes" |
| 11300 | else |
| 11301 | $as_echo "$as_me: failed program was:" >&5 |
| 11302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11303 | |
| 11304 | eval "$as_ac_Header=no" |
| 11305 | fi |
| 11306 | |
| 11307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11308 | fi |
| 11309 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11310 | $as_echo "$as_val"'` |
| 11311 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11312 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11313 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 11314 | $as_echo "$as_val"'` |
| 11315 | if test "x$as_val" = x""yes; then |
| 11316 | cat >>confdefs.h <<_ACEOF |
| 11317 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11318 | _ACEOF |
| 11319 | |
| 11320 | fi |
| 11321 | |
| 11322 | done |
| 11323 | |
| 11324 | |
| 11325 | |
| 11326 | for ac_header in sys/sysctl.h |
| 11327 | do |
| 11328 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11329 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11330 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11331 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11332 | $as_echo_n "(cached) " >&6 |
| 11333 | else |
| 11334 | cat >conftest.$ac_ext <<_ACEOF |
| 11335 | /* confdefs.h. */ |
| 11336 | _ACEOF |
| 11337 | cat confdefs.h >>conftest.$ac_ext |
| 11338 | cat >>conftest.$ac_ext <<_ACEOF |
| 11339 | /* end confdefs.h. */ |
| 11340 | #if defined HAVE_SYS_PARAM_H |
| 11341 | # include <sys/param.h> |
| 11342 | #endif |
| 11343 | |
| 11344 | #include <$ac_header> |
| 11345 | _ACEOF |
| 11346 | rm -f conftest.$ac_objext |
| 11347 | if { (ac_try="$ac_compile" |
| 11348 | case "(($ac_try" in |
| 11349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11350 | *) ac_try_echo=$ac_try;; |
| 11351 | esac |
| 11352 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11353 | $as_echo "$ac_try_echo") >&5 |
| 11354 | (eval "$ac_compile") 2>conftest.er1 |
| 11355 | ac_status=$? |
| 11356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11357 | rm -f conftest.er1 |
| 11358 | cat conftest.err >&5 |
| 11359 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11360 | (exit $ac_status); } && { |
| 11361 | test -z "$ac_c_werror_flag" || |
| 11362 | test ! -s conftest.err |
| 11363 | } && test -s conftest.$ac_objext; then |
| 11364 | eval "$as_ac_Header=yes" |
| 11365 | else |
| 11366 | $as_echo "$as_me: failed program was:" >&5 |
| 11367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11368 | |
| 11369 | eval "$as_ac_Header=no" |
| 11370 | fi |
| 11371 | |
| 11372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11373 | fi |
| 11374 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11375 | $as_echo "$as_val"'` |
| 11376 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11377 | $as_echo "$ac_res" >&6; } |
| 11378 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 11379 | $as_echo "$as_val"'` |
| 11380 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 11381 | cat >>confdefs.h <<_ACEOF |
| 11382 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11383 | _ACEOF |
| 11384 | |
| 11385 | fi |
| 11386 | |
| 11387 | done |
| 11388 | |
| 11389 | |
| 11390 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11391 | { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5 |
| 11392 | $as_echo_n "checking for pthread_np.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11393 | cat >conftest.$ac_ext <<_ACEOF |
| 11394 | /* confdefs.h. */ |
| 11395 | _ACEOF |
| 11396 | cat confdefs.h >>conftest.$ac_ext |
| 11397 | cat >>conftest.$ac_ext <<_ACEOF |
| 11398 | /* end confdefs.h. */ |
| 11399 | |
| 11400 | #include <pthread.h> |
| 11401 | #include <pthread_np.h> |
| 11402 | int |
| 11403 | main () |
| 11404 | { |
| 11405 | int i; i = 0; |
| 11406 | ; |
| 11407 | return 0; |
| 11408 | } |
| 11409 | _ACEOF |
| 11410 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11411 | if { (ac_try="$ac_compile" |
| 11412 | case "(($ac_try" in |
| 11413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11414 | *) ac_try_echo=$ac_try;; |
| 11415 | esac |
| 11416 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11417 | $as_echo "$ac_try_echo") >&5 |
| 11418 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11419 | ac_status=$? |
| 11420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11421 | rm -f conftest.er1 |
| 11422 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11423 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11424 | (exit $ac_status); } && { |
| 11425 | test -z "$ac_c_werror_flag" || |
| 11426 | test ! -s conftest.err |
| 11427 | } && test -s conftest.$ac_objext; then |
| 11428 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11429 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11430 | cat >>confdefs.h <<\_ACEOF |
| 11431 | #define HAVE_PTHREAD_NP_H 1 |
| 11432 | _ACEOF |
| 11433 | |
| 11434 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11435 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11437 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11438 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11439 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11440 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11441 | |
| 11442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11443 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11444 | |
| 11445 | for ac_header in strings.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11446 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11447 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11448 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11449 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11450 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11451 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11452 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11453 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11454 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11455 | $as_echo "$as_val"'` |
| 11456 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11457 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11458 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11459 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11460 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11461 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11462 | cat >conftest.$ac_ext <<_ACEOF |
| 11463 | /* confdefs.h. */ |
| 11464 | _ACEOF |
| 11465 | cat confdefs.h >>conftest.$ac_ext |
| 11466 | cat >>conftest.$ac_ext <<_ACEOF |
| 11467 | /* end confdefs.h. */ |
| 11468 | $ac_includes_default |
| 11469 | #include <$ac_header> |
| 11470 | _ACEOF |
| 11471 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11472 | if { (ac_try="$ac_compile" |
| 11473 | case "(($ac_try" in |
| 11474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11475 | *) ac_try_echo=$ac_try;; |
| 11476 | esac |
| 11477 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11478 | $as_echo "$ac_try_echo") >&5 |
| 11479 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11480 | ac_status=$? |
| 11481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11482 | rm -f conftest.er1 |
| 11483 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11484 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11485 | (exit $ac_status); } && { |
| 11486 | test -z "$ac_c_werror_flag" || |
| 11487 | test ! -s conftest.err |
| 11488 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11489 | ac_header_compiler=yes |
| 11490 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11491 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11493 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11494 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11495 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11496 | |
| 11497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11498 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11499 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11500 | |
| 11501 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11502 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11503 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11504 | cat >conftest.$ac_ext <<_ACEOF |
| 11505 | /* confdefs.h. */ |
| 11506 | _ACEOF |
| 11507 | cat confdefs.h >>conftest.$ac_ext |
| 11508 | cat >>conftest.$ac_ext <<_ACEOF |
| 11509 | /* end confdefs.h. */ |
| 11510 | #include <$ac_header> |
| 11511 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11512 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11513 | case "(($ac_try" in |
| 11514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11515 | *) ac_try_echo=$ac_try;; |
| 11516 | esac |
| 11517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11518 | $as_echo "$ac_try_echo") >&5 |
| 11519 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11520 | ac_status=$? |
| 11521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11522 | rm -f conftest.er1 |
| 11523 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11525 | (exit $ac_status); } >/dev/null && { |
| 11526 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11527 | test ! -s conftest.err |
| 11528 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11529 | ac_header_preproc=yes |
| 11530 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11531 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11533 | |
| 11534 | ac_header_preproc=no |
| 11535 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11536 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11537 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11538 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11539 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11540 | |
| 11541 | # So? What about this header? |
| 11542 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11543 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11544 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11545 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11546 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11547 | $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] | 11548 | ac_header_preproc=yes |
| 11549 | ;; |
| 11550 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11551 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11552 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11553 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11554 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11555 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11556 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11557 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11558 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11559 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11560 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11561 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11562 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11563 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11564 | ;; |
| 11565 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11566 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11567 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11568 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11569 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11570 | else |
| 11571 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11572 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11573 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11574 | $as_echo "$as_val"'` |
| 11575 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11576 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11577 | |
| 11578 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11579 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 11580 | $as_echo "$as_val"'` |
| 11581 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11582 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11583 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11584 | _ACEOF |
| 11585 | |
| 11586 | fi |
| 11587 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11588 | done |
| 11589 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 11590 | if test "x$MACOSX" = "xyes"; then |
| 11591 | cat >>confdefs.h <<\_ACEOF |
| 11592 | #define NO_STRINGS_WITH_STRING_H 1 |
| 11593 | _ACEOF |
| 11594 | |
| 11595 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11596 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11597 | { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
| 11598 | $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] | 11599 | cppflags_save=$CPPFLAGS |
| 11600 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11601 | cat >conftest.$ac_ext <<_ACEOF |
| 11602 | /* confdefs.h. */ |
| 11603 | _ACEOF |
| 11604 | cat confdefs.h >>conftest.$ac_ext |
| 11605 | cat >>conftest.$ac_ext <<_ACEOF |
| 11606 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11607 | |
| 11608 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 11609 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 11610 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 11611 | #endif |
| 11612 | #ifdef HAVE_XM_XM_H |
| 11613 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 11614 | #endif |
| 11615 | #ifdef HAVE_STRING_H |
| 11616 | # include <string.h> |
| 11617 | #endif |
| 11618 | #if defined(HAVE_STRINGS_H) |
| 11619 | # include <strings.h> |
| 11620 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11621 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11622 | int |
| 11623 | main () |
| 11624 | { |
| 11625 | int i; i = 0; |
| 11626 | ; |
| 11627 | return 0; |
| 11628 | } |
| 11629 | _ACEOF |
| 11630 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11631 | if { (ac_try="$ac_compile" |
| 11632 | case "(($ac_try" in |
| 11633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11634 | *) ac_try_echo=$ac_try;; |
| 11635 | esac |
| 11636 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11637 | $as_echo "$ac_try_echo") >&5 |
| 11638 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11639 | ac_status=$? |
| 11640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11641 | rm -f conftest.er1 |
| 11642 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11643 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11644 | (exit $ac_status); } && { |
| 11645 | test -z "$ac_c_werror_flag" || |
| 11646 | test ! -s conftest.err |
| 11647 | } && test -s conftest.$ac_objext; then |
| 11648 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11649 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11650 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11651 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11653 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11654 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11655 | #define NO_STRINGS_WITH_STRING_H 1 |
| 11656 | _ACEOF |
| 11657 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11658 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11659 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11660 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11661 | |
| 11662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11663 | CPPFLAGS=$cppflags_save |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 11664 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11665 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11666 | if test $ac_cv_c_compiler_gnu = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11667 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 11668 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11669 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11670 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11671 | else |
| 11672 | ac_pattern="Autoconf.*'x'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11673 | cat >conftest.$ac_ext <<_ACEOF |
| 11674 | /* confdefs.h. */ |
| 11675 | _ACEOF |
| 11676 | cat confdefs.h >>conftest.$ac_ext |
| 11677 | cat >>conftest.$ac_ext <<_ACEOF |
| 11678 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11679 | #include <sgtty.h> |
| 11680 | Autoconf TIOCGETP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11681 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11682 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11683 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11684 | ac_cv_prog_gcc_traditional=yes |
| 11685 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11686 | ac_cv_prog_gcc_traditional=no |
| 11687 | fi |
| 11688 | rm -f conftest* |
| 11689 | |
| 11690 | |
| 11691 | if test $ac_cv_prog_gcc_traditional = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11692 | cat >conftest.$ac_ext <<_ACEOF |
| 11693 | /* confdefs.h. */ |
| 11694 | _ACEOF |
| 11695 | cat confdefs.h >>conftest.$ac_ext |
| 11696 | cat >>conftest.$ac_ext <<_ACEOF |
| 11697 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11698 | #include <termio.h> |
| 11699 | Autoconf TCGETA |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11700 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11701 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11702 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11703 | ac_cv_prog_gcc_traditional=yes |
| 11704 | fi |
| 11705 | rm -f conftest* |
| 11706 | |
| 11707 | fi |
| 11708 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11709 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 11710 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11711 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 11712 | CC="$CC -traditional" |
| 11713 | fi |
| 11714 | fi |
| 11715 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11716 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 11717 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11718 | if test "${ac_cv_c_const+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11719 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11720 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11721 | cat >conftest.$ac_ext <<_ACEOF |
| 11722 | /* confdefs.h. */ |
| 11723 | _ACEOF |
| 11724 | cat confdefs.h >>conftest.$ac_ext |
| 11725 | cat >>conftest.$ac_ext <<_ACEOF |
| 11726 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11727 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11728 | int |
| 11729 | main () |
| 11730 | { |
| 11731 | /* FIXME: Include the comments suggested by Paul. */ |
| 11732 | #ifndef __cplusplus |
| 11733 | /* Ultrix mips cc rejects this. */ |
| 11734 | typedef int charset[2]; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11735 | const charset cs; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11736 | /* SunOS 4.1.1 cc rejects this. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11737 | char const *const *pcpcc; |
| 11738 | char **ppc; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11739 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 11740 | struct point {int x, y;}; |
| 11741 | static struct point const zero = {0,0}; |
| 11742 | /* AIX XL C 1.02.0.0 rejects this. |
| 11743 | It does not let you subtract one const X* pointer from another in |
| 11744 | an arm of an if-expression whose if-part is not a constant |
| 11745 | expression */ |
| 11746 | const char *g = "string"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11747 | pcpcc = &g + (g ? g-g : 0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11748 | /* HPUX 7.0 cc rejects these. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11749 | ++pcpcc; |
| 11750 | ppc = (char**) pcpcc; |
| 11751 | pcpcc = (char const *const *) ppc; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11752 | { /* SCO 3.2v4 cc rejects this. */ |
| 11753 | char *t; |
| 11754 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11755 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11756 | *t++ = 0; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11757 | if (s) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11758 | } |
| 11759 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 11760 | int x[] = {25, 17}; |
| 11761 | const int *foo = &x[0]; |
| 11762 | ++foo; |
| 11763 | } |
| 11764 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 11765 | typedef const int *iptr; |
| 11766 | iptr p = 0; |
| 11767 | ++p; |
| 11768 | } |
| 11769 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 11770 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 11771 | struct s { int j; const int *ap[3]; }; |
| 11772 | struct s *b; b->j = 5; |
| 11773 | } |
| 11774 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 11775 | const int foo = 10; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11776 | if (!foo) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11777 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11778 | return !cs[0] && !zero.x; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11779 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11780 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11781 | ; |
| 11782 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11783 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11784 | _ACEOF |
| 11785 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11786 | if { (ac_try="$ac_compile" |
| 11787 | case "(($ac_try" in |
| 11788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11789 | *) ac_try_echo=$ac_try;; |
| 11790 | esac |
| 11791 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11792 | $as_echo "$ac_try_echo") >&5 |
| 11793 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11794 | ac_status=$? |
| 11795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11796 | rm -f conftest.er1 |
| 11797 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11799 | (exit $ac_status); } && { |
| 11800 | test -z "$ac_c_werror_flag" || |
| 11801 | test ! -s conftest.err |
| 11802 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11803 | ac_cv_c_const=yes |
| 11804 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11805 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11806 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11807 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11808 | ac_cv_c_const=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11809 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11810 | |
| 11811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11812 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11813 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 11814 | $as_echo "$ac_cv_c_const" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11815 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11816 | |
| 11817 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11818 | #define const /**/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11819 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11820 | |
| 11821 | fi |
| 11822 | |
Bram Moolenaar | 76243bd | 2009-03-02 01:47:02 +0000 | [diff] [blame] | 11823 | { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 11824 | $as_echo_n "checking for working volatile... " >&6; } |
| 11825 | if test "${ac_cv_c_volatile+set}" = set; then |
| 11826 | $as_echo_n "(cached) " >&6 |
| 11827 | else |
| 11828 | cat >conftest.$ac_ext <<_ACEOF |
| 11829 | /* confdefs.h. */ |
| 11830 | _ACEOF |
| 11831 | cat confdefs.h >>conftest.$ac_ext |
| 11832 | cat >>conftest.$ac_ext <<_ACEOF |
| 11833 | /* end confdefs.h. */ |
| 11834 | |
| 11835 | int |
| 11836 | main () |
| 11837 | { |
| 11838 | |
| 11839 | volatile int x; |
| 11840 | int * volatile y = (int *) 0; |
| 11841 | return !x && !y; |
| 11842 | ; |
| 11843 | return 0; |
| 11844 | } |
| 11845 | _ACEOF |
| 11846 | rm -f conftest.$ac_objext |
| 11847 | if { (ac_try="$ac_compile" |
| 11848 | case "(($ac_try" in |
| 11849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11850 | *) ac_try_echo=$ac_try;; |
| 11851 | esac |
| 11852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11853 | $as_echo "$ac_try_echo") >&5 |
| 11854 | (eval "$ac_compile") 2>conftest.er1 |
| 11855 | ac_status=$? |
| 11856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11857 | rm -f conftest.er1 |
| 11858 | cat conftest.err >&5 |
| 11859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11860 | (exit $ac_status); } && { |
| 11861 | test -z "$ac_c_werror_flag" || |
| 11862 | test ! -s conftest.err |
| 11863 | } && test -s conftest.$ac_objext; then |
| 11864 | ac_cv_c_volatile=yes |
| 11865 | else |
| 11866 | $as_echo "$as_me: failed program was:" >&5 |
| 11867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11868 | |
| 11869 | ac_cv_c_volatile=no |
| 11870 | fi |
| 11871 | |
| 11872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11873 | fi |
| 11874 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
| 11875 | $as_echo "$ac_cv_c_volatile" >&6; } |
| 11876 | if test $ac_cv_c_volatile = no; then |
| 11877 | |
| 11878 | cat >>confdefs.h <<\_ACEOF |
| 11879 | #define volatile /**/ |
| 11880 | _ACEOF |
| 11881 | |
| 11882 | fi |
| 11883 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11884 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 11885 | $as_echo_n "checking for mode_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11886 | if test "${ac_cv_type_mode_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11887 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11888 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11889 | ac_cv_type_mode_t=no |
| 11890 | cat >conftest.$ac_ext <<_ACEOF |
| 11891 | /* confdefs.h. */ |
| 11892 | _ACEOF |
| 11893 | cat confdefs.h >>conftest.$ac_ext |
| 11894 | cat >>conftest.$ac_ext <<_ACEOF |
| 11895 | /* end confdefs.h. */ |
| 11896 | $ac_includes_default |
| 11897 | int |
| 11898 | main () |
| 11899 | { |
| 11900 | if (sizeof (mode_t)) |
| 11901 | return 0; |
| 11902 | ; |
| 11903 | return 0; |
| 11904 | } |
| 11905 | _ACEOF |
| 11906 | rm -f conftest.$ac_objext |
| 11907 | if { (ac_try="$ac_compile" |
| 11908 | case "(($ac_try" in |
| 11909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11910 | *) ac_try_echo=$ac_try;; |
| 11911 | esac |
| 11912 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11913 | $as_echo "$ac_try_echo") >&5 |
| 11914 | (eval "$ac_compile") 2>conftest.er1 |
| 11915 | ac_status=$? |
| 11916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11917 | rm -f conftest.er1 |
| 11918 | cat conftest.err >&5 |
| 11919 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11920 | (exit $ac_status); } && { |
| 11921 | test -z "$ac_c_werror_flag" || |
| 11922 | test ! -s conftest.err |
| 11923 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11924 | cat >conftest.$ac_ext <<_ACEOF |
| 11925 | /* confdefs.h. */ |
| 11926 | _ACEOF |
| 11927 | cat confdefs.h >>conftest.$ac_ext |
| 11928 | cat >>conftest.$ac_ext <<_ACEOF |
| 11929 | /* end confdefs.h. */ |
| 11930 | $ac_includes_default |
| 11931 | int |
| 11932 | main () |
| 11933 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11934 | if (sizeof ((mode_t))) |
| 11935 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11936 | ; |
| 11937 | return 0; |
| 11938 | } |
| 11939 | _ACEOF |
| 11940 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11941 | if { (ac_try="$ac_compile" |
| 11942 | case "(($ac_try" in |
| 11943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11944 | *) ac_try_echo=$ac_try;; |
| 11945 | esac |
| 11946 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11947 | $as_echo "$ac_try_echo") >&5 |
| 11948 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11949 | ac_status=$? |
| 11950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11951 | rm -f conftest.er1 |
| 11952 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11953 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11954 | (exit $ac_status); } && { |
| 11955 | test -z "$ac_c_werror_flag" || |
| 11956 | test ! -s conftest.err |
| 11957 | } && test -s conftest.$ac_objext; then |
| 11958 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11959 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11960 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11961 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11962 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11963 | ac_cv_type_mode_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11964 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11965 | |
| 11966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11967 | else |
| 11968 | $as_echo "$as_me: failed program was:" >&5 |
| 11969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11970 | |
| 11971 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11972 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11973 | |
| 11974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11975 | fi |
| 11976 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 11977 | $as_echo "$ac_cv_type_mode_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11978 | if test "x$ac_cv_type_mode_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11979 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11980 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11981 | |
| 11982 | cat >>confdefs.h <<_ACEOF |
| 11983 | #define mode_t int |
| 11984 | _ACEOF |
| 11985 | |
| 11986 | fi |
| 11987 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11988 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
| 11989 | $as_echo_n "checking for off_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11990 | if test "${ac_cv_type_off_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11991 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11992 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11993 | ac_cv_type_off_t=no |
| 11994 | cat >conftest.$ac_ext <<_ACEOF |
| 11995 | /* confdefs.h. */ |
| 11996 | _ACEOF |
| 11997 | cat confdefs.h >>conftest.$ac_ext |
| 11998 | cat >>conftest.$ac_ext <<_ACEOF |
| 11999 | /* end confdefs.h. */ |
| 12000 | $ac_includes_default |
| 12001 | int |
| 12002 | main () |
| 12003 | { |
| 12004 | if (sizeof (off_t)) |
| 12005 | return 0; |
| 12006 | ; |
| 12007 | return 0; |
| 12008 | } |
| 12009 | _ACEOF |
| 12010 | rm -f conftest.$ac_objext |
| 12011 | if { (ac_try="$ac_compile" |
| 12012 | case "(($ac_try" in |
| 12013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12014 | *) ac_try_echo=$ac_try;; |
| 12015 | esac |
| 12016 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12017 | $as_echo "$ac_try_echo") >&5 |
| 12018 | (eval "$ac_compile") 2>conftest.er1 |
| 12019 | ac_status=$? |
| 12020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12021 | rm -f conftest.er1 |
| 12022 | cat conftest.err >&5 |
| 12023 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12024 | (exit $ac_status); } && { |
| 12025 | test -z "$ac_c_werror_flag" || |
| 12026 | test ! -s conftest.err |
| 12027 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12028 | cat >conftest.$ac_ext <<_ACEOF |
| 12029 | /* confdefs.h. */ |
| 12030 | _ACEOF |
| 12031 | cat confdefs.h >>conftest.$ac_ext |
| 12032 | cat >>conftest.$ac_ext <<_ACEOF |
| 12033 | /* end confdefs.h. */ |
| 12034 | $ac_includes_default |
| 12035 | int |
| 12036 | main () |
| 12037 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12038 | if (sizeof ((off_t))) |
| 12039 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12040 | ; |
| 12041 | return 0; |
| 12042 | } |
| 12043 | _ACEOF |
| 12044 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12045 | if { (ac_try="$ac_compile" |
| 12046 | case "(($ac_try" in |
| 12047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12048 | *) ac_try_echo=$ac_try;; |
| 12049 | esac |
| 12050 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12051 | $as_echo "$ac_try_echo") >&5 |
| 12052 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12053 | ac_status=$? |
| 12054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12055 | rm -f conftest.er1 |
| 12056 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12057 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12058 | (exit $ac_status); } && { |
| 12059 | test -z "$ac_c_werror_flag" || |
| 12060 | test ! -s conftest.err |
| 12061 | } && test -s conftest.$ac_objext; then |
| 12062 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12063 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12064 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12065 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12066 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12067 | ac_cv_type_off_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12068 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12069 | |
| 12070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12071 | else |
| 12072 | $as_echo "$as_me: failed program was:" >&5 |
| 12073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12074 | |
| 12075 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12076 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12077 | |
| 12078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12079 | fi |
| 12080 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 12081 | $as_echo "$ac_cv_type_off_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12082 | if test "x$ac_cv_type_off_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12083 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12084 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12085 | |
| 12086 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12087 | #define off_t long int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12088 | _ACEOF |
| 12089 | |
| 12090 | fi |
| 12091 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12092 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 12093 | $as_echo_n "checking for pid_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12094 | if test "${ac_cv_type_pid_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12095 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12096 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12097 | ac_cv_type_pid_t=no |
| 12098 | cat >conftest.$ac_ext <<_ACEOF |
| 12099 | /* confdefs.h. */ |
| 12100 | _ACEOF |
| 12101 | cat confdefs.h >>conftest.$ac_ext |
| 12102 | cat >>conftest.$ac_ext <<_ACEOF |
| 12103 | /* end confdefs.h. */ |
| 12104 | $ac_includes_default |
| 12105 | int |
| 12106 | main () |
| 12107 | { |
| 12108 | if (sizeof (pid_t)) |
| 12109 | return 0; |
| 12110 | ; |
| 12111 | return 0; |
| 12112 | } |
| 12113 | _ACEOF |
| 12114 | rm -f conftest.$ac_objext |
| 12115 | if { (ac_try="$ac_compile" |
| 12116 | case "(($ac_try" in |
| 12117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12118 | *) ac_try_echo=$ac_try;; |
| 12119 | esac |
| 12120 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12121 | $as_echo "$ac_try_echo") >&5 |
| 12122 | (eval "$ac_compile") 2>conftest.er1 |
| 12123 | ac_status=$? |
| 12124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12125 | rm -f conftest.er1 |
| 12126 | cat conftest.err >&5 |
| 12127 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12128 | (exit $ac_status); } && { |
| 12129 | test -z "$ac_c_werror_flag" || |
| 12130 | test ! -s conftest.err |
| 12131 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12132 | cat >conftest.$ac_ext <<_ACEOF |
| 12133 | /* confdefs.h. */ |
| 12134 | _ACEOF |
| 12135 | cat confdefs.h >>conftest.$ac_ext |
| 12136 | cat >>conftest.$ac_ext <<_ACEOF |
| 12137 | /* end confdefs.h. */ |
| 12138 | $ac_includes_default |
| 12139 | int |
| 12140 | main () |
| 12141 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12142 | if (sizeof ((pid_t))) |
| 12143 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12144 | ; |
| 12145 | return 0; |
| 12146 | } |
| 12147 | _ACEOF |
| 12148 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12149 | if { (ac_try="$ac_compile" |
| 12150 | case "(($ac_try" in |
| 12151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12152 | *) ac_try_echo=$ac_try;; |
| 12153 | esac |
| 12154 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12155 | $as_echo "$ac_try_echo") >&5 |
| 12156 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12157 | ac_status=$? |
| 12158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12159 | rm -f conftest.er1 |
| 12160 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12161 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12162 | (exit $ac_status); } && { |
| 12163 | test -z "$ac_c_werror_flag" || |
| 12164 | test ! -s conftest.err |
| 12165 | } && test -s conftest.$ac_objext; then |
| 12166 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12167 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12168 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12169 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12170 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12171 | ac_cv_type_pid_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12172 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12173 | |
| 12174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12175 | else |
| 12176 | $as_echo "$as_me: failed program was:" >&5 |
| 12177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12178 | |
| 12179 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12180 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12181 | |
| 12182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12183 | fi |
| 12184 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 12185 | $as_echo "$ac_cv_type_pid_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12186 | if test "x$ac_cv_type_pid_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12187 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12188 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12189 | |
| 12190 | cat >>confdefs.h <<_ACEOF |
| 12191 | #define pid_t int |
| 12192 | _ACEOF |
| 12193 | |
| 12194 | fi |
| 12195 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12196 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
| 12197 | $as_echo_n "checking for size_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12198 | if test "${ac_cv_type_size_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12199 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12200 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12201 | ac_cv_type_size_t=no |
| 12202 | cat >conftest.$ac_ext <<_ACEOF |
| 12203 | /* confdefs.h. */ |
| 12204 | _ACEOF |
| 12205 | cat confdefs.h >>conftest.$ac_ext |
| 12206 | cat >>conftest.$ac_ext <<_ACEOF |
| 12207 | /* end confdefs.h. */ |
| 12208 | $ac_includes_default |
| 12209 | int |
| 12210 | main () |
| 12211 | { |
| 12212 | if (sizeof (size_t)) |
| 12213 | return 0; |
| 12214 | ; |
| 12215 | return 0; |
| 12216 | } |
| 12217 | _ACEOF |
| 12218 | rm -f conftest.$ac_objext |
| 12219 | if { (ac_try="$ac_compile" |
| 12220 | case "(($ac_try" in |
| 12221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12222 | *) ac_try_echo=$ac_try;; |
| 12223 | esac |
| 12224 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12225 | $as_echo "$ac_try_echo") >&5 |
| 12226 | (eval "$ac_compile") 2>conftest.er1 |
| 12227 | ac_status=$? |
| 12228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12229 | rm -f conftest.er1 |
| 12230 | cat conftest.err >&5 |
| 12231 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12232 | (exit $ac_status); } && { |
| 12233 | test -z "$ac_c_werror_flag" || |
| 12234 | test ! -s conftest.err |
| 12235 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12236 | cat >conftest.$ac_ext <<_ACEOF |
| 12237 | /* confdefs.h. */ |
| 12238 | _ACEOF |
| 12239 | cat confdefs.h >>conftest.$ac_ext |
| 12240 | cat >>conftest.$ac_ext <<_ACEOF |
| 12241 | /* end confdefs.h. */ |
| 12242 | $ac_includes_default |
| 12243 | int |
| 12244 | main () |
| 12245 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12246 | if (sizeof ((size_t))) |
| 12247 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12248 | ; |
| 12249 | return 0; |
| 12250 | } |
| 12251 | _ACEOF |
| 12252 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12253 | if { (ac_try="$ac_compile" |
| 12254 | case "(($ac_try" in |
| 12255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12256 | *) ac_try_echo=$ac_try;; |
| 12257 | esac |
| 12258 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12259 | $as_echo "$ac_try_echo") >&5 |
| 12260 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12261 | ac_status=$? |
| 12262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12263 | rm -f conftest.er1 |
| 12264 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12266 | (exit $ac_status); } && { |
| 12267 | test -z "$ac_c_werror_flag" || |
| 12268 | test ! -s conftest.err |
| 12269 | } && test -s conftest.$ac_objext; then |
| 12270 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12271 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12272 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12273 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12274 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12275 | ac_cv_type_size_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12276 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12277 | |
| 12278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12279 | else |
| 12280 | $as_echo "$as_me: failed program was:" >&5 |
| 12281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12282 | |
| 12283 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12284 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12285 | |
| 12286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12287 | fi |
| 12288 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 12289 | $as_echo "$ac_cv_type_size_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12290 | if test "x$ac_cv_type_size_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12291 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12292 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12293 | |
| 12294 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12295 | #define size_t unsigned int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12296 | _ACEOF |
| 12297 | |
| 12298 | fi |
| 12299 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12300 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 12301 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12302 | if test "${ac_cv_type_uid_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12303 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12304 | else |
| 12305 | cat >conftest.$ac_ext <<_ACEOF |
| 12306 | /* confdefs.h. */ |
| 12307 | _ACEOF |
| 12308 | cat confdefs.h >>conftest.$ac_ext |
| 12309 | cat >>conftest.$ac_ext <<_ACEOF |
| 12310 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12311 | #include <sys/types.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12312 | |
| 12313 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12314 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12315 | $EGREP "uid_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12316 | ac_cv_type_uid_t=yes |
| 12317 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12318 | ac_cv_type_uid_t=no |
| 12319 | fi |
| 12320 | rm -f conftest* |
| 12321 | |
| 12322 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12323 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 12324 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12325 | if test $ac_cv_type_uid_t = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12326 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12327 | cat >>confdefs.h <<\_ACEOF |
| 12328 | #define uid_t int |
| 12329 | _ACEOF |
| 12330 | |
| 12331 | |
| 12332 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12333 | #define gid_t int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12334 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12335 | |
| 12336 | fi |
| 12337 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12338 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 12339 | $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] | 12340 | if test "${ac_cv_header_time+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12341 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12342 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12343 | cat >conftest.$ac_ext <<_ACEOF |
| 12344 | /* confdefs.h. */ |
| 12345 | _ACEOF |
| 12346 | cat confdefs.h >>conftest.$ac_ext |
| 12347 | cat >>conftest.$ac_ext <<_ACEOF |
| 12348 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12349 | #include <sys/types.h> |
| 12350 | #include <sys/time.h> |
| 12351 | #include <time.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12352 | |
| 12353 | int |
| 12354 | main () |
| 12355 | { |
| 12356 | if ((struct tm *) 0) |
| 12357 | return 0; |
| 12358 | ; |
| 12359 | return 0; |
| 12360 | } |
| 12361 | _ACEOF |
| 12362 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12363 | if { (ac_try="$ac_compile" |
| 12364 | case "(($ac_try" in |
| 12365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12366 | *) ac_try_echo=$ac_try;; |
| 12367 | esac |
| 12368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12369 | $as_echo "$ac_try_echo") >&5 |
| 12370 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12371 | ac_status=$? |
| 12372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12373 | rm -f conftest.er1 |
| 12374 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12376 | (exit $ac_status); } && { |
| 12377 | test -z "$ac_c_werror_flag" || |
| 12378 | test ! -s conftest.err |
| 12379 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12380 | ac_cv_header_time=yes |
| 12381 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12382 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12383 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12384 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12385 | ac_cv_header_time=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12386 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12387 | |
| 12388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12389 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12390 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 12391 | $as_echo "$ac_cv_header_time" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12392 | if test $ac_cv_header_time = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12393 | |
| 12394 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12395 | #define TIME_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12396 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12397 | |
| 12398 | fi |
| 12399 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12400 | { $as_echo "$as_me:$LINENO: checking for ino_t" >&5 |
| 12401 | $as_echo_n "checking for ino_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12402 | if test "${ac_cv_type_ino_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12403 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12404 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12405 | ac_cv_type_ino_t=no |
| 12406 | cat >conftest.$ac_ext <<_ACEOF |
| 12407 | /* confdefs.h. */ |
| 12408 | _ACEOF |
| 12409 | cat confdefs.h >>conftest.$ac_ext |
| 12410 | cat >>conftest.$ac_ext <<_ACEOF |
| 12411 | /* end confdefs.h. */ |
| 12412 | $ac_includes_default |
| 12413 | int |
| 12414 | main () |
| 12415 | { |
| 12416 | if (sizeof (ino_t)) |
| 12417 | return 0; |
| 12418 | ; |
| 12419 | return 0; |
| 12420 | } |
| 12421 | _ACEOF |
| 12422 | rm -f conftest.$ac_objext |
| 12423 | if { (ac_try="$ac_compile" |
| 12424 | case "(($ac_try" in |
| 12425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12426 | *) ac_try_echo=$ac_try;; |
| 12427 | esac |
| 12428 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12429 | $as_echo "$ac_try_echo") >&5 |
| 12430 | (eval "$ac_compile") 2>conftest.er1 |
| 12431 | ac_status=$? |
| 12432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12433 | rm -f conftest.er1 |
| 12434 | cat conftest.err >&5 |
| 12435 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12436 | (exit $ac_status); } && { |
| 12437 | test -z "$ac_c_werror_flag" || |
| 12438 | test ! -s conftest.err |
| 12439 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12440 | cat >conftest.$ac_ext <<_ACEOF |
| 12441 | /* confdefs.h. */ |
| 12442 | _ACEOF |
| 12443 | cat confdefs.h >>conftest.$ac_ext |
| 12444 | cat >>conftest.$ac_ext <<_ACEOF |
| 12445 | /* end confdefs.h. */ |
| 12446 | $ac_includes_default |
| 12447 | int |
| 12448 | main () |
| 12449 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12450 | if (sizeof ((ino_t))) |
| 12451 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12452 | ; |
| 12453 | return 0; |
| 12454 | } |
| 12455 | _ACEOF |
| 12456 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12457 | if { (ac_try="$ac_compile" |
| 12458 | case "(($ac_try" in |
| 12459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12460 | *) ac_try_echo=$ac_try;; |
| 12461 | esac |
| 12462 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12463 | $as_echo "$ac_try_echo") >&5 |
| 12464 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12465 | ac_status=$? |
| 12466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12467 | rm -f conftest.er1 |
| 12468 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12469 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12470 | (exit $ac_status); } && { |
| 12471 | test -z "$ac_c_werror_flag" || |
| 12472 | test ! -s conftest.err |
| 12473 | } && test -s conftest.$ac_objext; then |
| 12474 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12475 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12476 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12477 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12478 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12479 | ac_cv_type_ino_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12480 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12481 | |
| 12482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12483 | else |
| 12484 | $as_echo "$as_me: failed program was:" >&5 |
| 12485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12486 | |
| 12487 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12488 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12489 | |
| 12490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12491 | fi |
| 12492 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
| 12493 | $as_echo "$ac_cv_type_ino_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12494 | if test "x$ac_cv_type_ino_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12495 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12496 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12497 | |
| 12498 | cat >>confdefs.h <<_ACEOF |
| 12499 | #define ino_t long |
| 12500 | _ACEOF |
| 12501 | |
| 12502 | fi |
| 12503 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12504 | { $as_echo "$as_me:$LINENO: checking for dev_t" >&5 |
| 12505 | $as_echo_n "checking for dev_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12506 | if test "${ac_cv_type_dev_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12507 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12508 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12509 | ac_cv_type_dev_t=no |
| 12510 | cat >conftest.$ac_ext <<_ACEOF |
| 12511 | /* confdefs.h. */ |
| 12512 | _ACEOF |
| 12513 | cat confdefs.h >>conftest.$ac_ext |
| 12514 | cat >>conftest.$ac_ext <<_ACEOF |
| 12515 | /* end confdefs.h. */ |
| 12516 | $ac_includes_default |
| 12517 | int |
| 12518 | main () |
| 12519 | { |
| 12520 | if (sizeof (dev_t)) |
| 12521 | return 0; |
| 12522 | ; |
| 12523 | return 0; |
| 12524 | } |
| 12525 | _ACEOF |
| 12526 | rm -f conftest.$ac_objext |
| 12527 | if { (ac_try="$ac_compile" |
| 12528 | case "(($ac_try" in |
| 12529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12530 | *) ac_try_echo=$ac_try;; |
| 12531 | esac |
| 12532 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12533 | $as_echo "$ac_try_echo") >&5 |
| 12534 | (eval "$ac_compile") 2>conftest.er1 |
| 12535 | ac_status=$? |
| 12536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12537 | rm -f conftest.er1 |
| 12538 | cat conftest.err >&5 |
| 12539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12540 | (exit $ac_status); } && { |
| 12541 | test -z "$ac_c_werror_flag" || |
| 12542 | test ! -s conftest.err |
| 12543 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12544 | cat >conftest.$ac_ext <<_ACEOF |
| 12545 | /* confdefs.h. */ |
| 12546 | _ACEOF |
| 12547 | cat confdefs.h >>conftest.$ac_ext |
| 12548 | cat >>conftest.$ac_ext <<_ACEOF |
| 12549 | /* end confdefs.h. */ |
| 12550 | $ac_includes_default |
| 12551 | int |
| 12552 | main () |
| 12553 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12554 | if (sizeof ((dev_t))) |
| 12555 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12556 | ; |
| 12557 | return 0; |
| 12558 | } |
| 12559 | _ACEOF |
| 12560 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12561 | if { (ac_try="$ac_compile" |
| 12562 | case "(($ac_try" in |
| 12563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12564 | *) ac_try_echo=$ac_try;; |
| 12565 | esac |
| 12566 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12567 | $as_echo "$ac_try_echo") >&5 |
| 12568 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12569 | ac_status=$? |
| 12570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12571 | rm -f conftest.er1 |
| 12572 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12573 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12574 | (exit $ac_status); } && { |
| 12575 | test -z "$ac_c_werror_flag" || |
| 12576 | test ! -s conftest.err |
| 12577 | } && test -s conftest.$ac_objext; then |
| 12578 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12579 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12580 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12582 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12583 | ac_cv_type_dev_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12584 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12585 | |
| 12586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12587 | else |
| 12588 | $as_echo "$as_me: failed program was:" >&5 |
| 12589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12590 | |
| 12591 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12592 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12593 | |
| 12594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12595 | fi |
| 12596 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
| 12597 | $as_echo "$ac_cv_type_dev_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12598 | if test "x$ac_cv_type_dev_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12599 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12600 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12601 | |
| 12602 | cat >>confdefs.h <<_ACEOF |
| 12603 | #define dev_t unsigned |
| 12604 | _ACEOF |
| 12605 | |
| 12606 | fi |
| 12607 | |
| 12608 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12609 | { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5 |
| 12610 | $as_echo_n "checking for rlim_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12611 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12612 | { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 12613 | $as_echo "(cached) $ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12614 | else |
| 12615 | cat >conftest.$ac_ext <<_ACEOF |
| 12616 | /* confdefs.h. */ |
| 12617 | _ACEOF |
| 12618 | cat confdefs.h >>conftest.$ac_ext |
| 12619 | cat >>conftest.$ac_ext <<_ACEOF |
| 12620 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12621 | |
| 12622 | #include <sys/types.h> |
| 12623 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12624 | # include <stdlib.h> |
| 12625 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12626 | #endif |
| 12627 | #ifdef HAVE_SYS_RESOURCE_H |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12628 | # include <sys/resource.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12629 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12630 | |
| 12631 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12633 | $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] | 12634 | ac_cv_type_rlim_t=yes |
| 12635 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12636 | ac_cv_type_rlim_t=no |
| 12637 | fi |
| 12638 | rm -f conftest* |
| 12639 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12640 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
| 12641 | $as_echo "$ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12642 | fi |
| 12643 | if test $ac_cv_type_rlim_t = no; then |
| 12644 | cat >> confdefs.h <<\EOF |
| 12645 | #define rlim_t unsigned long |
| 12646 | EOF |
| 12647 | fi |
| 12648 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12649 | { $as_echo "$as_me:$LINENO: checking for stack_t" >&5 |
| 12650 | $as_echo_n "checking for stack_t... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12651 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12652 | { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
| 12653 | $as_echo "(cached) $ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12654 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12655 | cat >conftest.$ac_ext <<_ACEOF |
| 12656 | /* confdefs.h. */ |
| 12657 | _ACEOF |
| 12658 | cat confdefs.h >>conftest.$ac_ext |
| 12659 | cat >>conftest.$ac_ext <<_ACEOF |
| 12660 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12661 | |
| 12662 | #include <sys/types.h> |
| 12663 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12664 | # include <stdlib.h> |
| 12665 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12666 | #endif |
| 12667 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12668 | |
| 12669 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12670 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12671 | $EGREP "stack_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12672 | ac_cv_type_stack_t=yes |
| 12673 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12674 | ac_cv_type_stack_t=no |
| 12675 | fi |
| 12676 | rm -f conftest* |
| 12677 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12678 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
| 12679 | $as_echo "$ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12680 | fi |
| 12681 | if test $ac_cv_type_stack_t = no; then |
| 12682 | cat >> confdefs.h <<\EOF |
| 12683 | #define stack_t struct sigaltstack |
| 12684 | EOF |
| 12685 | fi |
| 12686 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12687 | { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
| 12688 | $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] | 12689 | cat >conftest.$ac_ext <<_ACEOF |
| 12690 | /* confdefs.h. */ |
| 12691 | _ACEOF |
| 12692 | cat confdefs.h >>conftest.$ac_ext |
| 12693 | cat >>conftest.$ac_ext <<_ACEOF |
| 12694 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12695 | |
| 12696 | #include <sys/types.h> |
| 12697 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12698 | # include <stdlib.h> |
| 12699 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12700 | #endif |
| 12701 | #include <signal.h> |
| 12702 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12703 | |
| 12704 | int |
| 12705 | main () |
| 12706 | { |
| 12707 | stack_t sigstk; sigstk.ss_base = 0; |
| 12708 | ; |
| 12709 | return 0; |
| 12710 | } |
| 12711 | _ACEOF |
| 12712 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12713 | if { (ac_try="$ac_compile" |
| 12714 | case "(($ac_try" in |
| 12715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12716 | *) ac_try_echo=$ac_try;; |
| 12717 | esac |
| 12718 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12719 | $as_echo "$ac_try_echo") >&5 |
| 12720 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12721 | ac_status=$? |
| 12722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12723 | rm -f conftest.er1 |
| 12724 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12725 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12726 | (exit $ac_status); } && { |
| 12727 | test -z "$ac_c_werror_flag" || |
| 12728 | test ! -s conftest.err |
| 12729 | } && test -s conftest.$ac_objext; then |
| 12730 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12731 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12732 | #define HAVE_SS_BASE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12733 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12734 | |
| 12735 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12736 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12738 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12739 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12740 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12741 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12742 | |
| 12743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12744 | |
| 12745 | olibs="$LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12746 | { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
| 12747 | $as_echo_n "checking --with-tlib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12748 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12749 | # Check whether --with-tlib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12750 | if test "${with_tlib+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12751 | withval=$with_tlib; |
| 12752 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12753 | |
| 12754 | if test -n "$with_tlib"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12755 | { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5 |
| 12756 | $as_echo "$with_tlib" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12757 | LIBS="$LIBS -l$with_tlib" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12758 | { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
| 12759 | $as_echo_n "checking for linking with $with_tlib library... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12760 | cat >conftest.$ac_ext <<_ACEOF |
| 12761 | /* confdefs.h. */ |
| 12762 | _ACEOF |
| 12763 | cat confdefs.h >>conftest.$ac_ext |
| 12764 | cat >>conftest.$ac_ext <<_ACEOF |
| 12765 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12766 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12767 | int |
| 12768 | main () |
| 12769 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12770 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12771 | ; |
| 12772 | return 0; |
| 12773 | } |
| 12774 | _ACEOF |
| 12775 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12776 | if { (ac_try="$ac_link" |
| 12777 | case "(($ac_try" in |
| 12778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12779 | *) ac_try_echo=$ac_try;; |
| 12780 | esac |
| 12781 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12782 | $as_echo "$ac_try_echo") >&5 |
| 12783 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12784 | ac_status=$? |
| 12785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12786 | rm -f conftest.er1 |
| 12787 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12788 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12789 | (exit $ac_status); } && { |
| 12790 | test -z "$ac_c_werror_flag" || |
| 12791 | test ! -s conftest.err |
| 12792 | } && test -s conftest$ac_exeext && { |
| 12793 | test "$cross_compiling" = yes || |
| 12794 | $as_test_x conftest$ac_exeext |
| 12795 | }; then |
| 12796 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 12797 | $as_echo "OK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12798 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12799 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12801 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12802 | { { $as_echo "$as_me:$LINENO: error: FAILED" >&5 |
| 12803 | $as_echo "$as_me: error: FAILED" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12804 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12805 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12806 | |
| 12807 | rm -rf conftest.dSYM |
| 12808 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12809 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12810 | olibs="$LIBS" |
| 12811 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12812 | { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
| 12813 | $as_echo "empty: automatic terminal library selection" >&6; } |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 12814 | case "`uname -s 2>/dev/null`" in |
| 12815 | OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12816 | *) tlibs="ncurses termlib termcap curses";; |
| 12817 | esac |
| 12818 | for libname in $tlibs; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12819 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12820 | as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
| 12821 | { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
| 12822 | $as_echo_n "checking for tgetent in -l${libname}... " >&6; } |
| 12823 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12824 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12825 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12826 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12827 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12828 | cat >conftest.$ac_ext <<_ACEOF |
| 12829 | /* confdefs.h. */ |
| 12830 | _ACEOF |
| 12831 | cat confdefs.h >>conftest.$ac_ext |
| 12832 | cat >>conftest.$ac_ext <<_ACEOF |
| 12833 | /* end confdefs.h. */ |
| 12834 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12835 | /* Override any GCC internal prototype to avoid an error. |
| 12836 | Use char because int might match the return type of a GCC |
| 12837 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12838 | #ifdef __cplusplus |
| 12839 | extern "C" |
| 12840 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12841 | char tgetent (); |
| 12842 | int |
| 12843 | main () |
| 12844 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12845 | return tgetent (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12846 | ; |
| 12847 | return 0; |
| 12848 | } |
| 12849 | _ACEOF |
| 12850 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12851 | if { (ac_try="$ac_link" |
| 12852 | case "(($ac_try" in |
| 12853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12854 | *) ac_try_echo=$ac_try;; |
| 12855 | esac |
| 12856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12857 | $as_echo "$ac_try_echo") >&5 |
| 12858 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12859 | ac_status=$? |
| 12860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12861 | rm -f conftest.er1 |
| 12862 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12864 | (exit $ac_status); } && { |
| 12865 | test -z "$ac_c_werror_flag" || |
| 12866 | test ! -s conftest.err |
| 12867 | } && test -s conftest$ac_exeext && { |
| 12868 | test "$cross_compiling" = yes || |
| 12869 | $as_test_x conftest$ac_exeext |
| 12870 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12871 | eval "$as_ac_Lib=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12872 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12873 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12874 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12875 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12876 | eval "$as_ac_Lib=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12877 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12878 | |
| 12879 | rm -rf conftest.dSYM |
| 12880 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12881 | conftest$ac_exeext conftest.$ac_ext |
| 12882 | LIBS=$ac_check_lib_save_LIBS |
| 12883 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12884 | ac_res=`eval 'as_val=${'$as_ac_Lib'} |
| 12885 | $as_echo "$as_val"'` |
| 12886 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12887 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12888 | as_val=`eval 'as_val=${'$as_ac_Lib'} |
| 12889 | $as_echo "$as_val"'` |
| 12890 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12891 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12892 | #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12893 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12894 | |
| 12895 | LIBS="-l${libname} $LIBS" |
| 12896 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12897 | fi |
| 12898 | |
| 12899 | if test "x$olibs" != "x$LIBS"; then |
| 12900 | if test "$cross_compiling" = yes; then |
| 12901 | res="FAIL" |
| 12902 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12903 | cat >conftest.$ac_ext <<_ACEOF |
| 12904 | /* confdefs.h. */ |
| 12905 | _ACEOF |
| 12906 | cat confdefs.h >>conftest.$ac_ext |
| 12907 | cat >>conftest.$ac_ext <<_ACEOF |
| 12908 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12909 | |
| 12910 | #ifdef HAVE_TERMCAP_H |
| 12911 | # include <termcap.h> |
| 12912 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12913 | #if STDC_HEADERS |
| 12914 | # include <stdlib.h> |
| 12915 | # include <stddef.h> |
| 12916 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12917 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12918 | _ACEOF |
| 12919 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12920 | if { (ac_try="$ac_link" |
| 12921 | case "(($ac_try" in |
| 12922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12923 | *) ac_try_echo=$ac_try;; |
| 12924 | esac |
| 12925 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12926 | $as_echo "$ac_try_echo") >&5 |
| 12927 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12928 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12930 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12931 | { (case "(($ac_try" in |
| 12932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12933 | *) ac_try_echo=$ac_try;; |
| 12934 | esac |
| 12935 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12936 | $as_echo "$ac_try_echo") >&5 |
| 12937 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12938 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12939 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12940 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12941 | res="OK" |
| 12942 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12943 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12944 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12945 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12946 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12947 | ( exit $ac_status ) |
| 12948 | res="FAIL" |
| 12949 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12950 | rm -rf conftest.dSYM |
| 12951 | 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] | 12952 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12953 | |
| 12954 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12955 | if test "$res" = "OK"; then |
| 12956 | break |
| 12957 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12958 | { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
| 12959 | $as_echo "$libname library is not usable" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12960 | LIBS="$olibs" |
| 12961 | fi |
| 12962 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12963 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12964 | { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5 |
| 12965 | $as_echo "no terminal library found" >&6; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12966 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12967 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12968 | |
| 12969 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12970 | { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5 |
| 12971 | $as_echo_n "checking for tgetent()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12972 | cat >conftest.$ac_ext <<_ACEOF |
| 12973 | /* confdefs.h. */ |
| 12974 | _ACEOF |
| 12975 | cat confdefs.h >>conftest.$ac_ext |
| 12976 | cat >>conftest.$ac_ext <<_ACEOF |
| 12977 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12978 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12979 | int |
| 12980 | main () |
| 12981 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12982 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12983 | ; |
| 12984 | return 0; |
| 12985 | } |
| 12986 | _ACEOF |
| 12987 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12988 | if { (ac_try="$ac_link" |
| 12989 | case "(($ac_try" in |
| 12990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12991 | *) ac_try_echo=$ac_try;; |
| 12992 | esac |
| 12993 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12994 | $as_echo "$ac_try_echo") >&5 |
| 12995 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12996 | ac_status=$? |
| 12997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12998 | rm -f conftest.er1 |
| 12999 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13000 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13001 | (exit $ac_status); } && { |
| 13002 | test -z "$ac_c_werror_flag" || |
| 13003 | test ! -s conftest.err |
| 13004 | } && test -s conftest$ac_exeext && { |
| 13005 | test "$cross_compiling" = yes || |
| 13006 | $as_test_x conftest$ac_exeext |
| 13007 | }; then |
| 13008 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13009 | $as_echo "yes" >&6; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13010 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13011 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13013 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13014 | { { $as_echo "$as_me:$LINENO: error: NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13015 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13016 | Or specify the name of the library with --with-tlib." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13017 | $as_echo "$as_me: error: NOT FOUND! |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13018 | You need to install a terminal library; for example ncurses. |
| 13019 | Or specify the name of the library with --with-tlib." >&2;} |
| 13020 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13021 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13022 | |
| 13023 | rm -rf conftest.dSYM |
| 13024 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13025 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13026 | fi |
| 13027 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13028 | { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 |
| 13029 | $as_echo_n "checking whether we talk terminfo... " >&6; } |
| 13030 | if test "${vim_cv_terminfo+set}" = set; then |
| 13031 | $as_echo_n "(cached) " >&6 |
| 13032 | else |
| 13033 | |
| 13034 | if test "$cross_compiling" = yes; then |
| 13035 | |
| 13036 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5 |
| 13037 | $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] | 13038 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13039 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13040 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13041 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13042 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13043 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13044 | #ifdef HAVE_TERMCAP_H |
| 13045 | # include <termcap.h> |
| 13046 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13047 | #ifdef HAVE_STRING_H |
| 13048 | # include <string.h> |
| 13049 | #endif |
| 13050 | #if STDC_HEADERS |
| 13051 | # include <stdlib.h> |
| 13052 | # include <stddef.h> |
| 13053 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13054 | main() |
| 13055 | {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] | 13056 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13057 | _ACEOF |
| 13058 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13059 | if { (ac_try="$ac_link" |
| 13060 | case "(($ac_try" in |
| 13061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13062 | *) ac_try_echo=$ac_try;; |
| 13063 | esac |
| 13064 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13065 | $as_echo "$ac_try_echo") >&5 |
| 13066 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13067 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13068 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13070 | { (case "(($ac_try" in |
| 13071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13072 | *) ac_try_echo=$ac_try;; |
| 13073 | esac |
| 13074 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13075 | $as_echo "$ac_try_echo") >&5 |
| 13076 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13077 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13078 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13079 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13080 | |
| 13081 | vim_cv_terminfo=no |
| 13082 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13083 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13084 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13085 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13087 | |
| 13088 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13089 | |
| 13090 | vim_cv_terminfo=yes |
| 13091 | |
| 13092 | fi |
| 13093 | rm -rf conftest.dSYM |
| 13094 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13095 | fi |
| 13096 | |
| 13097 | |
| 13098 | |
| 13099 | fi |
| 13100 | { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5 |
| 13101 | $as_echo "$vim_cv_terminfo" >&6; } |
| 13102 | |
| 13103 | if test "x$vim_cv_terminfo" = "xyes" ; then |
| 13104 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13105 | #define TERMINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13106 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13107 | |
| 13108 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13109 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13110 | if test "x$olibs" != "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13111 | { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
| 13112 | $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } |
| 13113 | if test "${vim_cv_tgent+set}" = set; then |
| 13114 | $as_echo_n "(cached) " >&6 |
| 13115 | else |
| 13116 | |
| 13117 | if test "$cross_compiling" = yes; then |
| 13118 | |
| 13119 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 13120 | $as_echo "$as_me: error: failed to compile test program." >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13121 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13122 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13123 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13124 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13125 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13126 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13127 | #ifdef HAVE_TERMCAP_H |
| 13128 | # include <termcap.h> |
| 13129 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13130 | #if STDC_HEADERS |
| 13131 | # include <stdlib.h> |
| 13132 | # include <stddef.h> |
| 13133 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13134 | main() |
| 13135 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13136 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13137 | _ACEOF |
| 13138 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13139 | if { (ac_try="$ac_link" |
| 13140 | case "(($ac_try" in |
| 13141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13142 | *) ac_try_echo=$ac_try;; |
| 13143 | esac |
| 13144 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13145 | $as_echo "$ac_try_echo") >&5 |
| 13146 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13147 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13148 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13149 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13150 | { (case "(($ac_try" in |
| 13151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13152 | *) ac_try_echo=$ac_try;; |
| 13153 | esac |
| 13154 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13155 | $as_echo "$ac_try_echo") >&5 |
| 13156 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13157 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13158 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13159 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13160 | |
| 13161 | vim_cv_tgent=zero |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13162 | |
| 13163 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13164 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13165 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13167 | |
| 13168 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13169 | |
| 13170 | vim_cv_tgent=non-zero |
| 13171 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13172 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13173 | rm -rf conftest.dSYM |
| 13174 | 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] | 13175 | fi |
| 13176 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13177 | |
| 13178 | |
| 13179 | fi |
| 13180 | { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5 |
| 13181 | $as_echo "$vim_cv_tgent" >&6; } |
| 13182 | |
| 13183 | if test "x$vim_cv_tgent" = "xzero" ; then |
| 13184 | cat >>confdefs.h <<\_ACEOF |
| 13185 | #define TGETENT_ZERO_ERR 0 |
| 13186 | _ACEOF |
| 13187 | |
| 13188 | fi |
| 13189 | fi |
| 13190 | |
| 13191 | { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
| 13192 | $as_echo_n "checking whether termcap.h contains ospeed... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13193 | cat >conftest.$ac_ext <<_ACEOF |
| 13194 | /* confdefs.h. */ |
| 13195 | _ACEOF |
| 13196 | cat confdefs.h >>conftest.$ac_ext |
| 13197 | cat >>conftest.$ac_ext <<_ACEOF |
| 13198 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13199 | |
| 13200 | #ifdef HAVE_TERMCAP_H |
| 13201 | # include <termcap.h> |
| 13202 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13203 | |
| 13204 | int |
| 13205 | main () |
| 13206 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13207 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13208 | ; |
| 13209 | return 0; |
| 13210 | } |
| 13211 | _ACEOF |
| 13212 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13213 | if { (ac_try="$ac_link" |
| 13214 | case "(($ac_try" in |
| 13215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13216 | *) ac_try_echo=$ac_try;; |
| 13217 | esac |
| 13218 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13219 | $as_echo "$ac_try_echo") >&5 |
| 13220 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13221 | ac_status=$? |
| 13222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13223 | rm -f conftest.er1 |
| 13224 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13225 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13226 | (exit $ac_status); } && { |
| 13227 | test -z "$ac_c_werror_flag" || |
| 13228 | test ! -s conftest.err |
| 13229 | } && test -s conftest$ac_exeext && { |
| 13230 | test "$cross_compiling" = yes || |
| 13231 | $as_test_x conftest$ac_exeext |
| 13232 | }; then |
| 13233 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13234 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13235 | #define HAVE_OSPEED 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13236 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13237 | |
| 13238 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13239 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13241 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13242 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13243 | $as_echo "no" >&6; } |
| 13244 | { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
| 13245 | $as_echo_n "checking whether ospeed can be extern... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13246 | cat >conftest.$ac_ext <<_ACEOF |
| 13247 | /* confdefs.h. */ |
| 13248 | _ACEOF |
| 13249 | cat confdefs.h >>conftest.$ac_ext |
| 13250 | cat >>conftest.$ac_ext <<_ACEOF |
| 13251 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13252 | |
| 13253 | #ifdef HAVE_TERMCAP_H |
| 13254 | # include <termcap.h> |
| 13255 | #endif |
| 13256 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13257 | |
| 13258 | int |
| 13259 | main () |
| 13260 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13261 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13262 | ; |
| 13263 | return 0; |
| 13264 | } |
| 13265 | _ACEOF |
| 13266 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13267 | if { (ac_try="$ac_link" |
| 13268 | case "(($ac_try" in |
| 13269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13270 | *) ac_try_echo=$ac_try;; |
| 13271 | esac |
| 13272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13273 | $as_echo "$ac_try_echo") >&5 |
| 13274 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13275 | ac_status=$? |
| 13276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13277 | rm -f conftest.er1 |
| 13278 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13280 | (exit $ac_status); } && { |
| 13281 | test -z "$ac_c_werror_flag" || |
| 13282 | test ! -s conftest.err |
| 13283 | } && test -s conftest$ac_exeext && { |
| 13284 | test "$cross_compiling" = yes || |
| 13285 | $as_test_x conftest$ac_exeext |
| 13286 | }; then |
| 13287 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13288 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13289 | #define OSPEED_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13290 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13291 | |
| 13292 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13293 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13294 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13295 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13296 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13297 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13298 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13299 | |
| 13300 | rm -rf conftest.dSYM |
| 13301 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13302 | conftest$ac_exeext conftest.$ac_ext |
| 13303 | |
| 13304 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13305 | |
| 13306 | rm -rf conftest.dSYM |
| 13307 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13308 | conftest$ac_exeext conftest.$ac_ext |
| 13309 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13310 | { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
| 13311 | $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] | 13312 | cat >conftest.$ac_ext <<_ACEOF |
| 13313 | /* confdefs.h. */ |
| 13314 | _ACEOF |
| 13315 | cat confdefs.h >>conftest.$ac_ext |
| 13316 | cat >>conftest.$ac_ext <<_ACEOF |
| 13317 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13318 | |
| 13319 | #ifdef HAVE_TERMCAP_H |
| 13320 | # include <termcap.h> |
| 13321 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13322 | |
| 13323 | int |
| 13324 | main () |
| 13325 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13326 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13327 | ; |
| 13328 | return 0; |
| 13329 | } |
| 13330 | _ACEOF |
| 13331 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13332 | if { (ac_try="$ac_link" |
| 13333 | case "(($ac_try" in |
| 13334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13335 | *) ac_try_echo=$ac_try;; |
| 13336 | esac |
| 13337 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13338 | $as_echo "$ac_try_echo") >&5 |
| 13339 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13340 | ac_status=$? |
| 13341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13342 | rm -f conftest.er1 |
| 13343 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13345 | (exit $ac_status); } && { |
| 13346 | test -z "$ac_c_werror_flag" || |
| 13347 | test ! -s conftest.err |
| 13348 | } && test -s conftest$ac_exeext && { |
| 13349 | test "$cross_compiling" = yes || |
| 13350 | $as_test_x conftest$ac_exeext |
| 13351 | }; then |
| 13352 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13353 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13354 | #define HAVE_UP_BC_PC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13355 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13356 | |
| 13357 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13358 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13360 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13361 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13362 | $as_echo "no" >&6; } |
| 13363 | { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
| 13364 | $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] | 13365 | cat >conftest.$ac_ext <<_ACEOF |
| 13366 | /* confdefs.h. */ |
| 13367 | _ACEOF |
| 13368 | cat confdefs.h >>conftest.$ac_ext |
| 13369 | cat >>conftest.$ac_ext <<_ACEOF |
| 13370 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13371 | |
| 13372 | #ifdef HAVE_TERMCAP_H |
| 13373 | # include <termcap.h> |
| 13374 | #endif |
| 13375 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13376 | |
| 13377 | int |
| 13378 | main () |
| 13379 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13380 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13381 | ; |
| 13382 | return 0; |
| 13383 | } |
| 13384 | _ACEOF |
| 13385 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13386 | if { (ac_try="$ac_link" |
| 13387 | case "(($ac_try" in |
| 13388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13389 | *) ac_try_echo=$ac_try;; |
| 13390 | esac |
| 13391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13392 | $as_echo "$ac_try_echo") >&5 |
| 13393 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13394 | ac_status=$? |
| 13395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13396 | rm -f conftest.er1 |
| 13397 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13398 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13399 | (exit $ac_status); } && { |
| 13400 | test -z "$ac_c_werror_flag" || |
| 13401 | test ! -s conftest.err |
| 13402 | } && test -s conftest$ac_exeext && { |
| 13403 | test "$cross_compiling" = yes || |
| 13404 | $as_test_x conftest$ac_exeext |
| 13405 | }; then |
| 13406 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13407 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13408 | #define UP_BC_PC_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13409 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13410 | |
| 13411 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13412 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13413 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13414 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13415 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13416 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13417 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13418 | |
| 13419 | rm -rf conftest.dSYM |
| 13420 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13421 | conftest$ac_exeext conftest.$ac_ext |
| 13422 | |
| 13423 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13424 | |
| 13425 | rm -rf conftest.dSYM |
| 13426 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13427 | conftest$ac_exeext conftest.$ac_ext |
| 13428 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13429 | { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
| 13430 | $as_echo_n "checking whether tputs() uses outfuntype... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13431 | cat >conftest.$ac_ext <<_ACEOF |
| 13432 | /* confdefs.h. */ |
| 13433 | _ACEOF |
| 13434 | cat confdefs.h >>conftest.$ac_ext |
| 13435 | cat >>conftest.$ac_ext <<_ACEOF |
| 13436 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13437 | |
| 13438 | #ifdef HAVE_TERMCAP_H |
| 13439 | # include <termcap.h> |
| 13440 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13441 | |
| 13442 | int |
| 13443 | main () |
| 13444 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13445 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13446 | ; |
| 13447 | return 0; |
| 13448 | } |
| 13449 | _ACEOF |
| 13450 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13451 | if { (ac_try="$ac_compile" |
| 13452 | case "(($ac_try" in |
| 13453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13454 | *) ac_try_echo=$ac_try;; |
| 13455 | esac |
| 13456 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13457 | $as_echo "$ac_try_echo") >&5 |
| 13458 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13459 | ac_status=$? |
| 13460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13461 | rm -f conftest.er1 |
| 13462 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13463 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13464 | (exit $ac_status); } && { |
| 13465 | test -z "$ac_c_werror_flag" || |
| 13466 | test ! -s conftest.err |
| 13467 | } && test -s conftest.$ac_objext; then |
| 13468 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13469 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13470 | #define HAVE_OUTFUNTYPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13471 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13472 | |
| 13473 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13474 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13475 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13476 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13477 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13478 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13479 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13480 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13482 | |
| 13483 | { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13484 | $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] | 13485 | cat >conftest.$ac_ext <<_ACEOF |
| 13486 | /* confdefs.h. */ |
| 13487 | _ACEOF |
| 13488 | cat confdefs.h >>conftest.$ac_ext |
| 13489 | cat >>conftest.$ac_ext <<_ACEOF |
| 13490 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13491 | |
| 13492 | #include <sys/types.h> |
| 13493 | #include <sys/time.h> |
| 13494 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13495 | int |
| 13496 | main () |
| 13497 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13498 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13499 | ; |
| 13500 | return 0; |
| 13501 | } |
| 13502 | _ACEOF |
| 13503 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13504 | if { (ac_try="$ac_compile" |
| 13505 | case "(($ac_try" in |
| 13506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13507 | *) ac_try_echo=$ac_try;; |
| 13508 | esac |
| 13509 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13510 | $as_echo "$ac_try_echo") >&5 |
| 13511 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13512 | ac_status=$? |
| 13513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13514 | rm -f conftest.er1 |
| 13515 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13516 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13517 | (exit $ac_status); } && { |
| 13518 | test -z "$ac_c_werror_flag" || |
| 13519 | test ! -s conftest.err |
| 13520 | } && test -s conftest.$ac_objext; then |
| 13521 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13522 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13523 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13524 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13525 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13526 | |
| 13527 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13528 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13530 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13531 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13532 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13533 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13534 | |
| 13535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13536 | |
| 13537 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13538 | { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 13539 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13540 | if test -r /dev/ptc; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13541 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13542 | #define HAVE_DEV_PTC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13543 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13544 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13545 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13546 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13547 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13548 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13549 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13550 | fi |
| 13551 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13552 | { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 |
| 13553 | $as_echo_n "checking for SVR4 ptys... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13554 | if test -c /dev/ptmx ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13555 | cat >conftest.$ac_ext <<_ACEOF |
| 13556 | /* confdefs.h. */ |
| 13557 | _ACEOF |
| 13558 | cat confdefs.h >>conftest.$ac_ext |
| 13559 | cat >>conftest.$ac_ext <<_ACEOF |
| 13560 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13561 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13562 | int |
| 13563 | main () |
| 13564 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13565 | ptsname(0);grantpt(0);unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13566 | ; |
| 13567 | return 0; |
| 13568 | } |
| 13569 | _ACEOF |
| 13570 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13571 | if { (ac_try="$ac_link" |
| 13572 | case "(($ac_try" in |
| 13573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13574 | *) ac_try_echo=$ac_try;; |
| 13575 | esac |
| 13576 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13577 | $as_echo "$ac_try_echo") >&5 |
| 13578 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13579 | ac_status=$? |
| 13580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13581 | rm -f conftest.er1 |
| 13582 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13583 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13584 | (exit $ac_status); } && { |
| 13585 | test -z "$ac_c_werror_flag" || |
| 13586 | test ! -s conftest.err |
| 13587 | } && test -s conftest$ac_exeext && { |
| 13588 | test "$cross_compiling" = yes || |
| 13589 | $as_test_x conftest$ac_exeext |
| 13590 | }; then |
| 13591 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13592 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13593 | #define HAVE_SVR4_PTYS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13594 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13595 | |
| 13596 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13597 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13599 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13600 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13601 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13602 | fi |
| 13603 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13604 | rm -rf conftest.dSYM |
| 13605 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13606 | conftest$ac_exeext conftest.$ac_ext |
| 13607 | else |
| 13608 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13609 | $as_echo "no" >&6; } |
| 13610 | fi |
| 13611 | |
| 13612 | { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5 |
| 13613 | $as_echo_n "checking for ptyranges... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13614 | if test -d /dev/ptym ; then |
| 13615 | pdir='/dev/ptym' |
| 13616 | else |
| 13617 | pdir='/dev' |
| 13618 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13619 | cat >conftest.$ac_ext <<_ACEOF |
| 13620 | /* confdefs.h. */ |
| 13621 | _ACEOF |
| 13622 | cat confdefs.h >>conftest.$ac_ext |
| 13623 | cat >>conftest.$ac_ext <<_ACEOF |
| 13624 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13625 | #ifdef M_UNIX |
| 13626 | yes; |
| 13627 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13628 | |
| 13629 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13631 | $EGREP "yes" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13632 | ptys=`echo /dev/ptyp??` |
| 13633 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13634 | ptys=`echo $pdir/pty??` |
| 13635 | fi |
| 13636 | rm -f conftest* |
| 13637 | |
| 13638 | if test "$ptys" != "$pdir/pty??" ; then |
| 13639 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 13640 | 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] | 13641 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13642 | #define PTYRANGE0 "$p0" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13643 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13644 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13645 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13646 | #define PTYRANGE1 "$p1" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13647 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13648 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13649 | { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
| 13650 | $as_echo "$p0 / $p1" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13651 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13652 | { $as_echo "$as_me:$LINENO: result: don't know" >&5 |
| 13653 | $as_echo "don't know" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13654 | fi |
| 13655 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13656 | rm -f conftest_grp |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13657 | { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5 |
| 13658 | $as_echo_n "checking default tty permissions/group... " >&6; } |
| 13659 | if test "${vim_cv_tty_group+set}" = set; then |
| 13660 | $as_echo_n "(cached) " >&6 |
| 13661 | else |
| 13662 | |
| 13663 | if test "$cross_compiling" = yes; then |
| 13664 | |
| 13665 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5 |
| 13666 | $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] | 13667 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13668 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13669 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13670 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13671 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13672 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13673 | #include <sys/types.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13674 | #if STDC_HEADERS |
| 13675 | # include <stdlib.h> |
| 13676 | # include <stddef.h> |
| 13677 | #endif |
| 13678 | #ifdef HAVE_UNISTD_H |
| 13679 | #include <unistd.h> |
| 13680 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13681 | #include <sys/stat.h> |
| 13682 | #include <stdio.h> |
| 13683 | main() |
| 13684 | { |
| 13685 | struct stat sb; |
| 13686 | char *x,*ttyname(); |
| 13687 | int om, m; |
| 13688 | FILE *fp; |
| 13689 | |
| 13690 | if (!(x = ttyname(0))) exit(1); |
| 13691 | if (stat(x, &sb)) exit(1); |
| 13692 | om = sb.st_mode; |
| 13693 | if (om & 002) exit(0); |
| 13694 | m = system("mesg y"); |
| 13695 | if (m == -1 || m == 127) exit(1); |
| 13696 | if (stat(x, &sb)) exit(1); |
| 13697 | m = sb.st_mode; |
| 13698 | if (chmod(x, om)) exit(1); |
| 13699 | if (m & 002) exit(0); |
| 13700 | if (sb.st_gid == getgid()) exit(1); |
| 13701 | if (!(fp=fopen("conftest_grp", "w"))) |
| 13702 | exit(1); |
| 13703 | fprintf(fp, "%d\n", sb.st_gid); |
| 13704 | fclose(fp); |
| 13705 | exit(0); |
| 13706 | } |
| 13707 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13708 | _ACEOF |
| 13709 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13710 | if { (ac_try="$ac_link" |
| 13711 | case "(($ac_try" in |
| 13712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13713 | *) ac_try_echo=$ac_try;; |
| 13714 | esac |
| 13715 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13716 | $as_echo "$ac_try_echo") >&5 |
| 13717 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13718 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13719 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13720 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13721 | { (case "(($ac_try" in |
| 13722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13723 | *) ac_try_echo=$ac_try;; |
| 13724 | esac |
| 13725 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13726 | $as_echo "$ac_try_echo") >&5 |
| 13727 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13728 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13730 | (exit $ac_status); }; }; then |
| 13731 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13732 | if test -f conftest_grp; then |
| 13733 | vim_cv_tty_group=`cat conftest_grp` |
| 13734 | if test "x$vim_cv_tty_mode" = "x" ; then |
| 13735 | vim_cv_tty_mode=0620 |
| 13736 | fi |
| 13737 | { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 |
| 13738 | $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } |
| 13739 | else |
| 13740 | vim_cv_tty_group=world |
Bram Moolenaar | 7295107 | 2009-12-02 16:58:33 +0000 | [diff] [blame] | 13741 | { $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5 |
| 13742 | $as_echo "ptys are world accessible" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13743 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13744 | |
| 13745 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13746 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13747 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13748 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13749 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13750 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13751 | |
| 13752 | vim_cv_tty_group=world |
Bram Moolenaar | 7295107 | 2009-12-02 16:58:33 +0000 | [diff] [blame] | 13753 | { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5 |
| 13754 | $as_echo "can't determine - assume ptys are world accessible" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13755 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13756 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13757 | rm -rf conftest.dSYM |
| 13758 | 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] | 13759 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13760 | |
| 13761 | |
| 13762 | |
| 13763 | fi |
| 13764 | { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5 |
| 13765 | $as_echo "$vim_cv_tty_group" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13766 | rm -f conftest_grp |
| 13767 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13768 | if test "x$vim_cv_tty_group" != "xworld" ; then |
| 13769 | cat >>confdefs.h <<_ACEOF |
| 13770 | #define PTYGROUP $vim_cv_tty_group |
| 13771 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13772 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13773 | if test "x$vim_cv_tty_mode" = "x" ; then |
| 13774 | { { $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 |
| 13775 | $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;} |
| 13776 | { (exit 1); exit 1; }; } |
| 13777 | else |
| 13778 | cat >>confdefs.h <<\_ACEOF |
| 13779 | #define PTYMODE 0620 |
| 13780 | _ACEOF |
| 13781 | |
| 13782 | fi |
| 13783 | fi |
| 13784 | |
| 13785 | |
| 13786 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 13787 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13788 | if test "${ac_cv_type_signal+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13789 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13790 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13791 | cat >conftest.$ac_ext <<_ACEOF |
| 13792 | /* confdefs.h. */ |
| 13793 | _ACEOF |
| 13794 | cat confdefs.h >>conftest.$ac_ext |
| 13795 | cat >>conftest.$ac_ext <<_ACEOF |
| 13796 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13797 | #include <sys/types.h> |
| 13798 | #include <signal.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13799 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13800 | int |
| 13801 | main () |
| 13802 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13803 | return *(signal (0, 0)) (0) == 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13804 | ; |
| 13805 | return 0; |
| 13806 | } |
| 13807 | _ACEOF |
| 13808 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13809 | if { (ac_try="$ac_compile" |
| 13810 | case "(($ac_try" in |
| 13811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13812 | *) ac_try_echo=$ac_try;; |
| 13813 | esac |
| 13814 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13815 | $as_echo "$ac_try_echo") >&5 |
| 13816 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13817 | ac_status=$? |
| 13818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13819 | rm -f conftest.er1 |
| 13820 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13821 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13822 | (exit $ac_status); } && { |
| 13823 | test -z "$ac_c_werror_flag" || |
| 13824 | test ! -s conftest.err |
| 13825 | } && test -s conftest.$ac_objext; then |
| 13826 | ac_cv_type_signal=int |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13827 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13828 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13829 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13830 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13831 | ac_cv_type_signal=void |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13832 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13833 | |
| 13834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13835 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13836 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 13837 | $as_echo "$ac_cv_type_signal" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13838 | |
| 13839 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13840 | #define RETSIGTYPE $ac_cv_type_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13841 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13842 | |
| 13843 | |
| 13844 | |
| 13845 | if test $ac_cv_type_signal = void; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13846 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13847 | #define SIGRETURN return |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13848 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13849 | |
| 13850 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13851 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13852 | #define SIGRETURN return 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13853 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13854 | |
| 13855 | fi |
| 13856 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13857 | { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
| 13858 | $as_echo_n "checking for struct sigcontext... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13859 | cat >conftest.$ac_ext <<_ACEOF |
| 13860 | /* confdefs.h. */ |
| 13861 | _ACEOF |
| 13862 | cat confdefs.h >>conftest.$ac_ext |
| 13863 | cat >>conftest.$ac_ext <<_ACEOF |
| 13864 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13865 | |
| 13866 | #include <signal.h> |
| 13867 | test_sig() |
| 13868 | { |
| 13869 | struct sigcontext *scont; |
| 13870 | scont = (struct sigcontext *)0; |
| 13871 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13872 | } |
| 13873 | int |
| 13874 | main () |
| 13875 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13876 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13877 | ; |
| 13878 | return 0; |
| 13879 | } |
| 13880 | _ACEOF |
| 13881 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13882 | if { (ac_try="$ac_compile" |
| 13883 | case "(($ac_try" in |
| 13884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13885 | *) ac_try_echo=$ac_try;; |
| 13886 | esac |
| 13887 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13888 | $as_echo "$ac_try_echo") >&5 |
| 13889 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13890 | ac_status=$? |
| 13891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13892 | rm -f conftest.er1 |
| 13893 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13894 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13895 | (exit $ac_status); } && { |
| 13896 | test -z "$ac_c_werror_flag" || |
| 13897 | test ! -s conftest.err |
| 13898 | } && test -s conftest.$ac_objext; then |
| 13899 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13900 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13901 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13902 | #define HAVE_SIGCONTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13903 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13904 | |
| 13905 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13906 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13908 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13909 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13910 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13911 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13912 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13914 | |
| 13915 | { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5 |
| 13916 | $as_echo_n "checking getcwd implementation is broken... " >&6; } |
| 13917 | if test "${vim_cv_getcwd_broken+set}" = set; then |
| 13918 | $as_echo_n "(cached) " >&6 |
| 13919 | else |
| 13920 | |
| 13921 | if test "$cross_compiling" = yes; then |
| 13922 | |
| 13923 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5 |
| 13924 | $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] | 13925 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13926 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13927 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13928 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13929 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13930 | #include "confdefs.h" |
| 13931 | #ifdef HAVE_UNISTD_H |
| 13932 | #include <unistd.h> |
| 13933 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13934 | char *dagger[] = { "IFS=pwd", 0 }; |
| 13935 | main() |
| 13936 | { |
| 13937 | char buffer[500]; |
| 13938 | extern char **environ; |
| 13939 | environ = dagger; |
| 13940 | return getcwd(buffer, 500) ? 0 : 1; |
| 13941 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13942 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13943 | _ACEOF |
| 13944 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13945 | if { (ac_try="$ac_link" |
| 13946 | case "(($ac_try" in |
| 13947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13948 | *) ac_try_echo=$ac_try;; |
| 13949 | esac |
| 13950 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13951 | $as_echo "$ac_try_echo") >&5 |
| 13952 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13953 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13954 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13955 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13956 | { (case "(($ac_try" in |
| 13957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13958 | *) ac_try_echo=$ac_try;; |
| 13959 | esac |
| 13960 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13961 | $as_echo "$ac_try_echo") >&5 |
| 13962 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13963 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13964 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13965 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13966 | |
| 13967 | vim_cv_getcwd_broken=no |
| 13968 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13969 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13970 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13971 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13973 | |
| 13974 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13975 | |
| 13976 | vim_cv_getcwd_broken=yes |
| 13977 | |
| 13978 | fi |
| 13979 | rm -rf conftest.dSYM |
| 13980 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13981 | fi |
| 13982 | |
| 13983 | |
| 13984 | |
| 13985 | fi |
| 13986 | { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5 |
| 13987 | $as_echo "$vim_cv_getcwd_broken" >&6; } |
| 13988 | |
| 13989 | if test "x$vim_cv_getcwd_broken" = "xyes" ; then |
| 13990 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13991 | #define BAD_GETCWD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13992 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13993 | |
| 13994 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13995 | |
| 13996 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 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 | |
| 14022 | |
| 14023 | |
| 14024 | |
| 14025 | |
| 14026 | |
| 14027 | |
| 14028 | |
| 14029 | |
| 14030 | |
| 14031 | |
| 14032 | |
| 14033 | |
| 14034 | |
| 14035 | |
| 14036 | |
| 14037 | |
| 14038 | |
| 14039 | |
| 14040 | |
Bram Moolenaar | 25153e1 | 2010-02-24 14:47:08 +0100 | [diff] [blame] | 14041 | for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14042 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
Bram Moolenaar | eaf0339 | 2009-11-17 11:08:52 +0000 | [diff] [blame] | 14043 | memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14044 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 14045 | sigvec strcasecmp strerror strftime stricmp strncasecmp \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 14046 | strnicmp strpbrk strtol tgetent towlower towupper iswupper \ |
| 14047 | usleep utime utimes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14048 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14049 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14050 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14051 | $as_echo_n "checking for $ac_func... " >&6; } |
| 14052 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14053 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14054 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14055 | cat >conftest.$ac_ext <<_ACEOF |
| 14056 | /* confdefs.h. */ |
| 14057 | _ACEOF |
| 14058 | cat confdefs.h >>conftest.$ac_ext |
| 14059 | cat >>conftest.$ac_ext <<_ACEOF |
| 14060 | /* end confdefs.h. */ |
| 14061 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14062 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14063 | #define $ac_func innocuous_$ac_func |
| 14064 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14065 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14066 | which can conflict with char $ac_func (); below. |
| 14067 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14068 | <limits.h> exists even on freestanding compilers. */ |
| 14069 | |
| 14070 | #ifdef __STDC__ |
| 14071 | # include <limits.h> |
| 14072 | #else |
| 14073 | # include <assert.h> |
| 14074 | #endif |
| 14075 | |
| 14076 | #undef $ac_func |
| 14077 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14078 | /* Override any GCC internal prototype to avoid an error. |
| 14079 | Use char because int might match the return type of a GCC |
| 14080 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14081 | #ifdef __cplusplus |
| 14082 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14083 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14084 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14085 | /* The GNU C library defines this for functions which it implements |
| 14086 | to always fail with ENOSYS. Some functions are actually named |
| 14087 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14088 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14089 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14090 | #endif |
| 14091 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14092 | int |
| 14093 | main () |
| 14094 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14095 | return $ac_func (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14096 | ; |
| 14097 | return 0; |
| 14098 | } |
| 14099 | _ACEOF |
| 14100 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14101 | if { (ac_try="$ac_link" |
| 14102 | case "(($ac_try" in |
| 14103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14104 | *) ac_try_echo=$ac_try;; |
| 14105 | esac |
| 14106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14107 | $as_echo "$ac_try_echo") >&5 |
| 14108 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14109 | ac_status=$? |
| 14110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14111 | rm -f conftest.er1 |
| 14112 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14114 | (exit $ac_status); } && { |
| 14115 | test -z "$ac_c_werror_flag" || |
| 14116 | test ! -s conftest.err |
| 14117 | } && test -s conftest$ac_exeext && { |
| 14118 | test "$cross_compiling" = yes || |
| 14119 | $as_test_x conftest$ac_exeext |
| 14120 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14121 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14122 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14123 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14124 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14125 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14126 | eval "$as_ac_var=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14127 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14128 | |
| 14129 | rm -rf conftest.dSYM |
| 14130 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14131 | conftest$ac_exeext conftest.$ac_ext |
| 14132 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14133 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 14134 | $as_echo "$as_val"'` |
| 14135 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14136 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 14137 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 14138 | $as_echo "$as_val"'` |
| 14139 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14140 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14141 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14142 | _ACEOF |
| 14143 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14144 | fi |
| 14145 | done |
| 14146 | |
Bram Moolenaar | 25153e1 | 2010-02-24 14:47:08 +0100 | [diff] [blame] | 14147 | { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
| 14148 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
| 14149 | if test "${ac_cv_sys_largefile_source+set}" = set; then |
| 14150 | $as_echo_n "(cached) " >&6 |
| 14151 | else |
| 14152 | while :; do |
| 14153 | cat >conftest.$ac_ext <<_ACEOF |
| 14154 | /* confdefs.h. */ |
| 14155 | _ACEOF |
| 14156 | cat confdefs.h >>conftest.$ac_ext |
| 14157 | cat >>conftest.$ac_ext <<_ACEOF |
| 14158 | /* end confdefs.h. */ |
| 14159 | #include <sys/types.h> /* for off_t */ |
| 14160 | #include <stdio.h> |
| 14161 | int |
| 14162 | main () |
| 14163 | { |
| 14164 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 14165 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 14166 | ; |
| 14167 | return 0; |
| 14168 | } |
| 14169 | _ACEOF |
| 14170 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14171 | if { (ac_try="$ac_link" |
| 14172 | case "(($ac_try" in |
| 14173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14174 | *) ac_try_echo=$ac_try;; |
| 14175 | esac |
| 14176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14177 | $as_echo "$ac_try_echo") >&5 |
| 14178 | (eval "$ac_link") 2>conftest.er1 |
| 14179 | ac_status=$? |
| 14180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14181 | rm -f conftest.er1 |
| 14182 | cat conftest.err >&5 |
| 14183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14184 | (exit $ac_status); } && { |
| 14185 | test -z "$ac_c_werror_flag" || |
| 14186 | test ! -s conftest.err |
| 14187 | } && test -s conftest$ac_exeext && { |
| 14188 | test "$cross_compiling" = yes || |
| 14189 | $as_test_x conftest$ac_exeext |
| 14190 | }; then |
| 14191 | ac_cv_sys_largefile_source=no; break |
| 14192 | else |
| 14193 | $as_echo "$as_me: failed program was:" >&5 |
| 14194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14195 | |
| 14196 | |
| 14197 | fi |
| 14198 | |
| 14199 | rm -rf conftest.dSYM |
| 14200 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14201 | conftest$ac_exeext conftest.$ac_ext |
| 14202 | cat >conftest.$ac_ext <<_ACEOF |
| 14203 | /* confdefs.h. */ |
| 14204 | _ACEOF |
| 14205 | cat confdefs.h >>conftest.$ac_ext |
| 14206 | cat >>conftest.$ac_ext <<_ACEOF |
| 14207 | /* end confdefs.h. */ |
| 14208 | #define _LARGEFILE_SOURCE 1 |
| 14209 | #include <sys/types.h> /* for off_t */ |
| 14210 | #include <stdio.h> |
| 14211 | int |
| 14212 | main () |
| 14213 | { |
| 14214 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 14215 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 14216 | ; |
| 14217 | return 0; |
| 14218 | } |
| 14219 | _ACEOF |
| 14220 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14221 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 14229 | ac_status=$? |
| 14230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14231 | rm -f conftest.er1 |
| 14232 | cat conftest.err >&5 |
| 14233 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14234 | (exit $ac_status); } && { |
| 14235 | test -z "$ac_c_werror_flag" || |
| 14236 | test ! -s conftest.err |
| 14237 | } && test -s conftest$ac_exeext && { |
| 14238 | test "$cross_compiling" = yes || |
| 14239 | $as_test_x conftest$ac_exeext |
| 14240 | }; then |
| 14241 | ac_cv_sys_largefile_source=1; break |
| 14242 | else |
| 14243 | $as_echo "$as_me: failed program was:" >&5 |
| 14244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14245 | |
| 14246 | |
| 14247 | fi |
| 14248 | |
| 14249 | rm -rf conftest.dSYM |
| 14250 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14251 | conftest$ac_exeext conftest.$ac_ext |
| 14252 | ac_cv_sys_largefile_source=unknown |
| 14253 | break |
| 14254 | done |
| 14255 | fi |
| 14256 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
| 14257 | $as_echo "$ac_cv_sys_largefile_source" >&6; } |
| 14258 | case $ac_cv_sys_largefile_source in #( |
| 14259 | no | unknown) ;; |
| 14260 | *) |
| 14261 | cat >>confdefs.h <<_ACEOF |
| 14262 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 14263 | _ACEOF |
| 14264 | ;; |
| 14265 | esac |
| 14266 | rm -rf conftest* |
| 14267 | |
| 14268 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 14269 | # in glibc 2.1.3, but that breaks too many other things. |
| 14270 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 14271 | if test $ac_cv_sys_largefile_source != unknown; then |
| 14272 | |
| 14273 | cat >>confdefs.h <<\_ACEOF |
| 14274 | #define HAVE_FSEEKO 1 |
| 14275 | _ACEOF |
| 14276 | |
| 14277 | fi |
| 14278 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14279 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14280 | { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5 |
| 14281 | $as_echo_n "checking for st_blksize... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14282 | cat >conftest.$ac_ext <<_ACEOF |
| 14283 | /* confdefs.h. */ |
| 14284 | _ACEOF |
| 14285 | cat confdefs.h >>conftest.$ac_ext |
| 14286 | cat >>conftest.$ac_ext <<_ACEOF |
| 14287 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14288 | #include <sys/types.h> |
| 14289 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14290 | int |
| 14291 | main () |
| 14292 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14293 | struct stat st; |
| 14294 | int n; |
| 14295 | |
| 14296 | stat("/", &st); |
| 14297 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14298 | ; |
| 14299 | return 0; |
| 14300 | } |
| 14301 | _ACEOF |
| 14302 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14303 | if { (ac_try="$ac_compile" |
| 14304 | case "(($ac_try" in |
| 14305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14306 | *) ac_try_echo=$ac_try;; |
| 14307 | esac |
| 14308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14309 | $as_echo "$ac_try_echo") >&5 |
| 14310 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14311 | ac_status=$? |
| 14312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14313 | rm -f conftest.er1 |
| 14314 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14316 | (exit $ac_status); } && { |
| 14317 | test -z "$ac_c_werror_flag" || |
| 14318 | test ! -s conftest.err |
| 14319 | } && test -s conftest.$ac_objext; then |
| 14320 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14321 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14322 | #define HAVE_ST_BLKSIZE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14323 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14324 | |
| 14325 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14326 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14328 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14329 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14330 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14331 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14332 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14334 | |
| 14335 | { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
| 14336 | $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } |
| 14337 | if test "${vim_cv_stat_ignores_slash+set}" = set; then |
| 14338 | $as_echo_n "(cached) " >&6 |
| 14339 | else |
| 14340 | |
| 14341 | if test "$cross_compiling" = yes; then |
| 14342 | |
| 14343 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5 |
| 14344 | $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] | 14345 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14346 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14347 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14348 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14349 | |
| 14350 | #include "confdefs.h" |
| 14351 | #if STDC_HEADERS |
| 14352 | # include <stdlib.h> |
| 14353 | # include <stddef.h> |
| 14354 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14355 | #include <sys/types.h> |
| 14356 | #include <sys/stat.h> |
| 14357 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14358 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14359 | _ACEOF |
| 14360 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14361 | if { (ac_try="$ac_link" |
| 14362 | case "(($ac_try" in |
| 14363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14364 | *) ac_try_echo=$ac_try;; |
| 14365 | esac |
| 14366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14367 | $as_echo "$ac_try_echo") >&5 |
| 14368 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14369 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14370 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14372 | { (case "(($ac_try" in |
| 14373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14374 | *) ac_try_echo=$ac_try;; |
| 14375 | esac |
| 14376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14377 | $as_echo "$ac_try_echo") >&5 |
| 14378 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14379 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14380 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14381 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14382 | |
| 14383 | vim_cv_stat_ignores_slash=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14384 | |
| 14385 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14386 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 14387 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14389 | |
| 14390 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14391 | |
| 14392 | vim_cv_stat_ignores_slash=no |
| 14393 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14394 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14395 | rm -rf conftest.dSYM |
| 14396 | 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] | 14397 | fi |
| 14398 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14399 | |
| 14400 | |
| 14401 | fi |
| 14402 | { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5 |
| 14403 | $as_echo "$vim_cv_stat_ignores_slash" >&6; } |
| 14404 | |
| 14405 | if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then |
| 14406 | cat >>confdefs.h <<\_ACEOF |
| 14407 | #define STAT_IGNORES_SLASH 1 |
| 14408 | _ACEOF |
| 14409 | |
| 14410 | fi |
| 14411 | |
| 14412 | { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5 |
| 14413 | $as_echo_n "checking for iconv_open()... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14414 | save_LIBS="$LIBS" |
| 14415 | LIBS="$LIBS -liconv" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14416 | cat >conftest.$ac_ext <<_ACEOF |
| 14417 | /* confdefs.h. */ |
| 14418 | _ACEOF |
| 14419 | cat confdefs.h >>conftest.$ac_ext |
| 14420 | cat >>conftest.$ac_ext <<_ACEOF |
| 14421 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14422 | |
| 14423 | #ifdef HAVE_ICONV_H |
| 14424 | # include <iconv.h> |
| 14425 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14426 | |
| 14427 | int |
| 14428 | main () |
| 14429 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14430 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14431 | ; |
| 14432 | return 0; |
| 14433 | } |
| 14434 | _ACEOF |
| 14435 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14436 | if { (ac_try="$ac_link" |
| 14437 | case "(($ac_try" in |
| 14438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14439 | *) ac_try_echo=$ac_try;; |
| 14440 | esac |
| 14441 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14442 | $as_echo "$ac_try_echo") >&5 |
| 14443 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14444 | ac_status=$? |
| 14445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14446 | rm -f conftest.er1 |
| 14447 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14448 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14449 | (exit $ac_status); } && { |
| 14450 | test -z "$ac_c_werror_flag" || |
| 14451 | test ! -s conftest.err |
| 14452 | } && test -s conftest$ac_exeext && { |
| 14453 | test "$cross_compiling" = yes || |
| 14454 | $as_test_x conftest$ac_exeext |
| 14455 | }; then |
| 14456 | { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5 |
| 14457 | $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14458 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14459 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14460 | |
| 14461 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14462 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14464 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14465 | LIBS="$save_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14466 | cat >conftest.$ac_ext <<_ACEOF |
| 14467 | /* confdefs.h. */ |
| 14468 | _ACEOF |
| 14469 | cat confdefs.h >>conftest.$ac_ext |
| 14470 | cat >>conftest.$ac_ext <<_ACEOF |
| 14471 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14472 | |
| 14473 | #ifdef HAVE_ICONV_H |
| 14474 | # include <iconv.h> |
| 14475 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14476 | |
| 14477 | int |
| 14478 | main () |
| 14479 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14480 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14481 | ; |
| 14482 | return 0; |
| 14483 | } |
| 14484 | _ACEOF |
| 14485 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14486 | if { (ac_try="$ac_link" |
| 14487 | case "(($ac_try" in |
| 14488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14489 | *) ac_try_echo=$ac_try;; |
| 14490 | esac |
| 14491 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14492 | $as_echo "$ac_try_echo") >&5 |
| 14493 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14494 | ac_status=$? |
| 14495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14496 | rm -f conftest.er1 |
| 14497 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14499 | (exit $ac_status); } && { |
| 14500 | test -z "$ac_c_werror_flag" || |
| 14501 | test ! -s conftest.err |
| 14502 | } && test -s conftest$ac_exeext && { |
| 14503 | test "$cross_compiling" = yes || |
| 14504 | $as_test_x conftest$ac_exeext |
| 14505 | }; then |
| 14506 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14507 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14508 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14509 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14510 | |
| 14511 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14512 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14514 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14515 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14516 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14517 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14518 | |
| 14519 | rm -rf conftest.dSYM |
| 14520 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14521 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14522 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14523 | |
| 14524 | rm -rf conftest.dSYM |
| 14525 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14526 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14527 | |
| 14528 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14529 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
| 14530 | $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14531 | cat >conftest.$ac_ext <<_ACEOF |
| 14532 | /* confdefs.h. */ |
| 14533 | _ACEOF |
| 14534 | cat confdefs.h >>conftest.$ac_ext |
| 14535 | cat >>conftest.$ac_ext <<_ACEOF |
| 14536 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14537 | |
| 14538 | #ifdef HAVE_LANGINFO_H |
| 14539 | # include <langinfo.h> |
| 14540 | #endif |
| 14541 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14542 | int |
| 14543 | main () |
| 14544 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14545 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14546 | ; |
| 14547 | return 0; |
| 14548 | } |
| 14549 | _ACEOF |
| 14550 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14551 | if { (ac_try="$ac_link" |
| 14552 | case "(($ac_try" in |
| 14553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14554 | *) ac_try_echo=$ac_try;; |
| 14555 | esac |
| 14556 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14557 | $as_echo "$ac_try_echo") >&5 |
| 14558 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14559 | ac_status=$? |
| 14560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14561 | rm -f conftest.er1 |
| 14562 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14563 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14564 | (exit $ac_status); } && { |
| 14565 | test -z "$ac_c_werror_flag" || |
| 14566 | test ! -s conftest.err |
| 14567 | } && test -s conftest$ac_exeext && { |
| 14568 | test "$cross_compiling" = yes || |
| 14569 | $as_test_x conftest$ac_exeext |
| 14570 | }; then |
| 14571 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14572 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14573 | #define HAVE_NL_LANGINFO_CODESET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14574 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14575 | |
| 14576 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14577 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14578 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14579 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14580 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14581 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14582 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14583 | |
| 14584 | rm -rf conftest.dSYM |
| 14585 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14586 | conftest$ac_exeext conftest.$ac_ext |
| 14587 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14588 | |
| 14589 | { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5 |
| 14590 | $as_echo_n "checking for strtod in -lm... " >&6; } |
| 14591 | if test "${ac_cv_lib_m_strtod+set}" = set; then |
| 14592 | $as_echo_n "(cached) " >&6 |
| 14593 | else |
| 14594 | ac_check_lib_save_LIBS=$LIBS |
| 14595 | LIBS="-lm $LIBS" |
| 14596 | cat >conftest.$ac_ext <<_ACEOF |
| 14597 | /* confdefs.h. */ |
| 14598 | _ACEOF |
| 14599 | cat confdefs.h >>conftest.$ac_ext |
| 14600 | cat >>conftest.$ac_ext <<_ACEOF |
| 14601 | /* end confdefs.h. */ |
| 14602 | |
| 14603 | /* Override any GCC internal prototype to avoid an error. |
| 14604 | Use char because int might match the return type of a GCC |
| 14605 | builtin and then its argument prototype would still apply. */ |
| 14606 | #ifdef __cplusplus |
| 14607 | extern "C" |
| 14608 | #endif |
| 14609 | char strtod (); |
| 14610 | int |
| 14611 | main () |
| 14612 | { |
| 14613 | return strtod (); |
| 14614 | ; |
| 14615 | return 0; |
| 14616 | } |
| 14617 | _ACEOF |
| 14618 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14619 | if { (ac_try="$ac_link" |
| 14620 | case "(($ac_try" in |
| 14621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14622 | *) ac_try_echo=$ac_try;; |
| 14623 | esac |
| 14624 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14625 | $as_echo "$ac_try_echo") >&5 |
| 14626 | (eval "$ac_link") 2>conftest.er1 |
| 14627 | ac_status=$? |
| 14628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14629 | rm -f conftest.er1 |
| 14630 | cat conftest.err >&5 |
| 14631 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14632 | (exit $ac_status); } && { |
| 14633 | test -z "$ac_c_werror_flag" || |
| 14634 | test ! -s conftest.err |
| 14635 | } && test -s conftest$ac_exeext && { |
| 14636 | test "$cross_compiling" = yes || |
| 14637 | $as_test_x conftest$ac_exeext |
| 14638 | }; then |
| 14639 | ac_cv_lib_m_strtod=yes |
| 14640 | else |
| 14641 | $as_echo "$as_me: failed program was:" >&5 |
| 14642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14643 | |
| 14644 | ac_cv_lib_m_strtod=no |
| 14645 | fi |
| 14646 | |
| 14647 | rm -rf conftest.dSYM |
| 14648 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14649 | conftest$ac_exeext conftest.$ac_ext |
| 14650 | LIBS=$ac_check_lib_save_LIBS |
| 14651 | fi |
| 14652 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5 |
| 14653 | $as_echo "$ac_cv_lib_m_strtod" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 14654 | if test "x$ac_cv_lib_m_strtod" = x""yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14655 | cat >>confdefs.h <<_ACEOF |
| 14656 | #define HAVE_LIBM 1 |
| 14657 | _ACEOF |
| 14658 | |
| 14659 | LIBS="-lm $LIBS" |
| 14660 | |
| 14661 | fi |
| 14662 | |
| 14663 | { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5 |
| 14664 | $as_echo_n "checking for strtod() and other floating point functions... " >&6; } |
| 14665 | cat >conftest.$ac_ext <<_ACEOF |
| 14666 | /* confdefs.h. */ |
| 14667 | _ACEOF |
| 14668 | cat confdefs.h >>conftest.$ac_ext |
| 14669 | cat >>conftest.$ac_ext <<_ACEOF |
| 14670 | /* end confdefs.h. */ |
| 14671 | |
| 14672 | #ifdef HAVE_MATH_H |
| 14673 | # include <math.h> |
| 14674 | #endif |
| 14675 | #if STDC_HEADERS |
| 14676 | # include <stdlib.h> |
| 14677 | # include <stddef.h> |
| 14678 | #endif |
| 14679 | |
| 14680 | int |
| 14681 | main () |
| 14682 | { |
| 14683 | char *s; double d; |
| 14684 | d = strtod("1.1", &s); |
| 14685 | d = fabs(1.11); |
| 14686 | d = ceil(1.11); |
| 14687 | d = floor(1.11); |
| 14688 | d = log10(1.11); |
| 14689 | d = pow(1.11, 2.22); |
| 14690 | d = sqrt(1.11); |
| 14691 | d = sin(1.11); |
| 14692 | d = cos(1.11); |
| 14693 | d = atan(1.11); |
| 14694 | |
| 14695 | ; |
| 14696 | return 0; |
| 14697 | } |
| 14698 | _ACEOF |
| 14699 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14700 | if { (ac_try="$ac_link" |
| 14701 | case "(($ac_try" in |
| 14702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14703 | *) ac_try_echo=$ac_try;; |
| 14704 | esac |
| 14705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14706 | $as_echo "$ac_try_echo") >&5 |
| 14707 | (eval "$ac_link") 2>conftest.er1 |
| 14708 | ac_status=$? |
| 14709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14710 | rm -f conftest.er1 |
| 14711 | cat conftest.err >&5 |
| 14712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14713 | (exit $ac_status); } && { |
| 14714 | test -z "$ac_c_werror_flag" || |
| 14715 | test ! -s conftest.err |
| 14716 | } && test -s conftest$ac_exeext && { |
| 14717 | test "$cross_compiling" = yes || |
| 14718 | $as_test_x conftest$ac_exeext |
| 14719 | }; then |
| 14720 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14721 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
| 14722 | #define HAVE_FLOAT_FUNCS 1 |
| 14723 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14724 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14725 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14726 | $as_echo "$as_me: failed program was:" >&5 |
| 14727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14728 | |
| 14729 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14730 | $as_echo "no" >&6; } |
| 14731 | fi |
| 14732 | |
| 14733 | rm -rf conftest.dSYM |
| 14734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14735 | conftest$ac_exeext conftest.$ac_ext |
| 14736 | |
| 14737 | { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5 |
| 14738 | $as_echo_n "checking --disable-acl argument... " >&6; } |
| 14739 | # Check whether --enable-acl was given. |
| 14740 | if test "${enable_acl+set}" = set; then |
| 14741 | enableval=$enable_acl; |
| 14742 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14743 | enable_acl="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14744 | fi |
| 14745 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14746 | if test "$enable_acl" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14747 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14748 | $as_echo "no" >&6; } |
| 14749 | { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
| 14750 | $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14751 | if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14752 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14753 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14754 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14755 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14756 | cat >conftest.$ac_ext <<_ACEOF |
| 14757 | /* confdefs.h. */ |
| 14758 | _ACEOF |
| 14759 | cat confdefs.h >>conftest.$ac_ext |
| 14760 | cat >>conftest.$ac_ext <<_ACEOF |
| 14761 | /* end confdefs.h. */ |
| 14762 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14763 | /* Override any GCC internal prototype to avoid an error. |
| 14764 | Use char because int might match the return type of a GCC |
| 14765 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14766 | #ifdef __cplusplus |
| 14767 | extern "C" |
| 14768 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14769 | char acl_get_file (); |
| 14770 | int |
| 14771 | main () |
| 14772 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14773 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14774 | ; |
| 14775 | return 0; |
| 14776 | } |
| 14777 | _ACEOF |
| 14778 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14779 | if { (ac_try="$ac_link" |
| 14780 | case "(($ac_try" in |
| 14781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14782 | *) ac_try_echo=$ac_try;; |
| 14783 | esac |
| 14784 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14785 | $as_echo "$ac_try_echo") >&5 |
| 14786 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14787 | ac_status=$? |
| 14788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14789 | rm -f conftest.er1 |
| 14790 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14791 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14792 | (exit $ac_status); } && { |
| 14793 | test -z "$ac_c_werror_flag" || |
| 14794 | test ! -s conftest.err |
| 14795 | } && test -s conftest$ac_exeext && { |
| 14796 | test "$cross_compiling" = yes || |
| 14797 | $as_test_x conftest$ac_exeext |
| 14798 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14799 | ac_cv_lib_posix1e_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14800 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14801 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14802 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14803 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14804 | ac_cv_lib_posix1e_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14805 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14806 | |
| 14807 | rm -rf conftest.dSYM |
| 14808 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14809 | conftest$ac_exeext conftest.$ac_ext |
| 14810 | LIBS=$ac_check_lib_save_LIBS |
| 14811 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14812 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 14813 | $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 14814 | 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] | 14815 | LIBS="$LIBS -lposix1e" |
| 14816 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14817 | { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
| 14818 | $as_echo_n "checking for acl_get_file in -lacl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14819 | if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14820 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14821 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14822 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14823 | LIBS="-lacl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14824 | cat >conftest.$ac_ext <<_ACEOF |
| 14825 | /* confdefs.h. */ |
| 14826 | _ACEOF |
| 14827 | cat confdefs.h >>conftest.$ac_ext |
| 14828 | cat >>conftest.$ac_ext <<_ACEOF |
| 14829 | /* end confdefs.h. */ |
| 14830 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14831 | /* Override any GCC internal prototype to avoid an error. |
| 14832 | Use char because int might match the return type of a GCC |
| 14833 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14834 | #ifdef __cplusplus |
| 14835 | extern "C" |
| 14836 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14837 | char acl_get_file (); |
| 14838 | int |
| 14839 | main () |
| 14840 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14841 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14842 | ; |
| 14843 | return 0; |
| 14844 | } |
| 14845 | _ACEOF |
| 14846 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14847 | if { (ac_try="$ac_link" |
| 14848 | case "(($ac_try" in |
| 14849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14850 | *) ac_try_echo=$ac_try;; |
| 14851 | esac |
| 14852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14853 | $as_echo "$ac_try_echo") >&5 |
| 14854 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14855 | ac_status=$? |
| 14856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14857 | rm -f conftest.er1 |
| 14858 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14860 | (exit $ac_status); } && { |
| 14861 | test -z "$ac_c_werror_flag" || |
| 14862 | test ! -s conftest.err |
| 14863 | } && test -s conftest$ac_exeext && { |
| 14864 | test "$cross_compiling" = yes || |
| 14865 | $as_test_x conftest$ac_exeext |
| 14866 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14867 | ac_cv_lib_acl_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14868 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14869 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14870 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14871 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14872 | ac_cv_lib_acl_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14873 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14874 | |
| 14875 | rm -rf conftest.dSYM |
| 14876 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14877 | conftest$ac_exeext conftest.$ac_ext |
| 14878 | LIBS=$ac_check_lib_save_LIBS |
| 14879 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14880 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 14881 | $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 14882 | 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] | 14883 | LIBS="$LIBS -lacl" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14884 | { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
| 14885 | $as_echo_n "checking for fgetxattr in -lattr... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14886 | if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14887 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14888 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14889 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14890 | LIBS="-lattr $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14891 | cat >conftest.$ac_ext <<_ACEOF |
| 14892 | /* confdefs.h. */ |
| 14893 | _ACEOF |
| 14894 | cat confdefs.h >>conftest.$ac_ext |
| 14895 | cat >>conftest.$ac_ext <<_ACEOF |
| 14896 | /* end confdefs.h. */ |
| 14897 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14898 | /* Override any GCC internal prototype to avoid an error. |
| 14899 | Use char because int might match the return type of a GCC |
| 14900 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14901 | #ifdef __cplusplus |
| 14902 | extern "C" |
| 14903 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14904 | char fgetxattr (); |
| 14905 | int |
| 14906 | main () |
| 14907 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14908 | return fgetxattr (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14909 | ; |
| 14910 | return 0; |
| 14911 | } |
| 14912 | _ACEOF |
| 14913 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14914 | if { (ac_try="$ac_link" |
| 14915 | case "(($ac_try" in |
| 14916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14917 | *) ac_try_echo=$ac_try;; |
| 14918 | esac |
| 14919 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14920 | $as_echo "$ac_try_echo") >&5 |
| 14921 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14922 | ac_status=$? |
| 14923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14924 | rm -f conftest.er1 |
| 14925 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14927 | (exit $ac_status); } && { |
| 14928 | test -z "$ac_c_werror_flag" || |
| 14929 | test ! -s conftest.err |
| 14930 | } && test -s conftest$ac_exeext && { |
| 14931 | test "$cross_compiling" = yes || |
| 14932 | $as_test_x conftest$ac_exeext |
| 14933 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14934 | ac_cv_lib_attr_fgetxattr=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14935 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14936 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14937 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14938 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14939 | ac_cv_lib_attr_fgetxattr=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14940 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14941 | |
| 14942 | rm -rf conftest.dSYM |
| 14943 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14944 | conftest$ac_exeext conftest.$ac_ext |
| 14945 | LIBS=$ac_check_lib_save_LIBS |
| 14946 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14947 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 14948 | $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 14949 | if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14950 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14951 | fi |
| 14952 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14953 | fi |
| 14954 | |
| 14955 | fi |
| 14956 | |
| 14957 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14958 | { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
| 14959 | $as_echo_n "checking for POSIX ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14960 | cat >conftest.$ac_ext <<_ACEOF |
| 14961 | /* confdefs.h. */ |
| 14962 | _ACEOF |
| 14963 | cat confdefs.h >>conftest.$ac_ext |
| 14964 | cat >>conftest.$ac_ext <<_ACEOF |
| 14965 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14966 | |
| 14967 | #include <sys/types.h> |
| 14968 | #ifdef HAVE_SYS_ACL_H |
| 14969 | # include <sys/acl.h> |
| 14970 | #endif |
| 14971 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14972 | int |
| 14973 | main () |
| 14974 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14975 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 14976 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 14977 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14978 | ; |
| 14979 | return 0; |
| 14980 | } |
| 14981 | _ACEOF |
| 14982 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14983 | if { (ac_try="$ac_link" |
| 14984 | case "(($ac_try" in |
| 14985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14986 | *) ac_try_echo=$ac_try;; |
| 14987 | esac |
| 14988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14989 | $as_echo "$ac_try_echo") >&5 |
| 14990 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14991 | ac_status=$? |
| 14992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14993 | rm -f conftest.er1 |
| 14994 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14996 | (exit $ac_status); } && { |
| 14997 | test -z "$ac_c_werror_flag" || |
| 14998 | test ! -s conftest.err |
| 14999 | } && test -s conftest$ac_exeext && { |
| 15000 | test "$cross_compiling" = yes || |
| 15001 | $as_test_x conftest$ac_exeext |
| 15002 | }; then |
| 15003 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15004 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15005 | #define HAVE_POSIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15006 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15007 | |
| 15008 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15009 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15010 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15011 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15012 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15013 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15014 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15015 | |
| 15016 | rm -rf conftest.dSYM |
| 15017 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15018 | conftest$ac_exeext conftest.$ac_ext |
| 15019 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15020 | { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
| 15021 | $as_echo_n "checking for Solaris ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15022 | cat >conftest.$ac_ext <<_ACEOF |
| 15023 | /* confdefs.h. */ |
| 15024 | _ACEOF |
| 15025 | cat confdefs.h >>conftest.$ac_ext |
| 15026 | cat >>conftest.$ac_ext <<_ACEOF |
| 15027 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15028 | |
| 15029 | #ifdef HAVE_SYS_ACL_H |
| 15030 | # include <sys/acl.h> |
| 15031 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15032 | int |
| 15033 | main () |
| 15034 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15035 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15036 | |
| 15037 | ; |
| 15038 | return 0; |
| 15039 | } |
| 15040 | _ACEOF |
| 15041 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15042 | if { (ac_try="$ac_link" |
| 15043 | case "(($ac_try" in |
| 15044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15045 | *) ac_try_echo=$ac_try;; |
| 15046 | esac |
| 15047 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15048 | $as_echo "$ac_try_echo") >&5 |
| 15049 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15050 | ac_status=$? |
| 15051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15052 | rm -f conftest.er1 |
| 15053 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15054 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15055 | (exit $ac_status); } && { |
| 15056 | test -z "$ac_c_werror_flag" || |
| 15057 | test ! -s conftest.err |
| 15058 | } && test -s conftest$ac_exeext && { |
| 15059 | test "$cross_compiling" = yes || |
| 15060 | $as_test_x conftest$ac_exeext |
| 15061 | }; then |
| 15062 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15063 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15064 | #define HAVE_SOLARIS_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15065 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15066 | |
| 15067 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15068 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15069 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15070 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15071 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15072 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15073 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15074 | |
| 15075 | rm -rf conftest.dSYM |
| 15076 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15077 | conftest$ac_exeext conftest.$ac_ext |
| 15078 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15079 | { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
| 15080 | $as_echo_n "checking for AIX ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15081 | cat >conftest.$ac_ext <<_ACEOF |
| 15082 | /* confdefs.h. */ |
| 15083 | _ACEOF |
| 15084 | cat confdefs.h >>conftest.$ac_ext |
| 15085 | cat >>conftest.$ac_ext <<_ACEOF |
| 15086 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15087 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15088 | #if STDC_HEADERS |
| 15089 | # include <stdlib.h> |
| 15090 | # include <stddef.h> |
| 15091 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15092 | #ifdef HAVE_SYS_ACL_H |
| 15093 | # include <sys/acl.h> |
| 15094 | #endif |
| 15095 | #ifdef HAVE_SYS_ACCESS_H |
| 15096 | # include <sys/access.h> |
| 15097 | #endif |
| 15098 | #define _ALL_SOURCE |
| 15099 | |
| 15100 | #include <sys/stat.h> |
| 15101 | |
| 15102 | int aclsize; |
| 15103 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15104 | int |
| 15105 | main () |
| 15106 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15107 | aclsize = sizeof(struct acl); |
| 15108 | aclent = (void *)malloc(aclsize); |
| 15109 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15110 | |
| 15111 | ; |
| 15112 | return 0; |
| 15113 | } |
| 15114 | _ACEOF |
| 15115 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15116 | if { (ac_try="$ac_link" |
| 15117 | case "(($ac_try" in |
| 15118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15119 | *) ac_try_echo=$ac_try;; |
| 15120 | esac |
| 15121 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15122 | $as_echo "$ac_try_echo") >&5 |
| 15123 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15124 | ac_status=$? |
| 15125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15126 | rm -f conftest.er1 |
| 15127 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15128 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15129 | (exit $ac_status); } && { |
| 15130 | test -z "$ac_c_werror_flag" || |
| 15131 | test ! -s conftest.err |
| 15132 | } && test -s conftest$ac_exeext && { |
| 15133 | test "$cross_compiling" = yes || |
| 15134 | $as_test_x conftest$ac_exeext |
| 15135 | }; then |
| 15136 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15137 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15138 | #define HAVE_AIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15139 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15140 | |
| 15141 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15142 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15144 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15145 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15146 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15147 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15148 | |
| 15149 | rm -rf conftest.dSYM |
| 15150 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15151 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15152 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15153 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15154 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15155 | fi |
| 15156 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15157 | { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 |
| 15158 | $as_echo_n "checking --disable-gpm argument... " >&6; } |
| 15159 | # Check whether --enable-gpm was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15160 | if test "${enable_gpm+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15161 | enableval=$enable_gpm; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15162 | else |
| 15163 | enable_gpm="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15164 | fi |
| 15165 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15166 | |
| 15167 | if test "$enable_gpm" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15168 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15169 | $as_echo "no" >&6; } |
| 15170 | { $as_echo "$as_me:$LINENO: checking for gpm" >&5 |
| 15171 | $as_echo_n "checking for gpm... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15172 | if test "${vi_cv_have_gpm+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15173 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15174 | else |
| 15175 | olibs="$LIBS" ; LIBS="-lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15176 | cat >conftest.$ac_ext <<_ACEOF |
| 15177 | /* confdefs.h. */ |
| 15178 | _ACEOF |
| 15179 | cat confdefs.h >>conftest.$ac_ext |
| 15180 | cat >>conftest.$ac_ext <<_ACEOF |
| 15181 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15182 | #include <gpm.h> |
| 15183 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15184 | int |
| 15185 | main () |
| 15186 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15187 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15188 | ; |
| 15189 | return 0; |
| 15190 | } |
| 15191 | _ACEOF |
| 15192 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15193 | if { (ac_try="$ac_link" |
| 15194 | case "(($ac_try" in |
| 15195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15196 | *) ac_try_echo=$ac_try;; |
| 15197 | esac |
| 15198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15199 | $as_echo "$ac_try_echo") >&5 |
| 15200 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15201 | ac_status=$? |
| 15202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15203 | rm -f conftest.er1 |
| 15204 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15205 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15206 | (exit $ac_status); } && { |
| 15207 | test -z "$ac_c_werror_flag" || |
| 15208 | test ! -s conftest.err |
| 15209 | } && test -s conftest$ac_exeext && { |
| 15210 | test "$cross_compiling" = yes || |
| 15211 | $as_test_x conftest$ac_exeext |
| 15212 | }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15213 | vi_cv_have_gpm=yes |
| 15214 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15215 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15216 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15217 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15218 | vi_cv_have_gpm=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15219 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15220 | |
| 15221 | rm -rf conftest.dSYM |
| 15222 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15223 | conftest$ac_exeext conftest.$ac_ext |
| 15224 | LIBS="$olibs" |
| 15225 | |
| 15226 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15227 | { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
| 15228 | $as_echo "$vi_cv_have_gpm" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15229 | if test $vi_cv_have_gpm = yes; then |
| 15230 | LIBS="$LIBS -lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15231 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15232 | #define HAVE_GPM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15233 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15234 | |
| 15235 | fi |
| 15236 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15237 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15238 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15239 | fi |
| 15240 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15241 | { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5 |
| 15242 | $as_echo_n "checking --disable-sysmouse argument... " >&6; } |
| 15243 | # Check whether --enable-sysmouse was given. |
| 15244 | if test "${enable_sysmouse+set}" = set; then |
| 15245 | enableval=$enable_sysmouse; |
| 15246 | else |
| 15247 | enable_sysmouse="yes" |
| 15248 | fi |
| 15249 | |
| 15250 | |
| 15251 | if test "$enable_sysmouse" = "yes"; then |
| 15252 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15253 | $as_echo "no" >&6; } |
| 15254 | { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5 |
| 15255 | $as_echo_n "checking for sysmouse... " >&6; } |
| 15256 | if test "${vi_cv_have_sysmouse+set}" = set; then |
| 15257 | $as_echo_n "(cached) " >&6 |
| 15258 | else |
| 15259 | cat >conftest.$ac_ext <<_ACEOF |
| 15260 | /* confdefs.h. */ |
| 15261 | _ACEOF |
| 15262 | cat confdefs.h >>conftest.$ac_ext |
| 15263 | cat >>conftest.$ac_ext <<_ACEOF |
| 15264 | /* end confdefs.h. */ |
| 15265 | #include <sys/consio.h> |
| 15266 | #include <signal.h> |
| 15267 | #include <sys/fbio.h> |
| 15268 | int |
| 15269 | main () |
| 15270 | { |
| 15271 | struct mouse_info mouse; |
| 15272 | mouse.operation = MOUSE_MODE; |
| 15273 | mouse.operation = MOUSE_SHOW; |
| 15274 | mouse.u.mode.mode = 0; |
| 15275 | mouse.u.mode.signal = SIGUSR2; |
| 15276 | ; |
| 15277 | return 0; |
| 15278 | } |
| 15279 | _ACEOF |
| 15280 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15281 | if { (ac_try="$ac_link" |
| 15282 | case "(($ac_try" in |
| 15283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15284 | *) ac_try_echo=$ac_try;; |
| 15285 | esac |
| 15286 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15287 | $as_echo "$ac_try_echo") >&5 |
| 15288 | (eval "$ac_link") 2>conftest.er1 |
| 15289 | ac_status=$? |
| 15290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15291 | rm -f conftest.er1 |
| 15292 | cat conftest.err >&5 |
| 15293 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15294 | (exit $ac_status); } && { |
| 15295 | test -z "$ac_c_werror_flag" || |
| 15296 | test ! -s conftest.err |
| 15297 | } && test -s conftest$ac_exeext && { |
| 15298 | test "$cross_compiling" = yes || |
| 15299 | $as_test_x conftest$ac_exeext |
| 15300 | }; then |
| 15301 | vi_cv_have_sysmouse=yes |
| 15302 | else |
| 15303 | $as_echo "$as_me: failed program was:" >&5 |
| 15304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15305 | |
| 15306 | vi_cv_have_sysmouse=no |
| 15307 | fi |
| 15308 | |
| 15309 | rm -rf conftest.dSYM |
| 15310 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15311 | conftest$ac_exeext conftest.$ac_ext |
| 15312 | |
| 15313 | fi |
| 15314 | { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5 |
| 15315 | $as_echo "$vi_cv_have_sysmouse" >&6; } |
| 15316 | if test $vi_cv_have_sysmouse = yes; then |
| 15317 | cat >>confdefs.h <<\_ACEOF |
| 15318 | #define HAVE_SYSMOUSE 1 |
| 15319 | _ACEOF |
| 15320 | |
| 15321 | fi |
| 15322 | else |
| 15323 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15324 | $as_echo "yes" >&6; } |
| 15325 | fi |
| 15326 | |
Bram Moolenaar | f05da21 | 2009-11-17 16:13:15 +0000 | [diff] [blame] | 15327 | { $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5 |
| 15328 | $as_echo_n "checking for FD_CLOEXEC... " >&6; } |
| 15329 | cat >conftest.$ac_ext <<_ACEOF |
| 15330 | /* confdefs.h. */ |
| 15331 | _ACEOF |
| 15332 | cat confdefs.h >>conftest.$ac_ext |
| 15333 | cat >>conftest.$ac_ext <<_ACEOF |
| 15334 | /* end confdefs.h. */ |
| 15335 | #if HAVE_FCNTL_H |
| 15336 | # include <fcntl.h> |
| 15337 | #endif |
| 15338 | int |
| 15339 | main () |
| 15340 | { |
| 15341 | int flag = FD_CLOEXEC; |
| 15342 | ; |
| 15343 | return 0; |
| 15344 | } |
| 15345 | _ACEOF |
| 15346 | rm -f conftest.$ac_objext |
| 15347 | if { (ac_try="$ac_compile" |
| 15348 | case "(($ac_try" in |
| 15349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15350 | *) ac_try_echo=$ac_try;; |
| 15351 | esac |
| 15352 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15353 | $as_echo "$ac_try_echo") >&5 |
| 15354 | (eval "$ac_compile") 2>conftest.er1 |
| 15355 | ac_status=$? |
| 15356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15357 | rm -f conftest.er1 |
| 15358 | cat conftest.err >&5 |
| 15359 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15360 | (exit $ac_status); } && { |
| 15361 | test -z "$ac_c_werror_flag" || |
| 15362 | test ! -s conftest.err |
| 15363 | } && test -s conftest.$ac_objext; then |
| 15364 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15365 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
| 15366 | #define HAVE_FD_CLOEXEC 1 |
| 15367 | _ACEOF |
| 15368 | |
| 15369 | else |
| 15370 | $as_echo "$as_me: failed program was:" >&5 |
| 15371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15372 | |
| 15373 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15374 | $as_echo "not usable" >&6; } |
| 15375 | fi |
| 15376 | |
| 15377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15378 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15379 | { $as_echo "$as_me:$LINENO: checking for rename" >&5 |
| 15380 | $as_echo_n "checking for rename... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15381 | cat >conftest.$ac_ext <<_ACEOF |
| 15382 | /* confdefs.h. */ |
| 15383 | _ACEOF |
| 15384 | cat confdefs.h >>conftest.$ac_ext |
| 15385 | cat >>conftest.$ac_ext <<_ACEOF |
| 15386 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15387 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15388 | int |
| 15389 | main () |
| 15390 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15391 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15392 | ; |
| 15393 | return 0; |
| 15394 | } |
| 15395 | _ACEOF |
| 15396 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15397 | if { (ac_try="$ac_link" |
| 15398 | case "(($ac_try" in |
| 15399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15400 | *) ac_try_echo=$ac_try;; |
| 15401 | esac |
| 15402 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15403 | $as_echo "$ac_try_echo") >&5 |
| 15404 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15405 | ac_status=$? |
| 15406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15407 | rm -f conftest.er1 |
| 15408 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15410 | (exit $ac_status); } && { |
| 15411 | test -z "$ac_c_werror_flag" || |
| 15412 | test ! -s conftest.err |
| 15413 | } && test -s conftest$ac_exeext && { |
| 15414 | test "$cross_compiling" = yes || |
| 15415 | $as_test_x conftest$ac_exeext |
| 15416 | }; then |
| 15417 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15418 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15419 | #define HAVE_RENAME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15420 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15421 | |
| 15422 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15423 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15424 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15425 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15426 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15427 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15428 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15429 | |
| 15430 | rm -rf conftest.dSYM |
| 15431 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15432 | conftest$ac_exeext conftest.$ac_ext |
| 15433 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15434 | { $as_echo "$as_me:$LINENO: checking for sysctl" >&5 |
| 15435 | $as_echo_n "checking for sysctl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15436 | cat >conftest.$ac_ext <<_ACEOF |
| 15437 | /* confdefs.h. */ |
| 15438 | _ACEOF |
| 15439 | cat confdefs.h >>conftest.$ac_ext |
| 15440 | cat >>conftest.$ac_ext <<_ACEOF |
| 15441 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15442 | #include <sys/types.h> |
| 15443 | #include <sys/sysctl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15444 | int |
| 15445 | main () |
| 15446 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15447 | int mib[2], r; |
| 15448 | size_t len; |
| 15449 | |
| 15450 | mib[0] = CTL_HW; |
| 15451 | mib[1] = HW_USERMEM; |
| 15452 | len = sizeof(r); |
| 15453 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15454 | |
| 15455 | ; |
| 15456 | return 0; |
| 15457 | } |
| 15458 | _ACEOF |
| 15459 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15460 | if { (ac_try="$ac_compile" |
| 15461 | case "(($ac_try" in |
| 15462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15463 | *) ac_try_echo=$ac_try;; |
| 15464 | esac |
| 15465 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15466 | $as_echo "$ac_try_echo") >&5 |
| 15467 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15468 | ac_status=$? |
| 15469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15470 | rm -f conftest.er1 |
| 15471 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15472 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15473 | (exit $ac_status); } && { |
| 15474 | test -z "$ac_c_werror_flag" || |
| 15475 | test ! -s conftest.err |
| 15476 | } && test -s conftest.$ac_objext; then |
| 15477 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15478 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15479 | #define HAVE_SYSCTL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15480 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15481 | |
| 15482 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15483 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15484 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15485 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15486 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15487 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15488 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15489 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15491 | |
| 15492 | { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5 |
| 15493 | $as_echo_n "checking for sysinfo... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15494 | cat >conftest.$ac_ext <<_ACEOF |
| 15495 | /* confdefs.h. */ |
| 15496 | _ACEOF |
| 15497 | cat confdefs.h >>conftest.$ac_ext |
| 15498 | cat >>conftest.$ac_ext <<_ACEOF |
| 15499 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15500 | #include <sys/types.h> |
| 15501 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15502 | int |
| 15503 | main () |
| 15504 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15505 | struct sysinfo sinfo; |
| 15506 | int t; |
| 15507 | |
| 15508 | (void)sysinfo(&sinfo); |
| 15509 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15510 | |
| 15511 | ; |
| 15512 | return 0; |
| 15513 | } |
| 15514 | _ACEOF |
| 15515 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15516 | if { (ac_try="$ac_compile" |
| 15517 | case "(($ac_try" in |
| 15518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15519 | *) ac_try_echo=$ac_try;; |
| 15520 | esac |
| 15521 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15522 | $as_echo "$ac_try_echo") >&5 |
| 15523 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15524 | ac_status=$? |
| 15525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15526 | rm -f conftest.er1 |
| 15527 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15528 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15529 | (exit $ac_status); } && { |
| 15530 | test -z "$ac_c_werror_flag" || |
| 15531 | test ! -s conftest.err |
| 15532 | } && test -s conftest.$ac_objext; then |
| 15533 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15534 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15535 | #define HAVE_SYSINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15536 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15537 | |
| 15538 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15539 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15540 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15541 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15542 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15543 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15544 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15545 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15547 | |
| 15548 | { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5 |
| 15549 | $as_echo_n "checking for sysinfo.mem_unit... " >&6; } |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15550 | cat >conftest.$ac_ext <<_ACEOF |
| 15551 | /* confdefs.h. */ |
| 15552 | _ACEOF |
| 15553 | cat confdefs.h >>conftest.$ac_ext |
| 15554 | cat >>conftest.$ac_ext <<_ACEOF |
| 15555 | /* end confdefs.h. */ |
| 15556 | #include <sys/types.h> |
| 15557 | #include <sys/sysinfo.h> |
| 15558 | int |
| 15559 | main () |
| 15560 | { |
| 15561 | struct sysinfo sinfo; |
| 15562 | sinfo.mem_unit = 1; |
| 15563 | |
| 15564 | ; |
| 15565 | return 0; |
| 15566 | } |
| 15567 | _ACEOF |
| 15568 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15569 | if { (ac_try="$ac_compile" |
| 15570 | case "(($ac_try" in |
| 15571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15572 | *) ac_try_echo=$ac_try;; |
| 15573 | esac |
| 15574 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15575 | $as_echo "$ac_try_echo") >&5 |
| 15576 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15577 | ac_status=$? |
| 15578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15579 | rm -f conftest.er1 |
| 15580 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15581 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15582 | (exit $ac_status); } && { |
| 15583 | test -z "$ac_c_werror_flag" || |
| 15584 | test ! -s conftest.err |
| 15585 | } && test -s conftest.$ac_objext; then |
| 15586 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15587 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15588 | #define HAVE_SYSINFO_MEM_UNIT 1 |
| 15589 | _ACEOF |
| 15590 | |
| 15591 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15592 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15594 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15595 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15596 | $as_echo "no" >&6; } |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15597 | fi |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15598 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15600 | |
| 15601 | { $as_echo "$as_me:$LINENO: checking for sysconf" >&5 |
| 15602 | $as_echo_n "checking for sysconf... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15603 | cat >conftest.$ac_ext <<_ACEOF |
| 15604 | /* confdefs.h. */ |
| 15605 | _ACEOF |
| 15606 | cat confdefs.h >>conftest.$ac_ext |
| 15607 | cat >>conftest.$ac_ext <<_ACEOF |
| 15608 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15609 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15610 | int |
| 15611 | main () |
| 15612 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15613 | (void)sysconf(_SC_PAGESIZE); |
| 15614 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15615 | |
| 15616 | ; |
| 15617 | return 0; |
| 15618 | } |
| 15619 | _ACEOF |
| 15620 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15621 | if { (ac_try="$ac_compile" |
| 15622 | case "(($ac_try" in |
| 15623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15624 | *) ac_try_echo=$ac_try;; |
| 15625 | esac |
| 15626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15627 | $as_echo "$ac_try_echo") >&5 |
| 15628 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15629 | ac_status=$? |
| 15630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15631 | rm -f conftest.er1 |
| 15632 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15634 | (exit $ac_status); } && { |
| 15635 | test -z "$ac_c_werror_flag" || |
| 15636 | test ! -s conftest.err |
| 15637 | } && test -s conftest.$ac_objext; then |
| 15638 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15639 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15640 | #define HAVE_SYSCONF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15641 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15642 | |
| 15643 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15644 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15646 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15647 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15648 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15649 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15650 | |
| 15651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15652 | |
| 15653 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15654 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
| 15655 | $as_echo_n "checking size of int... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15656 | if test "${ac_cv_sizeof_int+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15657 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15658 | else |
| 15659 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15660 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 15661 | $as_echo "$as_me: error: failed to compile test program" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15662 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15663 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15664 | cat >conftest.$ac_ext <<_ACEOF |
| 15665 | /* confdefs.h. */ |
| 15666 | _ACEOF |
| 15667 | cat confdefs.h >>conftest.$ac_ext |
| 15668 | cat >>conftest.$ac_ext <<_ACEOF |
| 15669 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15670 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15671 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15672 | #if STDC_HEADERS |
| 15673 | # include <stdlib.h> |
| 15674 | # include <stddef.h> |
| 15675 | #endif |
| 15676 | main() |
| 15677 | { |
| 15678 | FILE *f=fopen("conftestval", "w"); |
| 15679 | if (!f) exit(1); |
| 15680 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 15681 | exit(0); |
| 15682 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15683 | _ACEOF |
| 15684 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15685 | if { (ac_try="$ac_link" |
| 15686 | case "(($ac_try" in |
| 15687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15688 | *) ac_try_echo=$ac_try;; |
| 15689 | esac |
| 15690 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15691 | $as_echo "$ac_try_echo") >&5 |
| 15692 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15693 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15694 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15695 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15696 | { (case "(($ac_try" in |
| 15697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15698 | *) ac_try_echo=$ac_try;; |
| 15699 | esac |
| 15700 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15701 | $as_echo "$ac_try_echo") >&5 |
| 15702 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15703 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15705 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15706 | ac_cv_sizeof_int=`cat conftestval` |
| 15707 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15708 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15709 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15711 | |
| 15712 | ( exit $ac_status ) |
| 15713 | ac_cv_sizeof_int=0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15714 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15715 | rm -rf conftest.dSYM |
| 15716 | 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] | 15717 | fi |
| 15718 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15719 | |
| 15720 | fi |
| 15721 | |
| 15722 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 15723 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15724 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15725 | #define SIZEOF_INT $ac_cv_sizeof_int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15726 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15727 | |
| 15728 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15729 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15730 | bcopy_test_prog=' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15731 | #include "confdefs.h" |
| 15732 | #ifdef HAVE_STRING_H |
| 15733 | # include <string.h> |
| 15734 | #endif |
| 15735 | #if STDC_HEADERS |
| 15736 | # include <stdlib.h> |
| 15737 | # include <stddef.h> |
| 15738 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15739 | main() { |
| 15740 | char buf[10]; |
| 15741 | strcpy(buf, "abcdefghi"); |
| 15742 | mch_memmove(buf, buf + 2, 3); |
| 15743 | if (strncmp(buf, "ababcf", 6)) |
| 15744 | exit(1); |
| 15745 | strcpy(buf, "abcdefghi"); |
| 15746 | mch_memmove(buf + 2, buf, 3); |
| 15747 | if (strncmp(buf, "cdedef", 6)) |
| 15748 | exit(1); |
| 15749 | exit(0); /* libc version works properly. */ |
| 15750 | }' |
| 15751 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15752 | { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5 |
| 15753 | $as_echo_n "checking whether memmove handles overlaps... " >&6; } |
| 15754 | if test "${vim_cv_memmove_handles_overlap+set}" = set; then |
| 15755 | $as_echo_n "(cached) " >&6 |
| 15756 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15757 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15758 | if test "$cross_compiling" = yes; then |
| 15759 | |
| 15760 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5 |
| 15761 | $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] | 15762 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15763 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15764 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15765 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15766 | #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] | 15767 | _ACEOF |
| 15768 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15769 | if { (ac_try="$ac_link" |
| 15770 | case "(($ac_try" in |
| 15771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15772 | *) ac_try_echo=$ac_try;; |
| 15773 | esac |
| 15774 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15775 | $as_echo "$ac_try_echo") >&5 |
| 15776 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15777 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15779 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15780 | { (case "(($ac_try" in |
| 15781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15782 | *) ac_try_echo=$ac_try;; |
| 15783 | esac |
| 15784 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15785 | $as_echo "$ac_try_echo") >&5 |
| 15786 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15787 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15788 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15789 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15790 | |
| 15791 | vim_cv_memmove_handles_overlap=yes |
| 15792 | |
| 15793 | else |
| 15794 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15795 | $as_echo "$as_me: failed program was:" >&5 |
| 15796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15797 | |
| 15798 | ( exit $ac_status ) |
| 15799 | |
| 15800 | vim_cv_memmove_handles_overlap=no |
| 15801 | |
| 15802 | fi |
| 15803 | rm -rf conftest.dSYM |
| 15804 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15805 | fi |
| 15806 | |
| 15807 | |
| 15808 | |
| 15809 | fi |
| 15810 | { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5 |
| 15811 | $as_echo "$vim_cv_memmove_handles_overlap" >&6; } |
| 15812 | |
| 15813 | if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15814 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15815 | #define USEMEMMOVE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15816 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15817 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15818 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15819 | { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5 |
| 15820 | $as_echo_n "checking whether bcopy handles overlaps... " >&6; } |
| 15821 | if test "${vim_cv_bcopy_handles_overlap+set}" = set; then |
| 15822 | $as_echo_n "(cached) " >&6 |
| 15823 | else |
| 15824 | |
| 15825 | if test "$cross_compiling" = yes; then |
| 15826 | |
| 15827 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5 |
| 15828 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;} |
| 15829 | { (exit 1); exit 1; }; } |
| 15830 | |
| 15831 | else |
| 15832 | cat >conftest.$ac_ext <<_ACEOF |
| 15833 | #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog |
| 15834 | _ACEOF |
| 15835 | rm -f conftest$ac_exeext |
| 15836 | if { (ac_try="$ac_link" |
| 15837 | case "(($ac_try" in |
| 15838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15839 | *) ac_try_echo=$ac_try;; |
| 15840 | esac |
| 15841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15842 | $as_echo "$ac_try_echo") >&5 |
| 15843 | (eval "$ac_link") 2>&5 |
| 15844 | ac_status=$? |
| 15845 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15846 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15847 | { (case "(($ac_try" in |
| 15848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15849 | *) ac_try_echo=$ac_try;; |
| 15850 | esac |
| 15851 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15852 | $as_echo "$ac_try_echo") >&5 |
| 15853 | (eval "$ac_try") 2>&5 |
| 15854 | ac_status=$? |
| 15855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15856 | (exit $ac_status); }; }; then |
| 15857 | |
| 15858 | vim_cv_bcopy_handles_overlap=yes |
| 15859 | |
| 15860 | else |
| 15861 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15862 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15864 | |
| 15865 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15866 | |
| 15867 | vim_cv_bcopy_handles_overlap=no |
| 15868 | |
| 15869 | fi |
| 15870 | rm -rf conftest.dSYM |
| 15871 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15872 | fi |
| 15873 | |
| 15874 | |
| 15875 | |
| 15876 | fi |
| 15877 | { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5 |
| 15878 | $as_echo "$vim_cv_bcopy_handles_overlap" >&6; } |
| 15879 | |
| 15880 | if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then |
| 15881 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15882 | #define USEBCOPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15883 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15884 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15885 | else |
| 15886 | { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5 |
| 15887 | $as_echo_n "checking whether memcpy handles overlaps... " >&6; } |
| 15888 | if test "${vim_cv_memcpy_handles_overlap+set}" = set; then |
| 15889 | $as_echo_n "(cached) " >&6 |
| 15890 | else |
| 15891 | |
| 15892 | if test "$cross_compiling" = yes; then |
| 15893 | |
| 15894 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5 |
| 15895 | $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] | 15896 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15897 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15898 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15899 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15900 | #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] | 15901 | _ACEOF |
| 15902 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15903 | if { (ac_try="$ac_link" |
| 15904 | case "(($ac_try" in |
| 15905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15906 | *) ac_try_echo=$ac_try;; |
| 15907 | esac |
| 15908 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15909 | $as_echo "$ac_try_echo") >&5 |
| 15910 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15911 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15913 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15914 | { (case "(($ac_try" in |
| 15915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15916 | *) ac_try_echo=$ac_try;; |
| 15917 | esac |
| 15918 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15919 | $as_echo "$ac_try_echo") >&5 |
| 15920 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15921 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15922 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15923 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15924 | |
| 15925 | vim_cv_memcpy_handles_overlap=yes |
| 15926 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15927 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15928 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15929 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15930 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15931 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15932 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15933 | |
| 15934 | vim_cv_memcpy_handles_overlap=no |
| 15935 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15936 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15937 | rm -rf conftest.dSYM |
| 15938 | 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] | 15939 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15940 | |
| 15941 | |
| 15942 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15943 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15944 | { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5 |
| 15945 | $as_echo "$vim_cv_memcpy_handles_overlap" >&6; } |
| 15946 | |
| 15947 | if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then |
| 15948 | cat >>confdefs.h <<\_ACEOF |
| 15949 | #define USEMEMCPY 1 |
| 15950 | _ACEOF |
| 15951 | |
| 15952 | fi |
| 15953 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15954 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15955 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15956 | |
| 15957 | |
| 15958 | if test "$enable_multibyte" = "yes"; then |
| 15959 | cflags_save=$CFLAGS |
| 15960 | ldflags_save=$LDFLAGS |
Bram Moolenaar | 94ba1ce | 2009-04-22 15:53:09 +0000 | [diff] [blame] | 15961 | if test "x$x_includes" != "xNONE" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15962 | CFLAGS="$CFLAGS -I$x_includes" |
| 15963 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15964 | { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
| 15965 | $as_echo_n "checking whether X_LOCALE needed... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15966 | cat >conftest.$ac_ext <<_ACEOF |
| 15967 | /* confdefs.h. */ |
| 15968 | _ACEOF |
| 15969 | cat confdefs.h >>conftest.$ac_ext |
| 15970 | cat >>conftest.$ac_ext <<_ACEOF |
| 15971 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15972 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15973 | int |
| 15974 | main () |
| 15975 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15976 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15977 | ; |
| 15978 | return 0; |
| 15979 | } |
| 15980 | _ACEOF |
| 15981 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15982 | if { (ac_try="$ac_compile" |
| 15983 | case "(($ac_try" in |
| 15984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15985 | *) ac_try_echo=$ac_try;; |
| 15986 | esac |
| 15987 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15988 | $as_echo "$ac_try_echo") >&5 |
| 15989 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15990 | ac_status=$? |
| 15991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15992 | rm -f conftest.er1 |
| 15993 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15994 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15995 | (exit $ac_status); } && { |
| 15996 | test -z "$ac_c_werror_flag" || |
| 15997 | test ! -s conftest.err |
| 15998 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15999 | cat >conftest.$ac_ext <<_ACEOF |
| 16000 | /* confdefs.h. */ |
| 16001 | _ACEOF |
| 16002 | cat confdefs.h >>conftest.$ac_ext |
| 16003 | cat >>conftest.$ac_ext <<_ACEOF |
| 16004 | /* end confdefs.h. */ |
| 16005 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16006 | /* Override any GCC internal prototype to avoid an error. |
| 16007 | Use char because int might match the return type of a GCC |
| 16008 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16009 | #ifdef __cplusplus |
| 16010 | extern "C" |
| 16011 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16012 | char _Xsetlocale (); |
| 16013 | int |
| 16014 | main () |
| 16015 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16016 | return _Xsetlocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16017 | ; |
| 16018 | return 0; |
| 16019 | } |
| 16020 | _ACEOF |
| 16021 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16022 | if { (ac_try="$ac_link" |
| 16023 | case "(($ac_try" in |
| 16024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16025 | *) ac_try_echo=$ac_try;; |
| 16026 | esac |
| 16027 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16028 | $as_echo "$ac_try_echo") >&5 |
| 16029 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16030 | ac_status=$? |
| 16031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16032 | rm -f conftest.er1 |
| 16033 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16034 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16035 | (exit $ac_status); } && { |
| 16036 | test -z "$ac_c_werror_flag" || |
| 16037 | test ! -s conftest.err |
| 16038 | } && test -s conftest$ac_exeext && { |
| 16039 | test "$cross_compiling" = yes || |
| 16040 | $as_test_x conftest$ac_exeext |
| 16041 | }; then |
| 16042 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16043 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16044 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16045 | #define X_LOCALE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16046 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16047 | |
| 16048 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16049 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16051 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16052 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16053 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16054 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16055 | |
| 16056 | rm -rf conftest.dSYM |
| 16057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16058 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16059 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16060 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16062 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16063 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16064 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16065 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16066 | |
| 16067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16068 | fi |
| 16069 | CFLAGS=$cflags_save |
| 16070 | LDFLAGS=$ldflags_save |
| 16071 | fi |
| 16072 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16073 | { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 16074 | $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16075 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16076 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16077 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16078 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16079 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16080 | cat >conftest.$ac_ext <<_ACEOF |
| 16081 | /* confdefs.h. */ |
| 16082 | _ACEOF |
| 16083 | cat confdefs.h >>conftest.$ac_ext |
| 16084 | cat >>conftest.$ac_ext <<_ACEOF |
| 16085 | /* end confdefs.h. */ |
| 16086 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16087 | /* Override any GCC internal prototype to avoid an error. |
| 16088 | Use char because int might match the return type of a GCC |
| 16089 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16090 | #ifdef __cplusplus |
| 16091 | extern "C" |
| 16092 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16093 | char _xpg4_setrunelocale (); |
| 16094 | int |
| 16095 | main () |
| 16096 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16097 | return _xpg4_setrunelocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16098 | ; |
| 16099 | return 0; |
| 16100 | } |
| 16101 | _ACEOF |
| 16102 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16103 | if { (ac_try="$ac_link" |
| 16104 | case "(($ac_try" in |
| 16105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16106 | *) ac_try_echo=$ac_try;; |
| 16107 | esac |
| 16108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16109 | $as_echo "$ac_try_echo") >&5 |
| 16110 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16111 | ac_status=$? |
| 16112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16113 | rm -f conftest.er1 |
| 16114 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16115 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16116 | (exit $ac_status); } && { |
| 16117 | test -z "$ac_c_werror_flag" || |
| 16118 | test ! -s conftest.err |
| 16119 | } && test -s conftest$ac_exeext && { |
| 16120 | test "$cross_compiling" = yes || |
| 16121 | $as_test_x conftest$ac_exeext |
| 16122 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16123 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16124 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16125 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16126 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16127 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16128 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16129 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16130 | |
| 16131 | rm -rf conftest.dSYM |
| 16132 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16133 | conftest$ac_exeext conftest.$ac_ext |
| 16134 | LIBS=$ac_check_lib_save_LIBS |
| 16135 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16136 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 16137 | $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 16138 | if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16139 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16140 | fi |
| 16141 | |
| 16142 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16143 | { $as_echo "$as_me:$LINENO: checking how to create tags" >&5 |
| 16144 | $as_echo_n "checking how to create tags... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16145 | test -f tags && mv tags tags.save |
| 16146 | 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] | 16147 | TAGPRG="ctags -I INIT+ --fields=+S" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16148 | else |
Bram Moolenaar | 0c7ce77 | 2009-05-13 12:49:39 +0000 | [diff] [blame] | 16149 | TAGPRG="ctags" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16150 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 16151 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 16152 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 16153 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 16154 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 16155 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 16156 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 16157 | fi |
| 16158 | test -f tags.save && mv tags.save tags |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16159 | { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
| 16160 | $as_echo "$TAGPRG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16161 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16162 | { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
| 16163 | $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] | 16164 | MANDEF="man" |
Bram Moolenaar | 8b13150 | 2008-02-13 09:28:19 +0000 | [diff] [blame] | 16165 | (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] | 16166 | { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5 |
| 16167 | $as_echo "$MANDEF" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16168 | if test "$MANDEF" = "man -s"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16169 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16170 | #define USEMAN_S 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16171 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16172 | |
| 16173 | fi |
| 16174 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16175 | { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
| 16176 | $as_echo_n "checking --disable-nls argument... " >&6; } |
| 16177 | # Check whether --enable-nls was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16178 | if test "${enable_nls+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16179 | enableval=$enable_nls; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16180 | else |
| 16181 | enable_nls="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16182 | fi |
| 16183 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16184 | |
| 16185 | if test "$enable_nls" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16186 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16187 | $as_echo "no" >&6; } |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 16188 | |
| 16189 | INSTALL_LANGS=install-languages |
| 16190 | |
| 16191 | INSTALL_TOOL_LANGS=install-tool-languages |
| 16192 | |
| 16193 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16194 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 16195 | set dummy msgfmt; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16196 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 16197 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16198 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16199 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16200 | else |
| 16201 | if test -n "$MSGFMT"; then |
| 16202 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 16203 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16205 | for as_dir in $PATH |
| 16206 | do |
| 16207 | IFS=$as_save_IFS |
| 16208 | test -z "$as_dir" && as_dir=. |
| 16209 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16210 | 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] | 16211 | ac_cv_prog_MSGFMT="msgfmt" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16212 | $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] | 16213 | break 2 |
| 16214 | fi |
| 16215 | done |
| 16216 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16217 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16218 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16219 | fi |
| 16220 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16221 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16222 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16223 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 16224 | $as_echo "$MSGFMT" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16225 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16226 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16227 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16228 | fi |
| 16229 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16230 | |
| 16231 | { $as_echo "$as_me:$LINENO: checking for NLS" >&5 |
| 16232 | $as_echo_n "checking for NLS... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16233 | if test -f po/Makefile; then |
| 16234 | have_gettext="no" |
| 16235 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16236 | cat >conftest.$ac_ext <<_ACEOF |
| 16237 | /* confdefs.h. */ |
| 16238 | _ACEOF |
| 16239 | cat confdefs.h >>conftest.$ac_ext |
| 16240 | cat >>conftest.$ac_ext <<_ACEOF |
| 16241 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16242 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16243 | int |
| 16244 | main () |
| 16245 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16246 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16247 | ; |
| 16248 | return 0; |
| 16249 | } |
| 16250 | _ACEOF |
| 16251 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16252 | if { (ac_try="$ac_link" |
| 16253 | case "(($ac_try" in |
| 16254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16255 | *) ac_try_echo=$ac_try;; |
| 16256 | esac |
| 16257 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16258 | $as_echo "$ac_try_echo") >&5 |
| 16259 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16260 | ac_status=$? |
| 16261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16262 | rm -f conftest.er1 |
| 16263 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16264 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16265 | (exit $ac_status); } && { |
| 16266 | test -z "$ac_c_werror_flag" || |
| 16267 | test ! -s conftest.err |
| 16268 | } && test -s conftest$ac_exeext && { |
| 16269 | test "$cross_compiling" = yes || |
| 16270 | $as_test_x conftest$ac_exeext |
| 16271 | }; then |
| 16272 | { $as_echo "$as_me:$LINENO: result: gettext() works" >&5 |
| 16273 | $as_echo "gettext() works" >&6; }; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16274 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16275 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16277 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16278 | olibs=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16279 | LIBS="$LIBS -lintl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16280 | cat >conftest.$ac_ext <<_ACEOF |
| 16281 | /* confdefs.h. */ |
| 16282 | _ACEOF |
| 16283 | cat confdefs.h >>conftest.$ac_ext |
| 16284 | cat >>conftest.$ac_ext <<_ACEOF |
| 16285 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16286 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16287 | int |
| 16288 | main () |
| 16289 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16290 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16291 | ; |
| 16292 | return 0; |
| 16293 | } |
| 16294 | _ACEOF |
| 16295 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16296 | if { (ac_try="$ac_link" |
| 16297 | case "(($ac_try" in |
| 16298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16299 | *) ac_try_echo=$ac_try;; |
| 16300 | esac |
| 16301 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16302 | $as_echo "$ac_try_echo") >&5 |
| 16303 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16304 | ac_status=$? |
| 16305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16306 | rm -f conftest.er1 |
| 16307 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16309 | (exit $ac_status); } && { |
| 16310 | test -z "$ac_c_werror_flag" || |
| 16311 | test ! -s conftest.err |
| 16312 | } && test -s conftest$ac_exeext && { |
| 16313 | test "$cross_compiling" = yes || |
| 16314 | $as_test_x conftest$ac_exeext |
| 16315 | }; then |
| 16316 | { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 |
| 16317 | $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16318 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16319 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16321 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16322 | { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 |
| 16323 | $as_echo "gettext() doesn't work" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16324 | LIBS=$olibs |
| 16325 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16326 | |
| 16327 | rm -rf conftest.dSYM |
| 16328 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16329 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16330 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16331 | |
| 16332 | rm -rf conftest.dSYM |
| 16333 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16334 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16335 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16336 | { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
| 16337 | $as_echo "msgfmt not found - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16338 | fi |
| 16339 | if test $have_gettext = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16340 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16341 | #define HAVE_GETTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16342 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16343 | |
| 16344 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16345 | |
| 16346 | |
| 16347 | for ac_func in bind_textdomain_codeset |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16348 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16349 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16350 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16351 | $as_echo_n "checking for $ac_func... " >&6; } |
| 16352 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16353 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16354 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16355 | cat >conftest.$ac_ext <<_ACEOF |
| 16356 | /* confdefs.h. */ |
| 16357 | _ACEOF |
| 16358 | cat confdefs.h >>conftest.$ac_ext |
| 16359 | cat >>conftest.$ac_ext <<_ACEOF |
| 16360 | /* end confdefs.h. */ |
| 16361 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16362 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16363 | #define $ac_func innocuous_$ac_func |
| 16364 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16365 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16366 | which can conflict with char $ac_func (); below. |
| 16367 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16368 | <limits.h> exists even on freestanding compilers. */ |
| 16369 | |
| 16370 | #ifdef __STDC__ |
| 16371 | # include <limits.h> |
| 16372 | #else |
| 16373 | # include <assert.h> |
| 16374 | #endif |
| 16375 | |
| 16376 | #undef $ac_func |
| 16377 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16378 | /* Override any GCC internal prototype to avoid an error. |
| 16379 | Use char because int might match the return type of a GCC |
| 16380 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16381 | #ifdef __cplusplus |
| 16382 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16383 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16384 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16385 | /* The GNU C library defines this for functions which it implements |
| 16386 | to always fail with ENOSYS. Some functions are actually named |
| 16387 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16388 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16389 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16390 | #endif |
| 16391 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16392 | int |
| 16393 | main () |
| 16394 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16395 | return $ac_func (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16396 | ; |
| 16397 | return 0; |
| 16398 | } |
| 16399 | _ACEOF |
| 16400 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16401 | if { (ac_try="$ac_link" |
| 16402 | case "(($ac_try" in |
| 16403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16404 | *) ac_try_echo=$ac_try;; |
| 16405 | esac |
| 16406 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16407 | $as_echo "$ac_try_echo") >&5 |
| 16408 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16409 | ac_status=$? |
| 16410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16411 | rm -f conftest.er1 |
| 16412 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16413 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16414 | (exit $ac_status); } && { |
| 16415 | test -z "$ac_c_werror_flag" || |
| 16416 | test ! -s conftest.err |
| 16417 | } && test -s conftest$ac_exeext && { |
| 16418 | test "$cross_compiling" = yes || |
| 16419 | $as_test_x conftest$ac_exeext |
| 16420 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16421 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16422 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16423 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16424 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16425 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16426 | eval "$as_ac_var=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16427 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16428 | |
| 16429 | rm -rf conftest.dSYM |
| 16430 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16431 | conftest$ac_exeext conftest.$ac_ext |
| 16432 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16433 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 16434 | $as_echo "$as_val"'` |
| 16435 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16436 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 16437 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 16438 | $as_echo "$as_val"'` |
| 16439 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16440 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16441 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16442 | _ACEOF |
| 16443 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16444 | fi |
| 16445 | done |
| 16446 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16447 | { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
| 16448 | $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16449 | cat >conftest.$ac_ext <<_ACEOF |
| 16450 | /* confdefs.h. */ |
| 16451 | _ACEOF |
| 16452 | cat confdefs.h >>conftest.$ac_ext |
| 16453 | cat >>conftest.$ac_ext <<_ACEOF |
| 16454 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16455 | #include <libintl.h> |
| 16456 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16457 | int |
| 16458 | main () |
| 16459 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16460 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16461 | ; |
| 16462 | return 0; |
| 16463 | } |
| 16464 | _ACEOF |
| 16465 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16466 | if { (ac_try="$ac_link" |
| 16467 | case "(($ac_try" in |
| 16468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16469 | *) ac_try_echo=$ac_try;; |
| 16470 | esac |
| 16471 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16472 | $as_echo "$ac_try_echo") >&5 |
| 16473 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16474 | ac_status=$? |
| 16475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16476 | rm -f conftest.er1 |
| 16477 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16478 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16479 | (exit $ac_status); } && { |
| 16480 | test -z "$ac_c_werror_flag" || |
| 16481 | test ! -s conftest.err |
| 16482 | } && test -s conftest$ac_exeext && { |
| 16483 | test "$cross_compiling" = yes || |
| 16484 | $as_test_x conftest$ac_exeext |
| 16485 | }; then |
| 16486 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16487 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16488 | #define HAVE_NL_MSG_CAT_CNTR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16489 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16490 | |
| 16491 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16492 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16494 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16495 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16496 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16497 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16498 | |
| 16499 | rm -rf conftest.dSYM |
| 16500 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16501 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16502 | fi |
| 16503 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16504 | { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
| 16505 | $as_echo "no \"po/Makefile\" - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16506 | fi |
| 16507 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16508 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16509 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16510 | fi |
| 16511 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16512 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16513 | { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 16514 | $as_echo_n "checking for dlfcn.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16515 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16516 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16517 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16518 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 16519 | $as_echo "$ac_cv_header_dlfcn_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16520 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16521 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16522 | { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 16523 | $as_echo_n "checking dlfcn.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16524 | cat >conftest.$ac_ext <<_ACEOF |
| 16525 | /* confdefs.h. */ |
| 16526 | _ACEOF |
| 16527 | cat confdefs.h >>conftest.$ac_ext |
| 16528 | cat >>conftest.$ac_ext <<_ACEOF |
| 16529 | /* end confdefs.h. */ |
| 16530 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16531 | #include <dlfcn.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16532 | _ACEOF |
| 16533 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16534 | if { (ac_try="$ac_compile" |
| 16535 | case "(($ac_try" in |
| 16536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16537 | *) ac_try_echo=$ac_try;; |
| 16538 | esac |
| 16539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16540 | $as_echo "$ac_try_echo") >&5 |
| 16541 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16542 | ac_status=$? |
| 16543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16544 | rm -f conftest.er1 |
| 16545 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16547 | (exit $ac_status); } && { |
| 16548 | test -z "$ac_c_werror_flag" || |
| 16549 | test ! -s conftest.err |
| 16550 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16551 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16552 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16553 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16555 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16556 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16557 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16558 | |
| 16559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16560 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16561 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16562 | |
| 16563 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16564 | { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 16565 | $as_echo_n "checking dlfcn.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16566 | cat >conftest.$ac_ext <<_ACEOF |
| 16567 | /* confdefs.h. */ |
| 16568 | _ACEOF |
| 16569 | cat confdefs.h >>conftest.$ac_ext |
| 16570 | cat >>conftest.$ac_ext <<_ACEOF |
| 16571 | /* end confdefs.h. */ |
| 16572 | #include <dlfcn.h> |
| 16573 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16574 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16575 | case "(($ac_try" in |
| 16576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16577 | *) ac_try_echo=$ac_try;; |
| 16578 | esac |
| 16579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16580 | $as_echo "$ac_try_echo") >&5 |
| 16581 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16582 | ac_status=$? |
| 16583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16584 | rm -f conftest.er1 |
| 16585 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16587 | (exit $ac_status); } >/dev/null && { |
| 16588 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16589 | test ! -s conftest.err |
| 16590 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16591 | ac_header_preproc=yes |
| 16592 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16593 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16595 | |
| 16596 | ac_header_preproc=no |
| 16597 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16598 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16599 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16600 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16601 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16602 | |
| 16603 | # So? What about this header? |
| 16604 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16605 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16606 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16607 | $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16608 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 16609 | $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] | 16610 | ac_header_preproc=yes |
| 16611 | ;; |
| 16612 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16613 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 16614 | $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 16615 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 16616 | $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 16617 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 16618 | $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 16619 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16620 | $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16621 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 16622 | $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 16623 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 16624 | $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 16625 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16626 | ;; |
| 16627 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16628 | { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 16629 | $as_echo_n "checking for dlfcn.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16630 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16631 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16632 | else |
| 16633 | ac_cv_header_dlfcn_h=$ac_header_preproc |
| 16634 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16635 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 16636 | $as_echo "$ac_cv_header_dlfcn_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16637 | |
| 16638 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 16639 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16640 | DLL=dlfcn.h |
| 16641 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16642 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16643 | { $as_echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 16644 | $as_echo_n "checking for dl.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16645 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16646 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16647 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16648 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 16649 | $as_echo "$ac_cv_header_dl_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16650 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16651 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16652 | { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5 |
| 16653 | $as_echo_n "checking dl.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16654 | cat >conftest.$ac_ext <<_ACEOF |
| 16655 | /* confdefs.h. */ |
| 16656 | _ACEOF |
| 16657 | cat confdefs.h >>conftest.$ac_ext |
| 16658 | cat >>conftest.$ac_ext <<_ACEOF |
| 16659 | /* end confdefs.h. */ |
| 16660 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16661 | #include <dl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16662 | _ACEOF |
| 16663 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16664 | if { (ac_try="$ac_compile" |
| 16665 | case "(($ac_try" in |
| 16666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16667 | *) ac_try_echo=$ac_try;; |
| 16668 | esac |
| 16669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16670 | $as_echo "$ac_try_echo") >&5 |
| 16671 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16672 | ac_status=$? |
| 16673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16674 | rm -f conftest.er1 |
| 16675 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16677 | (exit $ac_status); } && { |
| 16678 | test -z "$ac_c_werror_flag" || |
| 16679 | test ! -s conftest.err |
| 16680 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16681 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16682 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16683 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16685 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16686 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16687 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16688 | |
| 16689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16690 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16691 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16692 | |
| 16693 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16694 | { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5 |
| 16695 | $as_echo_n "checking dl.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16696 | cat >conftest.$ac_ext <<_ACEOF |
| 16697 | /* confdefs.h. */ |
| 16698 | _ACEOF |
| 16699 | cat confdefs.h >>conftest.$ac_ext |
| 16700 | cat >>conftest.$ac_ext <<_ACEOF |
| 16701 | /* end confdefs.h. */ |
| 16702 | #include <dl.h> |
| 16703 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16704 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16705 | case "(($ac_try" in |
| 16706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16707 | *) ac_try_echo=$ac_try;; |
| 16708 | esac |
| 16709 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16710 | $as_echo "$ac_try_echo") >&5 |
| 16711 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16712 | ac_status=$? |
| 16713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16714 | rm -f conftest.er1 |
| 16715 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16717 | (exit $ac_status); } >/dev/null && { |
| 16718 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16719 | test ! -s conftest.err |
| 16720 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16721 | ac_header_preproc=yes |
| 16722 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16723 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16725 | |
| 16726 | ac_header_preproc=no |
| 16727 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16728 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16729 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16730 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16731 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16732 | |
| 16733 | # So? What about this header? |
| 16734 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16735 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16736 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16737 | $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16738 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 |
| 16739 | $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] | 16740 | ac_header_preproc=yes |
| 16741 | ;; |
| 16742 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16743 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 |
| 16744 | $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} |
| 16745 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 |
| 16746 | $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} |
| 16747 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 |
| 16748 | $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} |
| 16749 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16750 | $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16751 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 |
| 16752 | $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} |
| 16753 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 |
| 16754 | $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} |
| 16755 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16756 | ;; |
| 16757 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16758 | { $as_echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 16759 | $as_echo_n "checking for dl.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16760 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16761 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16762 | else |
| 16763 | ac_cv_header_dl_h=$ac_header_preproc |
| 16764 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16765 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 16766 | $as_echo "$ac_cv_header_dl_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16767 | |
| 16768 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 16769 | if test "x$ac_cv_header_dl_h" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16770 | DLL=dl.h |
| 16771 | fi |
| 16772 | |
| 16773 | |
| 16774 | fi |
| 16775 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16776 | |
| 16777 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16778 | |
| 16779 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16780 | #define HAVE_DLFCN_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16781 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16782 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16783 | { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5 |
| 16784 | $as_echo_n "checking for dlopen()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16785 | cat >conftest.$ac_ext <<_ACEOF |
| 16786 | /* confdefs.h. */ |
| 16787 | _ACEOF |
| 16788 | cat confdefs.h >>conftest.$ac_ext |
| 16789 | cat >>conftest.$ac_ext <<_ACEOF |
| 16790 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16791 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16792 | int |
| 16793 | main () |
| 16794 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16795 | |
| 16796 | extern void* dlopen(); |
| 16797 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16798 | |
| 16799 | ; |
| 16800 | return 0; |
| 16801 | } |
| 16802 | _ACEOF |
| 16803 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16804 | if { (ac_try="$ac_link" |
| 16805 | case "(($ac_try" in |
| 16806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16807 | *) ac_try_echo=$ac_try;; |
| 16808 | esac |
| 16809 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16810 | $as_echo "$ac_try_echo") >&5 |
| 16811 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16812 | ac_status=$? |
| 16813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16814 | rm -f conftest.er1 |
| 16815 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16816 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16817 | (exit $ac_status); } && { |
| 16818 | test -z "$ac_c_werror_flag" || |
| 16819 | test ! -s conftest.err |
| 16820 | } && test -s conftest$ac_exeext && { |
| 16821 | test "$cross_compiling" = yes || |
| 16822 | $as_test_x conftest$ac_exeext |
| 16823 | }; then |
| 16824 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16825 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16826 | |
| 16827 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16828 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16829 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16830 | |
| 16831 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16832 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16834 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16835 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16836 | $as_echo "no" >&6; }; |
| 16837 | { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
| 16838 | $as_echo_n "checking for dlopen() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16839 | olibs=$LIBS |
| 16840 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16841 | cat >conftest.$ac_ext <<_ACEOF |
| 16842 | /* confdefs.h. */ |
| 16843 | _ACEOF |
| 16844 | cat confdefs.h >>conftest.$ac_ext |
| 16845 | cat >>conftest.$ac_ext <<_ACEOF |
| 16846 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16847 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16848 | int |
| 16849 | main () |
| 16850 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16851 | |
| 16852 | extern void* dlopen(); |
| 16853 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16854 | |
| 16855 | ; |
| 16856 | return 0; |
| 16857 | } |
| 16858 | _ACEOF |
| 16859 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16860 | if { (ac_try="$ac_link" |
| 16861 | case "(($ac_try" in |
| 16862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16863 | *) ac_try_echo=$ac_try;; |
| 16864 | esac |
| 16865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16866 | $as_echo "$ac_try_echo") >&5 |
| 16867 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16868 | ac_status=$? |
| 16869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16870 | rm -f conftest.er1 |
| 16871 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16873 | (exit $ac_status); } && { |
| 16874 | test -z "$ac_c_werror_flag" || |
| 16875 | test ! -s conftest.err |
| 16876 | } && test -s conftest$ac_exeext && { |
| 16877 | test "$cross_compiling" = yes || |
| 16878 | $as_test_x conftest$ac_exeext |
| 16879 | }; then |
| 16880 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16881 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16882 | |
| 16883 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16884 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16885 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16886 | |
| 16887 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16888 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16890 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16891 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16892 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16893 | LIBS=$olibs |
| 16894 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16895 | |
| 16896 | rm -rf conftest.dSYM |
| 16897 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16898 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16899 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16900 | |
| 16901 | rm -rf conftest.dSYM |
| 16902 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16903 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16904 | { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5 |
| 16905 | $as_echo_n "checking for dlsym()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16906 | cat >conftest.$ac_ext <<_ACEOF |
| 16907 | /* confdefs.h. */ |
| 16908 | _ACEOF |
| 16909 | cat confdefs.h >>conftest.$ac_ext |
| 16910 | cat >>conftest.$ac_ext <<_ACEOF |
| 16911 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16912 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16913 | int |
| 16914 | main () |
| 16915 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16916 | |
| 16917 | extern void* dlsym(); |
| 16918 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16919 | |
| 16920 | ; |
| 16921 | return 0; |
| 16922 | } |
| 16923 | _ACEOF |
| 16924 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16925 | if { (ac_try="$ac_link" |
| 16926 | case "(($ac_try" in |
| 16927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16928 | *) ac_try_echo=$ac_try;; |
| 16929 | esac |
| 16930 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16931 | $as_echo "$ac_try_echo") >&5 |
| 16932 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16933 | ac_status=$? |
| 16934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16935 | rm -f conftest.er1 |
| 16936 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16938 | (exit $ac_status); } && { |
| 16939 | test -z "$ac_c_werror_flag" || |
| 16940 | test ! -s conftest.err |
| 16941 | } && test -s conftest$ac_exeext && { |
| 16942 | test "$cross_compiling" = yes || |
| 16943 | $as_test_x conftest$ac_exeext |
| 16944 | }; then |
| 16945 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16946 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16947 | |
| 16948 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16949 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16950 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16951 | |
| 16952 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16953 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16955 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16956 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16957 | $as_echo "no" >&6; }; |
| 16958 | { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
| 16959 | $as_echo_n "checking for dlsym() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16960 | olibs=$LIBS |
| 16961 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16962 | cat >conftest.$ac_ext <<_ACEOF |
| 16963 | /* confdefs.h. */ |
| 16964 | _ACEOF |
| 16965 | cat confdefs.h >>conftest.$ac_ext |
| 16966 | cat >>conftest.$ac_ext <<_ACEOF |
| 16967 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16968 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16969 | int |
| 16970 | main () |
| 16971 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16972 | |
| 16973 | extern void* dlsym(); |
| 16974 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16975 | |
| 16976 | ; |
| 16977 | return 0; |
| 16978 | } |
| 16979 | _ACEOF |
| 16980 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16981 | if { (ac_try="$ac_link" |
| 16982 | case "(($ac_try" in |
| 16983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16984 | *) ac_try_echo=$ac_try;; |
| 16985 | esac |
| 16986 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16987 | $as_echo "$ac_try_echo") >&5 |
| 16988 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16989 | ac_status=$? |
| 16990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16991 | rm -f conftest.er1 |
| 16992 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16993 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16994 | (exit $ac_status); } && { |
| 16995 | test -z "$ac_c_werror_flag" || |
| 16996 | test ! -s conftest.err |
| 16997 | } && test -s conftest$ac_exeext && { |
| 16998 | test "$cross_compiling" = yes || |
| 16999 | $as_test_x conftest$ac_exeext |
| 17000 | }; then |
| 17001 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17002 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17003 | |
| 17004 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17005 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17006 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17007 | |
| 17008 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17009 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17011 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17012 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17013 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17014 | LIBS=$olibs |
| 17015 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17016 | |
| 17017 | rm -rf conftest.dSYM |
| 17018 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17019 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17020 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17021 | |
| 17022 | rm -rf conftest.dSYM |
| 17023 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17024 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17025 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17026 | |
| 17027 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17028 | #define HAVE_DL_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17029 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17030 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17031 | { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5 |
| 17032 | $as_echo_n "checking for shl_load()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17033 | cat >conftest.$ac_ext <<_ACEOF |
| 17034 | /* confdefs.h. */ |
| 17035 | _ACEOF |
| 17036 | cat confdefs.h >>conftest.$ac_ext |
| 17037 | cat >>conftest.$ac_ext <<_ACEOF |
| 17038 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17039 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17040 | int |
| 17041 | main () |
| 17042 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17043 | |
| 17044 | extern void* shl_load(); |
| 17045 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17046 | |
| 17047 | ; |
| 17048 | return 0; |
| 17049 | } |
| 17050 | _ACEOF |
| 17051 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17052 | if { (ac_try="$ac_link" |
| 17053 | case "(($ac_try" in |
| 17054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17055 | *) ac_try_echo=$ac_try;; |
| 17056 | esac |
| 17057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17058 | $as_echo "$ac_try_echo") >&5 |
| 17059 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17060 | ac_status=$? |
| 17061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17062 | rm -f conftest.er1 |
| 17063 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17065 | (exit $ac_status); } && { |
| 17066 | test -z "$ac_c_werror_flag" || |
| 17067 | test ! -s conftest.err |
| 17068 | } && test -s conftest$ac_exeext && { |
| 17069 | test "$cross_compiling" = yes || |
| 17070 | $as_test_x conftest$ac_exeext |
| 17071 | }; then |
| 17072 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17073 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17074 | |
| 17075 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17076 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17077 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17078 | |
| 17079 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17080 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17082 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17083 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17084 | $as_echo "no" >&6; }; |
| 17085 | { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
| 17086 | $as_echo_n "checking for shl_load() in -ldld... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17087 | olibs=$LIBS |
| 17088 | LIBS="$LIBS -ldld" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17089 | cat >conftest.$ac_ext <<_ACEOF |
| 17090 | /* confdefs.h. */ |
| 17091 | _ACEOF |
| 17092 | cat confdefs.h >>conftest.$ac_ext |
| 17093 | cat >>conftest.$ac_ext <<_ACEOF |
| 17094 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17095 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17096 | int |
| 17097 | main () |
| 17098 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17099 | |
| 17100 | extern void* shl_load(); |
| 17101 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17102 | |
| 17103 | ; |
| 17104 | return 0; |
| 17105 | } |
| 17106 | _ACEOF |
| 17107 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17108 | if { (ac_try="$ac_link" |
| 17109 | case "(($ac_try" in |
| 17110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17111 | *) ac_try_echo=$ac_try;; |
| 17112 | esac |
| 17113 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17114 | $as_echo "$ac_try_echo") >&5 |
| 17115 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17116 | ac_status=$? |
| 17117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17118 | rm -f conftest.er1 |
| 17119 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17120 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17121 | (exit $ac_status); } && { |
| 17122 | test -z "$ac_c_werror_flag" || |
| 17123 | test ! -s conftest.err |
| 17124 | } && test -s conftest$ac_exeext && { |
| 17125 | test "$cross_compiling" = yes || |
| 17126 | $as_test_x conftest$ac_exeext |
| 17127 | }; then |
| 17128 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17129 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17130 | |
| 17131 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17132 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17133 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17134 | |
| 17135 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17136 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17138 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17139 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17140 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17141 | LIBS=$olibs |
| 17142 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17143 | |
| 17144 | rm -rf conftest.dSYM |
| 17145 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17146 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17147 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17148 | |
| 17149 | rm -rf conftest.dSYM |
| 17150 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17151 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17152 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17153 | |
| 17154 | for ac_header in setjmp.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17155 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17156 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17157 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17158 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17159 | $as_echo_n "checking for $ac_header... " >&6; } |
| 17160 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17161 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17162 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17163 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 17164 | $as_echo "$as_val"'` |
| 17165 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17166 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17167 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17168 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17169 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 17170 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17171 | cat >conftest.$ac_ext <<_ACEOF |
| 17172 | /* confdefs.h. */ |
| 17173 | _ACEOF |
| 17174 | cat confdefs.h >>conftest.$ac_ext |
| 17175 | cat >>conftest.$ac_ext <<_ACEOF |
| 17176 | /* end confdefs.h. */ |
| 17177 | $ac_includes_default |
| 17178 | #include <$ac_header> |
| 17179 | _ACEOF |
| 17180 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17181 | if { (ac_try="$ac_compile" |
| 17182 | case "(($ac_try" in |
| 17183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17184 | *) ac_try_echo=$ac_try;; |
| 17185 | esac |
| 17186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17187 | $as_echo "$ac_try_echo") >&5 |
| 17188 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17189 | ac_status=$? |
| 17190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17191 | rm -f conftest.er1 |
| 17192 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17194 | (exit $ac_status); } && { |
| 17195 | test -z "$ac_c_werror_flag" || |
| 17196 | test ! -s conftest.err |
| 17197 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17198 | ac_header_compiler=yes |
| 17199 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17200 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17202 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17203 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17204 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17205 | |
| 17206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17207 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17208 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17209 | |
| 17210 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17211 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17212 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17213 | cat >conftest.$ac_ext <<_ACEOF |
| 17214 | /* confdefs.h. */ |
| 17215 | _ACEOF |
| 17216 | cat confdefs.h >>conftest.$ac_ext |
| 17217 | cat >>conftest.$ac_ext <<_ACEOF |
| 17218 | /* end confdefs.h. */ |
| 17219 | #include <$ac_header> |
| 17220 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17221 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17222 | case "(($ac_try" in |
| 17223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17224 | *) ac_try_echo=$ac_try;; |
| 17225 | esac |
| 17226 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17227 | $as_echo "$ac_try_echo") >&5 |
| 17228 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17229 | ac_status=$? |
| 17230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17231 | rm -f conftest.er1 |
| 17232 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17233 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17234 | (exit $ac_status); } >/dev/null && { |
| 17235 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 17236 | test ! -s conftest.err |
| 17237 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17238 | ac_header_preproc=yes |
| 17239 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17240 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17242 | |
| 17243 | ac_header_preproc=no |
| 17244 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17245 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17246 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17247 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17248 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17249 | |
| 17250 | # So? What about this header? |
| 17251 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17252 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17253 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17254 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17255 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17256 | $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] | 17257 | ac_header_preproc=yes |
| 17258 | ;; |
| 17259 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17260 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17261 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17262 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17263 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17264 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17265 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17266 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17267 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17268 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17269 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17270 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17271 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17272 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17273 | ;; |
| 17274 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17275 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17276 | $as_echo_n "checking for $ac_header... " >&6; } |
| 17277 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17278 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17279 | else |
| 17280 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17281 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17282 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 17283 | $as_echo "$as_val"'` |
| 17284 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17285 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17286 | |
| 17287 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17288 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 17289 | $as_echo "$as_val"'` |
| 17290 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17291 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17292 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17293 | _ACEOF |
| 17294 | |
| 17295 | fi |
| 17296 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17297 | done |
| 17298 | |
| 17299 | |
| 17300 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 17301 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 17302 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 17303 | PERL_LIBS="$PERL_LIBS -ldl" |
| 17304 | fi |
| 17305 | fi |
| 17306 | |
| 17307 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 17308 | && test "x$GUITYPE" != "xCARBONGUI"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17309 | { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
| 17310 | $as_echo_n "checking whether we need -framework Carbon... " >&6; } |
Bram Moolenaar | b90daee | 2006-10-17 09:49:09 +0000 | [diff] [blame] | 17311 | if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17312 | || test "x$features" = "xhuge"; then |
| 17313 | LIBS="$LIBS -framework Carbon" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17314 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17315 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17316 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17317 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17318 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17319 | fi |
| 17320 | fi |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 17321 | if test "x$MACARCH" = "xboth"; then |
| 17322 | LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 17323 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17324 | |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 17325 | DEPEND_CFLAGS_FILTER= |
| 17326 | if test "$GCC" = yes; then |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 17327 | { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 |
| 17328 | $as_echo_n "checking for GCC 3 or later... " >&6; } |
Bram Moolenaar | 2217cae | 2006-03-25 21:55:52 +0000 | [diff] [blame] | 17329 | gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` |
Bram Moolenaar | f740b29 | 2006-02-16 22:11:02 +0000 | [diff] [blame] | 17330 | if test "$gccmajor" -gt "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 17331 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 17332 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17333 | $as_echo "yes" >&6; } |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 17334 | else |
| 17335 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17336 | $as_echo "no" >&6; } |
| 17337 | fi |
Bram Moolenaar | 56d1db3 | 2009-12-16 16:14:51 +0000 | [diff] [blame] | 17338 | { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5 |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 17339 | $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } |
| 17340 | if test "$gccmajor" -gt "3"; then |
Bram Moolenaar | 56d1db3 | 2009-12-16 16:14:51 +0000 | [diff] [blame] | 17341 | CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'` |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 17342 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17343 | $as_echo "yes" >&6; } |
| 17344 | else |
| 17345 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17346 | $as_echo "no" >&6; } |
| 17347 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 17348 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 17349 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17350 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17351 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 17352 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17353 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17354 | # This file is a shell script that caches the results of configure |
| 17355 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17356 | # scripts and configure runs, see configure's option --config-cache. |
| 17357 | # It is not useful on other systems. If it contains results you don't |
| 17358 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17359 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17360 | # config.status only pays attention to the cache file if you give it |
| 17361 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17362 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17363 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 17364 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 17365 | # following values. |
| 17366 | |
| 17367 | _ACEOF |
| 17368 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17369 | # The following way of writing the cache mishandles newlines in values, |
| 17370 | # but we know of no workaround that is simple, portable, and efficient. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17371 | # So, we kill variables containing newlines. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17372 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 17373 | # 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] | 17374 | ( |
| 17375 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 17376 | eval ac_val=\$$ac_var |
| 17377 | case $ac_val in #( |
| 17378 | *${as_nl}*) |
| 17379 | case $ac_var in #( |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17380 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 17381 | $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] | 17382 | esac |
| 17383 | case $ac_var in #( |
| 17384 | _ | IFS | as_nl) ;; #( |
| 17385 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 17386 | *) $as_unset $ac_var ;; |
| 17387 | esac ;; |
| 17388 | esac |
| 17389 | done |
| 17390 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17391 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17392 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 17393 | *${as_nl}ac_space=\ *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17394 | # `set' does not quote correctly, so add quotes (double-quote |
| 17395 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 17396 | sed -n \ |
| 17397 | "s/'/'\\\\''/g; |
| 17398 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17399 | ;; #( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17400 | *) |
| 17401 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17402 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17403 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17404 | esac | |
| 17405 | sort |
| 17406 | ) | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17407 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17408 | /^ac_cv_env_/b end |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17409 | t clear |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17410 | :clear |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17411 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 17412 | t end |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17413 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 17414 | :end' >>confcache |
| 17415 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 17416 | if test -w "$cache_file"; then |
| 17417 | test "x$cache_file" != "x/dev/null" && |
| 17418 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 17419 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17420 | cat confcache >$cache_file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17421 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17422 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 17423 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17424 | fi |
| 17425 | fi |
| 17426 | rm -f confcache |
| 17427 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17428 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 17429 | # Let make expand exec_prefix. |
| 17430 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 17431 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17432 | DEFS=-DHAVE_CONFIG_H |
| 17433 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17434 | ac_libobjs= |
| 17435 | ac_ltlibobjs= |
| 17436 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 17437 | # 1. Remove the extension, and $U if already installed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17438 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 17439 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 17440 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 17441 | # will be set to the directory where LIBOBJS objects are built. |
| 17442 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 17443 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17444 | done |
| 17445 | LIBOBJS=$ac_libobjs |
| 17446 | |
| 17447 | LTLIBOBJS=$ac_ltlibobjs |
| 17448 | |
| 17449 | |
| 17450 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17451 | : ${CONFIG_STATUS=./config.status} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17452 | ac_write_fail=0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17453 | ac_clean_files_save=$ac_clean_files |
| 17454 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17455 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 17456 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 17457 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17458 | #! $SHELL |
| 17459 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17460 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17461 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17462 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17463 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17464 | debug=false |
| 17465 | ac_cs_recheck=false |
| 17466 | ac_cs_silent=false |
| 17467 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 17468 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17469 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17470 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17471 | ## --------------------- ## |
| 17472 | ## M4sh Initialization. ## |
| 17473 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17474 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17475 | # Be more Bourne compatible |
| 17476 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17477 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17478 | emulate sh |
| 17479 | NULLCMD=: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17480 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17481 | # is contrary to our usage. Disable this feature. |
| 17482 | alias -g '${1+"$@"}'='"$@"' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17483 | setopt NO_GLOB_SUBST |
| 17484 | else |
| 17485 | case `(set -o) 2>/dev/null` in |
| 17486 | *posix*) set -o posix ;; |
| 17487 | esac |
| 17488 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17489 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17490 | |
| 17491 | |
| 17492 | |
| 17493 | |
| 17494 | # PATH needs CR |
| 17495 | # Avoid depending upon Character Ranges. |
| 17496 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 17497 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 17498 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 17499 | as_cr_digits='0123456789' |
| 17500 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 17501 | |
| 17502 | as_nl=' |
| 17503 | ' |
| 17504 | export as_nl |
| 17505 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 17506 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 17507 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 17508 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 17509 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 17510 | as_echo='printf %s\n' |
| 17511 | as_echo_n='printf %s' |
| 17512 | else |
| 17513 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 17514 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 17515 | as_echo_n='/usr/ucb/echo -n' |
| 17516 | else |
| 17517 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 17518 | as_echo_n_body='eval |
| 17519 | arg=$1; |
| 17520 | case $arg in |
| 17521 | *"$as_nl"*) |
| 17522 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 17523 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 17524 | esac; |
| 17525 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 17526 | ' |
| 17527 | export as_echo_n_body |
| 17528 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 17529 | fi |
| 17530 | export as_echo_body |
| 17531 | as_echo='sh -c $as_echo_body as_echo' |
| 17532 | fi |
| 17533 | |
| 17534 | # The user is always right. |
| 17535 | if test "${PATH_SEPARATOR+set}" != set; then |
| 17536 | PATH_SEPARATOR=: |
| 17537 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 17538 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 17539 | PATH_SEPARATOR=';' |
| 17540 | } |
| 17541 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17542 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17543 | # Support unset when possible. |
| 17544 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 17545 | as_unset=unset |
| 17546 | else |
| 17547 | as_unset=false |
| 17548 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17549 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17550 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17551 | # IFS |
| 17552 | # We need space, tab and new line, in precisely that order. Quoting is |
| 17553 | # there to prevent editors from complaining about space-tab. |
| 17554 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 17555 | # splitting by setting IFS to empty value.) |
| 17556 | IFS=" "" $as_nl" |
| 17557 | |
| 17558 | # Find who we are. Look in the path if we contain no directory separator. |
| 17559 | case $0 in |
| 17560 | *[\\/]* ) as_myself=$0 ;; |
| 17561 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17562 | for as_dir in $PATH |
| 17563 | do |
| 17564 | IFS=$as_save_IFS |
| 17565 | test -z "$as_dir" && as_dir=. |
| 17566 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17567 | done |
| 17568 | IFS=$as_save_IFS |
| 17569 | |
| 17570 | ;; |
| 17571 | esac |
| 17572 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17573 | # in which case we are not to be found in the path. |
| 17574 | if test "x$as_myself" = x; then |
| 17575 | as_myself=$0 |
| 17576 | fi |
| 17577 | if test ! -f "$as_myself"; then |
| 17578 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 17579 | { (exit 1); exit 1; } |
| 17580 | fi |
| 17581 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17582 | # Work around bugs in pre-3.0 UWIN ksh. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17583 | for as_var in ENV MAIL MAILPATH |
| 17584 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 17585 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17586 | PS1='$ ' |
| 17587 | PS2='> ' |
| 17588 | PS4='+ ' |
| 17589 | |
| 17590 | # NLS nuisances. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17591 | LC_ALL=C |
| 17592 | export LC_ALL |
| 17593 | LANGUAGE=C |
| 17594 | export LANGUAGE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17595 | |
| 17596 | # Required to use basename. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17597 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17598 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17599 | as_expr=expr |
| 17600 | else |
| 17601 | as_expr=false |
| 17602 | fi |
| 17603 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17604 | 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] | 17605 | as_basename=basename |
| 17606 | else |
| 17607 | as_basename=false |
| 17608 | fi |
| 17609 | |
| 17610 | |
| 17611 | # Name of the executable. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17612 | as_me=`$as_basename -- "$0" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17613 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17614 | X"$0" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17615 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 17616 | $as_echo X/"$0" | |
| 17617 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 17618 | s//\1/ |
| 17619 | q |
| 17620 | } |
| 17621 | /^X\/\(\/\/\)$/{ |
| 17622 | s//\1/ |
| 17623 | q |
| 17624 | } |
| 17625 | /^X\/\(\/\).*/{ |
| 17626 | s//\1/ |
| 17627 | q |
| 17628 | } |
| 17629 | s/.*/./; q'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17630 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17631 | # CDPATH. |
| 17632 | $as_unset CDPATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17633 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17634 | |
| 17635 | |
| 17636 | as_lineno_1=$LINENO |
| 17637 | as_lineno_2=$LINENO |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17638 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17639 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17640 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17641 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 17642 | # uniformly replaced by the line number. The first 'sed' inserts a |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17643 | # line-number line after each line using $LINENO; the second 'sed' |
| 17644 | # does the real work. The second script uses 'N' to pair each |
| 17645 | # line-number line with the line containing $LINENO, and appends |
| 17646 | # trailing '-' during substitution so that $LINENO is not a special |
| 17647 | # case at line end. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17648 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17649 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 17650 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 17651 | sed -n ' |
| 17652 | p |
| 17653 | /[$]LINENO/= |
| 17654 | ' <$as_myself | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17655 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17656 | s/[$]LINENO.*/&-/ |
| 17657 | t lineno |
| 17658 | b |
| 17659 | :lineno |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17660 | N |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17661 | :loop |
| 17662 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17663 | t loop |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17664 | s/-\n.*// |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17665 | ' >$as_me.lineno && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17666 | chmod +x "$as_me.lineno" || |
| 17667 | { $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] | 17668 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17669 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17670 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 17671 | # (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] | 17672 | # original and so on. Autoconf is especially sensitive to this). |
| 17673 | . "./$as_me.lineno" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17674 | # Exit status is that of the last command. |
| 17675 | exit |
| 17676 | } |
| 17677 | |
| 17678 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17679 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 17680 | as_dirname=dirname |
| 17681 | else |
| 17682 | as_dirname=false |
| 17683 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17684 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17685 | ECHO_C= ECHO_N= ECHO_T= |
| 17686 | case `echo -n x` in |
| 17687 | -n*) |
| 17688 | case `echo 'x\c'` in |
| 17689 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 17690 | *) ECHO_C='\c';; |
| 17691 | esac;; |
| 17692 | *) |
| 17693 | ECHO_N='-n';; |
| 17694 | esac |
| 17695 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17696 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17697 | as_expr=expr |
| 17698 | else |
| 17699 | as_expr=false |
| 17700 | fi |
| 17701 | |
| 17702 | rm -f conf$$ conf$$.exe conf$$.file |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17703 | if test -d conf$$.dir; then |
| 17704 | rm -f conf$$.dir/conf$$.file |
| 17705 | else |
| 17706 | rm -f conf$$.dir |
| 17707 | mkdir conf$$.dir 2>/dev/null |
| 17708 | fi |
| 17709 | if (echo >conf$$.file) 2>/dev/null; then |
| 17710 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17711 | as_ln_s='ln -s' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17712 | # ... but there are two gotchas: |
| 17713 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 17714 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 17715 | # In both cases, we have to default to `cp -p'. |
| 17716 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 17717 | as_ln_s='cp -p' |
| 17718 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17719 | as_ln_s=ln |
| 17720 | else |
| 17721 | as_ln_s='cp -p' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17722 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17723 | else |
| 17724 | as_ln_s='cp -p' |
| 17725 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17726 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 17727 | rmdir conf$$.dir 2>/dev/null |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17728 | |
| 17729 | if mkdir -p . 2>/dev/null; then |
| 17730 | as_mkdir_p=: |
| 17731 | else |
| 17732 | test -d ./-p && rmdir ./-p |
| 17733 | as_mkdir_p=false |
| 17734 | fi |
| 17735 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17736 | if test -x / >/dev/null 2>&1; then |
| 17737 | as_test_x='test -x' |
| 17738 | else |
| 17739 | if ls -dL / >/dev/null 2>&1; then |
| 17740 | as_ls_L_option=L |
| 17741 | else |
| 17742 | as_ls_L_option= |
| 17743 | fi |
| 17744 | as_test_x=' |
| 17745 | eval sh -c '\'' |
| 17746 | if test -d "$1"; then |
| 17747 | test -d "$1/."; |
| 17748 | else |
| 17749 | case $1 in |
| 17750 | -*)set "./$1";; |
| 17751 | esac; |
| 17752 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 17753 | ???[sx]*):;;*)false;;esac;fi |
| 17754 | '\'' sh |
| 17755 | ' |
| 17756 | fi |
| 17757 | as_executable_p=$as_test_x |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17758 | |
| 17759 | # Sed expression to map a string onto a valid CPP name. |
| 17760 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 17761 | |
| 17762 | # Sed expression to map a string onto a valid variable name. |
| 17763 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 17764 | |
| 17765 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17766 | exec 6>&1 |
| 17767 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17768 | # 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] | 17769 | # report actual input values of CONFIG_FILES etc. instead of their |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17770 | # values after options handling. |
| 17771 | ac_log=" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17772 | This file was extended by $as_me, which was |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17773 | generated by GNU Autoconf 2.63. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17774 | |
| 17775 | CONFIG_FILES = $CONFIG_FILES |
| 17776 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17777 | CONFIG_LINKS = $CONFIG_LINKS |
| 17778 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17779 | $ $0 $@ |
| 17780 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17781 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 17782 | " |
| 17783 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17784 | _ACEOF |
| 17785 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17786 | case $ac_config_files in *" |
| 17787 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 17788 | esac |
| 17789 | |
| 17790 | case $ac_config_headers in *" |
| 17791 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 17792 | esac |
| 17793 | |
| 17794 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17795 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17796 | # Files that config.status was made for. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17797 | config_files="$ac_config_files" |
| 17798 | config_headers="$ac_config_headers" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17799 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17800 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17801 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17802 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17803 | ac_cs_usage="\ |
| 17804 | \`$as_me' instantiates files from templates according to the |
| 17805 | current configuration. |
| 17806 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17807 | Usage: $0 [OPTION]... [FILE]... |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17808 | |
| 17809 | -h, --help print this help, then exit |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17810 | -V, --version print version number and configuration settings, then exit |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17811 | -q, --quiet, --silent |
| 17812 | do not print progress messages |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17813 | -d, --debug don't remove temporary files |
| 17814 | --recheck update $as_me by reconfiguring in the same conditions |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17815 | --file=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17816 | instantiate the configuration file FILE |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17817 | --header=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17818 | instantiate the configuration header FILE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17819 | |
| 17820 | Configuration files: |
| 17821 | $config_files |
| 17822 | |
| 17823 | Configuration headers: |
| 17824 | $config_headers |
| 17825 | |
| 17826 | Report bugs to <bug-autoconf@gnu.org>." |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17827 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17828 | _ACEOF |
| 17829 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17830 | ac_cs_version="\\ |
| 17831 | config.status |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17832 | configured by $0, generated by GNU Autoconf 2.63, |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17833 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17834 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17835 | Copyright (C) 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17836 | This config.status script is free software; the Free Software Foundation |
| 17837 | gives unlimited permission to copy, distribute and modify it." |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17838 | |
| 17839 | ac_pwd='$ac_pwd' |
| 17840 | srcdir='$srcdir' |
| 17841 | AWK='$AWK' |
| 17842 | test -n "\$AWK" || AWK=awk |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17843 | _ACEOF |
| 17844 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17845 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17846 | # The default lists apply if the user does not specify any file. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17847 | ac_need_defaults=: |
| 17848 | while test $# != 0 |
| 17849 | do |
| 17850 | case $1 in |
| 17851 | --*=*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17852 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17853 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17854 | ac_shift=: |
| 17855 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17856 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17857 | ac_option=$1 |
| 17858 | ac_optarg=$2 |
| 17859 | ac_shift=shift |
| 17860 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17861 | esac |
| 17862 | |
| 17863 | case $ac_option in |
| 17864 | # Handling of the options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17865 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17866 | ac_cs_recheck=: ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17867 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 17868 | $as_echo "$ac_cs_version"; exit ;; |
| 17869 | --debug | --debu | --deb | --de | --d | -d ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17870 | debug=: ;; |
| 17871 | --file | --fil | --fi | --f ) |
| 17872 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17873 | case $ac_optarg in |
| 17874 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17875 | esac |
| 17876 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17877 | ac_need_defaults=false;; |
| 17878 | --header | --heade | --head | --hea ) |
| 17879 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17880 | case $ac_optarg in |
| 17881 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17882 | esac |
| 17883 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17884 | ac_need_defaults=false;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17885 | --he | --h) |
| 17886 | # Conflict between --help and --header |
| 17887 | { $as_echo "$as_me: error: ambiguous option: $1 |
| 17888 | Try \`$0 --help' for more information." >&2 |
| 17889 | { (exit 1); exit 1; }; };; |
| 17890 | --help | --hel | -h ) |
| 17891 | $as_echo "$ac_cs_usage"; exit ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17892 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 17893 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 17894 | ac_cs_silent=: ;; |
| 17895 | |
| 17896 | # This is an error. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17897 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
| 17898 | Try \`$0 --help' for more information." >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17899 | { (exit 1); exit 1; }; } ;; |
| 17900 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17901 | *) ac_config_targets="$ac_config_targets $1" |
| 17902 | ac_need_defaults=false ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17903 | |
| 17904 | esac |
| 17905 | shift |
| 17906 | done |
| 17907 | |
| 17908 | ac_configure_extra_args= |
| 17909 | |
| 17910 | if $ac_cs_silent; then |
| 17911 | exec 6>/dev/null |
| 17912 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 17913 | fi |
| 17914 | |
| 17915 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17916 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17917 | if \$ac_cs_recheck; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17918 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 17919 | shift |
| 17920 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 17921 | CONFIG_SHELL='$SHELL' |
| 17922 | export CONFIG_SHELL |
| 17923 | exec "\$@" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17924 | fi |
| 17925 | |
| 17926 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17927 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17928 | exec 5>>auto/config.log |
| 17929 | { |
| 17930 | echo |
| 17931 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17932 | ## Running $as_me. ## |
| 17933 | _ASBOX |
| 17934 | $as_echo "$ac_log" |
| 17935 | } >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17936 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17937 | _ACEOF |
| 17938 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17939 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17940 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17941 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17942 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17943 | # Handling of arguments. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17944 | for ac_config_target in $ac_config_targets |
| 17945 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17946 | case $ac_config_target in |
| 17947 | "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 17948 | "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 17949 | |
| 17950 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17951 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17952 | { (exit 1); exit 1; }; };; |
| 17953 | esac |
| 17954 | done |
| 17955 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17956 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17957 | # If the user did not use the arguments to specify the items to instantiate, |
| 17958 | # then the envvar interface is used. Set only those that are not. |
| 17959 | # We use the long form for the default assignment because of an extremely |
| 17960 | # bizarre bug on SunOS 4.1.3. |
| 17961 | if $ac_need_defaults; then |
| 17962 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17963 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17964 | fi |
| 17965 | |
| 17966 | # Have a temporary directory for convenience. Make it in the build tree |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17967 | # 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] | 17968 | # creating and moving files from /tmp can sometimes cause problems. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17969 | # Hook for its removal unless debugging. |
| 17970 | # Note that there is a small window in which the directory will not be cleaned: |
| 17971 | # after its creation but before its name has been assigned to `$tmp'. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17972 | $debug || |
| 17973 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17974 | tmp= |
| 17975 | trap 'exit_status=$? |
| 17976 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 17977 | ' 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17978 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17979 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17980 | # Create a (secure) tmp directory for tmp files. |
| 17981 | |
| 17982 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17983 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17984 | test -n "$tmp" && test -d "$tmp" |
| 17985 | } || |
| 17986 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17987 | tmp=./conf$$-$RANDOM |
| 17988 | (umask 077 && mkdir "$tmp") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17989 | } || |
| 17990 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17991 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17992 | { (exit 1); exit 1; } |
| 17993 | } |
| 17994 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17995 | # Set up the scripts for CONFIG_FILES section. |
| 17996 | # No need to generate them if there are no CONFIG_FILES. |
| 17997 | # This happens for instance with `./config.status config.h'. |
| 17998 | if test -n "$CONFIG_FILES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17999 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18000 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18001 | ac_cr='
' |
| 18002 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 18003 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 18004 | ac_cs_awk_cr='\\r' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18005 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18006 | ac_cs_awk_cr=$ac_cr |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18007 | fi |
| 18008 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18009 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18010 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18011 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18012 | |
| 18013 | { |
| 18014 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 18015 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 18016 | echo "_ACEOF" |
| 18017 | } >conf$$subs.sh || |
| 18018 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 18019 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 18020 | { (exit 1); exit 1; }; } |
| 18021 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 18022 | ac_delim='%!_!# ' |
| 18023 | for ac_last_try in false false false false false :; do |
| 18024 | . ./conf$$subs.sh || |
| 18025 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 18026 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 18027 | { (exit 1); exit 1; }; } |
| 18028 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18029 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 18030 | if test $ac_delim_n = $ac_delim_num; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18031 | break |
| 18032 | elif $ac_last_try; then |
| 18033 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 18034 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 18035 | { (exit 1); exit 1; }; } |
| 18036 | else |
| 18037 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 18038 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18039 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18040 | rm -f conf$$subs.sh |
| 18041 | |
| 18042 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18043 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18044 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18045 | sed -n ' |
| 18046 | h |
| 18047 | s/^/S["/; s/!.*/"]=/ |
| 18048 | p |
| 18049 | g |
| 18050 | s/^[^!]*!// |
| 18051 | :repl |
| 18052 | t repl |
| 18053 | s/'"$ac_delim"'$// |
| 18054 | t delim |
| 18055 | :nl |
| 18056 | h |
| 18057 | s/\(.\{148\}\).*/\1/ |
| 18058 | t more1 |
| 18059 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 18060 | p |
| 18061 | n |
| 18062 | b repl |
| 18063 | :more1 |
| 18064 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 18065 | p |
| 18066 | g |
| 18067 | s/.\{148\}// |
| 18068 | t nl |
| 18069 | :delim |
| 18070 | h |
| 18071 | s/\(.\{148\}\).*/\1/ |
| 18072 | t more2 |
| 18073 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 18074 | p |
| 18075 | b |
| 18076 | :more2 |
| 18077 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 18078 | p |
| 18079 | g |
| 18080 | s/.\{148\}// |
| 18081 | t delim |
| 18082 | ' <conf$$subs.awk | sed ' |
| 18083 | /^[^""]/{ |
| 18084 | N |
| 18085 | s/\n// |
| 18086 | } |
| 18087 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 18088 | rm -f conf$$subs.awk |
| 18089 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18090 | _ACAWK |
| 18091 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 18092 | for (key in S) S_is_set[key] = 1 |
| 18093 | FS = "" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18094 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18095 | } |
| 18096 | { |
| 18097 | line = $ 0 |
| 18098 | nfields = split(line, field, "@") |
| 18099 | substed = 0 |
| 18100 | len = length(field[1]) |
| 18101 | for (i = 2; i < nfields; i++) { |
| 18102 | key = field[i] |
| 18103 | keylen = length(key) |
| 18104 | if (S_is_set[key]) { |
| 18105 | value = S[key] |
| 18106 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 18107 | len += length(value) + length(field[++i]) |
| 18108 | substed = 1 |
| 18109 | } else |
| 18110 | len += 1 + keylen |
| 18111 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18112 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18113 | print line |
| 18114 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18115 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18116 | _ACAWK |
| 18117 | _ACEOF |
| 18118 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18119 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 18120 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 18121 | else |
| 18122 | cat |
| 18123 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 18124 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 18125 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
| 18126 | { (exit 1); exit 1; }; } |
| 18127 | _ACEOF |
| 18128 | |
| 18129 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 18130 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 18131 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 18132 | # (actually we leave an empty line to preserve line numbers). |
| 18133 | if test "x$srcdir" = x.; then |
| 18134 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 18135 | s/:*\$(srcdir):*/:/ |
| 18136 | s/:*\${srcdir}:*/:/ |
| 18137 | s/:*@srcdir@:*/:/ |
| 18138 | s/^\([^=]*=[ ]*\):*/\1/ |
| 18139 | s/:*$// |
| 18140 | s/^[^=]*=[ ]*$// |
| 18141 | }' |
| 18142 | fi |
| 18143 | |
| 18144 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18145 | fi # test -n "$CONFIG_FILES" |
| 18146 | |
| 18147 | # Set up the scripts for CONFIG_HEADERS section. |
| 18148 | # No need to generate them if there are no CONFIG_HEADERS. |
| 18149 | # This happens for instance with `./config.status Makefile'. |
| 18150 | if test -n "$CONFIG_HEADERS"; then |
| 18151 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 18152 | BEGIN { |
| 18153 | _ACEOF |
| 18154 | |
| 18155 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 18156 | # here-document in config.status, that substitutes the proper values into |
| 18157 | # config.h.in to produce config.h. |
| 18158 | |
| 18159 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 18160 | # handling of long lines. |
| 18161 | ac_delim='%!_!# ' |
| 18162 | for ac_last_try in false false :; do |
| 18163 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 18164 | if test -z "$ac_t"; then |
| 18165 | break |
| 18166 | elif $ac_last_try; then |
| 18167 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 18168 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 18169 | { (exit 1); exit 1; }; } |
| 18170 | else |
| 18171 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 18172 | fi |
| 18173 | done |
| 18174 | |
| 18175 | # For the awk script, D is an array of macro values keyed by name, |
| 18176 | # likewise P contains macro parameters if any. Preserve backslash |
| 18177 | # newline sequences. |
| 18178 | |
| 18179 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 18180 | sed -n ' |
| 18181 | s/.\{148\}/&'"$ac_delim"'/g |
| 18182 | t rset |
| 18183 | :rset |
| 18184 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 18185 | t def |
| 18186 | d |
| 18187 | :def |
| 18188 | s/\\$// |
| 18189 | t bsnl |
| 18190 | s/["\\]/\\&/g |
| 18191 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 18192 | D["\1"]=" \3"/p |
| 18193 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 18194 | d |
| 18195 | :bsnl |
| 18196 | s/["\\]/\\&/g |
| 18197 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 18198 | D["\1"]=" \3\\\\\\n"\\/p |
| 18199 | t cont |
| 18200 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 18201 | t cont |
| 18202 | d |
| 18203 | :cont |
| 18204 | n |
| 18205 | s/.\{148\}/&'"$ac_delim"'/g |
| 18206 | t clear |
| 18207 | :clear |
| 18208 | s/\\$// |
| 18209 | t bsnlc |
| 18210 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 18211 | d |
| 18212 | :bsnlc |
| 18213 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 18214 | b cont |
| 18215 | ' <confdefs.h | sed ' |
| 18216 | s/'"$ac_delim"'/"\\\ |
| 18217 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 18218 | |
| 18219 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18220 | for (key in D) D_is_set[key] = 1 |
| 18221 | FS = "" |
| 18222 | } |
| 18223 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 18224 | line = \$ 0 |
| 18225 | split(line, arg, " ") |
| 18226 | if (arg[1] == "#") { |
| 18227 | defundef = arg[2] |
| 18228 | mac1 = arg[3] |
| 18229 | } else { |
| 18230 | defundef = substr(arg[1], 2) |
| 18231 | mac1 = arg[2] |
| 18232 | } |
| 18233 | split(mac1, mac2, "(") #) |
| 18234 | macro = mac2[1] |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18235 | prefix = substr(line, 1, index(line, defundef) - 1) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18236 | if (D_is_set[macro]) { |
| 18237 | # Preserve the white space surrounding the "#". |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18238 | print prefix "define", macro P[macro] D[macro] |
| 18239 | next |
| 18240 | } else { |
| 18241 | # Replace #undef with comments. This is necessary, for example, |
| 18242 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 18243 | # on some systems where configure will not decide to define it. |
| 18244 | if (defundef == "undef") { |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18245 | print "/*", prefix defundef, macro, "*/" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18246 | next |
| 18247 | } |
| 18248 | } |
| 18249 | } |
| 18250 | { print } |
| 18251 | _ACAWK |
| 18252 | _ACEOF |
| 18253 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18254 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 18255 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 18256 | { (exit 1); exit 1; }; } |
| 18257 | fi # test -n "$CONFIG_HEADERS" |
| 18258 | |
| 18259 | |
| 18260 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 18261 | shift |
| 18262 | for ac_tag |
| 18263 | do |
| 18264 | case $ac_tag in |
| 18265 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 18266 | esac |
| 18267 | case $ac_mode$ac_tag in |
| 18268 | :[FHL]*:*);; |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18269 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
| 18270 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18271 | { (exit 1); exit 1; }; };; |
| 18272 | :[FH]-) ac_tag=-:-;; |
| 18273 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 18274 | esac |
| 18275 | ac_save_IFS=$IFS |
| 18276 | IFS=: |
| 18277 | set x $ac_tag |
| 18278 | IFS=$ac_save_IFS |
| 18279 | shift |
| 18280 | ac_file=$1 |
| 18281 | shift |
| 18282 | |
| 18283 | case $ac_mode in |
| 18284 | :L) ac_source=$1;; |
| 18285 | :[FH]) |
| 18286 | ac_file_inputs= |
| 18287 | for ac_f |
| 18288 | do |
| 18289 | case $ac_f in |
| 18290 | -) ac_f="$tmp/stdin";; |
| 18291 | *) # Look for the file first in the build tree, then in the source tree |
| 18292 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 18293 | # because $ac_f cannot contain `:'. |
| 18294 | test -f "$ac_f" || |
| 18295 | case $ac_f in |
| 18296 | [\\/$]*) false;; |
| 18297 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 18298 | esac || |
| 18299 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 18300 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 18301 | { (exit 1); exit 1; }; };; |
| 18302 | esac |
| 18303 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 18304 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
| 18305 | done |
| 18306 | |
| 18307 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18308 | # use $as_me), people would be surprised to read: |
| 18309 | # /* config.h. Generated by config.status. */ |
| 18310 | configure_input='Generated from '` |
| 18311 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 18312 | `' by configure.' |
| 18313 | if test x"$ac_file" != x-; then |
| 18314 | configure_input="$ac_file. $configure_input" |
| 18315 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18316 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 18317 | fi |
| 18318 | # Neutralize special characters interpreted by sed in replacement strings. |
| 18319 | case $configure_input in #( |
| 18320 | *\&* | *\|* | *\\* ) |
| 18321 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 18322 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 18323 | *) ac_sed_conf_input=$configure_input;; |
| 18324 | esac |
| 18325 | |
| 18326 | case $ac_tag in |
| 18327 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 18328 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18329 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18330 | { (exit 1); exit 1; }; } ;; |
| 18331 | esac |
| 18332 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18333 | esac |
| 18334 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18335 | ac_dir=`$as_dirname -- "$ac_file" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18336 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18337 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18338 | X"$ac_file" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18339 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 18340 | $as_echo X"$ac_file" | |
| 18341 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18342 | s//\1/ |
| 18343 | q |
| 18344 | } |
| 18345 | /^X\(\/\/\)[^/].*/{ |
| 18346 | s//\1/ |
| 18347 | q |
| 18348 | } |
| 18349 | /^X\(\/\/\)$/{ |
| 18350 | s//\1/ |
| 18351 | q |
| 18352 | } |
| 18353 | /^X\(\/\).*/{ |
| 18354 | s//\1/ |
| 18355 | q |
| 18356 | } |
| 18357 | s/.*/./; q'` |
| 18358 | { as_dir="$ac_dir" |
| 18359 | case $as_dir in #( |
| 18360 | -*) as_dir=./$as_dir;; |
| 18361 | esac |
| 18362 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18363 | as_dirs= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18364 | while :; do |
| 18365 | case $as_dir in #( |
| 18366 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 18367 | *) as_qdir=$as_dir;; |
| 18368 | esac |
| 18369 | as_dirs="'$as_qdir' $as_dirs" |
| 18370 | as_dir=`$as_dirname -- "$as_dir" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18371 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18372 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 18373 | X"$as_dir" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18374 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 18375 | $as_echo X"$as_dir" | |
| 18376 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18377 | s//\1/ |
| 18378 | q |
| 18379 | } |
| 18380 | /^X\(\/\/\)[^/].*/{ |
| 18381 | s//\1/ |
| 18382 | q |
| 18383 | } |
| 18384 | /^X\(\/\/\)$/{ |
| 18385 | s//\1/ |
| 18386 | q |
| 18387 | } |
| 18388 | /^X\(\/\).*/{ |
| 18389 | s//\1/ |
| 18390 | q |
| 18391 | } |
| 18392 | s/.*/./; q'` |
| 18393 | test -d "$as_dir" && break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18394 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18395 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 18396 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 18397 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18398 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18399 | ac_builddir=. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18400 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18401 | case "$ac_dir" in |
| 18402 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18403 | *) |
| 18404 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 18405 | # A ".." for each directory in $ac_dir_suffix. |
| 18406 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 18407 | case $ac_top_builddir_sub in |
| 18408 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18409 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 18410 | esac ;; |
| 18411 | esac |
| 18412 | ac_abs_top_builddir=$ac_pwd |
| 18413 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 18414 | # for backward compatibility: |
| 18415 | ac_top_builddir=$ac_top_build_prefix |
| 18416 | |
| 18417 | case $srcdir in |
| 18418 | .) # We are building in place. |
| 18419 | ac_srcdir=. |
| 18420 | ac_top_srcdir=$ac_top_builddir_sub |
| 18421 | ac_abs_top_srcdir=$ac_pwd ;; |
| 18422 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 18423 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 18424 | ac_top_srcdir=$srcdir |
| 18425 | ac_abs_top_srcdir=$srcdir ;; |
| 18426 | *) # Relative name. |
| 18427 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 18428 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 18429 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 18430 | esac |
| 18431 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 18432 | |
| 18433 | |
| 18434 | case $ac_mode in |
| 18435 | :F) |
| 18436 | # |
| 18437 | # CONFIG_FILE |
| 18438 | # |
| 18439 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18440 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18441 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18442 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18443 | # If the template does not know about datarootdir, expand it. |
| 18444 | # FIXME: This hack should be removed a few years after 2.60. |
| 18445 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 18446 | |
| 18447 | ac_sed_dataroot=' |
| 18448 | /datarootdir/ { |
| 18449 | p |
| 18450 | q |
| 18451 | } |
| 18452 | /@datadir@/p |
| 18453 | /@docdir@/p |
| 18454 | /@infodir@/p |
| 18455 | /@localedir@/p |
| 18456 | /@mandir@/p |
| 18457 | ' |
| 18458 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 18459 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 18460 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 18461 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 18462 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 18463 | _ACEOF |
| 18464 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18465 | ac_datarootdir_hack=' |
| 18466 | s&@datadir@&$datadir&g |
| 18467 | s&@docdir@&$docdir&g |
| 18468 | s&@infodir@&$infodir&g |
| 18469 | s&@localedir@&$localedir&g |
| 18470 | s&@mandir@&$mandir&g |
| 18471 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 18472 | esac |
| 18473 | _ACEOF |
| 18474 | |
| 18475 | # Neutralize VPATH when `$srcdir' = `.'. |
| 18476 | # Shell code in configure.ac might set extrasub. |
| 18477 | # FIXME: do we really want to maintain this feature? |
| 18478 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18479 | ac_sed_extra="$ac_vpsub |
| 18480 | $extrasub |
| 18481 | _ACEOF |
| 18482 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18483 | :t |
| 18484 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 18485 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 18486 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 18487 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 18488 | s&@srcdir@&$ac_srcdir&;t t |
| 18489 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 18490 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 18491 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 18492 | s&@builddir@&$ac_builddir&;t t |
| 18493 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 18494 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 18495 | $ac_datarootdir_hack |
| 18496 | " |
| 18497 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 18498 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18499 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18500 | { (exit 1); exit 1; }; } |
| 18501 | |
| 18502 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 18503 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 18504 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 18505 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 18506 | which seems to be undefined. Please make sure it is defined." >&5 |
| 18507 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 18508 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 18509 | |
| 18510 | rm -f "$tmp/stdin" |
| 18511 | case $ac_file in |
| 18512 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 18513 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 18514 | esac \ |
| 18515 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18516 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18517 | { (exit 1); exit 1; }; } |
| 18518 | ;; |
| 18519 | :H) |
| 18520 | # |
| 18521 | # CONFIG_HEADER |
| 18522 | # |
| 18523 | if test x"$ac_file" != x-; then |
| 18524 | { |
| 18525 | $as_echo "/* $configure_input */" \ |
| 18526 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 18527 | } >"$tmp/config.h" \ |
| 18528 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18529 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18530 | { (exit 1); exit 1; }; } |
| 18531 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 18532 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 18533 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 18534 | else |
| 18535 | rm -f "$ac_file" |
| 18536 | mv "$tmp/config.h" "$ac_file" \ |
| 18537 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18538 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18539 | { (exit 1); exit 1; }; } |
| 18540 | fi |
| 18541 | else |
| 18542 | $as_echo "/* $configure_input */" \ |
| 18543 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 18544 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 18545 | $as_echo "$as_me: error: could not create -" >&2;} |
| 18546 | { (exit 1); exit 1; }; } |
| 18547 | fi |
| 18548 | ;; |
| 18549 | |
| 18550 | |
| 18551 | esac |
| 18552 | |
| 18553 | done # for ac_tag |
| 18554 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18555 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18556 | { (exit 0); exit 0; } |
| 18557 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18558 | chmod +x $CONFIG_STATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18559 | ac_clean_files=$ac_clean_files_save |
| 18560 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18561 | test $ac_write_fail = 0 || |
| 18562 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 18563 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 18564 | { (exit 1); exit 1; }; } |
| 18565 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18566 | |
| 18567 | # configure is writing to config.log, and then calls config.status. |
| 18568 | # config.status does its own redirection, appending to config.log. |
| 18569 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 18570 | # by configure, so config.status won't be able to write to it; its |
| 18571 | # output is simply discarded. So we exec the FD to /dev/null, |
| 18572 | # effectively closing config.log, so it can be properly (re)opened and |
| 18573 | # appended to by config.status. When coming back to configure, we |
| 18574 | # need to make the FD available again. |
| 18575 | if test "$no_create" != yes; then |
| 18576 | ac_cs_success=: |
| 18577 | ac_config_status_args= |
| 18578 | test "$silent" = yes && |
| 18579 | ac_config_status_args="$ac_config_status_args --quiet" |
| 18580 | exec 5>/dev/null |
| 18581 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 18582 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18583 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18584 | # would make configure fail if this is the last instruction. |
| 18585 | $ac_cs_success || { (exit 1); exit 1; } |
| 18586 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18587 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18588 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 18589 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18590 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18591 | |
| 18592 | |