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 |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 721 | XCODE_SELECT |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 722 | CPP_MM |
| 723 | STRIP |
| 724 | AWK |
| 725 | EGREP |
| 726 | GREP |
| 727 | CPP |
| 728 | OBJEXT |
| 729 | EXEEXT |
| 730 | ac_ct_CC |
| 731 | CPPFLAGS |
| 732 | LDFLAGS |
| 733 | CFLAGS |
| 734 | CC |
| 735 | SET_MAKE |
| 736 | target_alias |
| 737 | host_alias |
| 738 | build_alias |
| 739 | LIBS |
| 740 | ECHO_T |
| 741 | ECHO_N |
| 742 | ECHO_C |
| 743 | DEFS |
| 744 | mandir |
| 745 | localedir |
| 746 | libdir |
| 747 | psdir |
| 748 | pdfdir |
| 749 | dvidir |
| 750 | htmldir |
| 751 | infodir |
| 752 | docdir |
| 753 | oldincludedir |
| 754 | includedir |
| 755 | localstatedir |
| 756 | sharedstatedir |
| 757 | sysconfdir |
| 758 | datadir |
| 759 | datarootdir |
| 760 | libexecdir |
| 761 | sbindir |
| 762 | bindir |
| 763 | program_transform_name |
| 764 | prefix |
| 765 | exec_prefix |
| 766 | PACKAGE_BUGREPORT |
| 767 | PACKAGE_STRING |
| 768 | PACKAGE_VERSION |
| 769 | PACKAGE_TARNAME |
| 770 | PACKAGE_NAME |
| 771 | PATH_SEPARATOR |
| 772 | SHELL' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 773 | ac_subst_files='' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 774 | ac_user_opts=' |
| 775 | enable_option_checking |
| 776 | enable_darwin |
| 777 | with_mac_arch |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 778 | with_developer_dir |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 779 | with_local_dir |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 780 | with_vim_name |
| 781 | with_ex_name |
| 782 | with_view_name |
| 783 | with_global_runtime |
| 784 | with_modified_by |
| 785 | enable_selinux |
| 786 | with_features |
| 787 | with_compiledby |
| 788 | enable_xsmp |
| 789 | enable_xsmp_interact |
| 790 | enable_mzschemeinterp |
| 791 | with_plthome |
| 792 | enable_perlinterp |
| 793 | enable_pythoninterp |
| 794 | with_python_config_dir |
| 795 | enable_tclinterp |
| 796 | with_tclsh |
| 797 | enable_rubyinterp |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 798 | with_ruby_command |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 799 | enable_cscope |
| 800 | enable_workshop |
| 801 | enable_netbeans |
| 802 | enable_sniff |
| 803 | enable_multibyte |
| 804 | enable_hangulinput |
| 805 | enable_xim |
| 806 | enable_fontset |
| 807 | with_x |
| 808 | enable_gui |
| 809 | enable_gtk_check |
| 810 | enable_gtk2_check |
| 811 | enable_gnome_check |
| 812 | enable_motif_check |
| 813 | enable_athena_check |
| 814 | enable_nextaw_check |
| 815 | enable_carbon_check |
| 816 | with_gtk_prefix |
| 817 | with_gtk_exec_prefix |
| 818 | enable_gtktest |
| 819 | with_gnome_includes |
| 820 | with_gnome_libs |
| 821 | with_gnome |
| 822 | with_motif_lib |
| 823 | with_tlib |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 824 | enable_largefile |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 825 | enable_acl |
| 826 | enable_gpm |
| 827 | enable_sysmouse |
| 828 | enable_nls |
| 829 | ' |
| 830 | ac_precious_vars='build_alias |
| 831 | host_alias |
| 832 | target_alias |
| 833 | CC |
| 834 | CFLAGS |
| 835 | LDFLAGS |
| 836 | LIBS |
| 837 | CPPFLAGS |
| 838 | CPP |
| 839 | XMKMF' |
| 840 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 841 | |
| 842 | # Initialize some variables set by options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 843 | ac_init_help= |
| 844 | ac_init_version=false |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 845 | ac_unrecognized_opts= |
| 846 | ac_unrecognized_sep= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 847 | # The variables have the same names as the options, with |
| 848 | # dashes changed to underlines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 849 | cache_file=/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 850 | exec_prefix=NONE |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 851 | no_create= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 852 | no_recursion= |
| 853 | prefix=NONE |
| 854 | program_prefix=NONE |
| 855 | program_suffix=NONE |
| 856 | program_transform_name=s,x,x, |
| 857 | silent= |
| 858 | site= |
| 859 | srcdir= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 860 | verbose= |
| 861 | x_includes=NONE |
| 862 | x_libraries=NONE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 863 | |
| 864 | # Installation directory options. |
| 865 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 866 | # and all the variables that are supposed to be based on exec_prefix |
| 867 | # by default will actually change. |
| 868 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 869 | # (The list follows the same order as the GNU Coding Standards.) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 870 | bindir='${exec_prefix}/bin' |
| 871 | sbindir='${exec_prefix}/sbin' |
| 872 | libexecdir='${exec_prefix}/libexec' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 873 | datarootdir='${prefix}/share' |
| 874 | datadir='${datarootdir}' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 875 | sysconfdir='${prefix}/etc' |
| 876 | sharedstatedir='${prefix}/com' |
| 877 | localstatedir='${prefix}/var' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 878 | includedir='${prefix}/include' |
| 879 | oldincludedir='/usr/include' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 880 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 881 | infodir='${datarootdir}/info' |
| 882 | htmldir='${docdir}' |
| 883 | dvidir='${docdir}' |
| 884 | pdfdir='${docdir}' |
| 885 | psdir='${docdir}' |
| 886 | libdir='${exec_prefix}/lib' |
| 887 | localedir='${datarootdir}/locale' |
| 888 | mandir='${datarootdir}/man' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 889 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 890 | ac_prev= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 891 | ac_dashdash= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 892 | for ac_option |
| 893 | do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 894 | # If the previous option needs an argument, assign it. |
| 895 | if test -n "$ac_prev"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 896 | eval $ac_prev=\$ac_option |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 897 | ac_prev= |
| 898 | continue |
| 899 | fi |
| 900 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 901 | case $ac_option in |
| 902 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 903 | *) ac_optarg=yes ;; |
| 904 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 905 | |
| 906 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 907 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 908 | case $ac_dashdash$ac_option in |
| 909 | --) |
| 910 | ac_dashdash=yes ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 911 | |
| 912 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 913 | ac_prev=bindir ;; |
| 914 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 915 | bindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 916 | |
| 917 | -build | --build | --buil | --bui | --bu) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 918 | ac_prev=build_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 919 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 920 | build_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 921 | |
| 922 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 923 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 924 | ac_prev=cache_file ;; |
| 925 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 926 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 927 | cache_file=$ac_optarg ;; |
| 928 | |
| 929 | --config-cache | -C) |
| 930 | cache_file=config.cache ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 931 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 932 | -datadir | --datadir | --datadi | --datad) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 933 | ac_prev=datadir ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 934 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 935 | datadir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 936 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 937 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 938 | | --dataroo | --dataro | --datar) |
| 939 | ac_prev=datarootdir ;; |
| 940 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 941 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 942 | datarootdir=$ac_optarg ;; |
| 943 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 944 | -disable-* | --disable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 945 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 946 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 947 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 948 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 949 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 950 | ac_useropt_orig=$ac_useropt |
| 951 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 952 | case $ac_user_opts in |
| 953 | *" |
| 954 | "enable_$ac_useropt" |
| 955 | "*) ;; |
| 956 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 957 | ac_unrecognized_sep=', ';; |
| 958 | esac |
| 959 | eval enable_$ac_useropt=no ;; |
| 960 | |
| 961 | -docdir | --docdir | --docdi | --doc | --do) |
| 962 | ac_prev=docdir ;; |
| 963 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 964 | docdir=$ac_optarg ;; |
| 965 | |
| 966 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 967 | ac_prev=dvidir ;; |
| 968 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 969 | dvidir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 970 | |
| 971 | -enable-* | --enable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 972 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 973 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 974 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 975 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 976 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 977 | ac_useropt_orig=$ac_useropt |
| 978 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 979 | case $ac_user_opts in |
| 980 | *" |
| 981 | "enable_$ac_useropt" |
| 982 | "*) ;; |
| 983 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 984 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 985 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 986 | eval enable_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 987 | |
| 988 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 989 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 990 | | --exec | --exe | --ex) |
| 991 | ac_prev=exec_prefix ;; |
| 992 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 993 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 994 | | --exec=* | --exe=* | --ex=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 995 | exec_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 996 | |
| 997 | -gas | --gas | --ga | --g) |
| 998 | # Obsolete; use --with-gas. |
| 999 | with_gas=yes ;; |
| 1000 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1001 | -help | --help | --hel | --he | -h) |
| 1002 | ac_init_help=long ;; |
| 1003 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1004 | ac_init_help=recursive ;; |
| 1005 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1006 | ac_init_help=short ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1007 | |
| 1008 | -host | --host | --hos | --ho) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1009 | ac_prev=host_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1010 | -host=* | --host=* | --hos=* | --ho=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1011 | host_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1012 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1013 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1014 | ac_prev=htmldir ;; |
| 1015 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1016 | | --ht=*) |
| 1017 | htmldir=$ac_optarg ;; |
| 1018 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1019 | -includedir | --includedir | --includedi | --included | --include \ |
| 1020 | | --includ | --inclu | --incl | --inc) |
| 1021 | ac_prev=includedir ;; |
| 1022 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1023 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1024 | includedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1025 | |
| 1026 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1027 | ac_prev=infodir ;; |
| 1028 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1029 | infodir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1030 | |
| 1031 | -libdir | --libdir | --libdi | --libd) |
| 1032 | ac_prev=libdir ;; |
| 1033 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1034 | libdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1035 | |
| 1036 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1037 | | --libexe | --libex | --libe) |
| 1038 | ac_prev=libexecdir ;; |
| 1039 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1040 | | --libexe=* | --libex=* | --libe=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1041 | libexecdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1042 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1043 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1044 | ac_prev=localedir ;; |
| 1045 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1046 | localedir=$ac_optarg ;; |
| 1047 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1050 | ac_prev=localstatedir ;; |
| 1051 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1052 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1053 | localstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1054 | |
| 1055 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1056 | ac_prev=mandir ;; |
| 1057 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1058 | mandir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1059 | |
| 1060 | -nfp | --nfp | --nf) |
| 1061 | # Obsolete; use --without-fp. |
| 1062 | with_fp=no ;; |
| 1063 | |
| 1064 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1065 | | --no-cr | --no-c | -n) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1066 | no_create=yes ;; |
| 1067 | |
| 1068 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1069 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1070 | no_recursion=yes ;; |
| 1071 | |
| 1072 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1073 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1074 | | --oldin | --oldi | --old | --ol | --o) |
| 1075 | ac_prev=oldincludedir ;; |
| 1076 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1077 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1078 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1079 | oldincludedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1080 | |
| 1081 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1082 | ac_prev=prefix ;; |
| 1083 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1084 | prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1085 | |
| 1086 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1087 | | --program-pre | --program-pr | --program-p) |
| 1088 | ac_prev=program_prefix ;; |
| 1089 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1090 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1091 | program_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1092 | |
| 1093 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1094 | | --program-suf | --program-su | --program-s) |
| 1095 | ac_prev=program_suffix ;; |
| 1096 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1097 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1098 | program_suffix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1099 | |
| 1100 | -program-transform-name | --program-transform-name \ |
| 1101 | | --program-transform-nam | --program-transform-na \ |
| 1102 | | --program-transform-n | --program-transform- \ |
| 1103 | | --program-transform | --program-transfor \ |
| 1104 | | --program-transfo | --program-transf \ |
| 1105 | | --program-trans | --program-tran \ |
| 1106 | | --progr-tra | --program-tr | --program-t) |
| 1107 | ac_prev=program_transform_name ;; |
| 1108 | -program-transform-name=* | --program-transform-name=* \ |
| 1109 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1110 | | --program-transform-n=* | --program-transform-=* \ |
| 1111 | | --program-transform=* | --program-transfor=* \ |
| 1112 | | --program-transfo=* | --program-transf=* \ |
| 1113 | | --program-trans=* | --program-tran=* \ |
| 1114 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1115 | program_transform_name=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1116 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1117 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1118 | ac_prev=pdfdir ;; |
| 1119 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1120 | pdfdir=$ac_optarg ;; |
| 1121 | |
| 1122 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1123 | ac_prev=psdir ;; |
| 1124 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1125 | psdir=$ac_optarg ;; |
| 1126 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1127 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1128 | | -silent | --silent | --silen | --sile | --sil) |
| 1129 | silent=yes ;; |
| 1130 | |
| 1131 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1132 | ac_prev=sbindir ;; |
| 1133 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1134 | | --sbi=* | --sb=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1135 | sbindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1136 | |
| 1137 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1138 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1139 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1140 | | --sha | --sh) |
| 1141 | ac_prev=sharedstatedir ;; |
| 1142 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1143 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1144 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1145 | | --sha=* | --sh=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1146 | sharedstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1147 | |
| 1148 | -site | --site | --sit) |
| 1149 | ac_prev=site ;; |
| 1150 | -site=* | --site=* | --sit=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1151 | site=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1152 | |
| 1153 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1154 | ac_prev=srcdir ;; |
| 1155 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1156 | srcdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1157 | |
| 1158 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1159 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1160 | ac_prev=sysconfdir ;; |
| 1161 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1162 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1163 | sysconfdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1164 | |
| 1165 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1166 | ac_prev=target_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1167 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1168 | target_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1169 | |
| 1170 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1171 | verbose=yes ;; |
| 1172 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1173 | -version | --version | --versio | --versi | --vers | -V) |
| 1174 | ac_init_version=: ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1175 | |
| 1176 | -with-* | --with-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1177 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1178 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1179 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1180 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1181 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1182 | ac_useropt_orig=$ac_useropt |
| 1183 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1184 | case $ac_user_opts in |
| 1185 | *" |
| 1186 | "with_$ac_useropt" |
| 1187 | "*) ;; |
| 1188 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1189 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1190 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1191 | eval with_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1192 | |
| 1193 | -without-* | --without-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1194 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1195 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1196 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1197 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1198 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1199 | ac_useropt_orig=$ac_useropt |
| 1200 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1201 | case $ac_user_opts in |
| 1202 | *" |
| 1203 | "with_$ac_useropt" |
| 1204 | "*) ;; |
| 1205 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1206 | ac_unrecognized_sep=', ';; |
| 1207 | esac |
| 1208 | eval with_$ac_useropt=no ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1209 | |
| 1210 | --x) |
| 1211 | # Obsolete; use --with-x. |
| 1212 | with_x=yes ;; |
| 1213 | |
| 1214 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1215 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1216 | ac_prev=x_includes ;; |
| 1217 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1218 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1219 | x_includes=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1220 | |
| 1221 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1222 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1223 | ac_prev=x_libraries ;; |
| 1224 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1225 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1226 | x_libraries=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1227 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1228 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1229 | Try \`$0 --help' for more information." >&2 |
| 1230 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1231 | ;; |
| 1232 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1233 | *=*) |
| 1234 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1235 | # Reject names that are not valid shell variable names. |
| 1236 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1237 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1238 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1239 | eval $ac_envvar=\$ac_optarg |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1240 | export $ac_envvar ;; |
| 1241 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1242 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1243 | # FIXME: should be removed in autoconf 3.0. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1244 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1245 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1246 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1247 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1248 | ;; |
| 1249 | |
| 1250 | esac |
| 1251 | done |
| 1252 | |
| 1253 | if test -n "$ac_prev"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1254 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1255 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1256 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1257 | fi |
| 1258 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1259 | if test -n "$ac_unrecognized_opts"; then |
| 1260 | case $enable_option_checking in |
| 1261 | no) ;; |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1262 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1263 | { (exit 1); exit 1; }; } ;; |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1264 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1265 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1266 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1267 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1268 | # Check all directory arguments for consistency. |
| 1269 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1270 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1271 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1272 | libdir localedir mandir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1273 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1274 | eval ac_val=\$$ac_var |
| 1275 | # Remove trailing slashes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1276 | case $ac_val in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1277 | */ ) |
| 1278 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1279 | eval $ac_var=\$ac_val;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1280 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1281 | # Be sure to have absolute directory names. |
| 1282 | case $ac_val in |
| 1283 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1284 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1285 | esac |
| 1286 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1287 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1288 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1289 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1290 | # There might be people who depend on the old broken behavior: `$host' |
| 1291 | # used to hold the argument of --host etc. |
| 1292 | # FIXME: To remove some day. |
| 1293 | build=$build_alias |
| 1294 | host=$host_alias |
| 1295 | target=$target_alias |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1296 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1297 | # FIXME: To remove some day. |
| 1298 | if test "x$host_alias" != x; then |
| 1299 | if test "x$build_alias" = x; then |
| 1300 | cross_compiling=maybe |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1301 | $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] | 1302 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1303 | elif test "x$build_alias" != "x$host_alias"; then |
| 1304 | cross_compiling=yes |
| 1305 | fi |
| 1306 | fi |
| 1307 | |
| 1308 | ac_tool_prefix= |
| 1309 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1310 | |
| 1311 | test "$silent" = yes && exec 6>/dev/null |
| 1312 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1313 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1314 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1315 | ac_ls_di=`ls -di .` && |
| 1316 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1317 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1318 | { (exit 1); exit 1; }; } |
| 1319 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1320 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1321 | { (exit 1); exit 1; }; } |
| 1322 | |
| 1323 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1324 | # Find the source files, if location was not specified. |
| 1325 | if test -z "$srcdir"; then |
| 1326 | ac_srcdir_defaulted=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1327 | # Try the directory containing this script, then the parent directory. |
| 1328 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1329 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1330 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1331 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1332 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1333 | $as_echo X"$as_myself" | |
| 1334 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1335 | s//\1/ |
| 1336 | q |
| 1337 | } |
| 1338 | /^X\(\/\/\)[^/].*/{ |
| 1339 | s//\1/ |
| 1340 | q |
| 1341 | } |
| 1342 | /^X\(\/\/\)$/{ |
| 1343 | s//\1/ |
| 1344 | q |
| 1345 | } |
| 1346 | /^X\(\/\).*/{ |
| 1347 | s//\1/ |
| 1348 | q |
| 1349 | } |
| 1350 | s/.*/./; q'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1351 | srcdir=$ac_confdir |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1352 | if test ! -r "$srcdir/$ac_unique_file"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1353 | srcdir=.. |
| 1354 | fi |
| 1355 | else |
| 1356 | ac_srcdir_defaulted=no |
| 1357 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1358 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1359 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1360 | { $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] | 1361 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1362 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1363 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1364 | ac_abs_confdir=`( |
| 1365 | 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] | 1366 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1367 | pwd)` |
| 1368 | # When building in place, set srcdir=. |
| 1369 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1370 | srcdir=. |
| 1371 | fi |
| 1372 | # Remove unnecessary trailing slashes from srcdir. |
| 1373 | # Double slashes in file names in object file debugging info |
| 1374 | # mess up M-x gdb in Emacs. |
| 1375 | case $srcdir in |
| 1376 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1377 | esac |
| 1378 | for ac_var in $ac_precious_vars; do |
| 1379 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1380 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1381 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1382 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1383 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1384 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1385 | # |
| 1386 | # Report the --help message. |
| 1387 | # |
| 1388 | if test "$ac_init_help" = "long"; then |
| 1389 | # Omit some internal or obsolete options to make the list less imposing. |
| 1390 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1391 | cat <<_ACEOF |
| 1392 | \`configure' configures this package to adapt to many kinds of systems. |
| 1393 | |
| 1394 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1395 | |
| 1396 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1397 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1398 | |
| 1399 | Defaults for the options are specified in brackets. |
| 1400 | |
| 1401 | Configuration: |
| 1402 | -h, --help display this help and exit |
| 1403 | --help=short display options specific to this package |
| 1404 | --help=recursive display the short help of all the included packages |
| 1405 | -V, --version display version information and exit |
| 1406 | -q, --quiet, --silent do not print \`checking...' messages |
| 1407 | --cache-file=FILE cache test results in FILE [disabled] |
| 1408 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1409 | -n, --no-create do not create output files |
| 1410 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1411 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1412 | Installation directories: |
| 1413 | --prefix=PREFIX install architecture-independent files in PREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1414 | [$ac_default_prefix] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1415 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1416 | [PREFIX] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1417 | |
| 1418 | By default, \`make install' will install all the files in |
| 1419 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1420 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1421 | for instance \`--prefix=\$HOME'. |
| 1422 | |
| 1423 | For better control, use the options below. |
| 1424 | |
| 1425 | Fine tuning of the installation directories: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1426 | --bindir=DIR user executables [EPREFIX/bin] |
| 1427 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1428 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1429 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1430 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1431 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1432 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1433 | --includedir=DIR C header files [PREFIX/include] |
| 1434 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1435 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1436 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1437 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1438 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1439 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1440 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1441 | --htmldir=DIR html documentation [DOCDIR] |
| 1442 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1443 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1444 | --psdir=DIR ps documentation [DOCDIR] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1445 | _ACEOF |
| 1446 | |
| 1447 | cat <<\_ACEOF |
| 1448 | |
| 1449 | X features: |
| 1450 | --x-includes=DIR X include files are in DIR |
| 1451 | --x-libraries=DIR X library files are in DIR |
| 1452 | _ACEOF |
| 1453 | fi |
| 1454 | |
| 1455 | if test -n "$ac_init_help"; then |
| 1456 | |
| 1457 | cat <<\_ACEOF |
| 1458 | |
| 1459 | Optional Features: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1460 | --disable-option-checking ignore unrecognized --enable/--with options |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1461 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1462 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1463 | --disable-darwin Disable Darwin (Mac OS X) support. |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 1464 | --disable-selinux Don't check for SELinux support. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1465 | --disable-xsmp Disable XSMP session management |
| 1466 | --disable-xsmp-interact Disable XSMP interaction |
| 1467 | --enable-mzschemeinterp Include MzScheme interpreter. |
| 1468 | --enable-perlinterp Include Perl interpreter. |
| 1469 | --enable-pythoninterp Include Python interpreter. |
| 1470 | --enable-tclinterp Include Tcl interpreter. |
| 1471 | --enable-rubyinterp Include Ruby interpreter. |
| 1472 | --enable-cscope Include cscope interface. |
| 1473 | --enable-workshop Include Sun Visual Workshop support. |
| 1474 | --disable-netbeans Disable NetBeans integration support. |
| 1475 | --enable-sniff Include Sniff interface. |
| 1476 | --enable-multibyte Include multibyte editing support. |
| 1477 | --enable-hangulinput Include Hangul input support. |
| 1478 | --enable-xim Include XIM input support. |
| 1479 | --enable-fontset Include X fontset output support. |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 1480 | --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] | 1481 | --enable-gtk-check If auto-select GUI, check for GTK default=yes |
| 1482 | --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes |
| 1483 | --enable-gnome-check If GTK GUI, check for GNOME default=no |
| 1484 | --enable-motif-check If auto-select GUI, check for Motif default=yes |
| 1485 | --enable-athena-check If auto-select GUI, check for Athena default=yes |
| 1486 | --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes |
| 1487 | --enable-carbon-check If auto-select GUI, check for Carbon default=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1488 | --disable-gtktest Do not try to compile and run a test GTK program |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 1489 | --disable-largefile omit support for large files |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1490 | --disable-acl Don't check for ACL support. |
| 1491 | --disable-gpm Don't use gpm (Linux mouse daemon). |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1492 | --disable-sysmouse Don't use sysmouse (mouse in *BSD console). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1493 | --disable-nls Don't support NLS (gettext()). |
| 1494 | |
| 1495 | Optional Packages: |
| 1496 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1497 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Bram Moolenaar | 899dddf | 2006-03-26 21:06:50 +0000 | [diff] [blame] | 1498 | --with-mac-arch=ARCH current, intel, ppc or both |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 1499 | --with-developer-dir=PATH use PATH as location for Xcode developer tools |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 1500 | --with-local-dir=PATH search PATH instead of /usr/local for local libraries. |
| 1501 | --without-local-dir do not search /usr/local for local libraries. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1502 | --with-vim-name=NAME what to call the Vim executable |
| 1503 | --with-ex-name=NAME what to call the Ex executable |
| 1504 | --with-view-name=NAME what to call the View executable |
| 1505 | --with-global-runtime=DIR global runtime directory in 'runtimepath' |
| 1506 | --with-modified-by=NAME name of who modified a release version |
| 1507 | --with-features=TYPE tiny, small, normal, big or huge (default: normal) |
| 1508 | --with-compiledby=NAME name to show in :version message |
| 1509 | --with-plthome=PLTHOME Use PLTHOME. |
| 1510 | --with-python-config-dir=PATH Python's config directory |
| 1511 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 1512 | --with-ruby-command=RUBY name of the Ruby command (default: ruby) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1513 | --with-x use the X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1514 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
| 1515 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
| 1516 | --with-gnome-includes=DIR Specify location of GNOME headers |
| 1517 | --with-gnome-libs=DIR Specify location of GNOME libs |
| 1518 | --with-gnome Specify prefix for GNOME files |
| 1519 | --with-motif-lib=STRING Library for Motif |
| 1520 | --with-tlib=library terminal library to be used |
| 1521 | |
| 1522 | Some influential environment variables: |
| 1523 | CC C compiler command |
| 1524 | CFLAGS C compiler flags |
| 1525 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1526 | nonstandard directory <lib dir> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1527 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1528 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1529 | you have headers in a nonstandard directory <include dir> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1530 | CPP C preprocessor |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1531 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1532 | |
| 1533 | Use these variables to override the choices made by `configure' or to help |
| 1534 | it to find libraries and programs with nonstandard names/locations. |
| 1535 | |
| 1536 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1537 | ac_status=$? |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1538 | fi |
| 1539 | |
| 1540 | if test "$ac_init_help" = "recursive"; then |
| 1541 | # If there are subdirs, report their specific --help. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1542 | 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] | 1543 | test -d "$ac_dir" || |
| 1544 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1545 | continue |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1546 | ac_builddir=. |
| 1547 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1548 | case "$ac_dir" in |
| 1549 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1550 | *) |
| 1551 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1552 | # A ".." for each directory in $ac_dir_suffix. |
| 1553 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1554 | case $ac_top_builddir_sub in |
| 1555 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1556 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1557 | esac ;; |
| 1558 | esac |
| 1559 | ac_abs_top_builddir=$ac_pwd |
| 1560 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1561 | # for backward compatibility: |
| 1562 | ac_top_builddir=$ac_top_build_prefix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1563 | |
| 1564 | case $srcdir in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1565 | .) # We are building in place. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1566 | ac_srcdir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1567 | ac_top_srcdir=$ac_top_builddir_sub |
| 1568 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1569 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1570 | ac_srcdir=$srcdir$ac_dir_suffix; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1571 | ac_top_srcdir=$srcdir |
| 1572 | ac_abs_top_srcdir=$srcdir ;; |
| 1573 | *) # Relative name. |
| 1574 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1575 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1576 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1577 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1578 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1579 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1580 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1581 | # Check for guested configure. |
| 1582 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1583 | echo && |
| 1584 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1585 | elif test -f "$ac_srcdir/configure"; then |
| 1586 | echo && |
| 1587 | $SHELL "$ac_srcdir/configure" --help=recursive |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1588 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1589 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1590 | fi || ac_status=$? |
| 1591 | cd "$ac_pwd" || { ac_status=$?; break; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1592 | done |
| 1593 | fi |
| 1594 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1595 | test -n "$ac_init_help" && exit $ac_status |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1596 | if $ac_init_version; then |
| 1597 | cat <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1598 | configure |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1599 | generated by GNU Autoconf 2.63 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1600 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1601 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1602 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1603 | This configure script is free software; the Free Software Foundation |
| 1604 | gives unlimited permission to copy, distribute and modify it. |
| 1605 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1606 | exit |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1607 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1608 | cat >auto/config.log <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1609 | This file contains any messages produced by compilers while |
| 1610 | running configure, to aid debugging if configure makes a mistake. |
| 1611 | |
| 1612 | It was created by $as_me, which was |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1613 | generated by GNU Autoconf 2.63. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1614 | |
| 1615 | $ $0 $@ |
| 1616 | |
| 1617 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1618 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1619 | { |
| 1620 | cat <<_ASUNAME |
| 1621 | ## --------- ## |
| 1622 | ## Platform. ## |
| 1623 | ## --------- ## |
| 1624 | |
| 1625 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1626 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1627 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1628 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1629 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1630 | |
| 1631 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1632 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1633 | |
| 1634 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1635 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1636 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1637 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1638 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1639 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1640 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1641 | |
| 1642 | _ASUNAME |
| 1643 | |
| 1644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1645 | for as_dir in $PATH |
| 1646 | do |
| 1647 | IFS=$as_save_IFS |
| 1648 | test -z "$as_dir" && as_dir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1649 | $as_echo "PATH: $as_dir" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1650 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1651 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1652 | |
| 1653 | } >&5 |
| 1654 | |
| 1655 | cat >&5 <<_ACEOF |
| 1656 | |
| 1657 | |
| 1658 | ## ----------- ## |
| 1659 | ## Core tests. ## |
| 1660 | ## ----------- ## |
| 1661 | |
| 1662 | _ACEOF |
| 1663 | |
| 1664 | |
| 1665 | # Keep a trace of the command line. |
| 1666 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1667 | # Strip out --silent because we don't want to record it for future runs. |
| 1668 | # Also quote any args containing shell meta-characters. |
| 1669 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1670 | ac_configure_args= |
| 1671 | ac_configure_args0= |
| 1672 | ac_configure_args1= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1673 | ac_must_keep_next=false |
| 1674 | for ac_pass in 1 2 |
| 1675 | do |
| 1676 | for ac_arg |
| 1677 | do |
| 1678 | case $ac_arg in |
| 1679 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1680 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1681 | | -silent | --silent | --silen | --sile | --sil) |
| 1682 | continue ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1683 | *\'*) |
| 1684 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1685 | esac |
| 1686 | case $ac_pass in |
| 1687 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1688 | 2) |
| 1689 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1690 | if test $ac_must_keep_next = true; then |
| 1691 | ac_must_keep_next=false # Got value, back to normal. |
| 1692 | else |
| 1693 | case $ac_arg in |
| 1694 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1695 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1696 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1697 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1698 | case "$ac_configure_args0 " in |
| 1699 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1700 | esac |
| 1701 | ;; |
| 1702 | -* ) ac_must_keep_next=true ;; |
| 1703 | esac |
| 1704 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1705 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1706 | ;; |
| 1707 | esac |
| 1708 | done |
| 1709 | done |
| 1710 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1711 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1712 | |
| 1713 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1714 | # config.log. We remove comments because anyway the quotes in there |
| 1715 | # would cause problems or look ugly. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1716 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1717 | # 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] | 1718 | trap 'exit_status=$? |
| 1719 | # Save into config.log some information that might help in debugging. |
| 1720 | { |
| 1721 | echo |
| 1722 | |
| 1723 | cat <<\_ASBOX |
| 1724 | ## ---------------- ## |
| 1725 | ## Cache variables. ## |
| 1726 | ## ---------------- ## |
| 1727 | _ASBOX |
| 1728 | echo |
| 1729 | # The following way of writing the cache mishandles newlines in values, |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1730 | ( |
| 1731 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1732 | eval ac_val=\$$ac_var |
| 1733 | case $ac_val in #( |
| 1734 | *${as_nl}*) |
| 1735 | case $ac_var in #( |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1736 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1737 | $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] | 1738 | esac |
| 1739 | case $ac_var in #( |
| 1740 | _ | IFS | as_nl) ;; #( |
| 1741 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1742 | *) $as_unset $ac_var ;; |
| 1743 | esac ;; |
| 1744 | esac |
| 1745 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1746 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1747 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1748 | *${as_nl}ac_space=\ *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1749 | sed -n \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1750 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1751 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1752 | ;; #( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1753 | *) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1754 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1755 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1756 | esac | |
| 1757 | sort |
| 1758 | ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1759 | echo |
| 1760 | |
| 1761 | cat <<\_ASBOX |
| 1762 | ## ----------------- ## |
| 1763 | ## Output variables. ## |
| 1764 | ## ----------------- ## |
| 1765 | _ASBOX |
| 1766 | echo |
| 1767 | for ac_var in $ac_subst_vars |
| 1768 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1769 | eval ac_val=\$$ac_var |
| 1770 | case $ac_val in |
| 1771 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1772 | esac |
| 1773 | $as_echo "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1774 | done | sort |
| 1775 | echo |
| 1776 | |
| 1777 | if test -n "$ac_subst_files"; then |
| 1778 | cat <<\_ASBOX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1779 | ## ------------------- ## |
| 1780 | ## File substitutions. ## |
| 1781 | ## ------------------- ## |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1782 | _ASBOX |
| 1783 | echo |
| 1784 | for ac_var in $ac_subst_files |
| 1785 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1786 | eval ac_val=\$$ac_var |
| 1787 | case $ac_val in |
| 1788 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1789 | esac |
| 1790 | $as_echo "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1791 | done | sort |
| 1792 | echo |
| 1793 | fi |
| 1794 | |
| 1795 | if test -s confdefs.h; then |
| 1796 | cat <<\_ASBOX |
| 1797 | ## ----------- ## |
| 1798 | ## confdefs.h. ## |
| 1799 | ## ----------- ## |
| 1800 | _ASBOX |
| 1801 | echo |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1802 | cat confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1803 | echo |
| 1804 | fi |
| 1805 | test "$ac_signal" != 0 && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1806 | $as_echo "$as_me: caught signal $ac_signal" |
| 1807 | $as_echo "$as_me: exit $exit_status" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1808 | } >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1809 | rm -f core *.core core.conftest.* && |
| 1810 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1811 | exit $exit_status |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1812 | ' 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1813 | for ac_signal in 1 2 13 15; do |
| 1814 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1815 | done |
| 1816 | ac_signal=0 |
| 1817 | |
| 1818 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1819 | rm -f -r conftest* confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1820 | |
| 1821 | # Predefined preprocessor variables. |
| 1822 | |
| 1823 | cat >>confdefs.h <<_ACEOF |
| 1824 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1825 | _ACEOF |
| 1826 | |
| 1827 | |
| 1828 | cat >>confdefs.h <<_ACEOF |
| 1829 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1830 | _ACEOF |
| 1831 | |
| 1832 | |
| 1833 | cat >>confdefs.h <<_ACEOF |
| 1834 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1835 | _ACEOF |
| 1836 | |
| 1837 | |
| 1838 | cat >>confdefs.h <<_ACEOF |
| 1839 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1840 | _ACEOF |
| 1841 | |
| 1842 | |
| 1843 | cat >>confdefs.h <<_ACEOF |
| 1844 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1845 | _ACEOF |
| 1846 | |
| 1847 | |
| 1848 | # 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] | 1849 | # Prefer an explicitly selected file to automatically selected ones. |
| 1850 | ac_site_file1=NONE |
| 1851 | ac_site_file2=NONE |
| 1852 | if test -n "$CONFIG_SITE"; then |
| 1853 | ac_site_file1=$CONFIG_SITE |
| 1854 | elif test "x$prefix" != xNONE; then |
| 1855 | ac_site_file1=$prefix/share/config.site |
| 1856 | ac_site_file2=$prefix/etc/config.site |
| 1857 | else |
| 1858 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1859 | ac_site_file2=$ac_default_prefix/etc/config.site |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1860 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1861 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1862 | do |
| 1863 | test "x$ac_site_file" = xNONE && continue |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1864 | if test -r "$ac_site_file"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1865 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1866 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1867 | sed 's/^/| /' "$ac_site_file" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1868 | . "$ac_site_file" |
| 1869 | fi |
| 1870 | done |
| 1871 | |
| 1872 | if test -r "$cache_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1873 | # Some versions of bash will fail to source /dev/null (special |
| 1874 | # files actually), so we avoid doing that. |
| 1875 | if test -f "$cache_file"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1876 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1877 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1878 | case $cache_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1879 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1880 | *) . "./$cache_file";; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1881 | esac |
| 1882 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1883 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1884 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1885 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1886 | >$cache_file |
| 1887 | fi |
| 1888 | |
| 1889 | # Check that the precious variables saved in the cache have kept the same |
| 1890 | # value. |
| 1891 | ac_cache_corrupted=false |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1892 | for ac_var in $ac_precious_vars; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1893 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1894 | eval ac_new_set=\$ac_env_${ac_var}_set |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1895 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1896 | eval ac_new_val=\$ac_env_${ac_var}_value |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1897 | case $ac_old_set,$ac_new_set in |
| 1898 | set,) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1899 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1900 | $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] | 1901 | ac_cache_corrupted=: ;; |
| 1902 | ,set) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1903 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1904 | $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] | 1905 | ac_cache_corrupted=: ;; |
| 1906 | ,);; |
| 1907 | *) |
| 1908 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1909 | # differences in whitespace do not lead to failure. |
| 1910 | ac_old_val_w=`echo x $ac_old_val` |
| 1911 | ac_new_val_w=`echo x $ac_new_val` |
| 1912 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1913 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1914 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1915 | ac_cache_corrupted=: |
| 1916 | else |
| 1917 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1918 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1919 | eval $ac_var=\$ac_old_val |
| 1920 | fi |
| 1921 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1922 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1923 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1924 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1925 | fi;; |
| 1926 | esac |
| 1927 | # Pass precious variables to config.status. |
| 1928 | if test "$ac_new_set" = set; then |
| 1929 | case $ac_new_val in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1930 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1931 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1932 | esac |
| 1933 | case " $ac_configure_args " in |
| 1934 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1935 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1936 | esac |
| 1937 | fi |
| 1938 | done |
| 1939 | if $ac_cache_corrupted; then |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 1940 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1941 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1942 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1943 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1944 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1945 | $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] | 1946 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1947 | fi |
| 1948 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1949 | |
| 1950 | |
| 1951 | |
| 1952 | |
| 1953 | |
| 1954 | |
| 1955 | |
| 1956 | |
| 1957 | |
| 1958 | |
| 1959 | |
| 1960 | |
| 1961 | |
| 1962 | |
| 1963 | |
| 1964 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1965 | ac_ext=c |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1966 | ac_cpp='$CPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1967 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1968 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1969 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1970 | |
| 1971 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1972 | ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1973 | |
| 1974 | |
| 1975 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1976 | #define UNIX 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1977 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1978 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1979 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1980 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 1981 | set x ${MAKE-make} |
| 1982 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 1983 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 1984 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1985 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1986 | cat >conftest.make <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1987 | SHELL = /bin/sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1988 | all: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1989 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1990 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1991 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1992 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 1993 | *@@@%%%=?*=@@@%%%*) |
| 1994 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 1995 | *) |
| 1996 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 1997 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1998 | rm -f conftest.make |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1999 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2000 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2001 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2002 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2003 | SET_MAKE= |
| 2004 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2005 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2006 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2007 | SET_MAKE="MAKE=${MAKE-make}" |
| 2008 | fi |
| 2009 | |
| 2010 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2011 | ac_ext=c |
| 2012 | ac_cpp='$CPP $CPPFLAGS' |
| 2013 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2014 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2015 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2016 | if test -n "$ac_tool_prefix"; then |
| 2017 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2018 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2019 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2020 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2021 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2022 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2023 | else |
| 2024 | if test -n "$CC"; then |
| 2025 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2026 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2028 | for as_dir in $PATH |
| 2029 | do |
| 2030 | IFS=$as_save_IFS |
| 2031 | test -z "$as_dir" && as_dir=. |
| 2032 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2033 | 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] | 2034 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2035 | $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] | 2036 | break 2 |
| 2037 | fi |
| 2038 | done |
| 2039 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2040 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2041 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2042 | fi |
| 2043 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2044 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2045 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2046 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2047 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2048 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2049 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2050 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2051 | fi |
| 2052 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2053 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2054 | fi |
| 2055 | if test -z "$ac_cv_prog_CC"; then |
| 2056 | ac_ct_CC=$CC |
| 2057 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2058 | set dummy gcc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2059 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2060 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2061 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2062 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2063 | else |
| 2064 | if test -n "$ac_ct_CC"; then |
| 2065 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2066 | else |
| 2067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2068 | for as_dir in $PATH |
| 2069 | do |
| 2070 | IFS=$as_save_IFS |
| 2071 | test -z "$as_dir" && as_dir=. |
| 2072 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2073 | 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] | 2074 | ac_cv_prog_ac_ct_CC="gcc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2075 | $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] | 2076 | break 2 |
| 2077 | fi |
| 2078 | done |
| 2079 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2080 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2081 | |
| 2082 | fi |
| 2083 | fi |
| 2084 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2085 | if test -n "$ac_ct_CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2086 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2087 | $as_echo "$ac_ct_CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2088 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2089 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2090 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2091 | fi |
| 2092 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2093 | if test "x$ac_ct_CC" = x; then |
| 2094 | CC="" |
| 2095 | else |
| 2096 | case $cross_compiling:$ac_tool_warned in |
| 2097 | yes:) |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2098 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2099 | $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] | 2100 | ac_tool_warned=yes ;; |
| 2101 | esac |
| 2102 | CC=$ac_ct_CC |
| 2103 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2104 | else |
| 2105 | CC="$ac_cv_prog_CC" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2106 | fi |
| 2107 | |
| 2108 | if test -z "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2109 | if test -n "$ac_tool_prefix"; then |
| 2110 | # 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] | 2111 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2112 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2113 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2114 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2115 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2116 | else |
| 2117 | if test -n "$CC"; then |
| 2118 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2119 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2121 | for as_dir in $PATH |
| 2122 | do |
| 2123 | IFS=$as_save_IFS |
| 2124 | test -z "$as_dir" && as_dir=. |
| 2125 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2126 | 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] | 2127 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2128 | $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] | 2129 | break 2 |
| 2130 | fi |
| 2131 | done |
| 2132 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2133 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2134 | |
| 2135 | fi |
| 2136 | fi |
| 2137 | CC=$ac_cv_prog_CC |
| 2138 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2139 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2140 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2141 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2142 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2143 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2144 | fi |
| 2145 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2146 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2147 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2148 | fi |
| 2149 | if test -z "$CC"; then |
| 2150 | # Extract the first word of "cc", so it can be a program name with args. |
| 2151 | set dummy cc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2152 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2153 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2154 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2155 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2156 | else |
| 2157 | if test -n "$CC"; then |
| 2158 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2159 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2160 | ac_prog_rejected=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2162 | for as_dir in $PATH |
| 2163 | do |
| 2164 | IFS=$as_save_IFS |
| 2165 | test -z "$as_dir" && as_dir=. |
| 2166 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2167 | 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] | 2168 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2169 | ac_prog_rejected=yes |
| 2170 | continue |
| 2171 | fi |
| 2172 | ac_cv_prog_CC="cc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2173 | $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] | 2174 | break 2 |
| 2175 | fi |
| 2176 | done |
| 2177 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2178 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2179 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2180 | if test $ac_prog_rejected = yes; then |
| 2181 | # We found a bogon in the path, so make sure we never use it. |
| 2182 | set dummy $ac_cv_prog_CC |
| 2183 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2184 | if test $# != 0; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2185 | # We chose a different compiler from the bogus one. |
| 2186 | # However, it has the same basename, so the bogon will be chosen |
| 2187 | # first if we set CC to just the basename; use the full file name. |
| 2188 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2189 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2190 | fi |
| 2191 | fi |
| 2192 | fi |
| 2193 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2194 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2195 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2196 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2197 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2198 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2199 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2200 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2201 | fi |
| 2202 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2203 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2204 | fi |
| 2205 | if test -z "$CC"; then |
| 2206 | if test -n "$ac_tool_prefix"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2207 | for ac_prog in cl.exe |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2208 | do |
| 2209 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2210 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2211 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2212 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2213 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2214 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2215 | else |
| 2216 | if test -n "$CC"; then |
| 2217 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2218 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2220 | for as_dir in $PATH |
| 2221 | do |
| 2222 | IFS=$as_save_IFS |
| 2223 | test -z "$as_dir" && as_dir=. |
| 2224 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2225 | 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] | 2226 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2227 | $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] | 2228 | break 2 |
| 2229 | fi |
| 2230 | done |
| 2231 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2232 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2233 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2234 | fi |
| 2235 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2236 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2237 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2238 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2239 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2240 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2241 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2242 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2243 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2244 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2245 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2246 | test -n "$CC" && break |
| 2247 | done |
| 2248 | fi |
| 2249 | if test -z "$CC"; then |
| 2250 | ac_ct_CC=$CC |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2251 | for ac_prog in cl.exe |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2252 | do |
| 2253 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2254 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2255 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2256 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2257 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2258 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2259 | else |
| 2260 | if test -n "$ac_ct_CC"; then |
| 2261 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2262 | else |
| 2263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2264 | for as_dir in $PATH |
| 2265 | do |
| 2266 | IFS=$as_save_IFS |
| 2267 | test -z "$as_dir" && as_dir=. |
| 2268 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2269 | 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] | 2270 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2271 | $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] | 2272 | break 2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2273 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2274 | done |
| 2275 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2276 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2277 | |
| 2278 | fi |
| 2279 | fi |
| 2280 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2281 | if test -n "$ac_ct_CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2282 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2283 | $as_echo "$ac_ct_CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2284 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2285 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2286 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2287 | fi |
| 2288 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2289 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2290 | test -n "$ac_ct_CC" && break |
| 2291 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2292 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2293 | if test "x$ac_ct_CC" = x; then |
| 2294 | CC="" |
| 2295 | else |
| 2296 | case $cross_compiling:$ac_tool_warned in |
| 2297 | yes:) |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2298 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2299 | $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] | 2300 | ac_tool_warned=yes ;; |
| 2301 | esac |
| 2302 | CC=$ac_ct_CC |
| 2303 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2304 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2305 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2306 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2307 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2308 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2309 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2310 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2311 | { { $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] | 2312 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2313 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2314 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2315 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2316 | |
| 2317 | # Provide some information about the compiler. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2318 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2319 | set X $ac_compile |
| 2320 | ac_compiler=$2 |
| 2321 | { (ac_try="$ac_compiler --version >&5" |
| 2322 | case "(($ac_try" in |
| 2323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2324 | *) ac_try_echo=$ac_try;; |
| 2325 | esac |
| 2326 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2327 | $as_echo "$ac_try_echo") >&5 |
| 2328 | (eval "$ac_compiler --version >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2329 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2330 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2331 | (exit $ac_status); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2332 | { (ac_try="$ac_compiler -v >&5" |
| 2333 | case "(($ac_try" in |
| 2334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2335 | *) ac_try_echo=$ac_try;; |
| 2336 | esac |
| 2337 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2338 | $as_echo "$ac_try_echo") >&5 |
| 2339 | (eval "$ac_compiler -v >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2340 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2341 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2342 | (exit $ac_status); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2343 | { (ac_try="$ac_compiler -V >&5" |
| 2344 | case "(($ac_try" in |
| 2345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2346 | *) ac_try_echo=$ac_try;; |
| 2347 | esac |
| 2348 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2349 | $as_echo "$ac_try_echo") >&5 |
| 2350 | (eval "$ac_compiler -V >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2351 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2352 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2353 | (exit $ac_status); } |
| 2354 | |
| 2355 | cat >conftest.$ac_ext <<_ACEOF |
| 2356 | /* confdefs.h. */ |
| 2357 | _ACEOF |
| 2358 | cat confdefs.h >>conftest.$ac_ext |
| 2359 | cat >>conftest.$ac_ext <<_ACEOF |
| 2360 | /* end confdefs.h. */ |
| 2361 | |
| 2362 | int |
| 2363 | main () |
| 2364 | { |
| 2365 | |
| 2366 | ; |
| 2367 | return 0; |
| 2368 | } |
| 2369 | _ACEOF |
| 2370 | ac_clean_files_save=$ac_clean_files |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2371 | 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] | 2372 | # Try to create an executable without -o first, disregard a.out. |
| 2373 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2374 | # of exeext. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2375 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2376 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2377 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2378 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2379 | # The possible output files: |
| 2380 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2381 | |
| 2382 | ac_rmfiles= |
| 2383 | for ac_file in $ac_files |
| 2384 | do |
| 2385 | case $ac_file in |
| 2386 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2387 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2388 | esac |
| 2389 | done |
| 2390 | rm -f $ac_rmfiles |
| 2391 | |
| 2392 | if { (ac_try="$ac_link_default" |
| 2393 | case "(($ac_try" in |
| 2394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2395 | *) ac_try_echo=$ac_try;; |
| 2396 | esac |
| 2397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2398 | $as_echo "$ac_try_echo") >&5 |
| 2399 | (eval "$ac_link_default") 2>&5 |
| 2400 | ac_status=$? |
| 2401 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2402 | (exit $ac_status); }; then |
| 2403 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2404 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2405 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2406 | # so that the user can short-circuit this test for compilers unknown to |
| 2407 | # Autoconf. |
| 2408 | for ac_file in $ac_files '' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2409 | do |
| 2410 | test -f "$ac_file" || continue |
| 2411 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2412 | *.$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] | 2413 | ;; |
| 2414 | [ab].out ) |
| 2415 | # We found the default executable, but exeext='' is most |
| 2416 | # certainly right. |
| 2417 | break;; |
| 2418 | *.* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2419 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2420 | then :; else |
| 2421 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2422 | fi |
| 2423 | # We set ac_cv_exeext here because the later test for it is not |
| 2424 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2425 | # argument, so we may need to know it at that point already. |
| 2426 | # Even if this section looks crufty: it has the advantage of |
| 2427 | # actually working. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2428 | break;; |
| 2429 | * ) |
| 2430 | break;; |
| 2431 | esac |
| 2432 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2433 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2434 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2435 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2436 | ac_file='' |
| 2437 | fi |
| 2438 | |
| 2439 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2440 | $as_echo "$ac_file" >&6; } |
| 2441 | if test -z "$ac_file"; then |
| 2442 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2444 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2445 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2446 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2447 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2448 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2449 | $as_echo "$as_me: error: C compiler cannot create executables |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2450 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2451 | { (exit 77); exit 77; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2452 | fi |
| 2453 | |
| 2454 | ac_exeext=$ac_cv_exeext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2455 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2456 | # Check that the compiler produces executables we can run. If not, either |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2457 | # the compiler is broken, or we cross compile. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2458 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2459 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2460 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2461 | # If not cross compiling, check that we can run a simple program. |
| 2462 | if test "$cross_compiling" != yes; then |
| 2463 | if { ac_try='./$ac_file' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2464 | { (case "(($ac_try" in |
| 2465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2466 | *) ac_try_echo=$ac_try;; |
| 2467 | esac |
| 2468 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2469 | $as_echo "$ac_try_echo") >&5 |
| 2470 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2471 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2472 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2473 | (exit $ac_status); }; }; then |
| 2474 | cross_compiling=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2475 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2476 | if test "$cross_compiling" = maybe; then |
| 2477 | cross_compiling=yes |
| 2478 | else |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2479 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2480 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2481 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2482 | If you meant to cross compile, use \`--host'. |
| 2483 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2484 | $as_echo "$as_me: error: cannot run C compiled programs. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2485 | If you meant to cross compile, use \`--host'. |
| 2486 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2487 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2488 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2489 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2490 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2491 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2492 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2493 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2494 | 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] | 2495 | ac_clean_files=$ac_clean_files_save |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2496 | # Check that the compiler produces executables we can run. If not, either |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2497 | # the compiler is broken, or we cross compile. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2498 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2499 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2500 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2501 | $as_echo "$cross_compiling" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2502 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2503 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2504 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2505 | if { (ac_try="$ac_link" |
| 2506 | case "(($ac_try" in |
| 2507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2508 | *) ac_try_echo=$ac_try;; |
| 2509 | esac |
| 2510 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2511 | $as_echo "$ac_try_echo") >&5 |
| 2512 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2513 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2515 | (exit $ac_status); }; then |
| 2516 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2517 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2518 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2519 | # `rm'. |
| 2520 | for ac_file in conftest.exe conftest conftest.*; do |
| 2521 | test -f "$ac_file" || continue |
| 2522 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2523 | *.$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] | 2524 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2525 | break;; |
| 2526 | * ) break;; |
| 2527 | esac |
| 2528 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2529 | else |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2530 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2531 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2532 | { { $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] | 2533 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2534 | $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] | 2535 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2536 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2537 | fi |
| 2538 | |
| 2539 | rm -f conftest$ac_cv_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2540 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2541 | $as_echo "$ac_cv_exeext" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2542 | |
| 2543 | rm -f conftest.$ac_ext |
| 2544 | EXEEXT=$ac_cv_exeext |
| 2545 | ac_exeext=$EXEEXT |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2546 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2547 | $as_echo_n "checking for suffix of object files... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2548 | if test "${ac_cv_objext+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2549 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2550 | else |
| 2551 | cat >conftest.$ac_ext <<_ACEOF |
| 2552 | /* confdefs.h. */ |
| 2553 | _ACEOF |
| 2554 | cat confdefs.h >>conftest.$ac_ext |
| 2555 | cat >>conftest.$ac_ext <<_ACEOF |
| 2556 | /* end confdefs.h. */ |
| 2557 | |
| 2558 | int |
| 2559 | main () |
| 2560 | { |
| 2561 | |
| 2562 | ; |
| 2563 | return 0; |
| 2564 | } |
| 2565 | _ACEOF |
| 2566 | rm -f conftest.o conftest.obj |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2567 | if { (ac_try="$ac_compile" |
| 2568 | case "(($ac_try" in |
| 2569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2570 | *) ac_try_echo=$ac_try;; |
| 2571 | esac |
| 2572 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2573 | $as_echo "$ac_try_echo") >&5 |
| 2574 | (eval "$ac_compile") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2575 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2577 | (exit $ac_status); }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2578 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2579 | test -f "$ac_file" || continue; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2580 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2581 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2582 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2583 | break;; |
| 2584 | esac |
| 2585 | done |
| 2586 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2587 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2589 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2590 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2591 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2592 | { { $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] | 2593 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2594 | $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] | 2595 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 2596 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2597 | fi |
| 2598 | |
| 2599 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2600 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2601 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2602 | $as_echo "$ac_cv_objext" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2603 | OBJEXT=$ac_cv_objext |
| 2604 | ac_objext=$OBJEXT |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2605 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2606 | $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] | 2607 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2608 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2609 | else |
| 2610 | cat >conftest.$ac_ext <<_ACEOF |
| 2611 | /* confdefs.h. */ |
| 2612 | _ACEOF |
| 2613 | cat confdefs.h >>conftest.$ac_ext |
| 2614 | cat >>conftest.$ac_ext <<_ACEOF |
| 2615 | /* end confdefs.h. */ |
| 2616 | |
| 2617 | int |
| 2618 | main () |
| 2619 | { |
| 2620 | #ifndef __GNUC__ |
| 2621 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2622 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2623 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2624 | ; |
| 2625 | return 0; |
| 2626 | } |
| 2627 | _ACEOF |
| 2628 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2629 | if { (ac_try="$ac_compile" |
| 2630 | case "(($ac_try" in |
| 2631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2632 | *) ac_try_echo=$ac_try;; |
| 2633 | esac |
| 2634 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2635 | $as_echo "$ac_try_echo") >&5 |
| 2636 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2637 | ac_status=$? |
| 2638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2639 | rm -f conftest.er1 |
| 2640 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2641 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2642 | (exit $ac_status); } && { |
| 2643 | test -z "$ac_c_werror_flag" || |
| 2644 | test ! -s conftest.err |
| 2645 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2646 | ac_compiler_gnu=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2647 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2648 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2650 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2651 | ac_compiler_gnu=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2652 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2653 | |
| 2654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2655 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2656 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2657 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2658 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2659 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2660 | if test $ac_compiler_gnu = yes; then |
| 2661 | GCC=yes |
| 2662 | else |
| 2663 | GCC= |
| 2664 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2665 | ac_test_CFLAGS=${CFLAGS+set} |
| 2666 | ac_save_CFLAGS=$CFLAGS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2667 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2668 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2669 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2670 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2671 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2672 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2673 | ac_c_werror_flag=yes |
| 2674 | ac_cv_prog_cc_g=no |
| 2675 | CFLAGS="-g" |
| 2676 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2677 | /* confdefs.h. */ |
| 2678 | _ACEOF |
| 2679 | cat confdefs.h >>conftest.$ac_ext |
| 2680 | cat >>conftest.$ac_ext <<_ACEOF |
| 2681 | /* end confdefs.h. */ |
| 2682 | |
| 2683 | int |
| 2684 | main () |
| 2685 | { |
| 2686 | |
| 2687 | ; |
| 2688 | return 0; |
| 2689 | } |
| 2690 | _ACEOF |
| 2691 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2692 | if { (ac_try="$ac_compile" |
| 2693 | case "(($ac_try" in |
| 2694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2695 | *) ac_try_echo=$ac_try;; |
| 2696 | esac |
| 2697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2698 | $as_echo "$ac_try_echo") >&5 |
| 2699 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2700 | ac_status=$? |
| 2701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2702 | rm -f conftest.er1 |
| 2703 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2705 | (exit $ac_status); } && { |
| 2706 | test -z "$ac_c_werror_flag" || |
| 2707 | test ! -s conftest.err |
| 2708 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2709 | ac_cv_prog_cc_g=yes |
| 2710 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2711 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2712 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2713 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2714 | CFLAGS="" |
| 2715 | cat >conftest.$ac_ext <<_ACEOF |
| 2716 | /* confdefs.h. */ |
| 2717 | _ACEOF |
| 2718 | cat confdefs.h >>conftest.$ac_ext |
| 2719 | cat >>conftest.$ac_ext <<_ACEOF |
| 2720 | /* end confdefs.h. */ |
| 2721 | |
| 2722 | int |
| 2723 | main () |
| 2724 | { |
| 2725 | |
| 2726 | ; |
| 2727 | return 0; |
| 2728 | } |
| 2729 | _ACEOF |
| 2730 | rm -f conftest.$ac_objext |
| 2731 | if { (ac_try="$ac_compile" |
| 2732 | case "(($ac_try" in |
| 2733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2734 | *) ac_try_echo=$ac_try;; |
| 2735 | esac |
| 2736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2737 | $as_echo "$ac_try_echo") >&5 |
| 2738 | (eval "$ac_compile") 2>conftest.er1 |
| 2739 | ac_status=$? |
| 2740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2741 | rm -f conftest.er1 |
| 2742 | cat conftest.err >&5 |
| 2743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2744 | (exit $ac_status); } && { |
| 2745 | test -z "$ac_c_werror_flag" || |
| 2746 | test ! -s conftest.err |
| 2747 | } && test -s conftest.$ac_objext; then |
| 2748 | : |
| 2749 | else |
| 2750 | $as_echo "$as_me: failed program was:" >&5 |
| 2751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2752 | |
| 2753 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2754 | CFLAGS="-g" |
| 2755 | cat >conftest.$ac_ext <<_ACEOF |
| 2756 | /* confdefs.h. */ |
| 2757 | _ACEOF |
| 2758 | cat confdefs.h >>conftest.$ac_ext |
| 2759 | cat >>conftest.$ac_ext <<_ACEOF |
| 2760 | /* end confdefs.h. */ |
| 2761 | |
| 2762 | int |
| 2763 | main () |
| 2764 | { |
| 2765 | |
| 2766 | ; |
| 2767 | return 0; |
| 2768 | } |
| 2769 | _ACEOF |
| 2770 | rm -f conftest.$ac_objext |
| 2771 | if { (ac_try="$ac_compile" |
| 2772 | case "(($ac_try" in |
| 2773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2774 | *) ac_try_echo=$ac_try;; |
| 2775 | esac |
| 2776 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2777 | $as_echo "$ac_try_echo") >&5 |
| 2778 | (eval "$ac_compile") 2>conftest.er1 |
| 2779 | ac_status=$? |
| 2780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2781 | rm -f conftest.er1 |
| 2782 | cat conftest.err >&5 |
| 2783 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2784 | (exit $ac_status); } && { |
| 2785 | test -z "$ac_c_werror_flag" || |
| 2786 | test ! -s conftest.err |
| 2787 | } && test -s conftest.$ac_objext; then |
| 2788 | ac_cv_prog_cc_g=yes |
| 2789 | else |
| 2790 | $as_echo "$as_me: failed program was:" >&5 |
| 2791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2792 | |
| 2793 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2794 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2795 | |
| 2796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2797 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2798 | |
| 2799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2800 | fi |
| 2801 | |
| 2802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2803 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2804 | fi |
| 2805 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2806 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2807 | if test "$ac_test_CFLAGS" = set; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2808 | CFLAGS=$ac_save_CFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2809 | elif test $ac_cv_prog_cc_g = yes; then |
| 2810 | if test "$GCC" = yes; then |
| 2811 | CFLAGS="-g -O2" |
| 2812 | else |
| 2813 | CFLAGS="-g" |
| 2814 | fi |
| 2815 | else |
| 2816 | if test "$GCC" = yes; then |
| 2817 | CFLAGS="-O2" |
| 2818 | else |
| 2819 | CFLAGS= |
| 2820 | fi |
| 2821 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2822 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2823 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 2824 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2825 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2826 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2827 | ac_cv_prog_cc_c89=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2828 | ac_save_CC=$CC |
| 2829 | cat >conftest.$ac_ext <<_ACEOF |
| 2830 | /* confdefs.h. */ |
| 2831 | _ACEOF |
| 2832 | cat confdefs.h >>conftest.$ac_ext |
| 2833 | cat >>conftest.$ac_ext <<_ACEOF |
| 2834 | /* end confdefs.h. */ |
| 2835 | #include <stdarg.h> |
| 2836 | #include <stdio.h> |
| 2837 | #include <sys/types.h> |
| 2838 | #include <sys/stat.h> |
| 2839 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2840 | struct buf { int x; }; |
| 2841 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2842 | static char *e (p, i) |
| 2843 | char **p; |
| 2844 | int i; |
| 2845 | { |
| 2846 | return p[i]; |
| 2847 | } |
| 2848 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2849 | { |
| 2850 | char *s; |
| 2851 | va_list v; |
| 2852 | va_start (v,p); |
| 2853 | s = g (p, va_arg (v,int)); |
| 2854 | va_end (v); |
| 2855 | return s; |
| 2856 | } |
| 2857 | |
| 2858 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2859 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2860 | These don't provoke an error unfortunately, instead are silently treated |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2861 | 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] | 2862 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2863 | 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] | 2864 | that's true only with -std. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2865 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2866 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2867 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2868 | inside strings and character constants. */ |
| 2869 | #define FOO(x) 'x' |
| 2870 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2871 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2872 | int test (int i, double x); |
| 2873 | struct s1 {int (*f) (int a);}; |
| 2874 | struct s2 {int (*f) (double a);}; |
| 2875 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2876 | int argc; |
| 2877 | char **argv; |
| 2878 | int |
| 2879 | main () |
| 2880 | { |
| 2881 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2882 | ; |
| 2883 | return 0; |
| 2884 | } |
| 2885 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2886 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2887 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2888 | do |
| 2889 | CC="$ac_save_CC $ac_arg" |
| 2890 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2891 | if { (ac_try="$ac_compile" |
| 2892 | case "(($ac_try" in |
| 2893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2894 | *) ac_try_echo=$ac_try;; |
| 2895 | esac |
| 2896 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2897 | $as_echo "$ac_try_echo") >&5 |
| 2898 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2899 | ac_status=$? |
| 2900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2901 | rm -f conftest.er1 |
| 2902 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2903 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2904 | (exit $ac_status); } && { |
| 2905 | test -z "$ac_c_werror_flag" || |
| 2906 | test ! -s conftest.err |
| 2907 | } && test -s conftest.$ac_objext; then |
| 2908 | ac_cv_prog_cc_c89=$ac_arg |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2909 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2910 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2912 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2913 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2914 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2915 | |
| 2916 | rm -f core conftest.err conftest.$ac_objext |
| 2917 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2918 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2919 | rm -f conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2920 | CC=$ac_save_CC |
| 2921 | |
| 2922 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2923 | # AC_CACHE_VAL |
| 2924 | case "x$ac_cv_prog_cc_c89" in |
| 2925 | x) |
| 2926 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 2927 | $as_echo "none needed" >&6; } ;; |
| 2928 | xno) |
| 2929 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2930 | $as_echo "unsupported" >&6; } ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2931 | *) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2932 | CC="$CC $ac_cv_prog_cc_c89" |
| 2933 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2934 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2935 | esac |
| 2936 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2937 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 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 |
| 2943 | ac_ext=c |
| 2944 | ac_cpp='$CPP $CPPFLAGS' |
| 2945 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2946 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2947 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2948 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2949 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2950 | # On Suns, sometimes $CPP names a directory. |
| 2951 | if test -n "$CPP" && test -d "$CPP"; then |
| 2952 | CPP= |
| 2953 | fi |
| 2954 | if test -z "$CPP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2955 | if test "${ac_cv_prog_CPP+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2956 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2957 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2958 | # Double quotes because CPP needs to be expanded |
| 2959 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2960 | do |
| 2961 | ac_preproc_ok=false |
| 2962 | for ac_c_preproc_warn_flag in '' yes |
| 2963 | do |
| 2964 | # Use a header file that comes with gcc, so configuring glibc |
| 2965 | # with a fresh cross-compiler works. |
| 2966 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2967 | # <limits.h> exists even on freestanding compilers. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2968 | # 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] | 2969 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2970 | cat >conftest.$ac_ext <<_ACEOF |
| 2971 | /* confdefs.h. */ |
| 2972 | _ACEOF |
| 2973 | cat confdefs.h >>conftest.$ac_ext |
| 2974 | cat >>conftest.$ac_ext <<_ACEOF |
| 2975 | /* end confdefs.h. */ |
| 2976 | #ifdef __STDC__ |
| 2977 | # include <limits.h> |
| 2978 | #else |
| 2979 | # include <assert.h> |
| 2980 | #endif |
| 2981 | Syntax error |
| 2982 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2983 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2984 | case "(($ac_try" in |
| 2985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2986 | *) ac_try_echo=$ac_try;; |
| 2987 | esac |
| 2988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2989 | $as_echo "$ac_try_echo") >&5 |
| 2990 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2991 | ac_status=$? |
| 2992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2993 | rm -f conftest.er1 |
| 2994 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2996 | (exit $ac_status); } >/dev/null && { |
| 2997 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2998 | test ! -s conftest.err |
| 2999 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3000 | : |
| 3001 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3002 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3004 | |
| 3005 | # Broken: fails on valid input. |
| 3006 | continue |
| 3007 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3008 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3009 | rm -f conftest.err conftest.$ac_ext |
| 3010 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3011 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3012 | # can be detected and how. |
| 3013 | cat >conftest.$ac_ext <<_ACEOF |
| 3014 | /* confdefs.h. */ |
| 3015 | _ACEOF |
| 3016 | cat confdefs.h >>conftest.$ac_ext |
| 3017 | cat >>conftest.$ac_ext <<_ACEOF |
| 3018 | /* end confdefs.h. */ |
| 3019 | #include <ac_nonexistent.h> |
| 3020 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3021 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3022 | case "(($ac_try" in |
| 3023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3024 | *) ac_try_echo=$ac_try;; |
| 3025 | esac |
| 3026 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3027 | $as_echo "$ac_try_echo") >&5 |
| 3028 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3029 | ac_status=$? |
| 3030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3031 | rm -f conftest.er1 |
| 3032 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3033 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3034 | (exit $ac_status); } >/dev/null && { |
| 3035 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3036 | test ! -s conftest.err |
| 3037 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3038 | # Broken: success on invalid input. |
| 3039 | continue |
| 3040 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3041 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3043 | |
| 3044 | # Passes both tests. |
| 3045 | ac_preproc_ok=: |
| 3046 | break |
| 3047 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3048 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3049 | rm -f conftest.err conftest.$ac_ext |
| 3050 | |
| 3051 | done |
| 3052 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3053 | rm -f conftest.err conftest.$ac_ext |
| 3054 | if $ac_preproc_ok; then |
| 3055 | break |
| 3056 | fi |
| 3057 | |
| 3058 | done |
| 3059 | ac_cv_prog_CPP=$CPP |
| 3060 | |
| 3061 | fi |
| 3062 | CPP=$ac_cv_prog_CPP |
| 3063 | else |
| 3064 | ac_cv_prog_CPP=$CPP |
| 3065 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3066 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3067 | $as_echo "$CPP" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3068 | ac_preproc_ok=false |
| 3069 | for ac_c_preproc_warn_flag in '' yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3070 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3071 | # Use a header file that comes with gcc, so configuring glibc |
| 3072 | # with a fresh cross-compiler works. |
| 3073 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3074 | # <limits.h> exists even on freestanding compilers. |
| 3075 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3076 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3077 | cat >conftest.$ac_ext <<_ACEOF |
| 3078 | /* confdefs.h. */ |
| 3079 | _ACEOF |
| 3080 | cat confdefs.h >>conftest.$ac_ext |
| 3081 | cat >>conftest.$ac_ext <<_ACEOF |
| 3082 | /* end confdefs.h. */ |
| 3083 | #ifdef __STDC__ |
| 3084 | # include <limits.h> |
| 3085 | #else |
| 3086 | # include <assert.h> |
| 3087 | #endif |
| 3088 | Syntax error |
| 3089 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3090 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3091 | case "(($ac_try" in |
| 3092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3093 | *) ac_try_echo=$ac_try;; |
| 3094 | esac |
| 3095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3096 | $as_echo "$ac_try_echo") >&5 |
| 3097 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3098 | ac_status=$? |
| 3099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3100 | rm -f conftest.er1 |
| 3101 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3103 | (exit $ac_status); } >/dev/null && { |
| 3104 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3105 | test ! -s conftest.err |
| 3106 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3107 | : |
| 3108 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3109 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3111 | |
| 3112 | # Broken: fails on valid input. |
| 3113 | continue |
| 3114 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3115 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3116 | rm -f conftest.err conftest.$ac_ext |
| 3117 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3118 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3119 | # can be detected and how. |
| 3120 | cat >conftest.$ac_ext <<_ACEOF |
| 3121 | /* confdefs.h. */ |
| 3122 | _ACEOF |
| 3123 | cat confdefs.h >>conftest.$ac_ext |
| 3124 | cat >>conftest.$ac_ext <<_ACEOF |
| 3125 | /* end confdefs.h. */ |
| 3126 | #include <ac_nonexistent.h> |
| 3127 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3128 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3129 | case "(($ac_try" in |
| 3130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3131 | *) ac_try_echo=$ac_try;; |
| 3132 | esac |
| 3133 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3134 | $as_echo "$ac_try_echo") >&5 |
| 3135 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3136 | ac_status=$? |
| 3137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3138 | rm -f conftest.er1 |
| 3139 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3140 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3141 | (exit $ac_status); } >/dev/null && { |
| 3142 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3143 | test ! -s conftest.err |
| 3144 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3145 | # Broken: success on invalid input. |
| 3146 | continue |
| 3147 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3148 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3150 | |
| 3151 | # Passes both tests. |
| 3152 | ac_preproc_ok=: |
| 3153 | break |
| 3154 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3155 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3156 | rm -f conftest.err conftest.$ac_ext |
| 3157 | |
| 3158 | done |
| 3159 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3160 | rm -f conftest.err conftest.$ac_ext |
| 3161 | if $ac_preproc_ok; then |
| 3162 | : |
| 3163 | else |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 3164 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3165 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3166 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3167 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3168 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3169 | See \`config.log' for more details." >&2;} |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 3170 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3171 | fi |
| 3172 | |
| 3173 | ac_ext=c |
| 3174 | ac_cpp='$CPP $CPPFLAGS' |
| 3175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3178 | |
| 3179 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3180 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3181 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3182 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3183 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3184 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3185 | if test -z "$GREP"; then |
| 3186 | ac_path_GREP_found=false |
| 3187 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3189 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3190 | do |
| 3191 | IFS=$as_save_IFS |
| 3192 | test -z "$as_dir" && as_dir=. |
| 3193 | for ac_prog in grep ggrep; do |
| 3194 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3195 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3196 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3197 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3198 | # Check for GNU $ac_path_GREP |
| 3199 | case `"$ac_path_GREP" --version 2>&1` in |
| 3200 | *GNU*) |
| 3201 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3202 | *) |
| 3203 | ac_count=0 |
| 3204 | $as_echo_n 0123456789 >"conftest.in" |
| 3205 | while : |
| 3206 | do |
| 3207 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3208 | mv "conftest.tmp" "conftest.in" |
| 3209 | cp "conftest.in" "conftest.nl" |
| 3210 | $as_echo 'GREP' >> "conftest.nl" |
| 3211 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3212 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3213 | ac_count=`expr $ac_count + 1` |
| 3214 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3215 | # Best one so far, save it but keep looking for a better one |
| 3216 | ac_cv_path_GREP="$ac_path_GREP" |
| 3217 | ac_path_GREP_max=$ac_count |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3218 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3219 | # 10*(2^10) chars as input seems more than enough |
| 3220 | test $ac_count -gt 10 && break |
| 3221 | done |
| 3222 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3223 | esac |
| 3224 | |
| 3225 | $ac_path_GREP_found && break 3 |
| 3226 | done |
| 3227 | done |
| 3228 | done |
| 3229 | IFS=$as_save_IFS |
| 3230 | if test -z "$ac_cv_path_GREP"; then |
| 3231 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3232 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3233 | { (exit 1); exit 1; }; } |
| 3234 | fi |
| 3235 | else |
| 3236 | ac_cv_path_GREP=$GREP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3237 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3238 | |
| 3239 | fi |
| 3240 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3241 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3242 | GREP="$ac_cv_path_GREP" |
| 3243 | |
| 3244 | |
| 3245 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3246 | $as_echo_n "checking for egrep... " >&6; } |
| 3247 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3248 | $as_echo_n "(cached) " >&6 |
| 3249 | else |
| 3250 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3251 | then ac_cv_path_EGREP="$GREP -E" |
| 3252 | else |
| 3253 | if test -z "$EGREP"; then |
| 3254 | ac_path_EGREP_found=false |
| 3255 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3257 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3258 | do |
| 3259 | IFS=$as_save_IFS |
| 3260 | test -z "$as_dir" && as_dir=. |
| 3261 | for ac_prog in egrep; do |
| 3262 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3263 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3264 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3265 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3266 | # Check for GNU $ac_path_EGREP |
| 3267 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3268 | *GNU*) |
| 3269 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3270 | *) |
| 3271 | ac_count=0 |
| 3272 | $as_echo_n 0123456789 >"conftest.in" |
| 3273 | while : |
| 3274 | do |
| 3275 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3276 | mv "conftest.tmp" "conftest.in" |
| 3277 | cp "conftest.in" "conftest.nl" |
| 3278 | $as_echo 'EGREP' >> "conftest.nl" |
| 3279 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3280 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3281 | ac_count=`expr $ac_count + 1` |
| 3282 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3283 | # Best one so far, save it but keep looking for a better one |
| 3284 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3285 | ac_path_EGREP_max=$ac_count |
| 3286 | fi |
| 3287 | # 10*(2^10) chars as input seems more than enough |
| 3288 | test $ac_count -gt 10 && break |
| 3289 | done |
| 3290 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3291 | esac |
| 3292 | |
| 3293 | $ac_path_EGREP_found && break 3 |
| 3294 | done |
| 3295 | done |
| 3296 | done |
| 3297 | IFS=$as_save_IFS |
| 3298 | if test -z "$ac_cv_path_EGREP"; then |
| 3299 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3300 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3301 | { (exit 1); exit 1; }; } |
| 3302 | fi |
| 3303 | else |
| 3304 | ac_cv_path_EGREP=$EGREP |
| 3305 | fi |
| 3306 | |
| 3307 | fi |
| 3308 | fi |
| 3309 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3310 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3311 | EGREP="$ac_cv_path_EGREP" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3312 | |
| 3313 | |
| 3314 | cat >conftest.$ac_ext <<_ACEOF |
| 3315 | /* confdefs.h. */ |
| 3316 | _ACEOF |
| 3317 | cat confdefs.h >>conftest.$ac_ext |
| 3318 | cat >>conftest.$ac_ext <<_ACEOF |
| 3319 | /* end confdefs.h. */ |
| 3320 | |
| 3321 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3322 | rm -f conftest* |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3323 | { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 3324 | $as_echo_n "checking for library containing strerror... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3325 | if test "${ac_cv_search_strerror+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3326 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3327 | else |
| 3328 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3329 | cat >conftest.$ac_ext <<_ACEOF |
| 3330 | /* confdefs.h. */ |
| 3331 | _ACEOF |
| 3332 | cat confdefs.h >>conftest.$ac_ext |
| 3333 | cat >>conftest.$ac_ext <<_ACEOF |
| 3334 | /* end confdefs.h. */ |
| 3335 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3336 | /* Override any GCC internal prototype to avoid an error. |
| 3337 | Use char because int might match the return type of a GCC |
| 3338 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3339 | #ifdef __cplusplus |
| 3340 | extern "C" |
| 3341 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3342 | char strerror (); |
| 3343 | int |
| 3344 | main () |
| 3345 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3346 | return strerror (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3347 | ; |
| 3348 | return 0; |
| 3349 | } |
| 3350 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3351 | for ac_lib in '' cposix; do |
| 3352 | if test -z "$ac_lib"; then |
| 3353 | ac_res="none required" |
| 3354 | else |
| 3355 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3356 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3357 | fi |
| 3358 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3359 | if { (ac_try="$ac_link" |
| 3360 | case "(($ac_try" in |
| 3361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3362 | *) ac_try_echo=$ac_try;; |
| 3363 | esac |
| 3364 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3365 | $as_echo "$ac_try_echo") >&5 |
| 3366 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3367 | ac_status=$? |
| 3368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3369 | rm -f conftest.er1 |
| 3370 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3372 | (exit $ac_status); } && { |
| 3373 | test -z "$ac_c_werror_flag" || |
| 3374 | test ! -s conftest.err |
| 3375 | } && test -s conftest$ac_exeext && { |
| 3376 | test "$cross_compiling" = yes || |
| 3377 | $as_test_x conftest$ac_exeext |
| 3378 | }; then |
| 3379 | ac_cv_search_strerror=$ac_res |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3380 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3381 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3383 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3384 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3385 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3386 | |
| 3387 | rm -rf conftest.dSYM |
| 3388 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3389 | conftest$ac_exeext |
| 3390 | if test "${ac_cv_search_strerror+set}" = set; then |
| 3391 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3392 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3393 | done |
| 3394 | if test "${ac_cv_search_strerror+set}" = set; then |
| 3395 | : |
| 3396 | else |
| 3397 | ac_cv_search_strerror=no |
| 3398 | fi |
| 3399 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3400 | LIBS=$ac_func_search_save_LIBS |
| 3401 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3402 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 3403 | $as_echo "$ac_cv_search_strerror" >&6; } |
| 3404 | ac_res=$ac_cv_search_strerror |
| 3405 | if test "$ac_res" != no; then |
| 3406 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3407 | |
| 3408 | fi |
| 3409 | for ac_prog in gawk mawk nawk awk |
| 3410 | do |
| 3411 | # 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] | 3412 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3413 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3414 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3415 | if test "${ac_cv_prog_AWK+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3416 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3417 | else |
| 3418 | if test -n "$AWK"; then |
| 3419 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3420 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3422 | for as_dir in $PATH |
| 3423 | do |
| 3424 | IFS=$as_save_IFS |
| 3425 | test -z "$as_dir" && as_dir=. |
| 3426 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3427 | 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] | 3428 | ac_cv_prog_AWK="$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3429 | $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] | 3430 | break 2 |
| 3431 | fi |
| 3432 | done |
| 3433 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3434 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3435 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3436 | fi |
| 3437 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3438 | AWK=$ac_cv_prog_AWK |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3439 | if test -n "$AWK"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3440 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
| 3441 | $as_echo "$AWK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3442 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3443 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3444 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3445 | fi |
| 3446 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3447 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3448 | test -n "$AWK" && break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3449 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3450 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3451 | # Extract the first word of "strip", so it can be a program name with args. |
| 3452 | set dummy strip; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3453 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3454 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3455 | if test "${ac_cv_prog_STRIP+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3456 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3457 | else |
| 3458 | if test -n "$STRIP"; then |
| 3459 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3460 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3462 | for as_dir in $PATH |
| 3463 | do |
| 3464 | IFS=$as_save_IFS |
| 3465 | test -z "$as_dir" && as_dir=. |
| 3466 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3467 | 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] | 3468 | ac_cv_prog_STRIP="strip" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3469 | $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] | 3470 | break 2 |
| 3471 | fi |
| 3472 | done |
| 3473 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3474 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3475 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3476 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 3477 | fi |
| 3478 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3479 | STRIP=$ac_cv_prog_STRIP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3480 | if test -n "$STRIP"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3481 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 3482 | $as_echo "$STRIP" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3483 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3484 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3485 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3486 | fi |
| 3487 | |
| 3488 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3489 | |
| 3490 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3491 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3492 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3493 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3494 | if test "${ac_cv_header_stdc+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3495 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3496 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3497 | cat >conftest.$ac_ext <<_ACEOF |
| 3498 | /* confdefs.h. */ |
| 3499 | _ACEOF |
| 3500 | cat confdefs.h >>conftest.$ac_ext |
| 3501 | cat >>conftest.$ac_ext <<_ACEOF |
| 3502 | /* end confdefs.h. */ |
| 3503 | #include <stdlib.h> |
| 3504 | #include <stdarg.h> |
| 3505 | #include <string.h> |
| 3506 | #include <float.h> |
| 3507 | |
| 3508 | int |
| 3509 | main () |
| 3510 | { |
| 3511 | |
| 3512 | ; |
| 3513 | return 0; |
| 3514 | } |
| 3515 | _ACEOF |
| 3516 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3517 | if { (ac_try="$ac_compile" |
| 3518 | case "(($ac_try" in |
| 3519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3520 | *) ac_try_echo=$ac_try;; |
| 3521 | esac |
| 3522 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3523 | $as_echo "$ac_try_echo") >&5 |
| 3524 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3525 | ac_status=$? |
| 3526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3527 | rm -f conftest.er1 |
| 3528 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3530 | (exit $ac_status); } && { |
| 3531 | test -z "$ac_c_werror_flag" || |
| 3532 | test ! -s conftest.err |
| 3533 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3534 | ac_cv_header_stdc=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3535 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3536 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3538 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3539 | ac_cv_header_stdc=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3540 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3541 | |
| 3542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3543 | |
| 3544 | if test $ac_cv_header_stdc = yes; then |
| 3545 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3546 | cat >conftest.$ac_ext <<_ACEOF |
| 3547 | /* confdefs.h. */ |
| 3548 | _ACEOF |
| 3549 | cat confdefs.h >>conftest.$ac_ext |
| 3550 | cat >>conftest.$ac_ext <<_ACEOF |
| 3551 | /* end confdefs.h. */ |
| 3552 | #include <string.h> |
| 3553 | |
| 3554 | _ACEOF |
| 3555 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3556 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3557 | : |
| 3558 | else |
| 3559 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3560 | fi |
| 3561 | rm -f conftest* |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3562 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3563 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3564 | |
| 3565 | if test $ac_cv_header_stdc = yes; then |
| 3566 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3567 | cat >conftest.$ac_ext <<_ACEOF |
| 3568 | /* confdefs.h. */ |
| 3569 | _ACEOF |
| 3570 | cat confdefs.h >>conftest.$ac_ext |
| 3571 | cat >>conftest.$ac_ext <<_ACEOF |
| 3572 | /* end confdefs.h. */ |
| 3573 | #include <stdlib.h> |
| 3574 | |
| 3575 | _ACEOF |
| 3576 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3577 | $EGREP "free" >/dev/null 2>&1; then |
| 3578 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3579 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3580 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3581 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3582 | rm -f conftest* |
| 3583 | |
| 3584 | fi |
| 3585 | |
| 3586 | if test $ac_cv_header_stdc = yes; then |
| 3587 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3588 | if test "$cross_compiling" = yes; then |
| 3589 | : |
| 3590 | else |
| 3591 | cat >conftest.$ac_ext <<_ACEOF |
| 3592 | /* confdefs.h. */ |
| 3593 | _ACEOF |
| 3594 | cat confdefs.h >>conftest.$ac_ext |
| 3595 | cat >>conftest.$ac_ext <<_ACEOF |
| 3596 | /* end confdefs.h. */ |
| 3597 | #include <ctype.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3598 | #include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3599 | #if ((' ' & 0x0FF) == 0x020) |
| 3600 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3601 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3602 | #else |
| 3603 | # define ISLOWER(c) \ |
| 3604 | (('a' <= (c) && (c) <= 'i') \ |
| 3605 | || ('j' <= (c) && (c) <= 'r') \ |
| 3606 | || ('s' <= (c) && (c) <= 'z')) |
| 3607 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3608 | #endif |
| 3609 | |
| 3610 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3611 | int |
| 3612 | main () |
| 3613 | { |
| 3614 | int i; |
| 3615 | for (i = 0; i < 256; i++) |
| 3616 | if (XOR (islower (i), ISLOWER (i)) |
| 3617 | || toupper (i) != TOUPPER (i)) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3618 | return 2; |
| 3619 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3620 | } |
| 3621 | _ACEOF |
| 3622 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3623 | if { (ac_try="$ac_link" |
| 3624 | case "(($ac_try" in |
| 3625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3626 | *) ac_try_echo=$ac_try;; |
| 3627 | esac |
| 3628 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3629 | $as_echo "$ac_try_echo") >&5 |
| 3630 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3631 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3632 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3633 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3634 | { (case "(($ac_try" in |
| 3635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3636 | *) ac_try_echo=$ac_try;; |
| 3637 | esac |
| 3638 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3639 | $as_echo "$ac_try_echo") >&5 |
| 3640 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3641 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3642 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3643 | (exit $ac_status); }; }; then |
| 3644 | : |
| 3645 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3646 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 3647 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3649 | |
| 3650 | ( exit $ac_status ) |
| 3651 | ac_cv_header_stdc=no |
| 3652 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3653 | rm -rf conftest.dSYM |
| 3654 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3655 | fi |
| 3656 | |
| 3657 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3658 | fi |
| 3659 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3660 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3661 | $as_echo "$ac_cv_header_stdc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3662 | if test $ac_cv_header_stdc = yes; then |
| 3663 | |
| 3664 | cat >>confdefs.h <<\_ACEOF |
| 3665 | #define STDC_HEADERS 1 |
| 3666 | _ACEOF |
| 3667 | |
| 3668 | fi |
| 3669 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3670 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 3671 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 3672 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 3673 | $as_echo_n "(cached) " >&6 |
| 3674 | else |
| 3675 | cat >conftest.$ac_ext <<_ACEOF |
| 3676 | /* confdefs.h. */ |
| 3677 | _ACEOF |
| 3678 | cat confdefs.h >>conftest.$ac_ext |
| 3679 | cat >>conftest.$ac_ext <<_ACEOF |
| 3680 | /* end confdefs.h. */ |
| 3681 | #include <sys/types.h> |
| 3682 | #include <sys/wait.h> |
| 3683 | #ifndef WEXITSTATUS |
| 3684 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 3685 | #endif |
| 3686 | #ifndef WIFEXITED |
| 3687 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 3688 | #endif |
| 3689 | |
| 3690 | int |
| 3691 | main () |
| 3692 | { |
| 3693 | int s; |
| 3694 | wait (&s); |
| 3695 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 3696 | ; |
| 3697 | return 0; |
| 3698 | } |
| 3699 | _ACEOF |
| 3700 | rm -f conftest.$ac_objext |
| 3701 | if { (ac_try="$ac_compile" |
| 3702 | case "(($ac_try" in |
| 3703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3704 | *) ac_try_echo=$ac_try;; |
| 3705 | esac |
| 3706 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3707 | $as_echo "$ac_try_echo") >&5 |
| 3708 | (eval "$ac_compile") 2>conftest.er1 |
| 3709 | ac_status=$? |
| 3710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3711 | rm -f conftest.er1 |
| 3712 | cat conftest.err >&5 |
| 3713 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3714 | (exit $ac_status); } && { |
| 3715 | test -z "$ac_c_werror_flag" || |
| 3716 | test ! -s conftest.err |
| 3717 | } && test -s conftest.$ac_objext; then |
| 3718 | ac_cv_header_sys_wait_h=yes |
| 3719 | else |
| 3720 | $as_echo "$as_me: failed program was:" >&5 |
| 3721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3722 | |
| 3723 | ac_cv_header_sys_wait_h=no |
| 3724 | fi |
| 3725 | |
| 3726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3727 | fi |
| 3728 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 3729 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
| 3730 | if test $ac_cv_header_sys_wait_h = yes; then |
| 3731 | |
| 3732 | cat >>confdefs.h <<\_ACEOF |
| 3733 | #define HAVE_SYS_WAIT_H 1 |
| 3734 | _ACEOF |
| 3735 | |
| 3736 | fi |
| 3737 | |
| 3738 | |
| 3739 | if test -z "$CFLAGS"; then |
| 3740 | CFLAGS="-O" |
| 3741 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 3742 | fi |
| 3743 | if test "$GCC" = yes; then |
| 3744 | gccversion=`"$CC" -dumpversion` |
| 3745 | if test "x$gccversion" = "x"; then |
| 3746 | gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
| 3747 | fi |
| 3748 | if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then |
| 3749 | echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' |
| 3750 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 3751 | else |
| 3752 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 3753 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 3754 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 3755 | fi |
| 3756 | fi |
| 3757 | fi |
| 3758 | |
| 3759 | if test "$cross_compiling" = yes; then |
| 3760 | { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 |
| 3761 | $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } |
| 3762 | fi |
| 3763 | |
| 3764 | test "$GCC" = yes && CPP_MM=M; |
| 3765 | |
| 3766 | if test -f ./toolcheck; then |
| 3767 | { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
| 3768 | $as_echo "$as_me: checking for buggy tools..." >&6;} |
| 3769 | sh ./toolcheck 1>&6 |
| 3770 | fi |
| 3771 | |
| 3772 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 3773 | |
| 3774 | { $as_echo "$as_me:$LINENO: checking for BeOS" >&5 |
| 3775 | $as_echo_n "checking for BeOS... " >&6; } |
| 3776 | case `uname` in |
| 3777 | BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o |
| 3778 | BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3779 | $as_echo "yes" >&6; };; |
| 3780 | *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3781 | $as_echo "no" >&6; };; |
| 3782 | esac |
| 3783 | |
| 3784 | { $as_echo "$as_me:$LINENO: checking for QNX" >&5 |
| 3785 | $as_echo_n "checking for QNX... " >&6; } |
| 3786 | case `uname` in |
| 3787 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 3788 | test -z "$with_x" && with_x=no |
| 3789 | QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3790 | $as_echo "yes" >&6; };; |
| 3791 | *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3792 | $as_echo "no" >&6; };; |
| 3793 | esac |
| 3794 | |
| 3795 | { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
| 3796 | $as_echo_n "checking for Darwin (Mac OS X)... " >&6; } |
| 3797 | if test "`(uname) 2>/dev/null`" = Darwin; then |
| 3798 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3799 | $as_echo "yes" >&6; } |
| 3800 | |
| 3801 | { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
| 3802 | $as_echo_n "checking --disable-darwin argument... " >&6; } |
| 3803 | # Check whether --enable-darwin was given. |
| 3804 | if test "${enable_darwin+set}" = set; then |
| 3805 | enableval=$enable_darwin; |
| 3806 | else |
| 3807 | enable_darwin="yes" |
| 3808 | fi |
| 3809 | |
| 3810 | if test "$enable_darwin" = "yes"; then |
| 3811 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3812 | $as_echo "no" >&6; } |
| 3813 | { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
| 3814 | $as_echo_n "checking if Darwin files are there... " >&6; } |
| 3815 | if test -f os_macosx.c; then |
| 3816 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3817 | $as_echo "yes" >&6; } |
| 3818 | else |
| 3819 | { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
| 3820 | $as_echo "no, Darwin support disabled" >&6; } |
| 3821 | enable_darwin=no |
| 3822 | fi |
| 3823 | else |
| 3824 | { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
| 3825 | $as_echo "yes, Darwin support excluded" >&6; } |
| 3826 | fi |
| 3827 | |
| 3828 | { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5 |
| 3829 | $as_echo_n "checking --with-mac-arch argument... " >&6; } |
| 3830 | |
| 3831 | # Check whether --with-mac-arch was given. |
| 3832 | if test "${with_mac_arch+set}" = set; then |
| 3833 | withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5 |
| 3834 | $as_echo "$MACARCH" >&6; } |
| 3835 | else |
| 3836 | MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5 |
| 3837 | $as_echo "defaulting to $MACARCH" >&6; } |
| 3838 | fi |
| 3839 | |
| 3840 | |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 3841 | { $as_echo "$as_me:$LINENO: checking --with-developer-dir argument" >&5 |
| 3842 | $as_echo_n "checking --with-developer-dir argument... " >&6; } |
| 3843 | |
| 3844 | # Check whether --with-developer-dir was given. |
| 3845 | if test "${with_developer_dir+set}" = set; then |
| 3846 | withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5 |
| 3847 | $as_echo "$DEVELOPER_DIR" >&6; } |
| 3848 | else |
| 3849 | DEVELOPER_DIR=""; { $as_echo "$as_me:$LINENO: result: not present" >&5 |
| 3850 | $as_echo "not present" >&6; } |
| 3851 | fi |
| 3852 | |
| 3853 | |
| 3854 | if test "x$DEVELOPER_DIR" = "x"; then |
| 3855 | # Extract the first word of "xcode-select", so it can be a program name with args. |
| 3856 | set dummy xcode-select; ac_word=$2 |
| 3857 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3858 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3859 | if test "${ac_cv_path_XCODE_SELECT+set}" = set; then |
| 3860 | $as_echo_n "(cached) " >&6 |
| 3861 | else |
| 3862 | case $XCODE_SELECT in |
| 3863 | [\\/]* | ?:[\\/]*) |
| 3864 | ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. |
| 3865 | ;; |
| 3866 | *) |
| 3867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3868 | for as_dir in $PATH |
| 3869 | do |
| 3870 | IFS=$as_save_IFS |
| 3871 | test -z "$as_dir" && as_dir=. |
| 3872 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3874 | ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" |
| 3875 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3876 | break 2 |
| 3877 | fi |
| 3878 | done |
| 3879 | done |
| 3880 | IFS=$as_save_IFS |
| 3881 | |
| 3882 | ;; |
| 3883 | esac |
| 3884 | fi |
| 3885 | XCODE_SELECT=$ac_cv_path_XCODE_SELECT |
| 3886 | if test -n "$XCODE_SELECT"; then |
| 3887 | { $as_echo "$as_me:$LINENO: result: $XCODE_SELECT" >&5 |
| 3888 | $as_echo "$XCODE_SELECT" >&6; } |
| 3889 | else |
| 3890 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3891 | $as_echo "no" >&6; } |
| 3892 | fi |
| 3893 | |
| 3894 | |
| 3895 | if test "x$XCODE_SELECT" != "x"; then |
| 3896 | { $as_echo "$as_me:$LINENO: checking for developer dir using xcode-select" >&5 |
| 3897 | $as_echo_n "checking for developer dir using xcode-select... " >&6; } |
| 3898 | DEVELOPER_DIR=`$XCODE_SELECT -print-path` |
| 3899 | { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5 |
| 3900 | $as_echo "$DEVELOPER_DIR" >&6; } |
| 3901 | else |
| 3902 | DEVELOPER_DIR=/Developer |
| 3903 | fi |
| 3904 | fi |
| 3905 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3906 | if test "x$MACARCH" = "xboth"; then |
| 3907 | { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5 |
| 3908 | $as_echo_n "checking for 10.4 universal SDK... " >&6; } |
| 3909 | save_cppflags="$CPPFLAGS" |
| 3910 | save_cflags="$CFLAGS" |
| 3911 | save_ldflags="$LDFLAGS" |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 3912 | CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3913 | cat >conftest.$ac_ext <<_ACEOF |
| 3914 | /* confdefs.h. */ |
| 3915 | _ACEOF |
| 3916 | cat confdefs.h >>conftest.$ac_ext |
| 3917 | cat >>conftest.$ac_ext <<_ACEOF |
| 3918 | /* end confdefs.h. */ |
| 3919 | |
| 3920 | int |
| 3921 | main () |
| 3922 | { |
| 3923 | |
| 3924 | ; |
| 3925 | return 0; |
| 3926 | } |
| 3927 | _ACEOF |
| 3928 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3929 | if { (ac_try="$ac_link" |
| 3930 | case "(($ac_try" in |
| 3931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3932 | *) ac_try_echo=$ac_try;; |
| 3933 | esac |
| 3934 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3935 | $as_echo "$ac_try_echo") >&5 |
| 3936 | (eval "$ac_link") 2>conftest.er1 |
| 3937 | ac_status=$? |
| 3938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3939 | rm -f conftest.er1 |
| 3940 | cat conftest.err >&5 |
| 3941 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3942 | (exit $ac_status); } && { |
| 3943 | test -z "$ac_c_werror_flag" || |
| 3944 | test ! -s conftest.err |
| 3945 | } && test -s conftest$ac_exeext && { |
| 3946 | test "$cross_compiling" = yes || |
| 3947 | $as_test_x conftest$ac_exeext |
| 3948 | }; then |
| 3949 | { $as_echo "$as_me:$LINENO: result: found" >&5 |
| 3950 | $as_echo "found" >&6; } |
| 3951 | else |
| 3952 | $as_echo "$as_me: failed program was:" >&5 |
| 3953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3954 | |
| 3955 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 3956 | $as_echo "not found" >&6; } |
| 3957 | CFLAGS="$save_cflags" |
| 3958 | { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5 |
| 3959 | $as_echo_n "checking if Intel architecture is supported... " >&6; } |
| 3960 | CPPFLAGS="$CPPFLAGS -arch i386" |
| 3961 | LDFLAGS="$save_ldflags -arch i386" |
| 3962 | cat >conftest.$ac_ext <<_ACEOF |
| 3963 | /* confdefs.h. */ |
| 3964 | _ACEOF |
| 3965 | cat confdefs.h >>conftest.$ac_ext |
| 3966 | cat >>conftest.$ac_ext <<_ACEOF |
| 3967 | /* end confdefs.h. */ |
| 3968 | |
| 3969 | int |
| 3970 | main () |
| 3971 | { |
| 3972 | |
| 3973 | ; |
| 3974 | return 0; |
| 3975 | } |
| 3976 | _ACEOF |
| 3977 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3978 | if { (ac_try="$ac_link" |
| 3979 | case "(($ac_try" in |
| 3980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3981 | *) ac_try_echo=$ac_try;; |
| 3982 | esac |
| 3983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3984 | $as_echo "$ac_try_echo") >&5 |
| 3985 | (eval "$ac_link") 2>conftest.er1 |
| 3986 | ac_status=$? |
| 3987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3988 | rm -f conftest.er1 |
| 3989 | cat conftest.err >&5 |
| 3990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3991 | (exit $ac_status); } && { |
| 3992 | test -z "$ac_c_werror_flag" || |
| 3993 | test ! -s conftest.err |
| 3994 | } && test -s conftest$ac_exeext && { |
| 3995 | test "$cross_compiling" = yes || |
| 3996 | $as_test_x conftest$ac_exeext |
| 3997 | }; then |
| 3998 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3999 | $as_echo "yes" >&6; }; MACARCH="intel" |
| 4000 | else |
| 4001 | $as_echo "$as_me: failed program was:" >&5 |
| 4002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4003 | |
| 4004 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4005 | $as_echo "no" >&6; } |
| 4006 | MACARCH="ppc" |
| 4007 | CPPFLAGS="$save_cppflags -arch ppc" |
| 4008 | LDFLAGS="$save_ldflags -arch ppc" |
| 4009 | fi |
| 4010 | |
| 4011 | rm -rf conftest.dSYM |
| 4012 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4013 | conftest$ac_exeext conftest.$ac_ext |
| 4014 | fi |
| 4015 | |
| 4016 | rm -rf conftest.dSYM |
| 4017 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4018 | conftest$ac_exeext conftest.$ac_ext |
| 4019 | elif test "x$MACARCH" = "xintel"; then |
| 4020 | CPPFLAGS="$CPPFLAGS -arch intel" |
| 4021 | LDFLAGS="$LDFLAGS -arch intel" |
| 4022 | elif test "x$MACARCH" = "xppc"; then |
| 4023 | CPPFLAGS="$CPPFLAGS -arch ppc" |
| 4024 | LDFLAGS="$LDFLAGS -arch ppc" |
| 4025 | fi |
| 4026 | |
| 4027 | if test "$enable_darwin" = "yes"; then |
| 4028 | MACOSX=yes |
Bram Moolenaar | 3a02540 | 2008-07-24 15:20:50 +0000 | [diff] [blame] | 4029 | OS_EXTRA_SRC="os_macosx.c os_mac_conv.c"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4030 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
| 4031 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" |
| 4032 | if test "x$MACARCH" = "xboth"; then |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 4033 | CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4034 | else |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 4035 | CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4036 | fi |
| 4037 | |
| 4038 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4039 | |
| 4040 | |
| 4041 | |
| 4042 | |
| 4043 | |
| 4044 | |
| 4045 | |
| 4046 | |
| 4047 | |
| 4048 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4049 | inttypes.h stdint.h unistd.h |
| 4050 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4051 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4052 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4053 | $as_echo_n "checking for $ac_header... " >&6; } |
| 4054 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4055 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4056 | else |
| 4057 | cat >conftest.$ac_ext <<_ACEOF |
| 4058 | /* confdefs.h. */ |
| 4059 | _ACEOF |
| 4060 | cat confdefs.h >>conftest.$ac_ext |
| 4061 | cat >>conftest.$ac_ext <<_ACEOF |
| 4062 | /* end confdefs.h. */ |
| 4063 | $ac_includes_default |
| 4064 | |
| 4065 | #include <$ac_header> |
| 4066 | _ACEOF |
| 4067 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4068 | if { (ac_try="$ac_compile" |
| 4069 | case "(($ac_try" in |
| 4070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4071 | *) ac_try_echo=$ac_try;; |
| 4072 | esac |
| 4073 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4074 | $as_echo "$ac_try_echo") >&5 |
| 4075 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4076 | ac_status=$? |
| 4077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4078 | rm -f conftest.er1 |
| 4079 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4080 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4081 | (exit $ac_status); } && { |
| 4082 | test -z "$ac_c_werror_flag" || |
| 4083 | test ! -s conftest.err |
| 4084 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4085 | eval "$as_ac_Header=yes" |
| 4086 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4087 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4089 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4090 | eval "$as_ac_Header=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4091 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4092 | |
| 4093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4094 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4095 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 4096 | $as_echo "$as_val"'` |
| 4097 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4098 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 4099 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 4100 | $as_echo "$as_val"'` |
| 4101 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4102 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4103 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4104 | _ACEOF |
| 4105 | |
| 4106 | fi |
| 4107 | |
| 4108 | done |
| 4109 | |
| 4110 | |
| 4111 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4112 | { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 4113 | $as_echo_n "checking for Carbon/Carbon.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4114 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4115 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4116 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4117 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 4118 | $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4119 | else |
| 4120 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4121 | { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 4122 | $as_echo_n "checking Carbon/Carbon.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4123 | cat >conftest.$ac_ext <<_ACEOF |
| 4124 | /* confdefs.h. */ |
| 4125 | _ACEOF |
| 4126 | cat confdefs.h >>conftest.$ac_ext |
| 4127 | cat >>conftest.$ac_ext <<_ACEOF |
| 4128 | /* end confdefs.h. */ |
| 4129 | $ac_includes_default |
| 4130 | #include <Carbon/Carbon.h> |
| 4131 | _ACEOF |
| 4132 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4133 | if { (ac_try="$ac_compile" |
| 4134 | case "(($ac_try" in |
| 4135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4136 | *) ac_try_echo=$ac_try;; |
| 4137 | esac |
| 4138 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4139 | $as_echo "$ac_try_echo") >&5 |
| 4140 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4141 | ac_status=$? |
| 4142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4143 | rm -f conftest.er1 |
| 4144 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4145 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4146 | (exit $ac_status); } && { |
| 4147 | test -z "$ac_c_werror_flag" || |
| 4148 | test ! -s conftest.err |
| 4149 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4150 | ac_header_compiler=yes |
| 4151 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4152 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4154 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4155 | ac_header_compiler=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4156 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4157 | |
| 4158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4159 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4160 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4161 | |
| 4162 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4163 | { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 4164 | $as_echo_n "checking Carbon/Carbon.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4165 | cat >conftest.$ac_ext <<_ACEOF |
| 4166 | /* confdefs.h. */ |
| 4167 | _ACEOF |
| 4168 | cat confdefs.h >>conftest.$ac_ext |
| 4169 | cat >>conftest.$ac_ext <<_ACEOF |
| 4170 | /* end confdefs.h. */ |
| 4171 | #include <Carbon/Carbon.h> |
| 4172 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4173 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4174 | case "(($ac_try" in |
| 4175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4176 | *) ac_try_echo=$ac_try;; |
| 4177 | esac |
| 4178 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4179 | $as_echo "$ac_try_echo") >&5 |
| 4180 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4181 | ac_status=$? |
| 4182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4183 | rm -f conftest.er1 |
| 4184 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4185 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4186 | (exit $ac_status); } >/dev/null && { |
| 4187 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4188 | test ! -s conftest.err |
| 4189 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4190 | ac_header_preproc=yes |
| 4191 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4192 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4194 | |
| 4195 | ac_header_preproc=no |
| 4196 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4197 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4198 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4199 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4200 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4201 | |
| 4202 | # So? What about this header? |
| 4203 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4204 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4205 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4206 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4207 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 4208 | $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] | 4209 | ac_header_preproc=yes |
| 4210 | ;; |
| 4211 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4212 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 4213 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 4214 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 4215 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 4216 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 4217 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 4218 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4219 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4220 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 4221 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 4222 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 4223 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 4224 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4225 | ;; |
| 4226 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4227 | { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 4228 | $as_echo_n "checking for Carbon/Carbon.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4229 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4230 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4231 | else |
| 4232 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 4233 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4234 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 4235 | $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4236 | |
| 4237 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 4238 | if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4239 | CARBON=yes |
| 4240 | fi |
| 4241 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4242 | |
| 4243 | if test "x$CARBON" = "xyes"; then |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 4244 | 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] | 4245 | with_x=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4246 | fi |
| 4247 | fi |
| 4248 | fi |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 4249 | |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 4250 | if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 4251 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` |
| 4252 | fi |
| 4253 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4254 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4255 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4256 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4257 | fi |
| 4258 | |
| 4259 | |
| 4260 | |
| 4261 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4262 | if test "$cross_compiling" = no; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4263 | { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5 |
| 4264 | $as_echo_n "checking --with-local-dir argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4265 | have_local_include='' |
| 4266 | have_local_lib='' |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4267 | |
| 4268 | # Check whether --with-local-dir was given. |
| 4269 | if test "${with_local_dir+set}" = set; then |
| 4270 | withval=$with_local_dir; |
| 4271 | local_dir="$withval" |
| 4272 | case "$withval" in |
| 4273 | */*) ;; |
| 4274 | no) |
| 4275 | # avoid adding local dir to LDFLAGS and CPPFLAGS |
| 4276 | have_local_dir=yes |
| 4277 | have_local_lib=yes |
| 4278 | ;; |
| 4279 | *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5 |
| 4280 | $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;} |
| 4281 | { (exit 1); exit 1; }; } ;; |
| 4282 | esac |
| 4283 | { $as_echo "$as_me:$LINENO: result: $local_dir" >&5 |
| 4284 | $as_echo "$local_dir" >&6; } |
| 4285 | |
| 4286 | else |
| 4287 | |
| 4288 | local_dir=/usr/local |
| 4289 | { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5 |
| 4290 | $as_echo "Defaulting to $local_dir" >&6; } |
| 4291 | |
| 4292 | fi |
| 4293 | |
| 4294 | if test "$GCC" = yes -a "$local_dir" != no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4295 | echo 'void f(){}' > conftest.c |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4296 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"` |
| 4297 | 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] | 4298 | rm -f conftest.c conftest.o |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4299 | fi |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4300 | if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then |
| 4301 | 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] | 4302 | if test "$tt" = "$LDFLAGS"; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4303 | LDFLAGS="$LDFLAGS -L${local_dir}/lib" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4304 | fi |
| 4305 | fi |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4306 | if test -z "$have_local_include" -a -d "${local_dir}/include"; then |
| 4307 | 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] | 4308 | if test "$tt" = "$CPPFLAGS"; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4309 | CPPFLAGS="$CPPFLAGS -I${local_dir}/include" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4310 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4311 | fi |
| 4312 | fi |
| 4313 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4314 | { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 |
| 4315 | $as_echo_n "checking --with-vim-name argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4316 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4317 | # Check whether --with-vim-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4318 | if test "${with_vim_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4319 | withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5 |
| 4320 | $as_echo "$VIMNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4321 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4322 | VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 |
| 4323 | $as_echo "Defaulting to $VIMNAME" >&6; } |
| 4324 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4325 | |
| 4326 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4327 | { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 |
| 4328 | $as_echo_n "checking --with-ex-name argument... " >&6; } |
| 4329 | |
| 4330 | # Check whether --with-ex-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4331 | if test "${with_ex_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4332 | withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5 |
| 4333 | $as_echo "$EXNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4334 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4335 | EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5 |
| 4336 | $as_echo "Defaulting to ex" >&6; } |
| 4337 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4338 | |
| 4339 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4340 | { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5 |
| 4341 | $as_echo_n "checking --with-view-name argument... " >&6; } |
| 4342 | |
| 4343 | # Check whether --with-view-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4344 | if test "${with_view_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4345 | withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5 |
| 4346 | $as_echo "$VIEWNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4347 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4348 | VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5 |
| 4349 | $as_echo "Defaulting to view" >&6; } |
| 4350 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4351 | |
| 4352 | |
| 4353 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4354 | { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 |
| 4355 | $as_echo_n "checking --with-global-runtime argument... " >&6; } |
| 4356 | |
| 4357 | # Check whether --with-global-runtime was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4358 | if test "${with_global_runtime+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4359 | withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4360 | $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4361 | #define RUNTIME_GLOBAL "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4362 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4363 | |
| 4364 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4365 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4366 | $as_echo "no" >&6; } |
| 4367 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4368 | |
| 4369 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4370 | { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 |
| 4371 | $as_echo_n "checking --with-modified-by argument... " >&6; } |
| 4372 | |
| 4373 | # Check whether --with-modified-by was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4374 | if test "${with_modified_by+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4375 | withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4376 | $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4377 | #define MODIFIED_BY "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4378 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4379 | |
| 4380 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4381 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4382 | $as_echo "no" >&6; } |
| 4383 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4384 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4385 | |
| 4386 | { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 |
| 4387 | $as_echo_n "checking if character set is EBCDIC... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4388 | cat >conftest.$ac_ext <<_ACEOF |
| 4389 | /* confdefs.h. */ |
| 4390 | _ACEOF |
| 4391 | cat confdefs.h >>conftest.$ac_ext |
| 4392 | cat >>conftest.$ac_ext <<_ACEOF |
| 4393 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4394 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4395 | int |
| 4396 | main () |
| 4397 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4398 | /* TryCompile function for CharSet. |
| 4399 | Treat any failure as ASCII for compatibility with existing art. |
| 4400 | Use compile-time rather than run-time tests for cross-compiler |
| 4401 | tolerance. */ |
| 4402 | #if '0'!=240 |
| 4403 | make an error "Character set is not EBCDIC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4404 | #endif |
| 4405 | ; |
| 4406 | return 0; |
| 4407 | } |
| 4408 | _ACEOF |
| 4409 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4410 | if { (ac_try="$ac_compile" |
| 4411 | case "(($ac_try" in |
| 4412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4413 | *) ac_try_echo=$ac_try;; |
| 4414 | esac |
| 4415 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4416 | $as_echo "$ac_try_echo") >&5 |
| 4417 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4418 | ac_status=$? |
| 4419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4420 | rm -f conftest.er1 |
| 4421 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4422 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4423 | (exit $ac_status); } && { |
| 4424 | test -z "$ac_c_werror_flag" || |
| 4425 | test ! -s conftest.err |
| 4426 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4427 | # TryCompile action if true |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4428 | cf_cv_ebcdic=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4429 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4430 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4432 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4433 | # TryCompile action if false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4434 | cf_cv_ebcdic=no |
| 4435 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4436 | |
| 4437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4438 | # end of TryCompile ]) |
| 4439 | # end of CacheVal CvEbcdic |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4440 | { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 |
| 4441 | $as_echo "$cf_cv_ebcdic" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4442 | case "$cf_cv_ebcdic" in #(vi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4443 | yes) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4444 | #define EBCDIC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4445 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4446 | |
| 4447 | line_break='"\\n"' |
| 4448 | ;; |
| 4449 | *) line_break='"\\012"';; |
| 4450 | esac |
| 4451 | |
| 4452 | |
| 4453 | if test "$cf_cv_ebcdic" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4454 | { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 |
| 4455 | $as_echo_n "checking for OS/390 Unix... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4456 | case `uname` in |
| 4457 | OS/390) OS390Unix="yes"; |
| 4458 | if test "$CC" = "cc"; then |
| 4459 | ccm="$_CC_CCMODE" |
| 4460 | ccn="CC" |
| 4461 | else |
| 4462 | if test "$CC" = "c89"; then |
| 4463 | ccm="$_CC_C89MODE" |
| 4464 | ccn="C89" |
| 4465 | else |
| 4466 | ccm=1 |
| 4467 | fi |
| 4468 | fi |
| 4469 | if test "$ccm" != "1"; then |
| 4470 | echo "" |
| 4471 | echo "------------------------------------------" |
| 4472 | echo " On OS/390 Unix, the environment variable" |
| 4473 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 4474 | echo " Do:" |
| 4475 | echo " export _CC_${ccn}MODE=1" |
| 4476 | echo " and then call configure again." |
| 4477 | echo "------------------------------------------" |
| 4478 | exit 1 |
| 4479 | fi |
| 4480 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4481 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4482 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4483 | ;; |
| 4484 | *) OS390Unix="no"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4485 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4486 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4487 | ;; |
| 4488 | esac |
| 4489 | fi |
| 4490 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4491 | { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5 |
| 4492 | $as_echo_n "checking --disable-selinux argument... " >&6; } |
| 4493 | # Check whether --enable-selinux was given. |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4494 | if test "${enable_selinux+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4495 | enableval=$enable_selinux; |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4496 | else |
| 4497 | enable_selinux="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4498 | fi |
| 4499 | |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4500 | if test "$enable_selinux" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4501 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4502 | $as_echo "no" >&6; } |
| 4503 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
| 4504 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4505 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4506 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4507 | else |
| 4508 | ac_check_lib_save_LIBS=$LIBS |
| 4509 | LIBS="-lselinux $LIBS" |
| 4510 | cat >conftest.$ac_ext <<_ACEOF |
| 4511 | /* confdefs.h. */ |
| 4512 | _ACEOF |
| 4513 | cat confdefs.h >>conftest.$ac_ext |
| 4514 | cat >>conftest.$ac_ext <<_ACEOF |
| 4515 | /* end confdefs.h. */ |
| 4516 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4517 | /* Override any GCC internal prototype to avoid an error. |
| 4518 | Use char because int might match the return type of a GCC |
| 4519 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4520 | #ifdef __cplusplus |
| 4521 | extern "C" |
| 4522 | #endif |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4523 | char is_selinux_enabled (); |
| 4524 | int |
| 4525 | main () |
| 4526 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4527 | return is_selinux_enabled (); |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4528 | ; |
| 4529 | return 0; |
| 4530 | } |
| 4531 | _ACEOF |
| 4532 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4533 | if { (ac_try="$ac_link" |
| 4534 | case "(($ac_try" in |
| 4535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4536 | *) ac_try_echo=$ac_try;; |
| 4537 | esac |
| 4538 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4539 | $as_echo "$ac_try_echo") >&5 |
| 4540 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4541 | ac_status=$? |
| 4542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4543 | rm -f conftest.er1 |
| 4544 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4545 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4546 | (exit $ac_status); } && { |
| 4547 | test -z "$ac_c_werror_flag" || |
| 4548 | test ! -s conftest.err |
| 4549 | } && test -s conftest$ac_exeext && { |
| 4550 | test "$cross_compiling" = yes || |
| 4551 | $as_test_x conftest$ac_exeext |
| 4552 | }; then |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4553 | ac_cv_lib_selinux_is_selinux_enabled=yes |
| 4554 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4555 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4557 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4558 | ac_cv_lib_selinux_is_selinux_enabled=no |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4559 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4560 | |
| 4561 | rm -rf conftest.dSYM |
| 4562 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4563 | conftest$ac_exeext conftest.$ac_ext |
| 4564 | LIBS=$ac_check_lib_save_LIBS |
| 4565 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4566 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
| 4567 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 4568 | 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] | 4569 | LIBS="$LIBS -lselinux" |
| 4570 | cat >>confdefs.h <<\_ACEOF |
| 4571 | #define HAVE_SELINUX 1 |
| 4572 | _ACEOF |
| 4573 | |
| 4574 | fi |
| 4575 | |
| 4576 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4577 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4578 | $as_echo "yes" >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4579 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4580 | |
| 4581 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4582 | { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5 |
| 4583 | $as_echo_n "checking --with-features argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4584 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4585 | # Check whether --with-features was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4586 | if test "${with_features+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4587 | withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5 |
| 4588 | $as_echo "$features" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4589 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4590 | features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5 |
| 4591 | $as_echo "Defaulting to normal" >&6; } |
| 4592 | fi |
| 4593 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4594 | |
| 4595 | dovimdiff="" |
| 4596 | dogvimdiff="" |
| 4597 | case "$features" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4598 | tiny) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4599 | #define FEAT_TINY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4600 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4601 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4602 | small) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4603 | #define FEAT_SMALL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4604 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4605 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4606 | normal) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4607 | #define FEAT_NORMAL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4608 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4609 | dovimdiff="installvimdiff"; |
| 4610 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4611 | big) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4612 | #define FEAT_BIG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4613 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4614 | dovimdiff="installvimdiff"; |
| 4615 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4616 | huge) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4617 | #define FEAT_HUGE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4618 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4619 | dovimdiff="installvimdiff"; |
| 4620 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4621 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 |
| 4622 | $as_echo "Sorry, $features is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4623 | esac |
| 4624 | |
| 4625 | |
| 4626 | |
| 4627 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4628 | { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 |
| 4629 | $as_echo_n "checking --with-compiledby argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4630 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4631 | # Check whether --with-compiledby was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4632 | if test "${with_compiledby+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4633 | withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4634 | $as_echo "$withval" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4635 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4636 | compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4637 | $as_echo "no" >&6; } |
| 4638 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4639 | |
| 4640 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4641 | |
| 4642 | { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 |
| 4643 | $as_echo_n "checking --disable-xsmp argument... " >&6; } |
| 4644 | # Check whether --enable-xsmp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4645 | if test "${enable_xsmp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4646 | enableval=$enable_xsmp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4647 | else |
| 4648 | enable_xsmp="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4649 | fi |
| 4650 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4651 | |
| 4652 | if test "$enable_xsmp" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4653 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4654 | $as_echo "no" >&6; } |
| 4655 | { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 |
| 4656 | $as_echo_n "checking --disable-xsmp-interact argument... " >&6; } |
| 4657 | # Check whether --enable-xsmp-interact was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4658 | if test "${enable_xsmp_interact+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4659 | enableval=$enable_xsmp_interact; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4660 | else |
| 4661 | enable_xsmp_interact="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4662 | fi |
| 4663 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4664 | if test "$enable_xsmp_interact" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4665 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4666 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4667 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4668 | #define USE_XSMP_INTERACT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4669 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4670 | |
| 4671 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4672 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4673 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4674 | fi |
| 4675 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4676 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4677 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4678 | fi |
| 4679 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4680 | { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 |
| 4681 | $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } |
| 4682 | # Check whether --enable-mzschemeinterp was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4683 | if test "${enable_mzschemeinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4684 | enableval=$enable_mzschemeinterp; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4685 | else |
| 4686 | enable_mzschemeinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4687 | fi |
| 4688 | |
| 4689 | { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 |
| 4690 | $as_echo "$enable_mzschemeinterp" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4691 | |
| 4692 | if test "$enable_mzschemeinterp" = "yes"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4693 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4694 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4695 | { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5 |
| 4696 | $as_echo_n "checking --with-plthome argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4697 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4698 | # Check whether --with-plthome was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4699 | if test "${with_plthome+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4700 | withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5 |
| 4701 | $as_echo "$with_plthome" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4702 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4703 | with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 4704 | $as_echo "\"no\"" >&6; } |
| 4705 | fi |
| 4706 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4707 | |
| 4708 | if test "X$with_plthome" != "X"; then |
| 4709 | vi_cv_path_mzscheme_pfx="$with_plthome" |
| 4710 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4711 | { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 |
| 4712 | $as_echo_n "checking PLTHOME environment var... " >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4713 | if test "X$PLTHOME" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4714 | { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 |
| 4715 | $as_echo "\"$PLTHOME\"" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4716 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4717 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4718 | { $as_echo "$as_me:$LINENO: result: not set" >&5 |
| 4719 | $as_echo "not set" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4720 | # 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] | 4721 | set dummy mzscheme; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4722 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4723 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4724 | if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4725 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4726 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4727 | case $vi_cv_path_mzscheme in |
| 4728 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4729 | ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 4730 | ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4731 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4733 | for as_dir in $PATH |
| 4734 | do |
| 4735 | IFS=$as_save_IFS |
| 4736 | test -z "$as_dir" && as_dir=. |
| 4737 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4738 | 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] | 4739 | 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] | 4740 | $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] | 4741 | break 2 |
| 4742 | fi |
| 4743 | done |
| 4744 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4745 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4746 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4747 | ;; |
| 4748 | esac |
| 4749 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4750 | vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4751 | if test -n "$vi_cv_path_mzscheme"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4752 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 |
| 4753 | $as_echo "$vi_cv_path_mzscheme" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4754 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4755 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4756 | $as_echo "no" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4757 | fi |
| 4758 | |
| 4759 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4760 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4761 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4762 | lsout=`ls -l $vi_cv_path_mzscheme` |
| 4763 | if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 4764 | vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 4765 | fi |
| 4766 | fi |
| 4767 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4768 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4769 | { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
| 4770 | $as_echo_n "checking MzScheme install prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4771 | if test "${vi_cv_path_mzscheme_pfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4772 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4773 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4774 | echo "(display (simplify-path \ |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4775 | (build-path (call-with-values \ |
| 4776 | (lambda () (split-path (find-system-path (quote exec-file)))) \ |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4777 | (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm |
| 4778 | vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ |
| 4779 | sed -e 's+/$++'` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4780 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4781 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 4782 | $as_echo "$vi_cv_path_mzscheme_pfx" >&6; } |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4783 | rm -f mzdirs.scm |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4784 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4785 | fi |
| 4786 | fi |
| 4787 | |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4788 | SCHEME_INC= |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4789 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4790 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 4791 | $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] | 4792 | if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4793 | SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include |
| 4794 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4795 | $as_echo "yes" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4796 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4797 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4798 | $as_echo "no" >&6; } |
| 4799 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 |
| 4800 | $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] | 4801 | 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] | 4802 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4803 | $as_echo "yes" >&6; } |
| 4804 | SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4805 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4806 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4807 | $as_echo "no" >&6; } |
| 4808 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5 |
| 4809 | $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } |
| 4810 | if test -f /usr/include/plt/scheme.h; then |
| 4811 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4812 | $as_echo "yes" >&6; } |
| 4813 | SCHEME_INC=/usr/include/plt |
| 4814 | else |
| 4815 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4816 | $as_echo "no" >&6; } |
| 4817 | vi_cv_path_mzscheme_pfx= |
| 4818 | fi |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4819 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4820 | fi |
| 4821 | fi |
| 4822 | |
| 4823 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | f15f943 | 2007-06-28 11:07:21 +0000 | [diff] [blame] | 4824 | if test "x$MACOSX" = "xyes"; then |
| 4825 | MZSCHEME_LIBS="-framework PLT_MzScheme" |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4826 | elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then |
| 4827 | MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a" |
| 4828 | MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
Bram Moolenaar | f15f943 | 2007-06-28 11:07:21 +0000 | [diff] [blame] | 4829 | elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then |
Bram Moolenaar | e0d7b3c | 2007-05-12 14:23:41 +0000 | [diff] [blame] | 4830 | 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] | 4831 | else |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4832 | if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then |
| 4833 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m" |
| 4834 | MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
| 4835 | else |
| 4836 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc" |
| 4837 | fi |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 4838 | if test "$GCC" = yes; then |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4839 | 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] | 4840 | elif test "`(uname) 2>/dev/null`" = SunOS && |
| 4841 | uname -r | grep '^5' >/dev/null; then |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4842 | MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 4843 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4844 | fi |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4845 | if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then |
| 4846 | SCHEME_COLLECTS=lib/plt/ |
| 4847 | fi |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4848 | if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then |
| 4849 | MZSCHEME_EXTRA="mzscheme_base.c" |
| 4850 | MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" |
| 4851 | MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" |
| 4852 | fi |
| 4853 | MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4854 | -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4855 | MZSCHEME_SRC="if_mzsch.c" |
| 4856 | MZSCHEME_OBJ="objects/if_mzsch.o" |
| 4857 | MZSCHEME_PRO="if_mzsch.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4858 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4859 | #define FEAT_MZSCHEME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4860 | _ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4861 | |
| 4862 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4863 | |
| 4864 | |
| 4865 | |
| 4866 | |
| 4867 | |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 4868 | |
| 4869 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4870 | fi |
| 4871 | |
| 4872 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4873 | { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 |
| 4874 | $as_echo_n "checking --enable-perlinterp argument... " >&6; } |
| 4875 | # Check whether --enable-perlinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4876 | if test "${enable_perlinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4877 | enableval=$enable_perlinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4878 | else |
| 4879 | enable_perlinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4880 | fi |
| 4881 | |
| 4882 | { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 |
| 4883 | $as_echo "$enable_perlinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4884 | if test "$enable_perlinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4885 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4886 | # Extract the first word of "perl", so it can be a program name with args. |
| 4887 | set dummy perl; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4888 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4889 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4890 | if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4891 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4892 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4893 | case $vi_cv_path_perl in |
| 4894 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4895 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 4896 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4897 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4899 | for as_dir in $PATH |
| 4900 | do |
| 4901 | IFS=$as_save_IFS |
| 4902 | test -z "$as_dir" && as_dir=. |
| 4903 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4904 | 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] | 4905 | 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] | 4906 | $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] | 4907 | break 2 |
| 4908 | fi |
| 4909 | done |
| 4910 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4911 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4912 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4913 | ;; |
| 4914 | esac |
| 4915 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4916 | vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4917 | if test -n "$vi_cv_path_perl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4918 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 |
| 4919 | $as_echo "$vi_cv_path_perl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4920 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4921 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4922 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4923 | fi |
| 4924 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4925 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4926 | if test "X$vi_cv_path_perl" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4927 | { $as_echo "$as_me:$LINENO: checking Perl version" >&5 |
| 4928 | $as_echo_n "checking Perl version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4929 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 4930 | eval `$vi_cv_path_perl -V:usethreads` |
| 4931 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 4932 | badthreads=no |
| 4933 | else |
| 4934 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 4935 | eval `$vi_cv_path_perl -V:use5005threads` |
| 4936 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 4937 | badthreads=no |
| 4938 | else |
| 4939 | badthreads=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4940 | { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 4941 | $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] | 4942 | fi |
| 4943 | else |
| 4944 | badthreads=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4945 | { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 4946 | $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4947 | fi |
| 4948 | fi |
| 4949 | if test $badthreads = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4950 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 4951 | $as_echo "OK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4952 | eval `$vi_cv_path_perl -V:shrpenv` |
| 4953 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 4954 | shrpenv="" |
| 4955 | fi |
| 4956 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4957 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4958 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 4959 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 4960 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 4961 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 4962 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 4963 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 4964 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 4965 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4966 | { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 |
| 4967 | $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] | 4968 | cflags_save=$CFLAGS |
| 4969 | libs_save=$LIBS |
| 4970 | ldflags_save=$LDFLAGS |
| 4971 | CFLAGS="$CFLAGS $perlcppflags" |
| 4972 | LIBS="$LIBS $perllibs" |
| 4973 | LDFLAGS="$perlldflags $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4974 | cat >conftest.$ac_ext <<_ACEOF |
| 4975 | /* confdefs.h. */ |
| 4976 | _ACEOF |
| 4977 | cat confdefs.h >>conftest.$ac_ext |
| 4978 | cat >>conftest.$ac_ext <<_ACEOF |
| 4979 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4980 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4981 | int |
| 4982 | main () |
| 4983 | { |
| 4984 | |
| 4985 | ; |
| 4986 | return 0; |
| 4987 | } |
| 4988 | _ACEOF |
| 4989 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4990 | if { (ac_try="$ac_link" |
| 4991 | case "(($ac_try" in |
| 4992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4993 | *) ac_try_echo=$ac_try;; |
| 4994 | esac |
| 4995 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4996 | $as_echo "$ac_try_echo") >&5 |
| 4997 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4998 | ac_status=$? |
| 4999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5000 | rm -f conftest.er1 |
| 5001 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5002 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5003 | (exit $ac_status); } && { |
| 5004 | test -z "$ac_c_werror_flag" || |
| 5005 | test ! -s conftest.err |
| 5006 | } && test -s conftest$ac_exeext && { |
| 5007 | test "$cross_compiling" = yes || |
| 5008 | $as_test_x conftest$ac_exeext |
| 5009 | }; then |
| 5010 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5011 | $as_echo "yes" >&6; }; perl_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5012 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5013 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5015 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5016 | { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 |
| 5017 | $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5018 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5019 | |
| 5020 | rm -rf conftest.dSYM |
| 5021 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5022 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5023 | CFLAGS=$cflags_save |
| 5024 | LIBS=$libs_save |
| 5025 | LDFLAGS=$ldflags_save |
| 5026 | if test $perl_ok = yes; then |
| 5027 | if test "X$perlcppflags" != "X"; then |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 5028 | PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5029 | fi |
| 5030 | if test "X$perlldflags" != "X"; then |
| 5031 | LDFLAGS="$perlldflags $LDFLAGS" |
| 5032 | fi |
| 5033 | PERL_LIBS=$perllibs |
| 5034 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 5035 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 5036 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5037 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5038 | #define FEAT_PERL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5039 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5040 | |
| 5041 | fi |
| 5042 | fi |
| 5043 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5044 | { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 5045 | $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] | 5046 | fi |
| 5047 | fi |
| 5048 | |
| 5049 | if test "x$MACOSX" = "xyes"; then |
| 5050 | dir=/System/Library/Perl |
| 5051 | darwindir=$dir/darwin |
| 5052 | if test -d $darwindir; then |
| 5053 | PERL=/usr/bin/perl |
| 5054 | else |
| 5055 | dir=/System/Library/Perl/5.8.1 |
| 5056 | darwindir=$dir/darwin-thread-multi-2level |
| 5057 | if test -d $darwindir; then |
| 5058 | PERL=/usr/bin/perl |
| 5059 | fi |
| 5060 | fi |
| 5061 | if test -n "$PERL"; then |
| 5062 | PERL_DIR="$dir" |
| 5063 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 5064 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 5065 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 5066 | fi |
| 5067 | fi |
| 5068 | fi |
| 5069 | |
| 5070 | |
| 5071 | |
| 5072 | |
| 5073 | |
| 5074 | |
| 5075 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5076 | { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 |
| 5077 | $as_echo_n "checking --enable-pythoninterp argument... " >&6; } |
| 5078 | # Check whether --enable-pythoninterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5079 | if test "${enable_pythoninterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5080 | enableval=$enable_pythoninterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5081 | else |
| 5082 | enable_pythoninterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5083 | fi |
| 5084 | |
| 5085 | { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 |
| 5086 | $as_echo "$enable_pythoninterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5087 | if test "$enable_pythoninterp" = "yes"; then |
| 5088 | # Extract the first word of "python", so it can be a program name with args. |
| 5089 | set dummy python; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5090 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5091 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5092 | if test "${ac_cv_path_vi_cv_path_python+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5093 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5094 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5095 | case $vi_cv_path_python in |
| 5096 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5097 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 5098 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5099 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5101 | for as_dir in $PATH |
| 5102 | do |
| 5103 | IFS=$as_save_IFS |
| 5104 | test -z "$as_dir" && as_dir=. |
| 5105 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5106 | 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] | 5107 | 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] | 5108 | $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] | 5109 | break 2 |
| 5110 | fi |
| 5111 | done |
| 5112 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5113 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5114 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5115 | ;; |
| 5116 | esac |
| 5117 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5118 | vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5119 | if test -n "$vi_cv_path_python"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5120 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 |
| 5121 | $as_echo "$vi_cv_path_python" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5122 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5123 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5124 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5125 | fi |
| 5126 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5127 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5128 | if test "X$vi_cv_path_python" != "X"; then |
| 5129 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5130 | { $as_echo "$as_me:$LINENO: checking Python version" >&5 |
| 5131 | $as_echo_n "checking Python version... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5132 | if test "${vi_cv_var_python_version+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5133 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5134 | else |
| 5135 | vi_cv_var_python_version=` |
| 5136 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5137 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5138 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5139 | { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 |
| 5140 | $as_echo "$vi_cv_var_python_version" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5141 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5142 | { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 |
| 5143 | $as_echo_n "checking Python is 1.4 or better... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5144 | if ${vi_cv_path_python} -c \ |
| 5145 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 5146 | then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5147 | { $as_echo "$as_me:$LINENO: result: yep" >&5 |
| 5148 | $as_echo "yep" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5149 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5150 | { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5 |
| 5151 | $as_echo_n "checking Python's install prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5152 | if test "${vi_cv_path_python_pfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5153 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5154 | else |
| 5155 | vi_cv_path_python_pfx=` |
| 5156 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5157 | "import sys; print sys.prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5158 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5159 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 |
| 5160 | $as_echo "$vi_cv_path_python_pfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5161 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5162 | { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5 |
| 5163 | $as_echo_n "checking Python's execution prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5164 | if test "${vi_cv_path_python_epfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5165 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5166 | else |
| 5167 | vi_cv_path_python_epfx=` |
| 5168 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5169 | "import sys; print sys.exec_prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5170 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5171 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 |
| 5172 | $as_echo "$vi_cv_path_python_epfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5173 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5174 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5175 | if test "${vi_cv_path_pythonpath+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5176 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5177 | else |
| 5178 | vi_cv_path_pythonpath=` |
| 5179 | unset PYTHONPATH; |
| 5180 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5181 | "import sys, string; print string.join(sys.path,':')"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5182 | fi |
| 5183 | |
| 5184 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5185 | |
| 5186 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5187 | # Check whether --with-python-config-dir was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5188 | if test "${with_python_config_dir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5189 | withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" |
| 5190 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5191 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5192 | |
| 5193 | { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5 |
| 5194 | $as_echo_n "checking Python's configuration directory... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5195 | if test "${vi_cv_path_python_conf+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5196 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5197 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5198 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5199 | vi_cv_path_python_conf= |
| 5200 | 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] | 5201 | for subdir in lib64 lib share; do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5202 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 5203 | if test -d "$d" && test -f "$d/config.c"; then |
| 5204 | vi_cv_path_python_conf="$d" |
| 5205 | fi |
| 5206 | done |
| 5207 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5208 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5209 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5210 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 |
| 5211 | $as_echo "$vi_cv_path_python_conf" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5212 | |
| 5213 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 5214 | |
| 5215 | if test "X$PYTHON_CONFDIR" = "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5216 | { $as_echo "$as_me:$LINENO: result: can't find it!" >&5 |
| 5217 | $as_echo "can't find it!" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5218 | else |
| 5219 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5220 | if test "${vi_cv_path_python_plibs+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5221 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5222 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5223 | |
Bram Moolenaar | 01dd60c | 2008-07-24 14:24:48 +0000 | [diff] [blame] | 5224 | pwd=`pwd` |
| 5225 | tmp_mkf="$pwd/config-PyMake$$" |
| 5226 | cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5227 | __: |
| 5228 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 5229 | @echo "python_LIBS='$(LIBS)'" |
| 5230 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 5231 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 5232 | eof |
Bram Moolenaar | 01dd60c | 2008-07-24 14:24:48 +0000 | [diff] [blame] | 5233 | eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" |
| 5234 | rm -f -- "${tmp_mkf}" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5235 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 5236 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 5237 | vi_cv_path_python_plibs="-framework Python" |
| 5238 | else |
| 5239 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 5240 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 5241 | else |
| 5242 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 5243 | fi |
| 5244 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 5245 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 5246 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5247 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5248 | fi |
| 5249 | |
| 5250 | |
| 5251 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 5252 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 5253 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 5254 | else |
| 5255 | 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}" |
| 5256 | fi |
| 5257 | PYTHON_SRC="if_python.c" |
| 5258 | if test "x$MACOSX" = "xyes"; then |
| 5259 | PYTHON_OBJ="objects/if_python.o" |
| 5260 | else |
| 5261 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 5262 | fi |
| 5263 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 5264 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 5265 | fi |
| 5266 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 5267 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5268 | { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5 |
| 5269 | $as_echo_n "checking if -pthread should be used... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5270 | threadsafe_flag= |
| 5271 | thread_lib= |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 5272 | if test "`(uname) 2>/dev/null`" != Darwin; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5273 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 5274 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 5275 | threadsafe_flag="-D_THREAD_SAFE" |
| 5276 | thread_lib="-pthread" |
| 5277 | fi |
| 5278 | fi |
| 5279 | libs_save_old=$LIBS |
| 5280 | if test -n "$threadsafe_flag"; then |
| 5281 | cflags_save=$CFLAGS |
| 5282 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 5283 | LIBS="$LIBS $thread_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5284 | cat >conftest.$ac_ext <<_ACEOF |
| 5285 | /* confdefs.h. */ |
| 5286 | _ACEOF |
| 5287 | cat confdefs.h >>conftest.$ac_ext |
| 5288 | cat >>conftest.$ac_ext <<_ACEOF |
| 5289 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5290 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5291 | int |
| 5292 | main () |
| 5293 | { |
| 5294 | |
| 5295 | ; |
| 5296 | return 0; |
| 5297 | } |
| 5298 | _ACEOF |
| 5299 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5300 | if { (ac_try="$ac_link" |
| 5301 | case "(($ac_try" in |
| 5302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5303 | *) ac_try_echo=$ac_try;; |
| 5304 | esac |
| 5305 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5306 | $as_echo "$ac_try_echo") >&5 |
| 5307 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5308 | ac_status=$? |
| 5309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5310 | rm -f conftest.er1 |
| 5311 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5312 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5313 | (exit $ac_status); } && { |
| 5314 | test -z "$ac_c_werror_flag" || |
| 5315 | test ! -s conftest.err |
| 5316 | } && test -s conftest$ac_exeext && { |
| 5317 | test "$cross_compiling" = yes || |
| 5318 | $as_test_x conftest$ac_exeext |
| 5319 | }; then |
| 5320 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5321 | $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5322 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5323 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5325 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5326 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5327 | $as_echo "no" >&6; }; LIBS=$libs_save_old |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5328 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5329 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5330 | |
| 5331 | rm -rf conftest.dSYM |
| 5332 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5333 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5334 | CFLAGS=$cflags_save |
| 5335 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5336 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5337 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5338 | fi |
| 5339 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5340 | { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 |
| 5341 | $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] | 5342 | cflags_save=$CFLAGS |
| 5343 | libs_save=$LIBS |
| 5344 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 5345 | LIBS="$LIBS $PYTHON_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5346 | cat >conftest.$ac_ext <<_ACEOF |
| 5347 | /* confdefs.h. */ |
| 5348 | _ACEOF |
| 5349 | cat confdefs.h >>conftest.$ac_ext |
| 5350 | cat >>conftest.$ac_ext <<_ACEOF |
| 5351 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5352 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5353 | int |
| 5354 | main () |
| 5355 | { |
| 5356 | |
| 5357 | ; |
| 5358 | return 0; |
| 5359 | } |
| 5360 | _ACEOF |
| 5361 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5362 | if { (ac_try="$ac_link" |
| 5363 | case "(($ac_try" in |
| 5364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5365 | *) ac_try_echo=$ac_try;; |
| 5366 | esac |
| 5367 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5368 | $as_echo "$ac_try_echo") >&5 |
| 5369 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5370 | ac_status=$? |
| 5371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5372 | rm -f conftest.er1 |
| 5373 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5374 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5375 | (exit $ac_status); } && { |
| 5376 | test -z "$ac_c_werror_flag" || |
| 5377 | test ! -s conftest.err |
| 5378 | } && test -s conftest$ac_exeext && { |
| 5379 | test "$cross_compiling" = yes || |
| 5380 | $as_test_x conftest$ac_exeext |
| 5381 | }; then |
| 5382 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5383 | $as_echo "yes" >&6; }; python_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5384 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5385 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5387 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5388 | { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 |
| 5389 | $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5390 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5391 | |
| 5392 | rm -rf conftest.dSYM |
| 5393 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5394 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5395 | CFLAGS=$cflags_save |
| 5396 | LIBS=$libs_save |
| 5397 | if test $python_ok = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5398 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5399 | #define FEAT_PYTHON 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5400 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5401 | |
| 5402 | else |
| 5403 | LIBS=$libs_save_old |
| 5404 | PYTHON_SRC= |
| 5405 | PYTHON_OBJ= |
| 5406 | PYTHON_LIBS= |
| 5407 | PYTHON_CFLAGS= |
| 5408 | fi |
| 5409 | |
| 5410 | fi |
| 5411 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5412 | { $as_echo "$as_me:$LINENO: result: too old" >&5 |
| 5413 | $as_echo "too old" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5414 | fi |
| 5415 | fi |
| 5416 | fi |
| 5417 | |
| 5418 | |
| 5419 | |
| 5420 | |
| 5421 | |
| 5422 | |
| 5423 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5424 | { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 |
| 5425 | $as_echo_n "checking --enable-tclinterp argument... " >&6; } |
| 5426 | # Check whether --enable-tclinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5427 | if test "${enable_tclinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5428 | enableval=$enable_tclinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5429 | else |
| 5430 | enable_tclinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5431 | fi |
| 5432 | |
| 5433 | { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 |
| 5434 | $as_echo "$enable_tclinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5435 | |
| 5436 | if test "$enable_tclinterp" = "yes"; then |
| 5437 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5438 | { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 |
| 5439 | $as_echo_n "checking --with-tclsh argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5440 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5441 | # Check whether --with-tclsh was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5442 | if test "${with_tclsh+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5443 | withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5 |
| 5444 | $as_echo "$tclsh_name" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5445 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5446 | tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5447 | $as_echo "no" >&6; } |
| 5448 | fi |
| 5449 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5450 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5451 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5452 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5453 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5454 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5455 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5456 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5457 | case $vi_cv_path_tcl in |
| 5458 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5459 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5460 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5461 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5463 | for as_dir in $PATH |
| 5464 | do |
| 5465 | IFS=$as_save_IFS |
| 5466 | test -z "$as_dir" && as_dir=. |
| 5467 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5468 | 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] | 5469 | 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] | 5470 | $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] | 5471 | break 2 |
| 5472 | fi |
| 5473 | done |
| 5474 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5475 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5476 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5477 | ;; |
| 5478 | esac |
| 5479 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5480 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5481 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5482 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5483 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5484 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5485 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5486 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5487 | fi |
| 5488 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5489 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5490 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5491 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5492 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then |
| 5493 | tclsh_name="tclsh8.4" |
| 5494 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5495 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5496 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5497 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5498 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5499 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5500 | else |
| 5501 | case $vi_cv_path_tcl in |
| 5502 | [\\/]* | ?:[\\/]*) |
| 5503 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5504 | ;; |
| 5505 | *) |
| 5506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5507 | for as_dir in $PATH |
| 5508 | do |
| 5509 | IFS=$as_save_IFS |
| 5510 | test -z "$as_dir" && as_dir=. |
| 5511 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5512 | 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] | 5513 | 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] | 5514 | $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] | 5515 | break 2 |
| 5516 | fi |
| 5517 | done |
| 5518 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5519 | IFS=$as_save_IFS |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5520 | |
| 5521 | ;; |
| 5522 | esac |
| 5523 | fi |
| 5524 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5525 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5526 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5527 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5528 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5529 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5530 | $as_echo "no" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5531 | fi |
| 5532 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5533 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5534 | fi |
| 5535 | 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] | 5536 | tclsh_name="tclsh8.2" |
| 5537 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5538 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5539 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5540 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5541 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5542 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5543 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5544 | case $vi_cv_path_tcl in |
| 5545 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5546 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5547 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5548 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5550 | for as_dir in $PATH |
| 5551 | do |
| 5552 | IFS=$as_save_IFS |
| 5553 | test -z "$as_dir" && as_dir=. |
| 5554 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5555 | 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] | 5556 | 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] | 5557 | $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] | 5558 | break 2 |
| 5559 | fi |
| 5560 | done |
| 5561 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5562 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5563 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5564 | ;; |
| 5565 | esac |
| 5566 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5567 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5568 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5569 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5570 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5571 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5572 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5573 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5574 | fi |
| 5575 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5576 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5577 | fi |
| 5578 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 5579 | tclsh_name="tclsh8.0" |
| 5580 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5581 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5582 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5583 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5584 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5585 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5586 | else |
| 5587 | case $vi_cv_path_tcl in |
| 5588 | [\\/]* | ?:[\\/]*) |
| 5589 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5590 | ;; |
| 5591 | *) |
| 5592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5593 | for as_dir in $PATH |
| 5594 | do |
| 5595 | IFS=$as_save_IFS |
| 5596 | test -z "$as_dir" && as_dir=. |
| 5597 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5598 | 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] | 5599 | 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] | 5600 | $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] | 5601 | break 2 |
| 5602 | fi |
| 5603 | done |
| 5604 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5605 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5606 | |
| 5607 | ;; |
| 5608 | esac |
| 5609 | fi |
| 5610 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5611 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5612 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5613 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5614 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5615 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5616 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5617 | fi |
| 5618 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5619 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5620 | fi |
| 5621 | if test "X$vi_cv_path_tcl" = "X"; then |
| 5622 | tclsh_name="tclsh" |
| 5623 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5624 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5625 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5626 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5627 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5628 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5629 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5630 | case $vi_cv_path_tcl in |
| 5631 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5632 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5633 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5634 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5636 | for as_dir in $PATH |
| 5637 | do |
| 5638 | IFS=$as_save_IFS |
| 5639 | test -z "$as_dir" && as_dir=. |
| 5640 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5641 | 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] | 5642 | 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] | 5643 | $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] | 5644 | break 2 |
| 5645 | fi |
| 5646 | done |
| 5647 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5648 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5649 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5650 | ;; |
| 5651 | esac |
| 5652 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5653 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5654 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5655 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5656 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5657 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5658 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5659 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5660 | fi |
| 5661 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5662 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5663 | fi |
| 5664 | if test "X$vi_cv_path_tcl" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5665 | { $as_echo "$as_me:$LINENO: checking Tcl version" >&5 |
| 5666 | $as_echo_n "checking Tcl version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5667 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 5668 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5669 | { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5 |
| 5670 | $as_echo "$tclver - OK" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5671 | 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 -` |
| 5672 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5673 | { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5 |
| 5674 | $as_echo_n "checking for location of Tcl include... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5675 | if test "x$MACOSX" != "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5676 | 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] | 5677 | else |
| 5678 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 5679 | fi |
Bram Moolenaar | 0ff8f60 | 2008-02-20 11:44:03 +0000 | [diff] [blame] | 5680 | TCL_INC= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5681 | for try in $tclinc; do |
| 5682 | if test -f "$try/tcl.h"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5683 | { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5 |
| 5684 | $as_echo "$try/tcl.h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5685 | TCL_INC=$try |
| 5686 | break |
| 5687 | fi |
| 5688 | done |
| 5689 | if test -z "$TCL_INC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5690 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5691 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5692 | SKIP_TCL=YES |
| 5693 | fi |
| 5694 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5695 | { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 |
| 5696 | $as_echo_n "checking for location of tclConfig.sh script... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5697 | if test "x$MACOSX" != "xyes"; then |
| 5698 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5699 | tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5700 | else |
| 5701 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 5702 | fi |
| 5703 | for try in $tclcnf; do |
| 5704 | if test -f $try/tclConfig.sh; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5705 | { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 |
| 5706 | $as_echo "$try/tclConfig.sh" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5707 | . $try/tclConfig.sh |
| 5708 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
Bram Moolenaar | 4394bff | 2008-07-24 11:21:31 +0000 | [diff] [blame] | 5709 | 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] | 5710 | break |
| 5711 | fi |
| 5712 | done |
| 5713 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5714 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5715 | $as_echo "<not found>" >&6; } |
| 5716 | { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 |
| 5717 | $as_echo_n "checking for Tcl library by myself... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5718 | tcllib=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5719 | tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5720 | for ext in .so .a ; do |
| 5721 | for ver in "" $tclver ; do |
| 5722 | for try in $tcllib ; do |
| 5723 | trylib=tcl$ver$ext |
| 5724 | if test -f $try/lib$trylib ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5725 | { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 |
| 5726 | $as_echo "$try/lib$trylib" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5727 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 5728 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 5729 | uname -r | grep '^5' >/dev/null; then |
| 5730 | TCL_LIBS="$TCL_LIBS -R $try" |
| 5731 | fi |
| 5732 | break 3 |
| 5733 | fi |
| 5734 | done |
| 5735 | done |
| 5736 | done |
| 5737 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5738 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5739 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5740 | SKIP_TCL=YES |
| 5741 | fi |
| 5742 | fi |
| 5743 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5744 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5745 | #define FEAT_TCL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5746 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5747 | |
| 5748 | TCL_SRC=if_tcl.c |
| 5749 | TCL_OBJ=objects/if_tcl.o |
| 5750 | TCL_PRO=if_tcl.pro |
| 5751 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 5752 | fi |
| 5753 | fi |
| 5754 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5755 | { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 |
| 5756 | $as_echo "too old; need Tcl version 8.0 or later" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5757 | fi |
| 5758 | fi |
| 5759 | fi |
| 5760 | |
| 5761 | |
| 5762 | |
| 5763 | |
| 5764 | |
| 5765 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5766 | { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 |
| 5767 | $as_echo_n "checking --enable-rubyinterp argument... " >&6; } |
| 5768 | # Check whether --enable-rubyinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5769 | if test "${enable_rubyinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5770 | enableval=$enable_rubyinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5771 | else |
| 5772 | enable_rubyinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5773 | fi |
| 5774 | |
| 5775 | { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 |
| 5776 | $as_echo "$enable_rubyinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5777 | if test "$enable_rubyinterp" = "yes"; then |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 5778 | { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5 |
| 5779 | $as_echo_n "checking --with-ruby-command argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5780 | |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 5781 | # Check whether --with-ruby-command was given. |
| 5782 | if test "${with_ruby_command+set}" = set; then |
| 5783 | withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5 |
| 5784 | $as_echo "$RUBY_CMD" >&6; } |
| 5785 | else |
| 5786 | RUBY_CMD="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5 |
| 5787 | $as_echo "defaulting to $RUBY_CMD" >&6; } |
| 5788 | fi |
| 5789 | |
| 5790 | |
| 5791 | # Extract the first word of "$RUBY_CMD", so it can be a program name with args. |
| 5792 | set dummy $RUBY_CMD; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5793 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5794 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5795 | if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5796 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5797 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5798 | case $vi_cv_path_ruby in |
| 5799 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5800 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 5801 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5802 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5804 | for as_dir in $PATH |
| 5805 | do |
| 5806 | IFS=$as_save_IFS |
| 5807 | test -z "$as_dir" && as_dir=. |
| 5808 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5809 | 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] | 5810 | 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] | 5811 | $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] | 5812 | break 2 |
| 5813 | fi |
| 5814 | done |
| 5815 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5816 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5817 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5818 | ;; |
| 5819 | esac |
| 5820 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5821 | vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5822 | if test -n "$vi_cv_path_ruby"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5823 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 |
| 5824 | $as_echo "$vi_cv_path_ruby" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5825 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5826 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5827 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5828 | fi |
| 5829 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5830 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5831 | if test "X$vi_cv_path_ruby" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5832 | { $as_echo "$as_me:$LINENO: checking Ruby version" >&5 |
| 5833 | $as_echo_n "checking Ruby version... " >&6; } |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 5834 | 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] | 5835 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 5836 | $as_echo "OK" >&6; } |
| 5837 | { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5 |
| 5838 | $as_echo_n "checking Ruby header files... " >&6; } |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 5839 | 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] | 5840 | if test "X$rubyhdrdir" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5841 | { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 |
| 5842 | $as_echo "$rubyhdrdir" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5843 | RUBY_CFLAGS="-I$rubyhdrdir" |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 5844 | rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'` |
| 5845 | if test -d "$rubyhdrdir/$rubyarch"; then |
| 5846 | RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch" |
| 5847 | fi |
| 5848 | rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'` |
| 5849 | RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5850 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 5851 | if test "X$rubylibs" != "X"; then |
| 5852 | RUBY_LIBS="$rubylibs" |
| 5853 | fi |
| 5854 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 5855 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 5856 | librubyarg="$rubyhdrdir/$librubyarg" |
| 5857 | else |
| 5858 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 5859 | if test -f "$rubylibdir/$librubyarg"; then |
| 5860 | librubyarg="$rubylibdir/$librubyarg" |
| 5861 | elif test "$librubyarg" = "libruby.a"; then |
| 5862 | librubyarg="-lruby" |
| 5863 | else |
| 5864 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 5865 | fi |
| 5866 | fi |
| 5867 | |
| 5868 | if test "X$librubyarg" != "X"; then |
| 5869 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 5870 | fi |
| 5871 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 5872 | if test "X$rubyldflags" != "X"; then |
Bram Moolenaar | 996b6d8 | 2009-07-22 09:17:23 +0000 | [diff] [blame] | 5873 | rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'` |
| 5874 | if test "X$rubyldflags" != "X"; then |
| 5875 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 5876 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5877 | fi |
| 5878 | RUBY_SRC="if_ruby.c" |
| 5879 | RUBY_OBJ="objects/if_ruby.o" |
| 5880 | RUBY_PRO="if_ruby.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5881 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5882 | #define FEAT_RUBY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5883 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5884 | |
| 5885 | else |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 5886 | { $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5 |
| 5887 | $as_echo "not found; disabling Ruby" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5888 | fi |
| 5889 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5890 | { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 |
| 5891 | $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] | 5892 | fi |
| 5893 | fi |
| 5894 | fi |
| 5895 | |
| 5896 | |
| 5897 | |
| 5898 | |
| 5899 | |
| 5900 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5901 | { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 |
| 5902 | $as_echo_n "checking --enable-cscope argument... " >&6; } |
| 5903 | # Check whether --enable-cscope was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5904 | if test "${enable_cscope+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5905 | enableval=$enable_cscope; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5906 | else |
| 5907 | enable_cscope="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5908 | fi |
| 5909 | |
| 5910 | { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5 |
| 5911 | $as_echo "$enable_cscope" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5912 | if test "$enable_cscope" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5913 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5914 | #define FEAT_CSCOPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5915 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5916 | |
| 5917 | fi |
| 5918 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5919 | { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 |
| 5920 | $as_echo_n "checking --enable-workshop argument... " >&6; } |
| 5921 | # Check whether --enable-workshop was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5922 | if test "${enable_workshop+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5923 | enableval=$enable_workshop; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5924 | else |
| 5925 | enable_workshop="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5926 | fi |
| 5927 | |
| 5928 | { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5 |
| 5929 | $as_echo "$enable_workshop" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5930 | if test "$enable_workshop" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5931 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5932 | #define FEAT_SUN_WORKSHOP 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5933 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5934 | |
| 5935 | WORKSHOP_SRC="workshop.c integration.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5936 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5937 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5938 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5939 | if test "${enable_gui-xxx}" = xxx; then |
| 5940 | enable_gui=motif |
| 5941 | fi |
| 5942 | fi |
| 5943 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5944 | { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 |
| 5945 | $as_echo_n "checking --disable-netbeans argument... " >&6; } |
| 5946 | # Check whether --enable-netbeans was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5947 | if test "${enable_netbeans+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5948 | enableval=$enable_netbeans; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5949 | else |
| 5950 | enable_netbeans="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5951 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5952 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5953 | if test "$enable_netbeans" = "yes"; then |
| 5954 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5955 | $as_echo "no" >&6; } |
| 5956 | |
| 5957 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 5958 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5959 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5960 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5961 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5962 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5963 | LIBS="-lsocket $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5964 | cat >conftest.$ac_ext <<_ACEOF |
| 5965 | /* confdefs.h. */ |
| 5966 | _ACEOF |
| 5967 | cat confdefs.h >>conftest.$ac_ext |
| 5968 | cat >>conftest.$ac_ext <<_ACEOF |
| 5969 | /* end confdefs.h. */ |
| 5970 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5971 | /* Override any GCC internal prototype to avoid an error. |
| 5972 | Use char because int might match the return type of a GCC |
| 5973 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5974 | #ifdef __cplusplus |
| 5975 | extern "C" |
| 5976 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5977 | char socket (); |
| 5978 | int |
| 5979 | main () |
| 5980 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5981 | return socket (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5982 | ; |
| 5983 | return 0; |
| 5984 | } |
| 5985 | _ACEOF |
| 5986 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5987 | if { (ac_try="$ac_link" |
| 5988 | case "(($ac_try" in |
| 5989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5990 | *) ac_try_echo=$ac_try;; |
| 5991 | esac |
| 5992 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5993 | $as_echo "$ac_try_echo") >&5 |
| 5994 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5995 | ac_status=$? |
| 5996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5997 | rm -f conftest.er1 |
| 5998 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6000 | (exit $ac_status); } && { |
| 6001 | test -z "$ac_c_werror_flag" || |
| 6002 | test ! -s conftest.err |
| 6003 | } && test -s conftest$ac_exeext && { |
| 6004 | test "$cross_compiling" = yes || |
| 6005 | $as_test_x conftest$ac_exeext |
| 6006 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6007 | ac_cv_lib_socket_socket=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6008 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6009 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6010 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6011 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6012 | ac_cv_lib_socket_socket=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6013 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6014 | |
| 6015 | rm -rf conftest.dSYM |
| 6016 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6017 | conftest$ac_exeext conftest.$ac_ext |
| 6018 | LIBS=$ac_check_lib_save_LIBS |
| 6019 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6020 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 6021 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6022 | if test "x$ac_cv_lib_socket_socket" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6023 | cat >>confdefs.h <<_ACEOF |
| 6024 | #define HAVE_LIBSOCKET 1 |
| 6025 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6026 | |
| 6027 | LIBS="-lsocket $LIBS" |
| 6028 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6029 | fi |
| 6030 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6031 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6032 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 6033 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6034 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6035 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6036 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6037 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6038 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6039 | cat >conftest.$ac_ext <<_ACEOF |
| 6040 | /* confdefs.h. */ |
| 6041 | _ACEOF |
| 6042 | cat confdefs.h >>conftest.$ac_ext |
| 6043 | cat >>conftest.$ac_ext <<_ACEOF |
| 6044 | /* end confdefs.h. */ |
| 6045 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6046 | /* Override any GCC internal prototype to avoid an error. |
| 6047 | Use char because int might match the return type of a GCC |
| 6048 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6049 | #ifdef __cplusplus |
| 6050 | extern "C" |
| 6051 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6052 | char gethostbyname (); |
| 6053 | int |
| 6054 | main () |
| 6055 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6056 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6057 | ; |
| 6058 | return 0; |
| 6059 | } |
| 6060 | _ACEOF |
| 6061 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6062 | if { (ac_try="$ac_link" |
| 6063 | case "(($ac_try" in |
| 6064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6065 | *) ac_try_echo=$ac_try;; |
| 6066 | esac |
| 6067 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6068 | $as_echo "$ac_try_echo") >&5 |
| 6069 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6070 | ac_status=$? |
| 6071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6072 | rm -f conftest.er1 |
| 6073 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6074 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6075 | (exit $ac_status); } && { |
| 6076 | test -z "$ac_c_werror_flag" || |
| 6077 | test ! -s conftest.err |
| 6078 | } && test -s conftest$ac_exeext && { |
| 6079 | test "$cross_compiling" = yes || |
| 6080 | $as_test_x conftest$ac_exeext |
| 6081 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6082 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6083 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6084 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6085 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6086 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6087 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6088 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6089 | |
| 6090 | rm -rf conftest.dSYM |
| 6091 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6092 | conftest$ac_exeext conftest.$ac_ext |
| 6093 | LIBS=$ac_check_lib_save_LIBS |
| 6094 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6095 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 6096 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6097 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6098 | cat >>confdefs.h <<_ACEOF |
| 6099 | #define HAVE_LIBNSL 1 |
| 6100 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6101 | |
| 6102 | LIBS="-lnsl $LIBS" |
| 6103 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6104 | fi |
| 6105 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6106 | { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 |
| 6107 | $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6108 | cat >conftest.$ac_ext <<_ACEOF |
| 6109 | /* confdefs.h. */ |
| 6110 | _ACEOF |
| 6111 | cat confdefs.h >>conftest.$ac_ext |
| 6112 | cat >>conftest.$ac_ext <<_ACEOF |
| 6113 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6114 | |
| 6115 | #include <stdio.h> |
| 6116 | #include <stdlib.h> |
| 6117 | #include <stdarg.h> |
| 6118 | #include <fcntl.h> |
| 6119 | #include <netdb.h> |
| 6120 | #include <netinet/in.h> |
| 6121 | #include <errno.h> |
| 6122 | #include <sys/types.h> |
| 6123 | #include <sys/socket.h> |
| 6124 | /* Check bitfields */ |
| 6125 | struct nbbuf { |
| 6126 | unsigned int initDone:1; |
| 6127 | ushort signmaplen; |
| 6128 | }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6129 | |
| 6130 | int |
| 6131 | main () |
| 6132 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6133 | |
| 6134 | /* Check creating a socket. */ |
| 6135 | struct sockaddr_in server; |
| 6136 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 6137 | (void)htons(100); |
| 6138 | (void)gethostbyname("microsoft.com"); |
| 6139 | if (errno == ECONNREFUSED) |
| 6140 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6141 | |
| 6142 | ; |
| 6143 | return 0; |
| 6144 | } |
| 6145 | _ACEOF |
| 6146 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6147 | if { (ac_try="$ac_link" |
| 6148 | case "(($ac_try" in |
| 6149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6150 | *) ac_try_echo=$ac_try;; |
| 6151 | esac |
| 6152 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6153 | $as_echo "$ac_try_echo") >&5 |
| 6154 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6155 | ac_status=$? |
| 6156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6157 | rm -f conftest.er1 |
| 6158 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6159 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6160 | (exit $ac_status); } && { |
| 6161 | test -z "$ac_c_werror_flag" || |
| 6162 | test ! -s conftest.err |
| 6163 | } && test -s conftest$ac_exeext && { |
| 6164 | test "$cross_compiling" = yes || |
| 6165 | $as_test_x conftest$ac_exeext |
| 6166 | }; then |
| 6167 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6168 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6169 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6170 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6172 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6173 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6174 | $as_echo "no" >&6; }; enable_netbeans="no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6175 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6176 | |
| 6177 | rm -rf conftest.dSYM |
| 6178 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6179 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6180 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6181 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6182 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6183 | fi |
| 6184 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6185 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6186 | #define FEAT_NETBEANS_INTG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6187 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6188 | |
| 6189 | NETBEANS_SRC="netbeans.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6190 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6191 | NETBEANS_OBJ="objects/netbeans.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6192 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6193 | fi |
| 6194 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6195 | { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 |
| 6196 | $as_echo_n "checking --enable-sniff argument... " >&6; } |
| 6197 | # Check whether --enable-sniff was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6198 | if test "${enable_sniff+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6199 | enableval=$enable_sniff; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6200 | else |
| 6201 | enable_sniff="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6202 | fi |
| 6203 | |
| 6204 | { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5 |
| 6205 | $as_echo "$enable_sniff" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6206 | if test "$enable_sniff" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6207 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6208 | #define FEAT_SNIFF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6209 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6210 | |
| 6211 | SNIFF_SRC="if_sniff.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6212 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6213 | SNIFF_OBJ="objects/if_sniff.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6214 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6215 | fi |
| 6216 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6217 | { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 |
| 6218 | $as_echo_n "checking --enable-multibyte argument... " >&6; } |
| 6219 | # Check whether --enable-multibyte was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6220 | if test "${enable_multibyte+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6221 | enableval=$enable_multibyte; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6222 | else |
| 6223 | enable_multibyte="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6224 | fi |
| 6225 | |
| 6226 | { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5 |
| 6227 | $as_echo "$enable_multibyte" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6228 | if test "$enable_multibyte" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6229 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6230 | #define FEAT_MBYTE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6231 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6232 | |
| 6233 | fi |
| 6234 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6235 | { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 |
| 6236 | $as_echo_n "checking --enable-hangulinput argument... " >&6; } |
| 6237 | # Check whether --enable-hangulinput was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6238 | if test "${enable_hangulinput+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6239 | enableval=$enable_hangulinput; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6240 | else |
| 6241 | enable_hangulinput="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6242 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6243 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6244 | { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 |
| 6245 | $as_echo "$enable_hangulinput" >&6; } |
| 6246 | |
| 6247 | { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5 |
| 6248 | $as_echo_n "checking --enable-xim argument... " >&6; } |
| 6249 | # Check whether --enable-xim was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6250 | if test "${enable_xim+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6251 | enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5 |
| 6252 | $as_echo "$enable_xim" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6253 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6254 | enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5 |
| 6255 | $as_echo "defaulting to auto" >&6; } |
| 6256 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6257 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6258 | |
| 6259 | { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 |
| 6260 | $as_echo_n "checking --enable-fontset argument... " >&6; } |
| 6261 | # Check whether --enable-fontset was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6262 | if test "${enable_fontset+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6263 | enableval=$enable_fontset; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6264 | else |
| 6265 | enable_fontset="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6266 | fi |
| 6267 | |
| 6268 | { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5 |
| 6269 | $as_echo "$enable_fontset" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6270 | |
| 6271 | test -z "$with_x" && with_x=yes |
| 6272 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 6273 | if test "$with_x" = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6274 | { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 |
| 6275 | $as_echo "defaulting to: don't HAVE_X11" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6276 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6277 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6278 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 6279 | set dummy xmkmf; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6280 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6281 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6282 | if test "${ac_cv_path_xmkmfpath+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6283 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6284 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6285 | case $xmkmfpath in |
| 6286 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6287 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 6288 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6289 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6291 | for as_dir in $PATH |
| 6292 | do |
| 6293 | IFS=$as_save_IFS |
| 6294 | test -z "$as_dir" && as_dir=. |
| 6295 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6296 | 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] | 6297 | ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6298 | $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] | 6299 | break 2 |
| 6300 | fi |
| 6301 | done |
| 6302 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6303 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6304 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6305 | ;; |
| 6306 | esac |
| 6307 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6308 | xmkmfpath=$ac_cv_path_xmkmfpath |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6309 | if test -n "$xmkmfpath"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6310 | { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5 |
| 6311 | $as_echo "$xmkmfpath" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6312 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6313 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6314 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6315 | fi |
| 6316 | |
| 6317 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6318 | |
| 6319 | { $as_echo "$as_me:$LINENO: checking for X" >&5 |
| 6320 | $as_echo_n "checking for X... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6321 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6322 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6323 | # Check whether --with-x was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6324 | if test "${with_x+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6325 | withval=$with_x; |
| 6326 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6327 | |
| 6328 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 6329 | if test "x$with_x" = xno; then |
| 6330 | # The user explicitly disabled X. |
| 6331 | have_x=disabled |
| 6332 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6333 | case $x_includes,$x_libraries in #( |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6334 | *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5 |
| 6335 | $as_echo "$as_me: error: cannot use X directory names containing '" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6336 | { (exit 1); exit 1; }; };; #( |
| 6337 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
| 6338 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6339 | else |
| 6340 | # 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] | 6341 | ac_x_includes=no ac_x_libraries=no |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6342 | rm -f -r conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6343 | if mkdir conftest.dir; then |
| 6344 | cd conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6345 | cat >Imakefile <<'_ACEOF' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6346 | incroot: |
| 6347 | @echo incroot='${INCROOT}' |
| 6348 | usrlibdir: |
| 6349 | @echo usrlibdir='${USRLIBDIR}' |
| 6350 | libdir: |
| 6351 | @echo libdir='${LIBDIR}' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6352 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6353 | 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] | 6354 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6355 | for ac_var in incroot usrlibdir libdir; do |
| 6356 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 6357 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6358 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6359 | for ac_extension in a so sl dylib la dll; do |
| 6360 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 6361 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6362 | ac_im_usrlibdir=$ac_im_libdir; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6363 | fi |
| 6364 | done |
| 6365 | # Screen out bogus values from the imake configuration. They are |
| 6366 | # bogus both because they are the default anyway, and because |
| 6367 | # using them would break gcc on systems where it needs fixed includes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6368 | case $ac_im_incroot in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6369 | /usr/include) ac_x_includes= ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6370 | *) 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] | 6371 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6372 | case $ac_im_usrlibdir in |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6373 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6374 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6375 | esac |
| 6376 | fi |
| 6377 | cd .. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6378 | rm -f -r conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6379 | fi |
| 6380 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6381 | # Standard set of common directories for X headers. |
| 6382 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 6383 | ac_x_header_dirs=' |
| 6384 | /usr/X11/include |
| 6385 | /usr/X11R6/include |
| 6386 | /usr/X11R5/include |
| 6387 | /usr/X11R4/include |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6388 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6389 | /usr/include/X11 |
| 6390 | /usr/include/X11R6 |
| 6391 | /usr/include/X11R5 |
| 6392 | /usr/include/X11R4 |
| 6393 | |
| 6394 | /usr/local/X11/include |
| 6395 | /usr/local/X11R6/include |
| 6396 | /usr/local/X11R5/include |
| 6397 | /usr/local/X11R4/include |
| 6398 | |
| 6399 | /usr/local/include/X11 |
| 6400 | /usr/local/include/X11R6 |
| 6401 | /usr/local/include/X11R5 |
| 6402 | /usr/local/include/X11R4 |
| 6403 | |
| 6404 | /usr/X386/include |
| 6405 | /usr/x386/include |
| 6406 | /usr/XFree86/include/X11 |
| 6407 | |
| 6408 | /usr/include |
| 6409 | /usr/local/include |
| 6410 | /usr/unsupported/include |
| 6411 | /usr/athena/include |
| 6412 | /usr/local/x11r5/include |
| 6413 | /usr/lpp/Xamples/include |
| 6414 | |
| 6415 | /usr/openwin/include |
| 6416 | /usr/openwin/share/include' |
| 6417 | |
| 6418 | if test "$ac_x_includes" = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6419 | # Guess where to find include files, by looking for Xlib.h. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6420 | # First, try using that file with no special directory specified. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6421 | cat >conftest.$ac_ext <<_ACEOF |
| 6422 | /* confdefs.h. */ |
| 6423 | _ACEOF |
| 6424 | cat confdefs.h >>conftest.$ac_ext |
| 6425 | cat >>conftest.$ac_ext <<_ACEOF |
| 6426 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6427 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6428 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6429 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6430 | case "(($ac_try" in |
| 6431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6432 | *) ac_try_echo=$ac_try;; |
| 6433 | esac |
| 6434 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6435 | $as_echo "$ac_try_echo") >&5 |
| 6436 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6437 | ac_status=$? |
| 6438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6439 | rm -f conftest.er1 |
| 6440 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6441 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6442 | (exit $ac_status); } >/dev/null && { |
| 6443 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6444 | test ! -s conftest.err |
| 6445 | }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6446 | # We can compile using X headers with no special include directory. |
| 6447 | ac_x_includes= |
| 6448 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6449 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6451 | |
| 6452 | for ac_dir in $ac_x_header_dirs; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6453 | if test -r "$ac_dir/X11/Xlib.h"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6454 | ac_x_includes=$ac_dir |
| 6455 | break |
| 6456 | fi |
| 6457 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6458 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6459 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6460 | rm -f conftest.err conftest.$ac_ext |
| 6461 | fi # $ac_x_includes = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6462 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6463 | if test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6464 | # Check for the libraries. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6465 | # See if we find them without any special options. |
| 6466 | # Don't add to $LIBS permanently. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6467 | ac_save_LIBS=$LIBS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6468 | LIBS="-lX11 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6469 | cat >conftest.$ac_ext <<_ACEOF |
| 6470 | /* confdefs.h. */ |
| 6471 | _ACEOF |
| 6472 | cat confdefs.h >>conftest.$ac_ext |
| 6473 | cat >>conftest.$ac_ext <<_ACEOF |
| 6474 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6475 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6476 | int |
| 6477 | main () |
| 6478 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6479 | XrmInitialize () |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6480 | ; |
| 6481 | return 0; |
| 6482 | } |
| 6483 | _ACEOF |
| 6484 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6485 | if { (ac_try="$ac_link" |
| 6486 | case "(($ac_try" in |
| 6487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6488 | *) ac_try_echo=$ac_try;; |
| 6489 | esac |
| 6490 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6491 | $as_echo "$ac_try_echo") >&5 |
| 6492 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6493 | ac_status=$? |
| 6494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6495 | rm -f conftest.er1 |
| 6496 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6497 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6498 | (exit $ac_status); } && { |
| 6499 | test -z "$ac_c_werror_flag" || |
| 6500 | test ! -s conftest.err |
| 6501 | } && test -s conftest$ac_exeext && { |
| 6502 | test "$cross_compiling" = yes || |
| 6503 | $as_test_x conftest$ac_exeext |
| 6504 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6505 | LIBS=$ac_save_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6506 | # We can link X programs with no special library path. |
| 6507 | ac_x_libraries= |
| 6508 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6509 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6511 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6512 | LIBS=$ac_save_LIBS |
| 6513 | 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] | 6514 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6515 | # 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] | 6516 | for ac_extension in a so sl dylib la dll; do |
| 6517 | if test -r "$ac_dir/libX11.$ac_extension"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6518 | ac_x_libraries=$ac_dir |
| 6519 | break 2 |
| 6520 | fi |
| 6521 | done |
| 6522 | done |
| 6523 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6524 | |
| 6525 | rm -rf conftest.dSYM |
| 6526 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6527 | conftest$ac_exeext conftest.$ac_ext |
| 6528 | fi # $ac_x_libraries = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6529 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6530 | case $ac_x_includes,$ac_x_libraries in #( |
| 6531 | no,* | *,no | *\'*) |
| 6532 | # Didn't find X, or a directory has "'" in its name. |
| 6533 | ac_cv_have_x="have_x=no";; #( |
| 6534 | *) |
| 6535 | # Record where we found X for the cache. |
| 6536 | ac_cv_have_x="have_x=yes\ |
| 6537 | ac_x_includes='$ac_x_includes'\ |
| 6538 | ac_x_libraries='$ac_x_libraries'" |
| 6539 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6540 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6541 | ;; #( |
| 6542 | *) have_x=yes;; |
| 6543 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6544 | eval "$ac_cv_have_x" |
| 6545 | fi # $with_x != no |
| 6546 | |
| 6547 | if test "$have_x" != yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6548 | { $as_echo "$as_me:$LINENO: result: $have_x" >&5 |
| 6549 | $as_echo "$have_x" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6550 | no_x=yes |
| 6551 | else |
| 6552 | # If each of the values was on the command line, it overrides each guess. |
| 6553 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 6554 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 6555 | # Update the cache value to reflect the command line values. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6556 | ac_cv_have_x="have_x=yes\ |
| 6557 | ac_x_includes='$x_includes'\ |
| 6558 | ac_x_libraries='$x_libraries'" |
| 6559 | { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 6560 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6561 | fi |
| 6562 | |
| 6563 | if test "$no_x" = yes; then |
| 6564 | # 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] | 6565 | |
| 6566 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6567 | #define X_DISPLAY_MISSING 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6568 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6569 | |
| 6570 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 6571 | else |
| 6572 | if test -n "$x_includes"; then |
| 6573 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6574 | fi |
| 6575 | |
| 6576 | # It would also be nice to do this for all -L options, not just this one. |
| 6577 | if test -n "$x_libraries"; then |
| 6578 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6579 | # For Solaris; some versions of Sun CC require a space after -R and |
| 6580 | # others require no space. Words are not sufficient . . . . |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6581 | { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 6582 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 6583 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 6584 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 6585 | ac_c_werror_flag=yes |
| 6586 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6587 | /* confdefs.h. */ |
| 6588 | _ACEOF |
| 6589 | cat confdefs.h >>conftest.$ac_ext |
| 6590 | cat >>conftest.$ac_ext <<_ACEOF |
| 6591 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6592 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6593 | int |
| 6594 | main () |
| 6595 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6596 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6597 | ; |
| 6598 | return 0; |
| 6599 | } |
| 6600 | _ACEOF |
| 6601 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6602 | if { (ac_try="$ac_link" |
| 6603 | case "(($ac_try" in |
| 6604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6605 | *) ac_try_echo=$ac_try;; |
| 6606 | esac |
| 6607 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6608 | $as_echo "$ac_try_echo") >&5 |
| 6609 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6610 | ac_status=$? |
| 6611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6612 | rm -f conftest.er1 |
| 6613 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6615 | (exit $ac_status); } && { |
| 6616 | test -z "$ac_c_werror_flag" || |
| 6617 | test ! -s conftest.err |
| 6618 | } && test -s conftest$ac_exeext && { |
| 6619 | test "$cross_compiling" = yes || |
| 6620 | $as_test_x conftest$ac_exeext |
| 6621 | }; then |
| 6622 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6623 | $as_echo "no" >&6; } |
| 6624 | X_LIBS="$X_LIBS -R$x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6625 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6626 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6628 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6629 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6630 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6631 | /* confdefs.h. */ |
| 6632 | _ACEOF |
| 6633 | cat confdefs.h >>conftest.$ac_ext |
| 6634 | cat >>conftest.$ac_ext <<_ACEOF |
| 6635 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6636 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6637 | int |
| 6638 | main () |
| 6639 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6640 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6641 | ; |
| 6642 | return 0; |
| 6643 | } |
| 6644 | _ACEOF |
| 6645 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6646 | if { (ac_try="$ac_link" |
| 6647 | case "(($ac_try" in |
| 6648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6649 | *) ac_try_echo=$ac_try;; |
| 6650 | esac |
| 6651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6652 | $as_echo "$ac_try_echo") >&5 |
| 6653 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6654 | ac_status=$? |
| 6655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6656 | rm -f conftest.er1 |
| 6657 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6659 | (exit $ac_status); } && { |
| 6660 | test -z "$ac_c_werror_flag" || |
| 6661 | test ! -s conftest.err |
| 6662 | } && test -s conftest$ac_exeext && { |
| 6663 | test "$cross_compiling" = yes || |
| 6664 | $as_test_x conftest$ac_exeext |
| 6665 | }; then |
| 6666 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6667 | $as_echo "yes" >&6; } |
| 6668 | X_LIBS="$X_LIBS -R $x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6669 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6670 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6672 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6673 | { $as_echo "$as_me:$LINENO: result: neither works" >&5 |
| 6674 | $as_echo "neither works" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6675 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6676 | |
| 6677 | rm -rf conftest.dSYM |
| 6678 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6679 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6680 | fi |
| 6681 | |
| 6682 | rm -rf conftest.dSYM |
| 6683 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6684 | conftest$ac_exeext conftest.$ac_ext |
| 6685 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 6686 | LIBS=$ac_xsave_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6687 | fi |
| 6688 | |
| 6689 | # Check for system-dependent libraries X programs must link with. |
| 6690 | # Do this before checking for the system-independent R6 libraries |
| 6691 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 6692 | |
| 6693 | if test "$ISC" = yes; then |
| 6694 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 6695 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6696 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 6697 | # libraries were built with DECnet support. And Karl Berry says |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6698 | # the Alpha needs dnet_stub (dnet does not exist). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6699 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 6700 | cat >conftest.$ac_ext <<_ACEOF |
| 6701 | /* confdefs.h. */ |
| 6702 | _ACEOF |
| 6703 | cat confdefs.h >>conftest.$ac_ext |
| 6704 | cat >>conftest.$ac_ext <<_ACEOF |
| 6705 | /* end confdefs.h. */ |
| 6706 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6707 | /* Override any GCC internal prototype to avoid an error. |
| 6708 | Use char because int might match the return type of a GCC |
| 6709 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6710 | #ifdef __cplusplus |
| 6711 | extern "C" |
| 6712 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6713 | char XOpenDisplay (); |
| 6714 | int |
| 6715 | main () |
| 6716 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6717 | return XOpenDisplay (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6718 | ; |
| 6719 | return 0; |
| 6720 | } |
| 6721 | _ACEOF |
| 6722 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6723 | if { (ac_try="$ac_link" |
| 6724 | case "(($ac_try" in |
| 6725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6726 | *) ac_try_echo=$ac_try;; |
| 6727 | esac |
| 6728 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6729 | $as_echo "$ac_try_echo") >&5 |
| 6730 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6731 | ac_status=$? |
| 6732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6733 | rm -f conftest.er1 |
| 6734 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6735 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6736 | (exit $ac_status); } && { |
| 6737 | test -z "$ac_c_werror_flag" || |
| 6738 | test ! -s conftest.err |
| 6739 | } && test -s conftest$ac_exeext && { |
| 6740 | test "$cross_compiling" = yes || |
| 6741 | $as_test_x conftest$ac_exeext |
| 6742 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6743 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6744 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6745 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6746 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6747 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6748 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 6749 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6750 | if test "${ac_cv_lib_dnet_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 | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6752 | else |
| 6753 | ac_check_lib_save_LIBS=$LIBS |
| 6754 | LIBS="-ldnet $LIBS" |
| 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_dnet_ntoa=yes |
| 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 |
| 6802 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6803 | ac_cv_lib_dnet_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_dnet_ntoa" >&5 |
| 6812 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6813 | if test "x$ac_cv_lib_dnet_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" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6815 | fi |
| 6816 | |
| 6817 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6818 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 6819 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6820 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6821 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6822 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6823 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6824 | LIBS="-ldnet_stub $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6825 | cat >conftest.$ac_ext <<_ACEOF |
| 6826 | /* confdefs.h. */ |
| 6827 | _ACEOF |
| 6828 | cat confdefs.h >>conftest.$ac_ext |
| 6829 | cat >>conftest.$ac_ext <<_ACEOF |
| 6830 | /* end confdefs.h. */ |
| 6831 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6832 | /* Override any GCC internal prototype to avoid an error. |
| 6833 | Use char because int might match the return type of a GCC |
| 6834 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6835 | #ifdef __cplusplus |
| 6836 | extern "C" |
| 6837 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6838 | char dnet_ntoa (); |
| 6839 | int |
| 6840 | main () |
| 6841 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6842 | return dnet_ntoa (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6843 | ; |
| 6844 | return 0; |
| 6845 | } |
| 6846 | _ACEOF |
| 6847 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6848 | if { (ac_try="$ac_link" |
| 6849 | case "(($ac_try" in |
| 6850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6851 | *) ac_try_echo=$ac_try;; |
| 6852 | esac |
| 6853 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6854 | $as_echo "$ac_try_echo") >&5 |
| 6855 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6856 | ac_status=$? |
| 6857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6858 | rm -f conftest.er1 |
| 6859 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6860 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6861 | (exit $ac_status); } && { |
| 6862 | test -z "$ac_c_werror_flag" || |
| 6863 | test ! -s conftest.err |
| 6864 | } && test -s conftest$ac_exeext && { |
| 6865 | test "$cross_compiling" = yes || |
| 6866 | $as_test_x conftest$ac_exeext |
| 6867 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6868 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6869 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6870 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6871 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6872 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6873 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6874 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6875 | |
| 6876 | rm -rf conftest.dSYM |
| 6877 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6878 | conftest$ac_exeext conftest.$ac_ext |
| 6879 | LIBS=$ac_check_lib_save_LIBS |
| 6880 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6881 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 6882 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 6883 | 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] | 6884 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6885 | fi |
| 6886 | |
| 6887 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6888 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6889 | |
| 6890 | rm -rf conftest.dSYM |
| 6891 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6892 | conftest$ac_exeext conftest.$ac_ext |
| 6893 | LIBS="$ac_xsave_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6894 | |
| 6895 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 6896 | # to get the SysV transport functions. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6897 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6898 | # needs -lnsl. |
| 6899 | # The nsl library prevents programs from opening the X display |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6900 | # on Irix 5.2, according to T.E. Dickey. |
| 6901 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 6902 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6903 | { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 6904 | $as_echo_n "checking for gethostbyname... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6905 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6906 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6907 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6908 | cat >conftest.$ac_ext <<_ACEOF |
| 6909 | /* confdefs.h. */ |
| 6910 | _ACEOF |
| 6911 | cat confdefs.h >>conftest.$ac_ext |
| 6912 | cat >>conftest.$ac_ext <<_ACEOF |
| 6913 | /* end confdefs.h. */ |
| 6914 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 6915 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6916 | #define gethostbyname innocuous_gethostbyname |
| 6917 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6918 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6919 | which can conflict with char gethostbyname (); below. |
| 6920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6921 | <limits.h> exists even on freestanding compilers. */ |
| 6922 | |
| 6923 | #ifdef __STDC__ |
| 6924 | # include <limits.h> |
| 6925 | #else |
| 6926 | # include <assert.h> |
| 6927 | #endif |
| 6928 | |
| 6929 | #undef gethostbyname |
| 6930 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6931 | /* Override any GCC internal prototype to avoid an error. |
| 6932 | Use char because int might match the return type of a GCC |
| 6933 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6934 | #ifdef __cplusplus |
| 6935 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6936 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6937 | char gethostbyname (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6938 | /* The GNU C library defines this for functions which it implements |
| 6939 | to always fail with ENOSYS. Some functions are actually named |
| 6940 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6941 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6942 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6943 | #endif |
| 6944 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6945 | int |
| 6946 | main () |
| 6947 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6948 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6949 | ; |
| 6950 | return 0; |
| 6951 | } |
| 6952 | _ACEOF |
| 6953 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6954 | if { (ac_try="$ac_link" |
| 6955 | case "(($ac_try" in |
| 6956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6957 | *) ac_try_echo=$ac_try;; |
| 6958 | esac |
| 6959 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6960 | $as_echo "$ac_try_echo") >&5 |
| 6961 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6962 | ac_status=$? |
| 6963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6964 | rm -f conftest.er1 |
| 6965 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6966 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6967 | (exit $ac_status); } && { |
| 6968 | test -z "$ac_c_werror_flag" || |
| 6969 | test ! -s conftest.err |
| 6970 | } && test -s conftest$ac_exeext && { |
| 6971 | test "$cross_compiling" = yes || |
| 6972 | $as_test_x conftest$ac_exeext |
| 6973 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6974 | ac_cv_func_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6975 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6976 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6977 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6978 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6979 | ac_cv_func_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6980 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6981 | |
| 6982 | rm -rf conftest.dSYM |
| 6983 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6984 | conftest$ac_exeext conftest.$ac_ext |
| 6985 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6986 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 6987 | $as_echo "$ac_cv_func_gethostbyname" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6988 | |
| 6989 | if test $ac_cv_func_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 -lnsl" >&5 |
| 6991 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6992 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6993 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6994 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6995 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6996 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 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_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7044 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7045 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +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_nsl_gethostbyname" >&5 |
| 7054 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7055 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7056 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7057 | fi |
| 7058 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7059 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7060 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 7061 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7062 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7063 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7064 | else |
| 7065 | ac_check_lib_save_LIBS=$LIBS |
| 7066 | LIBS="-lbsd $LIBS" |
| 7067 | cat >conftest.$ac_ext <<_ACEOF |
| 7068 | /* confdefs.h. */ |
| 7069 | _ACEOF |
| 7070 | cat confdefs.h >>conftest.$ac_ext |
| 7071 | cat >>conftest.$ac_ext <<_ACEOF |
| 7072 | /* end confdefs.h. */ |
| 7073 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7074 | /* Override any GCC internal prototype to avoid an error. |
| 7075 | Use char because int might match the return type of a GCC |
| 7076 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7077 | #ifdef __cplusplus |
| 7078 | extern "C" |
| 7079 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7080 | char gethostbyname (); |
| 7081 | int |
| 7082 | main () |
| 7083 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7084 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7085 | ; |
| 7086 | return 0; |
| 7087 | } |
| 7088 | _ACEOF |
| 7089 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7090 | if { (ac_try="$ac_link" |
| 7091 | case "(($ac_try" in |
| 7092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7093 | *) ac_try_echo=$ac_try;; |
| 7094 | esac |
| 7095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7096 | $as_echo "$ac_try_echo") >&5 |
| 7097 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7098 | ac_status=$? |
| 7099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7100 | rm -f conftest.er1 |
| 7101 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7103 | (exit $ac_status); } && { |
| 7104 | test -z "$ac_c_werror_flag" || |
| 7105 | test ! -s conftest.err |
| 7106 | } && test -s conftest$ac_exeext && { |
| 7107 | test "$cross_compiling" = yes || |
| 7108 | $as_test_x conftest$ac_exeext |
| 7109 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7110 | ac_cv_lib_bsd_gethostbyname=yes |
| 7111 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7112 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7114 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7115 | ac_cv_lib_bsd_gethostbyname=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7116 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7117 | |
| 7118 | rm -rf conftest.dSYM |
| 7119 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7120 | conftest$ac_exeext conftest.$ac_ext |
| 7121 | LIBS=$ac_check_lib_save_LIBS |
| 7122 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7123 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 7124 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7125 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7126 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 7127 | fi |
| 7128 | |
| 7129 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7130 | fi |
| 7131 | |
| 7132 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 7133 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 7134 | # 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] | 7135 | # on later versions), says Simon Leinen: it contains gethostby* |
| 7136 | # variants that don't use the name server (or something). -lsocket |
| 7137 | # must be given before -lnsl if both are needed. We assume that |
| 7138 | # if connect needs -lnsl, so does gethostbyname. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7139 | { $as_echo "$as_me:$LINENO: checking for connect" >&5 |
| 7140 | $as_echo_n "checking for connect... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7141 | if test "${ac_cv_func_connect+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7142 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7143 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7144 | cat >conftest.$ac_ext <<_ACEOF |
| 7145 | /* confdefs.h. */ |
| 7146 | _ACEOF |
| 7147 | cat confdefs.h >>conftest.$ac_ext |
| 7148 | cat >>conftest.$ac_ext <<_ACEOF |
| 7149 | /* end confdefs.h. */ |
| 7150 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 7151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7152 | #define connect innocuous_connect |
| 7153 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7154 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7155 | which can conflict with char connect (); below. |
| 7156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7157 | <limits.h> exists even on freestanding compilers. */ |
| 7158 | |
| 7159 | #ifdef __STDC__ |
| 7160 | # include <limits.h> |
| 7161 | #else |
| 7162 | # include <assert.h> |
| 7163 | #endif |
| 7164 | |
| 7165 | #undef connect |
| 7166 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7167 | /* Override any GCC internal prototype to avoid an error. |
| 7168 | Use char because int might match the return type of a GCC |
| 7169 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7170 | #ifdef __cplusplus |
| 7171 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7172 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7173 | char connect (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7174 | /* The GNU C library defines this for functions which it implements |
| 7175 | to always fail with ENOSYS. Some functions are actually named |
| 7176 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7177 | #if defined __stub_connect || defined __stub___connect |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7178 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7179 | #endif |
| 7180 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7181 | int |
| 7182 | main () |
| 7183 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7184 | return connect (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7185 | ; |
| 7186 | return 0; |
| 7187 | } |
| 7188 | _ACEOF |
| 7189 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7190 | if { (ac_try="$ac_link" |
| 7191 | case "(($ac_try" in |
| 7192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7193 | *) ac_try_echo=$ac_try;; |
| 7194 | esac |
| 7195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7196 | $as_echo "$ac_try_echo") >&5 |
| 7197 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7198 | ac_status=$? |
| 7199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7200 | rm -f conftest.er1 |
| 7201 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7203 | (exit $ac_status); } && { |
| 7204 | test -z "$ac_c_werror_flag" || |
| 7205 | test ! -s conftest.err |
| 7206 | } && test -s conftest$ac_exeext && { |
| 7207 | test "$cross_compiling" = yes || |
| 7208 | $as_test_x conftest$ac_exeext |
| 7209 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7210 | ac_cv_func_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7211 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7212 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7213 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7214 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7215 | ac_cv_func_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7216 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7217 | |
| 7218 | rm -rf conftest.dSYM |
| 7219 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7220 | conftest$ac_exeext conftest.$ac_ext |
| 7221 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7222 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 7223 | $as_echo "$ac_cv_func_connect" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7224 | |
| 7225 | if test $ac_cv_func_connect = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7226 | { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 7227 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7228 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7229 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7230 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7231 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7232 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
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 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7240 | /* Override any GCC internal prototype to avoid an error. |
| 7241 | Use char because int might match the return type of a GCC |
| 7242 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7243 | #ifdef __cplusplus |
| 7244 | extern "C" |
| 7245 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7246 | char connect (); |
| 7247 | int |
| 7248 | main () |
| 7249 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7250 | return connect (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7251 | ; |
| 7252 | return 0; |
| 7253 | } |
| 7254 | _ACEOF |
| 7255 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7256 | if { (ac_try="$ac_link" |
| 7257 | case "(($ac_try" in |
| 7258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7259 | *) ac_try_echo=$ac_try;; |
| 7260 | esac |
| 7261 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7262 | $as_echo "$ac_try_echo") >&5 |
| 7263 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7264 | ac_status=$? |
| 7265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7266 | rm -f conftest.er1 |
| 7267 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7268 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7269 | (exit $ac_status); } && { |
| 7270 | test -z "$ac_c_werror_flag" || |
| 7271 | test ! -s conftest.err |
| 7272 | } && test -s conftest$ac_exeext && { |
| 7273 | test "$cross_compiling" = yes || |
| 7274 | $as_test_x conftest$ac_exeext |
| 7275 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7276 | ac_cv_lib_socket_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7277 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7278 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7279 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7280 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7281 | ac_cv_lib_socket_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7282 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7283 | |
| 7284 | rm -rf conftest.dSYM |
| 7285 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7286 | conftest$ac_exeext conftest.$ac_ext |
| 7287 | LIBS=$ac_check_lib_save_LIBS |
| 7288 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7289 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 7290 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7291 | if test "x$ac_cv_lib_socket_connect" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7292 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7293 | fi |
| 7294 | |
| 7295 | fi |
| 7296 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7297 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7298 | { $as_echo "$as_me:$LINENO: checking for remove" >&5 |
| 7299 | $as_echo_n "checking for remove... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7300 | if test "${ac_cv_func_remove+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7301 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7302 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7303 | cat >conftest.$ac_ext <<_ACEOF |
| 7304 | /* confdefs.h. */ |
| 7305 | _ACEOF |
| 7306 | cat confdefs.h >>conftest.$ac_ext |
| 7307 | cat >>conftest.$ac_ext <<_ACEOF |
| 7308 | /* end confdefs.h. */ |
| 7309 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 7310 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7311 | #define remove innocuous_remove |
| 7312 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7313 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7314 | which can conflict with char remove (); below. |
| 7315 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7316 | <limits.h> exists even on freestanding compilers. */ |
| 7317 | |
| 7318 | #ifdef __STDC__ |
| 7319 | # include <limits.h> |
| 7320 | #else |
| 7321 | # include <assert.h> |
| 7322 | #endif |
| 7323 | |
| 7324 | #undef remove |
| 7325 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7326 | /* Override any GCC internal prototype to avoid an error. |
| 7327 | Use char because int might match the return type of a GCC |
| 7328 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7329 | #ifdef __cplusplus |
| 7330 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7331 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7332 | char remove (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7333 | /* The GNU C library defines this for functions which it implements |
| 7334 | to always fail with ENOSYS. Some functions are actually named |
| 7335 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7336 | #if defined __stub_remove || defined __stub___remove |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7337 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7338 | #endif |
| 7339 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7340 | int |
| 7341 | main () |
| 7342 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7343 | return remove (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7344 | ; |
| 7345 | return 0; |
| 7346 | } |
| 7347 | _ACEOF |
| 7348 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7349 | if { (ac_try="$ac_link" |
| 7350 | case "(($ac_try" in |
| 7351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7352 | *) ac_try_echo=$ac_try;; |
| 7353 | esac |
| 7354 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7355 | $as_echo "$ac_try_echo") >&5 |
| 7356 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7357 | ac_status=$? |
| 7358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7359 | rm -f conftest.er1 |
| 7360 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7361 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7362 | (exit $ac_status); } && { |
| 7363 | test -z "$ac_c_werror_flag" || |
| 7364 | test ! -s conftest.err |
| 7365 | } && test -s conftest$ac_exeext && { |
| 7366 | test "$cross_compiling" = yes || |
| 7367 | $as_test_x conftest$ac_exeext |
| 7368 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7369 | ac_cv_func_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7370 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7371 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7372 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7373 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7374 | ac_cv_func_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7375 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7376 | |
| 7377 | rm -rf conftest.dSYM |
| 7378 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7379 | conftest$ac_exeext conftest.$ac_ext |
| 7380 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7381 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 7382 | $as_echo "$ac_cv_func_remove" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7383 | |
| 7384 | if test $ac_cv_func_remove = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7385 | { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 7386 | $as_echo_n "checking for remove in -lposix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7387 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7388 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7389 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7390 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7391 | LIBS="-lposix $LIBS" |
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 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7399 | /* Override any GCC internal prototype to avoid an error. |
| 7400 | Use char because int might match the return type of a GCC |
| 7401 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7402 | #ifdef __cplusplus |
| 7403 | extern "C" |
| 7404 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7405 | char remove (); |
| 7406 | int |
| 7407 | main () |
| 7408 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7409 | return remove (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7410 | ; |
| 7411 | return 0; |
| 7412 | } |
| 7413 | _ACEOF |
| 7414 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7415 | if { (ac_try="$ac_link" |
| 7416 | case "(($ac_try" in |
| 7417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7418 | *) ac_try_echo=$ac_try;; |
| 7419 | esac |
| 7420 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7421 | $as_echo "$ac_try_echo") >&5 |
| 7422 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7423 | ac_status=$? |
| 7424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7425 | rm -f conftest.er1 |
| 7426 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7427 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7428 | (exit $ac_status); } && { |
| 7429 | test -z "$ac_c_werror_flag" || |
| 7430 | test ! -s conftest.err |
| 7431 | } && test -s conftest$ac_exeext && { |
| 7432 | test "$cross_compiling" = yes || |
| 7433 | $as_test_x conftest$ac_exeext |
| 7434 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7435 | ac_cv_lib_posix_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7436 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7437 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7438 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7439 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7440 | ac_cv_lib_posix_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7441 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7442 | |
| 7443 | rm -rf conftest.dSYM |
| 7444 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7445 | conftest$ac_exeext conftest.$ac_ext |
| 7446 | LIBS=$ac_check_lib_save_LIBS |
| 7447 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7448 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 7449 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7450 | if test "x$ac_cv_lib_posix_remove" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7451 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7452 | fi |
| 7453 | |
| 7454 | fi |
| 7455 | |
| 7456 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7457 | { $as_echo "$as_me:$LINENO: checking for shmat" >&5 |
| 7458 | $as_echo_n "checking for shmat... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7459 | if test "${ac_cv_func_shmat+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7460 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7461 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7462 | cat >conftest.$ac_ext <<_ACEOF |
| 7463 | /* confdefs.h. */ |
| 7464 | _ACEOF |
| 7465 | cat confdefs.h >>conftest.$ac_ext |
| 7466 | cat >>conftest.$ac_ext <<_ACEOF |
| 7467 | /* end confdefs.h. */ |
| 7468 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 7469 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7470 | #define shmat innocuous_shmat |
| 7471 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7472 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7473 | which can conflict with char shmat (); below. |
| 7474 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7475 | <limits.h> exists even on freestanding compilers. */ |
| 7476 | |
| 7477 | #ifdef __STDC__ |
| 7478 | # include <limits.h> |
| 7479 | #else |
| 7480 | # include <assert.h> |
| 7481 | #endif |
| 7482 | |
| 7483 | #undef shmat |
| 7484 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7485 | /* Override any GCC internal prototype to avoid an error. |
| 7486 | Use char because int might match the return type of a GCC |
| 7487 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7488 | #ifdef __cplusplus |
| 7489 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7490 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7491 | char shmat (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7492 | /* The GNU C library defines this for functions which it implements |
| 7493 | to always fail with ENOSYS. Some functions are actually named |
| 7494 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7495 | #if defined __stub_shmat || defined __stub___shmat |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7496 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7497 | #endif |
| 7498 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7499 | int |
| 7500 | main () |
| 7501 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7502 | return shmat (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7503 | ; |
| 7504 | return 0; |
| 7505 | } |
| 7506 | _ACEOF |
| 7507 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7508 | if { (ac_try="$ac_link" |
| 7509 | case "(($ac_try" in |
| 7510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7511 | *) ac_try_echo=$ac_try;; |
| 7512 | esac |
| 7513 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7514 | $as_echo "$ac_try_echo") >&5 |
| 7515 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7516 | ac_status=$? |
| 7517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7518 | rm -f conftest.er1 |
| 7519 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7520 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7521 | (exit $ac_status); } && { |
| 7522 | test -z "$ac_c_werror_flag" || |
| 7523 | test ! -s conftest.err |
| 7524 | } && test -s conftest$ac_exeext && { |
| 7525 | test "$cross_compiling" = yes || |
| 7526 | $as_test_x conftest$ac_exeext |
| 7527 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7528 | ac_cv_func_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7529 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7530 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7531 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7532 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7533 | ac_cv_func_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7534 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7535 | |
| 7536 | rm -rf conftest.dSYM |
| 7537 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7538 | conftest$ac_exeext conftest.$ac_ext |
| 7539 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7540 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 7541 | $as_echo "$ac_cv_func_shmat" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7542 | |
| 7543 | if test $ac_cv_func_shmat = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7544 | { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 7545 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7546 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7547 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7548 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7549 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7550 | LIBS="-lipc $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7551 | cat >conftest.$ac_ext <<_ACEOF |
| 7552 | /* confdefs.h. */ |
| 7553 | _ACEOF |
| 7554 | cat confdefs.h >>conftest.$ac_ext |
| 7555 | cat >>conftest.$ac_ext <<_ACEOF |
| 7556 | /* end confdefs.h. */ |
| 7557 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7558 | /* Override any GCC internal prototype to avoid an error. |
| 7559 | Use char because int might match the return type of a GCC |
| 7560 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7561 | #ifdef __cplusplus |
| 7562 | extern "C" |
| 7563 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7564 | char shmat (); |
| 7565 | int |
| 7566 | main () |
| 7567 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7568 | return shmat (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7569 | ; |
| 7570 | return 0; |
| 7571 | } |
| 7572 | _ACEOF |
| 7573 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7574 | if { (ac_try="$ac_link" |
| 7575 | case "(($ac_try" in |
| 7576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7577 | *) ac_try_echo=$ac_try;; |
| 7578 | esac |
| 7579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7580 | $as_echo "$ac_try_echo") >&5 |
| 7581 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7582 | ac_status=$? |
| 7583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7584 | rm -f conftest.er1 |
| 7585 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7587 | (exit $ac_status); } && { |
| 7588 | test -z "$ac_c_werror_flag" || |
| 7589 | test ! -s conftest.err |
| 7590 | } && test -s conftest$ac_exeext && { |
| 7591 | test "$cross_compiling" = yes || |
| 7592 | $as_test_x conftest$ac_exeext |
| 7593 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7594 | ac_cv_lib_ipc_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7595 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7596 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7597 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7598 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7599 | ac_cv_lib_ipc_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7600 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7601 | |
| 7602 | rm -rf conftest.dSYM |
| 7603 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7604 | conftest$ac_exeext conftest.$ac_ext |
| 7605 | LIBS=$ac_check_lib_save_LIBS |
| 7606 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7607 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 7608 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7609 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7610 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7611 | fi |
| 7612 | |
| 7613 | fi |
| 7614 | fi |
| 7615 | |
| 7616 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7617 | ac_save_LDFLAGS=$LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7618 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 7619 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 7620 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 7621 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 7622 | # These have to be linked with before -lX11, unlike the other |
| 7623 | # libraries we check for below, so use a different variable. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7624 | # John Interrante, Karl Berry |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7625 | { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 7626 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7627 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7628 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7629 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7630 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7631 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7632 | cat >conftest.$ac_ext <<_ACEOF |
| 7633 | /* confdefs.h. */ |
| 7634 | _ACEOF |
| 7635 | cat confdefs.h >>conftest.$ac_ext |
| 7636 | cat >>conftest.$ac_ext <<_ACEOF |
| 7637 | /* end confdefs.h. */ |
| 7638 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7639 | /* Override any GCC internal prototype to avoid an error. |
| 7640 | Use char because int might match the return type of a GCC |
| 7641 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7642 | #ifdef __cplusplus |
| 7643 | extern "C" |
| 7644 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7645 | char IceConnectionNumber (); |
| 7646 | int |
| 7647 | main () |
| 7648 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7649 | return IceConnectionNumber (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7650 | ; |
| 7651 | return 0; |
| 7652 | } |
| 7653 | _ACEOF |
| 7654 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7655 | if { (ac_try="$ac_link" |
| 7656 | case "(($ac_try" in |
| 7657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7658 | *) ac_try_echo=$ac_try;; |
| 7659 | esac |
| 7660 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7661 | $as_echo "$ac_try_echo") >&5 |
| 7662 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7663 | ac_status=$? |
| 7664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7665 | rm -f conftest.er1 |
| 7666 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7667 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7668 | (exit $ac_status); } && { |
| 7669 | test -z "$ac_c_werror_flag" || |
| 7670 | test ! -s conftest.err |
| 7671 | } && test -s conftest$ac_exeext && { |
| 7672 | test "$cross_compiling" = yes || |
| 7673 | $as_test_x conftest$ac_exeext |
| 7674 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7675 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7676 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7677 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7678 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7679 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7680 | ac_cv_lib_ICE_IceConnectionNumber=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7681 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7682 | |
| 7683 | rm -rf conftest.dSYM |
| 7684 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7685 | conftest$ac_exeext conftest.$ac_ext |
| 7686 | LIBS=$ac_check_lib_save_LIBS |
| 7687 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7688 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 7689 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7690 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7691 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7692 | fi |
| 7693 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7694 | LDFLAGS=$ac_save_LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7695 | |
| 7696 | fi |
| 7697 | |
| 7698 | |
| 7699 | if test "$OS390Unix" = "yes"; then |
| 7700 | CFLAGS="$CFLAGS -W c,dll" |
| 7701 | LDFLAGS="$LDFLAGS -W l,dll" |
| 7702 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 7703 | fi |
| 7704 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7705 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7706 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 7707 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7708 | { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 |
| 7709 | $as_echo "Corrected X libraries to $x_libraries" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7710 | X_LIBS="$X_LIBS -L$x_libraries" |
| 7711 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 7712 | uname -r | grep '^5' >/dev/null; then |
| 7713 | X_LIBS="$X_LIBS -R $x_libraries" |
| 7714 | fi |
| 7715 | fi |
| 7716 | |
| 7717 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 7718 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7719 | { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 |
| 7720 | $as_echo "Corrected X includes to $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7721 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 7722 | fi |
| 7723 | |
| 7724 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 7725 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 7726 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 7727 | |
| 7728 | |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 7729 | { $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] | 7730 | $as_echo_n "checking if X11 header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7731 | cflags_save=$CFLAGS |
| 7732 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7733 | cat >conftest.$ac_ext <<_ACEOF |
| 7734 | /* confdefs.h. */ |
| 7735 | _ACEOF |
| 7736 | cat confdefs.h >>conftest.$ac_ext |
| 7737 | cat >>conftest.$ac_ext <<_ACEOF |
| 7738 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7739 | #include <X11/Xlib.h> |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 7740 | #include <X11/Intrinsic.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7741 | int |
| 7742 | main () |
| 7743 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7744 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7745 | ; |
| 7746 | return 0; |
| 7747 | } |
| 7748 | _ACEOF |
| 7749 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7750 | if { (ac_try="$ac_compile" |
| 7751 | case "(($ac_try" in |
| 7752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7753 | *) ac_try_echo=$ac_try;; |
| 7754 | esac |
| 7755 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7756 | $as_echo "$ac_try_echo") >&5 |
| 7757 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7758 | ac_status=$? |
| 7759 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7760 | rm -f conftest.er1 |
| 7761 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7762 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7763 | (exit $ac_status); } && { |
| 7764 | test -z "$ac_c_werror_flag" || |
| 7765 | test ! -s conftest.err |
| 7766 | } && test -s conftest.$ac_objext; then |
| 7767 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 7768 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7769 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7770 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7772 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7773 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7774 | $as_echo "no" >&6; }; no_x=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7775 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7776 | |
| 7777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7778 | CFLAGS=$cflags_save |
| 7779 | |
| 7780 | if test "${no_x-no}" = yes; then |
| 7781 | with_x=no |
| 7782 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7783 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7784 | #define HAVE_X11 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7785 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7786 | |
| 7787 | X_LIB="-lXt -lX11"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7788 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7789 | |
| 7790 | ac_save_LDFLAGS="$LDFLAGS" |
| 7791 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 7792 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7793 | { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 7794 | $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7795 | if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+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="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $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 _XdmcpAuthDoIt (); |
| 7814 | int |
| 7815 | main () |
| 7816 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7817 | return _XdmcpAuthDoIt (); |
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_Xdmcp__XdmcpAuthDoIt=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_Xdmcp__XdmcpAuthDoIt=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_Xdmcp__XdmcpAuthDoIt" >&5 |
| 7857 | $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7858 | if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7859 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7860 | fi |
| 7861 | |
| 7862 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7863 | { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 |
| 7864 | $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7865 | if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7866 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7867 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7868 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7869 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7870 | cat >conftest.$ac_ext <<_ACEOF |
| 7871 | /* confdefs.h. */ |
| 7872 | _ACEOF |
| 7873 | cat confdefs.h >>conftest.$ac_ext |
| 7874 | cat >>conftest.$ac_ext <<_ACEOF |
| 7875 | /* end confdefs.h. */ |
| 7876 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7877 | /* Override any GCC internal prototype to avoid an error. |
| 7878 | Use char because int might match the return type of a GCC |
| 7879 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7880 | #ifdef __cplusplus |
| 7881 | extern "C" |
| 7882 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7883 | char IceOpenConnection (); |
| 7884 | int |
| 7885 | main () |
| 7886 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7887 | return IceOpenConnection (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7888 | ; |
| 7889 | return 0; |
| 7890 | } |
| 7891 | _ACEOF |
| 7892 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7893 | if { (ac_try="$ac_link" |
| 7894 | case "(($ac_try" in |
| 7895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7896 | *) ac_try_echo=$ac_try;; |
| 7897 | esac |
| 7898 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7899 | $as_echo "$ac_try_echo") >&5 |
| 7900 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7901 | ac_status=$? |
| 7902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7903 | rm -f conftest.er1 |
| 7904 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7905 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7906 | (exit $ac_status); } && { |
| 7907 | test -z "$ac_c_werror_flag" || |
| 7908 | test ! -s conftest.err |
| 7909 | } && test -s conftest$ac_exeext && { |
| 7910 | test "$cross_compiling" = yes || |
| 7911 | $as_test_x conftest$ac_exeext |
| 7912 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7913 | ac_cv_lib_ICE_IceOpenConnection=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7914 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7915 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7916 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7917 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7918 | ac_cv_lib_ICE_IceOpenConnection=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7919 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7920 | |
| 7921 | rm -rf conftest.dSYM |
| 7922 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7923 | conftest$ac_exeext conftest.$ac_ext |
| 7924 | LIBS=$ac_check_lib_save_LIBS |
| 7925 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7926 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 7927 | $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7928 | if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7929 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7930 | fi |
| 7931 | |
| 7932 | |
| 7933 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7934 | { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 7935 | $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7936 | if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7937 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7938 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7939 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7940 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7941 | cat >conftest.$ac_ext <<_ACEOF |
| 7942 | /* confdefs.h. */ |
| 7943 | _ACEOF |
| 7944 | cat confdefs.h >>conftest.$ac_ext |
| 7945 | cat >>conftest.$ac_ext <<_ACEOF |
| 7946 | /* end confdefs.h. */ |
| 7947 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7948 | /* Override any GCC internal prototype to avoid an error. |
| 7949 | Use char because int might match the return type of a GCC |
| 7950 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7951 | #ifdef __cplusplus |
| 7952 | extern "C" |
| 7953 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7954 | char XpmCreatePixmapFromData (); |
| 7955 | int |
| 7956 | main () |
| 7957 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7958 | return XpmCreatePixmapFromData (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7959 | ; |
| 7960 | return 0; |
| 7961 | } |
| 7962 | _ACEOF |
| 7963 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7964 | if { (ac_try="$ac_link" |
| 7965 | case "(($ac_try" in |
| 7966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7967 | *) ac_try_echo=$ac_try;; |
| 7968 | esac |
| 7969 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7970 | $as_echo "$ac_try_echo") >&5 |
| 7971 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7972 | ac_status=$? |
| 7973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7974 | rm -f conftest.er1 |
| 7975 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7976 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7977 | (exit $ac_status); } && { |
| 7978 | test -z "$ac_c_werror_flag" || |
| 7979 | test ! -s conftest.err |
| 7980 | } && test -s conftest$ac_exeext && { |
| 7981 | test "$cross_compiling" = yes || |
| 7982 | $as_test_x conftest$ac_exeext |
| 7983 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7984 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7985 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7986 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7987 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7988 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7989 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7990 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7991 | |
| 7992 | rm -rf conftest.dSYM |
| 7993 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7994 | conftest$ac_exeext conftest.$ac_ext |
| 7995 | LIBS=$ac_check_lib_save_LIBS |
| 7996 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7997 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 7998 | $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 7999 | if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8000 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8001 | fi |
| 8002 | |
| 8003 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8004 | { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 |
| 8005 | $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] | 8006 | cflags_save=$CFLAGS |
| 8007 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8008 | cat >conftest.$ac_ext <<_ACEOF |
| 8009 | /* confdefs.h. */ |
| 8010 | _ACEOF |
| 8011 | cat confdefs.h >>conftest.$ac_ext |
| 8012 | cat >>conftest.$ac_ext <<_ACEOF |
| 8013 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8014 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8015 | int |
| 8016 | main () |
| 8017 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8018 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8019 | ; |
| 8020 | return 0; |
| 8021 | } |
| 8022 | _ACEOF |
| 8023 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8024 | if { (ac_try="$ac_compile" |
| 8025 | case "(($ac_try" in |
| 8026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8027 | *) ac_try_echo=$ac_try;; |
| 8028 | esac |
| 8029 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8030 | $as_echo "$ac_try_echo") >&5 |
| 8031 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8032 | ac_status=$? |
| 8033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8034 | rm -f conftest.er1 |
| 8035 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8036 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8037 | (exit $ac_status); } && { |
| 8038 | test -z "$ac_c_werror_flag" || |
| 8039 | test ! -s conftest.err |
| 8040 | } && test -s conftest.$ac_objext; then |
| 8041 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8042 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8043 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8044 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8046 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8047 | CFLAGS="$CFLAGS -Wno-implicit-int" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8048 | cat >conftest.$ac_ext <<_ACEOF |
| 8049 | /* confdefs.h. */ |
| 8050 | _ACEOF |
| 8051 | cat confdefs.h >>conftest.$ac_ext |
| 8052 | cat >>conftest.$ac_ext <<_ACEOF |
| 8053 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8054 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8055 | int |
| 8056 | main () |
| 8057 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8058 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8059 | ; |
| 8060 | return 0; |
| 8061 | } |
| 8062 | _ACEOF |
| 8063 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8064 | if { (ac_try="$ac_compile" |
| 8065 | case "(($ac_try" in |
| 8066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8067 | *) ac_try_echo=$ac_try;; |
| 8068 | esac |
| 8069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8070 | $as_echo "$ac_try_echo") >&5 |
| 8071 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8072 | ac_status=$? |
| 8073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8074 | rm -f conftest.er1 |
| 8075 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8077 | (exit $ac_status); } && { |
| 8078 | test -z "$ac_c_werror_flag" || |
| 8079 | test ! -s conftest.err |
| 8080 | } && test -s conftest.$ac_objext; then |
| 8081 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8082 | $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8083 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8084 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8086 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8087 | { $as_echo "$as_me:$LINENO: result: test failed" >&5 |
| 8088 | $as_echo "test failed" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8089 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8090 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8091 | |
| 8092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8093 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8094 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8095 | |
| 8096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8097 | CFLAGS=$cflags_save |
| 8098 | |
| 8099 | LDFLAGS="$ac_save_LDFLAGS" |
| 8100 | |
Bram Moolenaar | 4bdbbf7 | 2009-05-21 21:27:43 +0000 | [diff] [blame] | 8101 | { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5 |
| 8102 | $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } |
| 8103 | if test "${ac_cv_small_wchar_t+set}" = set; then |
| 8104 | $as_echo_n "(cached) " >&6 |
| 8105 | else |
| 8106 | if test "$cross_compiling" = yes; then |
| 8107 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 8108 | $as_echo "$as_me: error: failed to compile test program" >&2;} |
| 8109 | { (exit 1); exit 1; }; } |
| 8110 | else |
| 8111 | cat >conftest.$ac_ext <<_ACEOF |
| 8112 | /* confdefs.h. */ |
| 8113 | _ACEOF |
| 8114 | cat confdefs.h >>conftest.$ac_ext |
| 8115 | cat >>conftest.$ac_ext <<_ACEOF |
| 8116 | /* end confdefs.h. */ |
| 8117 | |
| 8118 | #include <X11/Xlib.h> |
| 8119 | #if STDC_HEADERS |
| 8120 | # include <stdlib.h> |
| 8121 | # include <stddef.h> |
| 8122 | #endif |
| 8123 | main() |
| 8124 | { |
| 8125 | if (sizeof(wchar_t) <= 2) |
| 8126 | exit(1); |
| 8127 | exit(0); |
| 8128 | } |
| 8129 | _ACEOF |
| 8130 | rm -f conftest$ac_exeext |
| 8131 | if { (ac_try="$ac_link" |
| 8132 | case "(($ac_try" in |
| 8133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8134 | *) ac_try_echo=$ac_try;; |
| 8135 | esac |
| 8136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8137 | $as_echo "$ac_try_echo") >&5 |
| 8138 | (eval "$ac_link") 2>&5 |
| 8139 | ac_status=$? |
| 8140 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8141 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8142 | { (case "(($ac_try" in |
| 8143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8144 | *) ac_try_echo=$ac_try;; |
| 8145 | esac |
| 8146 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8147 | $as_echo "$ac_try_echo") >&5 |
| 8148 | (eval "$ac_try") 2>&5 |
| 8149 | ac_status=$? |
| 8150 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8151 | (exit $ac_status); }; }; then |
| 8152 | ac_cv_small_wchar_t="no" |
| 8153 | else |
| 8154 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8155 | $as_echo "$as_me: failed program was:" >&5 |
| 8156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8157 | |
| 8158 | ( exit $ac_status ) |
| 8159 | ac_cv_small_wchar_t="yes" |
| 8160 | fi |
| 8161 | rm -rf conftest.dSYM |
| 8162 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8163 | fi |
| 8164 | |
| 8165 | |
| 8166 | fi |
| 8167 | |
| 8168 | { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5 |
| 8169 | $as_echo "$ac_cv_small_wchar_t" >&6; } |
| 8170 | if test "x$ac_cv_small_wchar_t" = "xyes" ; then |
| 8171 | cat >>confdefs.h <<\_ACEOF |
| 8172 | #define SMALL_WCHAR_T 1 |
| 8173 | _ACEOF |
| 8174 | |
| 8175 | fi |
| 8176 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8177 | fi |
| 8178 | fi |
| 8179 | |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 8180 | 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] | 8181 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8182 | { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5 |
| 8183 | $as_echo_n "checking --enable-gui argument... " >&6; } |
| 8184 | # Check whether --enable-gui was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8185 | if test "${enable_gui+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8186 | enableval=$enable_gui; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8187 | else |
| 8188 | enable_gui="auto" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8189 | fi |
| 8190 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8191 | |
| 8192 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 8193 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 8194 | |
| 8195 | SKIP_GTK=YES |
| 8196 | SKIP_GTK2=YES |
| 8197 | SKIP_GNOME=YES |
| 8198 | SKIP_MOTIF=YES |
| 8199 | SKIP_ATHENA=YES |
| 8200 | SKIP_NEXTAW=YES |
| 8201 | SKIP_PHOTON=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8202 | SKIP_CARBON=YES |
| 8203 | GUITYPE=NONE |
| 8204 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8205 | if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8206 | SKIP_PHOTON= |
| 8207 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8208 | no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8209 | $as_echo "no GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8210 | SKIP_PHOTON=YES ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8211 | yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 8212 | $as_echo "yes - automatic GUI support" >&6; } ;; |
| 8213 | auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 8214 | $as_echo "auto - automatic GUI support" >&6; } ;; |
| 8215 | photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5 |
| 8216 | $as_echo "Photon GUI support" >&6; } ;; |
| 8217 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8218 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8219 | SKIP_PHOTON=YES ;; |
| 8220 | esac |
| 8221 | |
| 8222 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 8223 | SKIP_CARBON= |
| 8224 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8225 | no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8226 | $as_echo "no GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8227 | SKIP_CARBON=YES ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8228 | yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 8229 | $as_echo "yes - automatic GUI support" >&6; } ;; |
| 8230 | auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 8231 | $as_echo "auto - automatic GUI support" >&6; } ;; |
| 8232 | carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5 |
| 8233 | $as_echo "Carbon GUI support" >&6; } ;; |
| 8234 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8235 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8236 | SKIP_CARBON=YES ;; |
| 8237 | esac |
| 8238 | |
| 8239 | else |
| 8240 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8241 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8242 | no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8243 | $as_echo "no GUI support" >&6; } ;; |
| 8244 | yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 |
| 8245 | $as_echo "yes/auto - automatic GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8246 | SKIP_GTK= |
| 8247 | SKIP_GTK2= |
| 8248 | SKIP_GNOME= |
| 8249 | SKIP_MOTIF= |
| 8250 | SKIP_ATHENA= |
| 8251 | SKIP_NEXTAW= |
| 8252 | SKIP_CARBON=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8253 | gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 |
| 8254 | $as_echo "GTK+ 1.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8255 | SKIP_GTK=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8256 | gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 |
| 8257 | $as_echo "GTK+ 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8258 | SKIP_GTK= |
| 8259 | SKIP_GTK2=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8260 | gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 |
| 8261 | $as_echo "GNOME 1.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8262 | SKIP_GNOME= |
| 8263 | SKIP_GTK=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8264 | gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 |
| 8265 | $as_echo "GNOME 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8266 | SKIP_GNOME= |
| 8267 | SKIP_GTK= |
| 8268 | SKIP_GTK2=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8269 | motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5 |
| 8270 | $as_echo "Motif GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8271 | SKIP_MOTIF=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8272 | athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5 |
| 8273 | $as_echo "Athena GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8274 | SKIP_ATHENA=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8275 | nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 |
| 8276 | $as_echo "neXtaw GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8277 | SKIP_NEXTAW=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8278 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8279 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8280 | esac |
| 8281 | |
| 8282 | fi |
| 8283 | |
| 8284 | 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] | 8285 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 |
| 8286 | $as_echo_n "checking whether or not to look for GTK... " >&6; } |
| 8287 | # Check whether --enable-gtk-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8288 | if test "${enable_gtk_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8289 | enableval=$enable_gtk_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8290 | else |
| 8291 | enable_gtk_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8292 | fi |
| 8293 | |
| 8294 | { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 |
| 8295 | $as_echo "$enable_gtk_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8296 | if test "x$enable_gtk_check" = "xno"; then |
| 8297 | SKIP_GTK=YES |
| 8298 | SKIP_GNOME=YES |
| 8299 | fi |
| 8300 | fi |
| 8301 | |
| 8302 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 8303 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8304 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 |
| 8305 | $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } |
| 8306 | # Check whether --enable-gtk2-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8307 | if test "${enable_gtk2_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8308 | enableval=$enable_gtk2_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8309 | else |
| 8310 | enable_gtk2_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8311 | fi |
| 8312 | |
| 8313 | { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 |
| 8314 | $as_echo "$enable_gtk2_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8315 | if test "x$enable_gtk2_check" = "xno"; then |
| 8316 | SKIP_GTK2=YES |
| 8317 | fi |
| 8318 | fi |
| 8319 | |
| 8320 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 8321 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8322 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 |
| 8323 | $as_echo_n "checking whether or not to look for GNOME... " >&6; } |
| 8324 | # Check whether --enable-gnome-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8325 | if test "${enable_gnome_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8326 | enableval=$enable_gnome_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8327 | else |
| 8328 | enable_gnome_check="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8329 | fi |
| 8330 | |
| 8331 | { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 |
| 8332 | $as_echo "$enable_gnome_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8333 | if test "x$enable_gnome_check" = "xno"; then |
| 8334 | SKIP_GNOME=YES |
| 8335 | fi |
| 8336 | fi |
| 8337 | |
| 8338 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8339 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 |
| 8340 | $as_echo_n "checking whether or not to look for Motif... " >&6; } |
| 8341 | # Check whether --enable-motif-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8342 | if test "${enable_motif_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8343 | enableval=$enable_motif_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8344 | else |
| 8345 | enable_motif_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8346 | fi |
| 8347 | |
| 8348 | { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5 |
| 8349 | $as_echo "$enable_motif_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8350 | if test "x$enable_motif_check" = "xno"; then |
| 8351 | SKIP_MOTIF=YES |
| 8352 | fi |
| 8353 | fi |
| 8354 | |
| 8355 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8356 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 |
| 8357 | $as_echo_n "checking whether or not to look for Athena... " >&6; } |
| 8358 | # Check whether --enable-athena-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8359 | if test "${enable_athena_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8360 | enableval=$enable_athena_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8361 | else |
| 8362 | enable_athena_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8363 | fi |
| 8364 | |
| 8365 | { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5 |
| 8366 | $as_echo "$enable_athena_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8367 | if test "x$enable_athena_check" = "xno"; then |
| 8368 | SKIP_ATHENA=YES |
| 8369 | fi |
| 8370 | fi |
| 8371 | |
| 8372 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8373 | { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 |
| 8374 | $as_echo_n "checking whether or not to look for neXtaw... " >&6; } |
| 8375 | # Check whether --enable-nextaw-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8376 | if test "${enable_nextaw_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8377 | enableval=$enable_nextaw_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8378 | else |
| 8379 | enable_nextaw_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8380 | fi |
| 8381 | |
| 8382 | { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 |
| 8383 | $as_echo "$enable_nextaw_check" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8384 | if test "x$enable_nextaw_check" = "xno"; then |
| 8385 | SKIP_NEXTAW=YES |
| 8386 | fi |
| 8387 | fi |
| 8388 | |
| 8389 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8390 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 |
| 8391 | $as_echo_n "checking whether or not to look for Carbon... " >&6; } |
| 8392 | # Check whether --enable-carbon-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8393 | if test "${enable_carbon_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8394 | enableval=$enable_carbon_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8395 | else |
| 8396 | enable_carbon_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8397 | fi |
| 8398 | |
| 8399 | { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 |
| 8400 | $as_echo "$enable_carbon_check" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8401 | if test "x$enable_carbon_check" = "xno"; then |
| 8402 | SKIP_CARBON=YES |
| 8403 | fi |
| 8404 | fi |
| 8405 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 8406 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8407 | 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] | 8408 | { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5 |
| 8409 | $as_echo_n "checking for Carbon GUI... " >&6; } |
| 8410 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8411 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8412 | GUITYPE=CARBONGUI |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 8413 | if test "$VIMNAME" = "vim"; then |
| 8414 | VIMNAME=Vim |
| 8415 | fi |
Bram Moolenaar | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 8416 | |
| 8417 | if test x$prefix = xNONE; then |
| 8418 | prefix=/Applications |
| 8419 | fi |
| 8420 | |
| 8421 | datadir='${prefix}/Vim.app/Contents/Resources' |
| 8422 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8423 | SKIP_GTK=YES; |
| 8424 | SKIP_GTK2=YES; |
| 8425 | SKIP_GNOME=YES; |
| 8426 | SKIP_MOTIF=YES; |
| 8427 | SKIP_ATHENA=YES; |
| 8428 | SKIP_NEXTAW=YES; |
| 8429 | SKIP_PHOTON=YES; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8430 | SKIP_CARBON=YES |
| 8431 | fi |
| 8432 | |
| 8433 | |
| 8434 | |
| 8435 | |
| 8436 | |
| 8437 | |
| 8438 | |
| 8439 | |
| 8440 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8441 | if test -z "$SKIP_GTK"; then |
| 8442 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8443 | { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
| 8444 | $as_echo_n "checking --with-gtk-prefix argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8445 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8446 | # Check whether --with-gtk-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8447 | if test "${with_gtk_prefix+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8448 | withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8449 | $as_echo "$gtk_config_prefix" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8450 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8451 | gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8452 | $as_echo "no" >&6; } |
| 8453 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8454 | |
| 8455 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8456 | { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
| 8457 | $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; } |
| 8458 | |
| 8459 | # Check whether --with-gtk-exec-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8460 | if test "${with_gtk_exec_prefix+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8461 | withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8462 | $as_echo "$gtk_config_prefix" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8463 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8464 | gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8465 | $as_echo "no" >&6; } |
| 8466 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8467 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8468 | |
| 8469 | { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
| 8470 | $as_echo_n "checking --disable-gtktest argument... " >&6; } |
| 8471 | # Check whether --enable-gtktest was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8472 | if test "${enable_gtktest+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8473 | enableval=$enable_gtktest; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8474 | else |
| 8475 | enable_gtktest=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8476 | fi |
| 8477 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8478 | if test "x$enable_gtktest" = "xyes" ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8479 | { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
| 8480 | $as_echo "gtk test enabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8481 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8482 | { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
| 8483 | $as_echo "gtk test disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8484 | fi |
| 8485 | |
| 8486 | if test "x$gtk_config_prefix" != "x" ; then |
| 8487 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 8488 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 8489 | fi |
| 8490 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 8491 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 8492 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 8493 | fi |
| 8494 | if test "X$GTK_CONFIG" = "X"; then |
| 8495 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 8496 | set dummy gtk-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8497 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8498 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8499 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8500 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8501 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8502 | case $GTK_CONFIG in |
| 8503 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8504 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 8505 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8506 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8508 | for as_dir in $PATH |
| 8509 | do |
| 8510 | IFS=$as_save_IFS |
| 8511 | test -z "$as_dir" && as_dir=. |
| 8512 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8514 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8515 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8516 | break 2 |
| 8517 | fi |
| 8518 | done |
| 8519 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8520 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8521 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8522 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 8523 | ;; |
| 8524 | esac |
| 8525 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8526 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8527 | if test -n "$GTK_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8528 | { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
| 8529 | $as_echo "$GTK_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8530 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8531 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8532 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8533 | fi |
| 8534 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8535 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8536 | if test "X$GTK_CONFIG" = "Xno"; then |
| 8537 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 8538 | set dummy gtk12-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8539 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8540 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8541 | if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8542 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8543 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8544 | case $GTK12_CONFIG in |
| 8545 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8546 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 8547 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8548 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8550 | for as_dir in $PATH |
| 8551 | do |
| 8552 | IFS=$as_save_IFS |
| 8553 | test -z "$as_dir" && as_dir=. |
| 8554 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8555 | 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] | 8556 | ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8557 | $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] | 8558 | break 2 |
| 8559 | fi |
| 8560 | done |
| 8561 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8562 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8563 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8564 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 8565 | ;; |
| 8566 | esac |
| 8567 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8568 | GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8569 | if test -n "$GTK12_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8570 | { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
| 8571 | $as_echo "$GTK12_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8572 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8573 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8574 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8575 | fi |
| 8576 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8577 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8578 | GTK_CONFIG="$GTK12_CONFIG" |
| 8579 | fi |
| 8580 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8581 | { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
| 8582 | $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8583 | fi |
| 8584 | if test "X$PKG_CONFIG" = "X"; then |
| 8585 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8586 | set dummy pkg-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8587 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8588 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8589 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8590 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8591 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8592 | case $PKG_CONFIG in |
| 8593 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8594 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8595 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8596 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8598 | for as_dir in $PATH |
| 8599 | do |
| 8600 | IFS=$as_save_IFS |
| 8601 | test -z "$as_dir" && as_dir=. |
| 8602 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8603 | 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] | 8604 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8605 | $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] | 8606 | break 2 |
| 8607 | fi |
| 8608 | done |
| 8609 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8610 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8611 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8612 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 8613 | ;; |
| 8614 | esac |
| 8615 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8616 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8617 | if test -n "$PKG_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8618 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 8619 | $as_echo "$PKG_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8620 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8621 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8622 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8623 | fi |
| 8624 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8625 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8626 | fi |
| 8627 | |
| 8628 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 8629 | if test "X$SKIP_GTK2" != "XYES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8630 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8631 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8632 | { |
| 8633 | min_gtk_version=2.2.0 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8634 | { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8635 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8636 | no_gtk="" |
| 8637 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8638 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8639 | { |
| 8640 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8641 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8642 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8643 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8644 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8645 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8646 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8647 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8648 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8649 | } |
| 8650 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8651 | { |
| 8652 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8653 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8654 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8655 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8656 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8657 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8658 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8659 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8660 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8661 | } |
| 8662 | else |
| 8663 | no_gtk=yes |
| 8664 | fi |
| 8665 | |
| 8666 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8667 | { |
| 8668 | ac_save_CFLAGS="$CFLAGS" |
| 8669 | ac_save_LIBS="$LIBS" |
| 8670 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8671 | LIBS="$LIBS $GTK_LIBS" |
| 8672 | |
| 8673 | rm -f conf.gtktest |
| 8674 | if test "$cross_compiling" = yes; then |
| 8675 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8676 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8677 | cat >conftest.$ac_ext <<_ACEOF |
| 8678 | /* confdefs.h. */ |
| 8679 | _ACEOF |
| 8680 | cat confdefs.h >>conftest.$ac_ext |
| 8681 | cat >>conftest.$ac_ext <<_ACEOF |
| 8682 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8683 | |
| 8684 | #include <gtk/gtk.h> |
| 8685 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8686 | #if STDC_HEADERS |
| 8687 | # include <stdlib.h> |
| 8688 | # include <stddef.h> |
| 8689 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8690 | |
| 8691 | int |
| 8692 | main () |
| 8693 | { |
| 8694 | int major, minor, micro; |
| 8695 | char *tmp_version; |
| 8696 | |
| 8697 | system ("touch conf.gtktest"); |
| 8698 | |
| 8699 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8700 | tmp_version = g_strdup("$min_gtk_version"); |
| 8701 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8702 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8703 | exit(1); |
| 8704 | } |
| 8705 | |
| 8706 | if ((gtk_major_version > major) || |
| 8707 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8708 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8709 | (gtk_micro_version >= micro))) |
| 8710 | { |
| 8711 | return 0; |
| 8712 | } |
| 8713 | return 1; |
| 8714 | } |
| 8715 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8716 | _ACEOF |
| 8717 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8718 | if { (ac_try="$ac_link" |
| 8719 | case "(($ac_try" in |
| 8720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8721 | *) ac_try_echo=$ac_try;; |
| 8722 | esac |
| 8723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8724 | $as_echo "$ac_try_echo") >&5 |
| 8725 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8726 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8728 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8729 | { (case "(($ac_try" in |
| 8730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8731 | *) ac_try_echo=$ac_try;; |
| 8732 | esac |
| 8733 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8734 | $as_echo "$ac_try_echo") >&5 |
| 8735 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8736 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8737 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8738 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8739 | : |
| 8740 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8741 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8742 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8743 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8744 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8745 | ( exit $ac_status ) |
| 8746 | no_gtk=yes |
| 8747 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8748 | rm -rf conftest.dSYM |
| 8749 | 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] | 8750 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8751 | |
| 8752 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8753 | CFLAGS="$ac_save_CFLAGS" |
| 8754 | LIBS="$ac_save_LIBS" |
| 8755 | } |
| 8756 | fi |
| 8757 | if test "x$no_gtk" = x ; then |
| 8758 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8759 | { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8760 | $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] | 8761 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8762 | { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8763 | $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] | 8764 | fi |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8765 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 8766 | GTK_LIBNAME="$GTK_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8767 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8768 | else |
| 8769 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8770 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8771 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8772 | GTK_CFLAGS="" |
| 8773 | GTK_LIBS="" |
| 8774 | : |
| 8775 | } |
| 8776 | fi |
| 8777 | } |
| 8778 | else |
| 8779 | GTK_CFLAGS="" |
| 8780 | GTK_LIBS="" |
| 8781 | : |
| 8782 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8783 | |
| 8784 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8785 | rm -f conf.gtktest |
| 8786 | |
| 8787 | if test "x$GTK_CFLAGS" != "x"; then |
| 8788 | SKIP_ATHENA=YES |
| 8789 | SKIP_NEXTAW=YES |
| 8790 | SKIP_MOTIF=YES |
| 8791 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8792 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8793 | fi |
| 8794 | fi |
| 8795 | |
| 8796 | if test "x$GUITYPE" != "xGTK"; then |
| 8797 | SKIP_GTK2=YES |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8798 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8799 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8800 | { |
| 8801 | min_gtk_version=1.1.16 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8802 | { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8803 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8804 | no_gtk="" |
| 8805 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8806 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8807 | { |
| 8808 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8809 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8810 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8811 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8812 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8813 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8814 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8815 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8816 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8817 | } |
| 8818 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8819 | { |
| 8820 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8821 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8822 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8823 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8824 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8825 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8826 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8827 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8828 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8829 | } |
| 8830 | else |
| 8831 | no_gtk=yes |
| 8832 | fi |
| 8833 | |
| 8834 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8835 | { |
| 8836 | ac_save_CFLAGS="$CFLAGS" |
| 8837 | ac_save_LIBS="$LIBS" |
| 8838 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8839 | LIBS="$LIBS $GTK_LIBS" |
| 8840 | |
| 8841 | rm -f conf.gtktest |
| 8842 | if test "$cross_compiling" = yes; then |
| 8843 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8844 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8845 | cat >conftest.$ac_ext <<_ACEOF |
| 8846 | /* confdefs.h. */ |
| 8847 | _ACEOF |
| 8848 | cat confdefs.h >>conftest.$ac_ext |
| 8849 | cat >>conftest.$ac_ext <<_ACEOF |
| 8850 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8851 | |
| 8852 | #include <gtk/gtk.h> |
| 8853 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8854 | #if STDC_HEADERS |
| 8855 | # include <stdlib.h> |
| 8856 | # include <stddef.h> |
| 8857 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8858 | |
| 8859 | int |
| 8860 | main () |
| 8861 | { |
| 8862 | int major, minor, micro; |
| 8863 | char *tmp_version; |
| 8864 | |
| 8865 | system ("touch conf.gtktest"); |
| 8866 | |
| 8867 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8868 | tmp_version = g_strdup("$min_gtk_version"); |
| 8869 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8870 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8871 | exit(1); |
| 8872 | } |
| 8873 | |
| 8874 | if ((gtk_major_version > major) || |
| 8875 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8876 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8877 | (gtk_micro_version >= micro))) |
| 8878 | { |
| 8879 | return 0; |
| 8880 | } |
| 8881 | return 1; |
| 8882 | } |
| 8883 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8884 | _ACEOF |
| 8885 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8886 | if { (ac_try="$ac_link" |
| 8887 | case "(($ac_try" in |
| 8888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8889 | *) ac_try_echo=$ac_try;; |
| 8890 | esac |
| 8891 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8892 | $as_echo "$ac_try_echo") >&5 |
| 8893 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8894 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8895 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8896 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8897 | { (case "(($ac_try" in |
| 8898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8899 | *) ac_try_echo=$ac_try;; |
| 8900 | esac |
| 8901 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8902 | $as_echo "$ac_try_echo") >&5 |
| 8903 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8904 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8905 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8906 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8907 | : |
| 8908 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8909 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8910 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8911 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8912 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8913 | ( exit $ac_status ) |
| 8914 | no_gtk=yes |
| 8915 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8916 | rm -rf conftest.dSYM |
| 8917 | 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] | 8918 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8919 | |
| 8920 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8921 | CFLAGS="$ac_save_CFLAGS" |
| 8922 | LIBS="$ac_save_LIBS" |
| 8923 | } |
| 8924 | fi |
| 8925 | if test "x$no_gtk" = x ; then |
| 8926 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8927 | { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8928 | $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] | 8929 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8930 | { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8931 | $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] | 8932 | fi |
| 8933 | GTK_LIBNAME="$GTK_LIBS" |
| 8934 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8935 | else |
| 8936 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8937 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8938 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8939 | GTK_CFLAGS="" |
| 8940 | GTK_LIBS="" |
| 8941 | : |
| 8942 | } |
| 8943 | fi |
| 8944 | } |
| 8945 | else |
| 8946 | GTK_CFLAGS="" |
| 8947 | GTK_LIBS="" |
| 8948 | : |
| 8949 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8950 | |
| 8951 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8952 | rm -f conf.gtktest |
| 8953 | |
| 8954 | if test "x$GTK_CFLAGS" != "x"; then |
| 8955 | SKIP_ATHENA=YES |
| 8956 | SKIP_NEXTAW=YES |
| 8957 | SKIP_MOTIF=YES |
| 8958 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8959 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8960 | fi |
| 8961 | fi |
| 8962 | fi |
| 8963 | if test "x$GUITYPE" = "xGTK"; then |
| 8964 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 8965 | -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] | 8966 | { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
| 8967 | $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] | 8968 | else |
| 8969 | { |
| 8970 | if test "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8971 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8972 | #define HAVE_GTK2 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8973 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8974 | |
| 8975 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 8976 | || test "0$gtk_minor_version" -ge 2 \ |
| 8977 | || test "0$gtk_major_version" -gt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8978 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8979 | #define HAVE_GTK_MULTIHEAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8980 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8981 | |
| 8982 | fi |
| 8983 | fi |
| 8984 | if test -z "$SKIP_GNOME"; then |
| 8985 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8986 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8987 | |
| 8988 | |
| 8989 | |
| 8990 | |
| 8991 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8992 | # Check whether --with-gnome-includes was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8993 | if test "${with_gnome_includes+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8994 | withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8995 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8996 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8997 | |
| 8998 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8999 | |
| 9000 | # Check whether --with-gnome-libs was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9001 | if test "${with_gnome_libs+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9002 | withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9003 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9004 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9005 | |
| 9006 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9007 | |
| 9008 | # Check whether --with-gnome was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9009 | if test "${with_gnome+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9010 | withval=$with_gnome; if test x$withval = xyes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9011 | want_gnome=yes |
| 9012 | have_gnome=yes |
| 9013 | else |
| 9014 | if test "x$withval" = xno; then |
| 9015 | want_gnome=no |
| 9016 | else |
| 9017 | want_gnome=yes |
| 9018 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 9019 | CFLAGS="$CFLAGS -I$withval/include" |
| 9020 | gnome_prefix=$withval/lib |
| 9021 | fi |
| 9022 | fi |
| 9023 | else |
| 9024 | want_gnome=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9025 | fi |
| 9026 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9027 | |
| 9028 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 9029 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9030 | { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
| 9031 | $as_echo_n "checking for libgnomeui-2.0... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9032 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9033 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9034 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9035 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 9036 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 9037 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 9038 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9039 | { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5 |
| 9040 | $as_echo_n "checking for FreeBSD... " >&6; } |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 9041 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9042 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9043 | $as_echo "yes" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 9044 | GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 9045 | GNOME_LIBS="$GNOME_LIBS -pthread" |
| 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 | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 9049 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9050 | have_gnome=yes |
| 9051 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9052 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 9053 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9054 | if test "x" = xfail; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9055 | { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
| 9056 | $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] | 9057 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9058 | fi |
| 9059 | fi |
| 9060 | } |
| 9061 | elif test "x$want_gnome" = xyes; then |
| 9062 | { |
| 9063 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 9064 | set dummy gnome-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9065 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9066 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9067 | if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9068 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9069 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9070 | case $GNOME_CONFIG in |
| 9071 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9072 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 9073 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9074 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9076 | for as_dir in $PATH |
| 9077 | do |
| 9078 | IFS=$as_save_IFS |
| 9079 | test -z "$as_dir" && as_dir=. |
| 9080 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9081 | 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] | 9082 | ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9083 | $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] | 9084 | break 2 |
| 9085 | fi |
| 9086 | done |
| 9087 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9088 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9089 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9090 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 9091 | ;; |
| 9092 | esac |
| 9093 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9094 | GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9095 | if test -n "$GNOME_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9096 | { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
| 9097 | $as_echo "$GNOME_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9098 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9099 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9100 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9101 | fi |
| 9102 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9103 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9104 | if test "$GNOME_CONFIG" = "no"; then |
| 9105 | no_gnome_config="yes" |
| 9106 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9107 | { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
| 9108 | $as_echo_n "checking if $GNOME_CONFIG works... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9109 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9110 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9111 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9112 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 9113 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 9114 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 9115 | have_gnome=yes |
| 9116 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9117 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9118 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9119 | no_gnome_config="yes" |
| 9120 | fi |
| 9121 | fi |
| 9122 | |
| 9123 | if test x$exec_prefix = xNONE; then |
| 9124 | if test x$prefix = xNONE; then |
| 9125 | gnome_prefix=$ac_default_prefix/lib |
| 9126 | else |
| 9127 | gnome_prefix=$prefix/lib |
| 9128 | fi |
| 9129 | else |
| 9130 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 9131 | fi |
| 9132 | |
| 9133 | if test "$no_gnome_config" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9134 | { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 9135 | $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9136 | if test -f $gnome_prefix/gnomeConf.sh; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9137 | { $as_echo "$as_me:$LINENO: result: found" >&5 |
| 9138 | $as_echo "found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9139 | echo "loading gnome configuration from" \ |
| 9140 | "$gnome_prefix/gnomeConf.sh" |
| 9141 | . $gnome_prefix/gnomeConf.sh |
| 9142 | have_gnome=yes |
| 9143 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9144 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 9145 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9146 | if test x = xfail; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9147 | { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
| 9148 | $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] | 9149 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9150 | fi |
| 9151 | fi |
| 9152 | fi |
| 9153 | } |
| 9154 | fi |
| 9155 | |
| 9156 | if test x$have_gnome = xyes ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9157 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9158 | #define FEAT_GUI_GNOME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9159 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9160 | |
| 9161 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 9162 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 9163 | fi |
| 9164 | } |
| 9165 | fi |
| 9166 | } |
| 9167 | fi |
| 9168 | fi |
| 9169 | fi |
| 9170 | |
| 9171 | |
| 9172 | if test -z "$SKIP_MOTIF"; then |
| 9173 | 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" |
| 9174 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 9175 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9176 | { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
| 9177 | $as_echo_n "checking for location of Motif GUI includes... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9178 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 9179 | GUI_INC_LOC= |
| 9180 | for try in $gui_includes; do |
| 9181 | if test -f "$try/Xm/Xm.h"; then |
| 9182 | GUI_INC_LOC=$try |
| 9183 | fi |
| 9184 | done |
| 9185 | if test -n "$GUI_INC_LOC"; then |
| 9186 | if test "$GUI_INC_LOC" = /usr/include; then |
| 9187 | GUI_INC_LOC= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9188 | { $as_echo "$as_me:$LINENO: result: in default path" >&5 |
| 9189 | $as_echo "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9190 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9191 | { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
| 9192 | $as_echo "$GUI_INC_LOC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9193 | fi |
| 9194 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9195 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 9196 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9197 | SKIP_MOTIF=YES |
| 9198 | fi |
| 9199 | fi |
| 9200 | |
| 9201 | |
| 9202 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9203 | { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
| 9204 | $as_echo_n "checking --with-motif-lib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9205 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9206 | # Check whether --with-motif-lib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9207 | if test "${with_motif_lib+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9208 | withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" |
| 9209 | fi |
| 9210 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9211 | |
| 9212 | if test -n "$MOTIF_LIBNAME"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9213 | { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
| 9214 | $as_echo "$MOTIF_LIBNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9215 | GUI_LIB_LOC= |
| 9216 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9217 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9218 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9219 | |
| 9220 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 9221 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9222 | { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
| 9223 | $as_echo_n "checking for location of Motif GUI libs... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9224 | 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" |
| 9225 | GUI_LIB_LOC= |
| 9226 | for try in $gui_libs; do |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 9227 | 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] | 9228 | if test -f "$libtry"; then |
| 9229 | GUI_LIB_LOC=$try |
| 9230 | fi |
| 9231 | done |
| 9232 | done |
| 9233 | if test -n "$GUI_LIB_LOC"; then |
| 9234 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 9235 | GUI_LIB_LOC= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9236 | { $as_echo "$as_me:$LINENO: result: in default path" >&5 |
| 9237 | $as_echo "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9238 | else |
| 9239 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9240 | { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
| 9241 | $as_echo "$GUI_LIB_LOC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9242 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 9243 | uname -r | grep '^5' >/dev/null; then |
| 9244 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 9245 | fi |
| 9246 | fi |
| 9247 | fi |
| 9248 | MOTIF_LIBNAME=-lXm |
| 9249 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9250 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 9251 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9252 | SKIP_MOTIF=YES |
| 9253 | fi |
| 9254 | fi |
| 9255 | fi |
| 9256 | |
| 9257 | if test -z "$SKIP_MOTIF"; then |
| 9258 | SKIP_ATHENA=YES |
| 9259 | SKIP_NEXTAW=YES |
| 9260 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9261 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9262 | fi |
| 9263 | |
| 9264 | |
| 9265 | GUI_X_LIBS= |
| 9266 | |
| 9267 | if test -z "$SKIP_ATHENA"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9268 | { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
| 9269 | $as_echo_n "checking if Athena header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9270 | cflags_save=$CFLAGS |
| 9271 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9272 | cat >conftest.$ac_ext <<_ACEOF |
| 9273 | /* confdefs.h. */ |
| 9274 | _ACEOF |
| 9275 | cat confdefs.h >>conftest.$ac_ext |
| 9276 | cat >>conftest.$ac_ext <<_ACEOF |
| 9277 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9278 | |
| 9279 | #include <X11/Intrinsic.h> |
| 9280 | #include <X11/Xaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9281 | int |
| 9282 | main () |
| 9283 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9284 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9285 | ; |
| 9286 | return 0; |
| 9287 | } |
| 9288 | _ACEOF |
| 9289 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9290 | if { (ac_try="$ac_compile" |
| 9291 | case "(($ac_try" in |
| 9292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9293 | *) ac_try_echo=$ac_try;; |
| 9294 | esac |
| 9295 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9296 | $as_echo "$ac_try_echo") >&5 |
| 9297 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9298 | ac_status=$? |
| 9299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9300 | rm -f conftest.er1 |
| 9301 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9302 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9303 | (exit $ac_status); } && { |
| 9304 | test -z "$ac_c_werror_flag" || |
| 9305 | test ! -s conftest.err |
| 9306 | } && test -s conftest.$ac_objext; then |
| 9307 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9308 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9309 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9310 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9312 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9313 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9314 | $as_echo "no" >&6; }; SKIP_ATHENA=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9315 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9316 | |
| 9317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9318 | CFLAGS=$cflags_save |
| 9319 | fi |
| 9320 | |
| 9321 | if test -z "$SKIP_ATHENA"; then |
| 9322 | GUITYPE=ATHENA |
| 9323 | fi |
| 9324 | |
| 9325 | if test -z "$SKIP_NEXTAW"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9326 | { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
| 9327 | $as_echo_n "checking if neXtaw header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9328 | cflags_save=$CFLAGS |
| 9329 | CFLAGS="$CFLAGS $X_CFLAGS" |
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. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9336 | |
| 9337 | #include <X11/Intrinsic.h> |
| 9338 | #include <X11/neXtaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9339 | int |
| 9340 | main () |
| 9341 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9342 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9343 | ; |
| 9344 | return 0; |
| 9345 | } |
| 9346 | _ACEOF |
| 9347 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9348 | if { (ac_try="$ac_compile" |
| 9349 | case "(($ac_try" in |
| 9350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9351 | *) ac_try_echo=$ac_try;; |
| 9352 | esac |
| 9353 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9354 | $as_echo "$ac_try_echo") >&5 |
| 9355 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9356 | ac_status=$? |
| 9357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9358 | rm -f conftest.er1 |
| 9359 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9360 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9361 | (exit $ac_status); } && { |
| 9362 | test -z "$ac_c_werror_flag" || |
| 9363 | test ! -s conftest.err |
| 9364 | } && test -s conftest.$ac_objext; then |
| 9365 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9366 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9367 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9368 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9370 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9371 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9372 | $as_echo "no" >&6; }; SKIP_NEXTAW=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9373 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9374 | |
| 9375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9376 | CFLAGS=$cflags_save |
| 9377 | fi |
| 9378 | |
| 9379 | if test -z "$SKIP_NEXTAW"; then |
| 9380 | GUITYPE=NEXTAW |
| 9381 | fi |
| 9382 | |
| 9383 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 9384 | if test -n "$GUI_INC_LOC"; then |
| 9385 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 9386 | fi |
| 9387 | if test -n "$GUI_LIB_LOC"; then |
| 9388 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 9389 | fi |
| 9390 | |
| 9391 | ldflags_save=$LDFLAGS |
| 9392 | LDFLAGS="$X_LIBS $LDFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9393 | { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 9394 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9395 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9396 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9397 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9398 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9399 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9400 | cat >conftest.$ac_ext <<_ACEOF |
| 9401 | /* confdefs.h. */ |
| 9402 | _ACEOF |
| 9403 | cat confdefs.h >>conftest.$ac_ext |
| 9404 | cat >>conftest.$ac_ext <<_ACEOF |
| 9405 | /* end confdefs.h. */ |
| 9406 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9407 | /* Override any GCC internal prototype to avoid an error. |
| 9408 | Use char because int might match the return type of a GCC |
| 9409 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9410 | #ifdef __cplusplus |
| 9411 | extern "C" |
| 9412 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9413 | char XShapeQueryExtension (); |
| 9414 | int |
| 9415 | main () |
| 9416 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9417 | return XShapeQueryExtension (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9418 | ; |
| 9419 | return 0; |
| 9420 | } |
| 9421 | _ACEOF |
| 9422 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9423 | if { (ac_try="$ac_link" |
| 9424 | case "(($ac_try" in |
| 9425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9426 | *) ac_try_echo=$ac_try;; |
| 9427 | esac |
| 9428 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9429 | $as_echo "$ac_try_echo") >&5 |
| 9430 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9431 | ac_status=$? |
| 9432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9433 | rm -f conftest.er1 |
| 9434 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9435 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9436 | (exit $ac_status); } && { |
| 9437 | test -z "$ac_c_werror_flag" || |
| 9438 | test ! -s conftest.err |
| 9439 | } && test -s conftest$ac_exeext && { |
| 9440 | test "$cross_compiling" = yes || |
| 9441 | $as_test_x conftest$ac_exeext |
| 9442 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9443 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9444 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9445 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9446 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9447 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9448 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9449 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9450 | |
| 9451 | rm -rf conftest.dSYM |
| 9452 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9453 | conftest$ac_exeext conftest.$ac_ext |
| 9454 | LIBS=$ac_check_lib_save_LIBS |
| 9455 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9456 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 9457 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9458 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9459 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9460 | fi |
| 9461 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9462 | { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
| 9463 | $as_echo_n "checking for wslen in -lw... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9464 | if test "${ac_cv_lib_w_wslen+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9465 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9466 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9467 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9468 | 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] | 9469 | cat >conftest.$ac_ext <<_ACEOF |
| 9470 | /* confdefs.h. */ |
| 9471 | _ACEOF |
| 9472 | cat confdefs.h >>conftest.$ac_ext |
| 9473 | cat >>conftest.$ac_ext <<_ACEOF |
| 9474 | /* end confdefs.h. */ |
| 9475 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9476 | /* Override any GCC internal prototype to avoid an error. |
| 9477 | Use char because int might match the return type of a GCC |
| 9478 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9479 | #ifdef __cplusplus |
| 9480 | extern "C" |
| 9481 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9482 | char wslen (); |
| 9483 | int |
| 9484 | main () |
| 9485 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9486 | return wslen (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9487 | ; |
| 9488 | return 0; |
| 9489 | } |
| 9490 | _ACEOF |
| 9491 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9492 | if { (ac_try="$ac_link" |
| 9493 | case "(($ac_try" in |
| 9494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9495 | *) ac_try_echo=$ac_try;; |
| 9496 | esac |
| 9497 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9498 | $as_echo "$ac_try_echo") >&5 |
| 9499 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9500 | ac_status=$? |
| 9501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9502 | rm -f conftest.er1 |
| 9503 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9504 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9505 | (exit $ac_status); } && { |
| 9506 | test -z "$ac_c_werror_flag" || |
| 9507 | test ! -s conftest.err |
| 9508 | } && test -s conftest$ac_exeext && { |
| 9509 | test "$cross_compiling" = yes || |
| 9510 | $as_test_x conftest$ac_exeext |
| 9511 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9512 | ac_cv_lib_w_wslen=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9513 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9514 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9515 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9516 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9517 | ac_cv_lib_w_wslen=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9518 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9519 | |
| 9520 | rm -rf conftest.dSYM |
| 9521 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9522 | conftest$ac_exeext conftest.$ac_ext |
| 9523 | LIBS=$ac_check_lib_save_LIBS |
| 9524 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9525 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 |
| 9526 | $as_echo "$ac_cv_lib_w_wslen" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9527 | if test "x$ac_cv_lib_w_wslen" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9528 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9529 | fi |
| 9530 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9531 | { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
| 9532 | $as_echo_n "checking for dlsym in -ldl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9533 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9534 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9535 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9536 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9537 | 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] | 9538 | cat >conftest.$ac_ext <<_ACEOF |
| 9539 | /* confdefs.h. */ |
| 9540 | _ACEOF |
| 9541 | cat confdefs.h >>conftest.$ac_ext |
| 9542 | cat >>conftest.$ac_ext <<_ACEOF |
| 9543 | /* end confdefs.h. */ |
| 9544 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9545 | /* Override any GCC internal prototype to avoid an error. |
| 9546 | Use char because int might match the return type of a GCC |
| 9547 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9548 | #ifdef __cplusplus |
| 9549 | extern "C" |
| 9550 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9551 | char dlsym (); |
| 9552 | int |
| 9553 | main () |
| 9554 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9555 | return dlsym (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9556 | ; |
| 9557 | return 0; |
| 9558 | } |
| 9559 | _ACEOF |
| 9560 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9561 | if { (ac_try="$ac_link" |
| 9562 | case "(($ac_try" in |
| 9563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9564 | *) ac_try_echo=$ac_try;; |
| 9565 | esac |
| 9566 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9567 | $as_echo "$ac_try_echo") >&5 |
| 9568 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9569 | ac_status=$? |
| 9570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9571 | rm -f conftest.er1 |
| 9572 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9573 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9574 | (exit $ac_status); } && { |
| 9575 | test -z "$ac_c_werror_flag" || |
| 9576 | test ! -s conftest.err |
| 9577 | } && test -s conftest$ac_exeext && { |
| 9578 | test "$cross_compiling" = yes || |
| 9579 | $as_test_x conftest$ac_exeext |
| 9580 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9581 | ac_cv_lib_dl_dlsym=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9582 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9583 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9584 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9585 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9586 | ac_cv_lib_dl_dlsym=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9587 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9588 | |
| 9589 | rm -rf conftest.dSYM |
| 9590 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9591 | conftest$ac_exeext conftest.$ac_ext |
| 9592 | LIBS=$ac_check_lib_save_LIBS |
| 9593 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9594 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
| 9595 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9596 | if test "x$ac_cv_lib_dl_dlsym" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9597 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9598 | fi |
| 9599 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9600 | { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 9601 | $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9602 | if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+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="-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] | 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 XmuCreateStippledPixmap (); |
| 9621 | int |
| 9622 | main () |
| 9623 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9624 | return XmuCreateStippledPixmap (); |
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_Xmu_XmuCreateStippledPixmap=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_Xmu_XmuCreateStippledPixmap=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_Xmu_XmuCreateStippledPixmap" >&5 |
| 9664 | $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9665 | if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9666 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9667 | fi |
| 9668 | |
| 9669 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9670 | { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
| 9671 | $as_echo_n "checking for XpEndJob in -lXp... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9672 | if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9673 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9674 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9675 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9676 | 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] | 9677 | cat >conftest.$ac_ext <<_ACEOF |
| 9678 | /* confdefs.h. */ |
| 9679 | _ACEOF |
| 9680 | cat confdefs.h >>conftest.$ac_ext |
| 9681 | cat >>conftest.$ac_ext <<_ACEOF |
| 9682 | /* end confdefs.h. */ |
| 9683 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9684 | /* Override any GCC internal prototype to avoid an error. |
| 9685 | Use char because int might match the return type of a GCC |
| 9686 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9687 | #ifdef __cplusplus |
| 9688 | extern "C" |
| 9689 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9690 | char XpEndJob (); |
| 9691 | int |
| 9692 | main () |
| 9693 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9694 | return XpEndJob (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9695 | ; |
| 9696 | return 0; |
| 9697 | } |
| 9698 | _ACEOF |
| 9699 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9700 | if { (ac_try="$ac_link" |
| 9701 | case "(($ac_try" in |
| 9702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9703 | *) ac_try_echo=$ac_try;; |
| 9704 | esac |
| 9705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9706 | $as_echo "$ac_try_echo") >&5 |
| 9707 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9708 | ac_status=$? |
| 9709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9710 | rm -f conftest.er1 |
| 9711 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9713 | (exit $ac_status); } && { |
| 9714 | test -z "$ac_c_werror_flag" || |
| 9715 | test ! -s conftest.err |
| 9716 | } && test -s conftest$ac_exeext && { |
| 9717 | test "$cross_compiling" = yes || |
| 9718 | $as_test_x conftest$ac_exeext |
| 9719 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9720 | ac_cv_lib_Xp_XpEndJob=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9721 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9722 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9723 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9724 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9725 | ac_cv_lib_Xp_XpEndJob=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9726 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9727 | |
| 9728 | rm -rf conftest.dSYM |
| 9729 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9730 | conftest$ac_exeext conftest.$ac_ext |
| 9731 | LIBS=$ac_check_lib_save_LIBS |
| 9732 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9733 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 9734 | $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9735 | if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9736 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9737 | fi |
| 9738 | |
| 9739 | fi |
| 9740 | LDFLAGS=$ldflags_save |
| 9741 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9742 | { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
| 9743 | $as_echo_n "checking for extra X11 defines... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9744 | NARROW_PROTO= |
| 9745 | rm -fr conftestdir |
| 9746 | if mkdir conftestdir; then |
| 9747 | cd conftestdir |
| 9748 | cat > Imakefile <<'EOF' |
| 9749 | acfindx: |
| 9750 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 9751 | EOF |
| 9752 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 9753 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 9754 | fi |
| 9755 | cd .. |
| 9756 | rm -fr conftestdir |
| 9757 | fi |
| 9758 | if test -z "$NARROW_PROTO"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9759 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9760 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9761 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9762 | { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
| 9763 | $as_echo "$NARROW_PROTO" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9764 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9765 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9766 | fi |
| 9767 | |
| 9768 | if test "$enable_xsmp" = "yes"; then |
| 9769 | cppflags_save=$CPPFLAGS |
| 9770 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9771 | |
| 9772 | for ac_header in X11/SM/SMlib.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9773 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9774 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9775 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9776 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9777 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9778 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9779 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9780 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9781 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9782 | $as_echo "$as_val"'` |
| 9783 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9784 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9785 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9786 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9787 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9788 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9789 | cat >conftest.$ac_ext <<_ACEOF |
| 9790 | /* confdefs.h. */ |
| 9791 | _ACEOF |
| 9792 | cat confdefs.h >>conftest.$ac_ext |
| 9793 | cat >>conftest.$ac_ext <<_ACEOF |
| 9794 | /* end confdefs.h. */ |
| 9795 | $ac_includes_default |
| 9796 | #include <$ac_header> |
| 9797 | _ACEOF |
| 9798 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9799 | if { (ac_try="$ac_compile" |
| 9800 | case "(($ac_try" in |
| 9801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9802 | *) ac_try_echo=$ac_try;; |
| 9803 | esac |
| 9804 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9805 | $as_echo "$ac_try_echo") >&5 |
| 9806 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9807 | ac_status=$? |
| 9808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9809 | rm -f conftest.er1 |
| 9810 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9811 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9812 | (exit $ac_status); } && { |
| 9813 | test -z "$ac_c_werror_flag" || |
| 9814 | test ! -s conftest.err |
| 9815 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9816 | ac_header_compiler=yes |
| 9817 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9818 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9820 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9821 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9822 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9823 | |
| 9824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9825 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9826 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9827 | |
| 9828 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9829 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9830 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9831 | cat >conftest.$ac_ext <<_ACEOF |
| 9832 | /* confdefs.h. */ |
| 9833 | _ACEOF |
| 9834 | cat confdefs.h >>conftest.$ac_ext |
| 9835 | cat >>conftest.$ac_ext <<_ACEOF |
| 9836 | /* end confdefs.h. */ |
| 9837 | #include <$ac_header> |
| 9838 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9839 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9840 | case "(($ac_try" in |
| 9841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9842 | *) ac_try_echo=$ac_try;; |
| 9843 | esac |
| 9844 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9845 | $as_echo "$ac_try_echo") >&5 |
| 9846 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9847 | ac_status=$? |
| 9848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9849 | rm -f conftest.er1 |
| 9850 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9851 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9852 | (exit $ac_status); } >/dev/null && { |
| 9853 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9854 | test ! -s conftest.err |
| 9855 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9856 | ac_header_preproc=yes |
| 9857 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9858 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9860 | |
| 9861 | ac_header_preproc=no |
| 9862 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9863 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9864 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9865 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9866 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9867 | |
| 9868 | # So? What about this header? |
| 9869 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9870 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9871 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9872 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9873 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9874 | $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] | 9875 | ac_header_preproc=yes |
| 9876 | ;; |
| 9877 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9879 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9880 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9881 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9882 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9883 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9884 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9885 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9886 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9887 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9888 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9889 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9890 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9891 | ;; |
| 9892 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9893 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9894 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9895 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9896 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9897 | else |
| 9898 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9899 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9900 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9901 | $as_echo "$as_val"'` |
| 9902 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9903 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9904 | |
| 9905 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9906 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 9907 | $as_echo "$as_val"'` |
| 9908 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9909 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9910 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9911 | _ACEOF |
| 9912 | |
| 9913 | fi |
| 9914 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9915 | done |
| 9916 | |
| 9917 | CPPFLAGS=$cppflags_save |
| 9918 | fi |
| 9919 | |
| 9920 | |
| 9921 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 9922 | cppflags_save=$CPPFLAGS |
| 9923 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9924 | |
| 9925 | |
| 9926 | for ac_header in X11/xpm.h X11/Sunkeysym.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9927 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9928 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9929 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9930 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9931 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9932 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9933 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9934 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9935 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9936 | $as_echo "$as_val"'` |
| 9937 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9938 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9939 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9940 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9941 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9942 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9943 | cat >conftest.$ac_ext <<_ACEOF |
| 9944 | /* confdefs.h. */ |
| 9945 | _ACEOF |
| 9946 | cat confdefs.h >>conftest.$ac_ext |
| 9947 | cat >>conftest.$ac_ext <<_ACEOF |
| 9948 | /* end confdefs.h. */ |
| 9949 | $ac_includes_default |
| 9950 | #include <$ac_header> |
| 9951 | _ACEOF |
| 9952 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9953 | if { (ac_try="$ac_compile" |
| 9954 | case "(($ac_try" in |
| 9955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9956 | *) ac_try_echo=$ac_try;; |
| 9957 | esac |
| 9958 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9959 | $as_echo "$ac_try_echo") >&5 |
| 9960 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9961 | ac_status=$? |
| 9962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9963 | rm -f conftest.er1 |
| 9964 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9965 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9966 | (exit $ac_status); } && { |
| 9967 | test -z "$ac_c_werror_flag" || |
| 9968 | test ! -s conftest.err |
| 9969 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9970 | ac_header_compiler=yes |
| 9971 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9972 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9974 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9975 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9976 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9977 | |
| 9978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9979 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9980 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9981 | |
| 9982 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9983 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9984 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9985 | cat >conftest.$ac_ext <<_ACEOF |
| 9986 | /* confdefs.h. */ |
| 9987 | _ACEOF |
| 9988 | cat confdefs.h >>conftest.$ac_ext |
| 9989 | cat >>conftest.$ac_ext <<_ACEOF |
| 9990 | /* end confdefs.h. */ |
| 9991 | #include <$ac_header> |
| 9992 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9993 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9994 | case "(($ac_try" in |
| 9995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9996 | *) ac_try_echo=$ac_try;; |
| 9997 | esac |
| 9998 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9999 | $as_echo "$ac_try_echo") >&5 |
| 10000 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10001 | ac_status=$? |
| 10002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10003 | rm -f conftest.er1 |
| 10004 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10005 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10006 | (exit $ac_status); } >/dev/null && { |
| 10007 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10008 | test ! -s conftest.err |
| 10009 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10010 | ac_header_preproc=yes |
| 10011 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10012 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10014 | |
| 10015 | ac_header_preproc=no |
| 10016 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10017 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10018 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10019 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10020 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10021 | |
| 10022 | # So? What about this header? |
| 10023 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10024 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10026 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10028 | $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] | 10029 | ac_header_preproc=yes |
| 10030 | ;; |
| 10031 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10033 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10035 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10036 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10037 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10038 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10039 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10040 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10041 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10042 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10043 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10044 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10045 | ;; |
| 10046 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10047 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10048 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10049 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10050 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10051 | else |
| 10052 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10053 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10054 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10055 | $as_echo "$as_val"'` |
| 10056 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10057 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10058 | |
| 10059 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 10060 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 10061 | $as_echo "$as_val"'` |
| 10062 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10063 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10064 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10065 | _ACEOF |
| 10066 | |
| 10067 | fi |
| 10068 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10069 | done |
| 10070 | |
| 10071 | |
| 10072 | if test ! "$enable_xim" = "no"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10073 | { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
| 10074 | $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10075 | cat >conftest.$ac_ext <<_ACEOF |
| 10076 | /* confdefs.h. */ |
| 10077 | _ACEOF |
| 10078 | cat confdefs.h >>conftest.$ac_ext |
| 10079 | cat >>conftest.$ac_ext <<_ACEOF |
| 10080 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10081 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10082 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10083 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10084 | $EGREP "XIMText" >/dev/null 2>&1; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10085 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10086 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10087 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10088 | { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
| 10089 | $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10090 | fi |
| 10091 | rm -f conftest* |
| 10092 | |
| 10093 | fi |
| 10094 | CPPFLAGS=$cppflags_save |
| 10095 | |
| 10096 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 10097 | -a "x$GUITYPE" != "xNONE" ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10098 | { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
| 10099 | $as_echo "X GUI selected; xim has been enabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10100 | enable_xim="yes" |
| 10101 | fi |
| 10102 | fi |
| 10103 | |
| 10104 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 10105 | cppflags_save=$CPPFLAGS |
| 10106 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10107 | { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 |
| 10108 | $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10109 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10110 | /* confdefs.h. */ |
| 10111 | _ACEOF |
| 10112 | cat confdefs.h >>conftest.$ac_ext |
| 10113 | cat >>conftest.$ac_ext <<_ACEOF |
| 10114 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10115 | |
| 10116 | #include <X11/Intrinsic.h> |
| 10117 | #include <X11/Xmu/Editres.h> |
| 10118 | int |
| 10119 | main () |
| 10120 | { |
| 10121 | int i; i = 0; |
| 10122 | ; |
| 10123 | return 0; |
| 10124 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10125 | _ACEOF |
| 10126 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10127 | if { (ac_try="$ac_compile" |
| 10128 | case "(($ac_try" in |
| 10129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10130 | *) ac_try_echo=$ac_try;; |
| 10131 | esac |
| 10132 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10133 | $as_echo "$ac_try_echo") >&5 |
| 10134 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10135 | ac_status=$? |
| 10136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10137 | rm -f conftest.er1 |
| 10138 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10140 | (exit $ac_status); } && { |
| 10141 | test -z "$ac_c_werror_flag" || |
| 10142 | test ! -s conftest.err |
| 10143 | } && test -s conftest.$ac_objext; then |
| 10144 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10145 | $as_echo "yes" >&6; } |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10146 | cat >>confdefs.h <<\_ACEOF |
| 10147 | #define HAVE_X11_XMU_EDITRES_H 1 |
| 10148 | _ACEOF |
| 10149 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10150 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10151 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10153 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10154 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10155 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10156 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10157 | |
| 10158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10159 | CPPFLAGS=$cppflags_save |
| 10160 | fi |
| 10161 | |
| 10162 | if test -z "$SKIP_MOTIF"; then |
| 10163 | cppflags_save=$CPPFLAGS |
| 10164 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10165 | |
| 10166 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10167 | |
| 10168 | |
| 10169 | |
| 10170 | |
Bram Moolenaar | fc1421e | 2006-04-20 22:17:20 +0000 | [diff] [blame] | 10171 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 10172 | 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] | 10173 | Xm/UnhighlightT.h Xm/Notebook.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10174 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10175 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10176 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10177 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10178 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10179 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10180 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10181 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10182 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10183 | $as_echo "$as_val"'` |
| 10184 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10185 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10186 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10187 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10188 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10189 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10190 | cat >conftest.$ac_ext <<_ACEOF |
| 10191 | /* confdefs.h. */ |
| 10192 | _ACEOF |
| 10193 | cat confdefs.h >>conftest.$ac_ext |
| 10194 | cat >>conftest.$ac_ext <<_ACEOF |
| 10195 | /* end confdefs.h. */ |
| 10196 | $ac_includes_default |
| 10197 | #include <$ac_header> |
| 10198 | _ACEOF |
| 10199 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10200 | if { (ac_try="$ac_compile" |
| 10201 | case "(($ac_try" in |
| 10202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10203 | *) ac_try_echo=$ac_try;; |
| 10204 | esac |
| 10205 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10206 | $as_echo "$ac_try_echo") >&5 |
| 10207 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10208 | ac_status=$? |
| 10209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10210 | rm -f conftest.er1 |
| 10211 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10212 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10213 | (exit $ac_status); } && { |
| 10214 | test -z "$ac_c_werror_flag" || |
| 10215 | test ! -s conftest.err |
| 10216 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10217 | ac_header_compiler=yes |
| 10218 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10219 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10221 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10222 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10223 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10224 | |
| 10225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10226 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10227 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10228 | |
| 10229 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10230 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10231 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10232 | cat >conftest.$ac_ext <<_ACEOF |
| 10233 | /* confdefs.h. */ |
| 10234 | _ACEOF |
| 10235 | cat confdefs.h >>conftest.$ac_ext |
| 10236 | cat >>conftest.$ac_ext <<_ACEOF |
| 10237 | /* end confdefs.h. */ |
| 10238 | #include <$ac_header> |
| 10239 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10240 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10241 | case "(($ac_try" in |
| 10242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10243 | *) ac_try_echo=$ac_try;; |
| 10244 | esac |
| 10245 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10246 | $as_echo "$ac_try_echo") >&5 |
| 10247 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10248 | ac_status=$? |
| 10249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10250 | rm -f conftest.er1 |
| 10251 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10252 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10253 | (exit $ac_status); } >/dev/null && { |
| 10254 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10255 | test ! -s conftest.err |
| 10256 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10257 | ac_header_preproc=yes |
| 10258 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10259 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10261 | |
| 10262 | ac_header_preproc=no |
| 10263 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10264 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10265 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10266 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10267 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10268 | |
| 10269 | # So? What about this header? |
| 10270 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10271 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10272 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10273 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10274 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10275 | $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] | 10276 | ac_header_preproc=yes |
| 10277 | ;; |
| 10278 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10279 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10280 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10281 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10282 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10283 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10284 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10285 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10286 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10287 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10288 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10289 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10290 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10291 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10292 | ;; |
| 10293 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10294 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10295 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10296 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10297 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10298 | else |
| 10299 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10300 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10301 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10302 | $as_echo "$as_val"'` |
| 10303 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10304 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10305 | |
| 10306 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 10307 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 10308 | $as_echo "$as_val"'` |
| 10309 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10310 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10311 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10312 | _ACEOF |
| 10313 | |
| 10314 | fi |
| 10315 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10316 | done |
| 10317 | |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10318 | |
| 10319 | if test $ac_cv_header_Xm_XpmP_h = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10320 | { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 |
| 10321 | $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10322 | cat >conftest.$ac_ext <<_ACEOF |
| 10323 | /* confdefs.h. */ |
| 10324 | _ACEOF |
| 10325 | cat confdefs.h >>conftest.$ac_ext |
| 10326 | cat >>conftest.$ac_ext <<_ACEOF |
| 10327 | /* end confdefs.h. */ |
| 10328 | #include <Xm/XpmP.h> |
| 10329 | int |
| 10330 | main () |
| 10331 | { |
| 10332 | XpmAttributes_21 attr; |
| 10333 | ; |
| 10334 | return 0; |
| 10335 | } |
| 10336 | _ACEOF |
| 10337 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10338 | if { (ac_try="$ac_compile" |
| 10339 | case "(($ac_try" in |
| 10340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10341 | *) ac_try_echo=$ac_try;; |
| 10342 | esac |
| 10343 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10344 | $as_echo "$ac_try_echo") >&5 |
| 10345 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10346 | ac_status=$? |
| 10347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10348 | rm -f conftest.er1 |
| 10349 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10350 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10351 | (exit $ac_status); } && { |
| 10352 | test -z "$ac_c_werror_flag" || |
| 10353 | test ! -s conftest.err |
| 10354 | } && test -s conftest.$ac_objext; then |
| 10355 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10356 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10357 | #define XPMATTRIBUTES_TYPE XpmAttributes_21 |
| 10358 | _ACEOF |
| 10359 | |
| 10360 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10361 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10363 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10364 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10365 | $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10366 | #define XPMATTRIBUTES_TYPE XpmAttributes |
| 10367 | _ACEOF |
| 10368 | |
| 10369 | |
| 10370 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10371 | |
| 10372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10373 | else |
| 10374 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 57657d8 | 2006-04-21 22:12:41 +0000 | [diff] [blame] | 10375 | #define XPMATTRIBUTES_TYPE XpmAttributes |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10376 | _ACEOF |
| 10377 | |
| 10378 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10379 | CPPFLAGS=$cppflags_save |
| 10380 | fi |
| 10381 | |
| 10382 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10383 | { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
| 10384 | $as_echo "no GUI selected; xim has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10385 | enable_xim="no" |
| 10386 | fi |
| 10387 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10388 | { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
| 10389 | $as_echo "no GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10390 | enable_fontset="no" |
| 10391 | fi |
| 10392 | 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] | 10393 | { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 10394 | $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10395 | enable_fontset="no" |
| 10396 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10397 | |
| 10398 | if test -z "$SKIP_PHOTON"; then |
| 10399 | GUITYPE=PHOTONGUI |
| 10400 | fi |
| 10401 | |
| 10402 | |
| 10403 | |
| 10404 | |
| 10405 | |
| 10406 | |
| 10407 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10408 | { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
| 10409 | $as_echo "$as_me: error: cannot use workshop without Motif" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10410 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10411 | fi |
| 10412 | |
| 10413 | if test "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10414 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10415 | #define FEAT_XIM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10416 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10417 | |
| 10418 | fi |
| 10419 | if test "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10420 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10421 | #define FEAT_XFONTSET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10422 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10423 | |
| 10424 | fi |
| 10425 | |
| 10426 | |
| 10427 | |
| 10428 | |
| 10429 | if test "$enable_hangulinput" = "yes"; then |
| 10430 | if test "x$GUITYPE" = "xNONE"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10431 | { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
| 10432 | $as_echo "no GUI selected; hangul input has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10433 | enable_hangulinput=no |
| 10434 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10435 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10436 | #define FEAT_HANGULIN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10437 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10438 | |
| 10439 | HANGULIN_SRC=hangulin.c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10440 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10441 | HANGULIN_OBJ=objects/hangulin.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10442 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10443 | fi |
| 10444 | fi |
| 10445 | |
| 10446 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10447 | { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5 |
| 10448 | $as_echo_n "checking whether toupper is broken... " >&6; } |
| 10449 | if test "${vim_cv_toupper_broken+set}" = set; then |
| 10450 | $as_echo_n "(cached) " >&6 |
| 10451 | else |
| 10452 | |
| 10453 | if test "$cross_compiling" = yes; then |
| 10454 | |
| 10455 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5 |
| 10456 | $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] | 10457 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10458 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10459 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10460 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10461 | |
| 10462 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10463 | #include <ctype.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10464 | #if STDC_HEADERS |
| 10465 | # include <stdlib.h> |
| 10466 | # include <stddef.h> |
| 10467 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10468 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10469 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10470 | _ACEOF |
| 10471 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10472 | if { (ac_try="$ac_link" |
| 10473 | case "(($ac_try" in |
| 10474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10475 | *) ac_try_echo=$ac_try;; |
| 10476 | esac |
| 10477 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10478 | $as_echo "$ac_try_echo") >&5 |
| 10479 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10480 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10481 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10482 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10483 | { (case "(($ac_try" in |
| 10484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10485 | *) ac_try_echo=$ac_try;; |
| 10486 | esac |
| 10487 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10488 | $as_echo "$ac_try_echo") >&5 |
| 10489 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10490 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10491 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10492 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10493 | |
| 10494 | vim_cv_toupper_broken=yes |
| 10495 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10496 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10497 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 10498 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10500 | |
| 10501 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10502 | |
| 10503 | vim_cv_toupper_broken=no |
| 10504 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10505 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10506 | rm -rf conftest.dSYM |
| 10507 | 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] | 10508 | fi |
| 10509 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10510 | |
| 10511 | fi |
| 10512 | { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5 |
| 10513 | $as_echo "$vim_cv_toupper_broken" >&6; } |
| 10514 | |
| 10515 | if test "x$vim_cv_toupper_broken" = "xyes" ; then |
| 10516 | cat >>confdefs.h <<\_ACEOF |
| 10517 | #define BROKEN_TOUPPER 1 |
| 10518 | _ACEOF |
| 10519 | |
| 10520 | fi |
| 10521 | |
| 10522 | { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
| 10523 | $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10524 | cat >conftest.$ac_ext <<_ACEOF |
| 10525 | /* confdefs.h. */ |
| 10526 | _ACEOF |
| 10527 | cat confdefs.h >>conftest.$ac_ext |
| 10528 | cat >>conftest.$ac_ext <<_ACEOF |
| 10529 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10530 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10531 | int |
| 10532 | main () |
| 10533 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10534 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10535 | ; |
| 10536 | return 0; |
| 10537 | } |
| 10538 | _ACEOF |
| 10539 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10540 | if { (ac_try="$ac_compile" |
| 10541 | case "(($ac_try" in |
| 10542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10543 | *) ac_try_echo=$ac_try;; |
| 10544 | esac |
| 10545 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10546 | $as_echo "$ac_try_echo") >&5 |
| 10547 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10548 | ac_status=$? |
| 10549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10550 | rm -f conftest.er1 |
| 10551 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10552 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10553 | (exit $ac_status); } && { |
| 10554 | test -z "$ac_c_werror_flag" || |
| 10555 | test ! -s conftest.err |
| 10556 | } && test -s conftest.$ac_objext; then |
| 10557 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10558 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10559 | #define HAVE_DATE_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10560 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10561 | |
| 10562 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10563 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10565 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10566 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10567 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10568 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10569 | |
| 10570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10571 | |
Bram Moolenaar | 0c094b9 | 2009-05-14 20:20:33 +0000 | [diff] [blame] | 10572 | { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5 |
| 10573 | $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } |
| 10574 | cat >conftest.$ac_ext <<_ACEOF |
| 10575 | /* confdefs.h. */ |
| 10576 | _ACEOF |
| 10577 | cat confdefs.h >>conftest.$ac_ext |
| 10578 | cat >>conftest.$ac_ext <<_ACEOF |
| 10579 | /* end confdefs.h. */ |
| 10580 | #include <stdio.h> |
| 10581 | int |
| 10582 | main () |
| 10583 | { |
| 10584 | int x __attribute__((unused)); |
| 10585 | ; |
| 10586 | return 0; |
| 10587 | } |
| 10588 | _ACEOF |
| 10589 | rm -f conftest.$ac_objext |
| 10590 | if { (ac_try="$ac_compile" |
| 10591 | case "(($ac_try" in |
| 10592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10593 | *) ac_try_echo=$ac_try;; |
| 10594 | esac |
| 10595 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10596 | $as_echo "$ac_try_echo") >&5 |
| 10597 | (eval "$ac_compile") 2>conftest.er1 |
| 10598 | ac_status=$? |
| 10599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10600 | rm -f conftest.er1 |
| 10601 | cat conftest.err >&5 |
| 10602 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10603 | (exit $ac_status); } && { |
| 10604 | test -z "$ac_c_werror_flag" || |
| 10605 | test ! -s conftest.err |
| 10606 | } && test -s conftest.$ac_objext; then |
| 10607 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10608 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
| 10609 | #define HAVE_ATTRIBUTE_UNUSED 1 |
| 10610 | _ACEOF |
| 10611 | |
| 10612 | else |
| 10613 | $as_echo "$as_me: failed program was:" >&5 |
| 10614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10615 | |
| 10616 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10617 | $as_echo "no" >&6; } |
| 10618 | fi |
| 10619 | |
| 10620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10621 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10622 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10623 | { $as_echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10624 | $as_echo_n "checking for elf.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10625 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10626 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10627 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10628 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10629 | $as_echo "$ac_cv_header_elf_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10630 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10631 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10632 | { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5 |
| 10633 | $as_echo_n "checking elf.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10634 | cat >conftest.$ac_ext <<_ACEOF |
| 10635 | /* confdefs.h. */ |
| 10636 | _ACEOF |
| 10637 | cat confdefs.h >>conftest.$ac_ext |
| 10638 | cat >>conftest.$ac_ext <<_ACEOF |
| 10639 | /* end confdefs.h. */ |
| 10640 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10641 | #include <elf.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10642 | _ACEOF |
| 10643 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10644 | if { (ac_try="$ac_compile" |
| 10645 | case "(($ac_try" in |
| 10646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10647 | *) ac_try_echo=$ac_try;; |
| 10648 | esac |
| 10649 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10650 | $as_echo "$ac_try_echo") >&5 |
| 10651 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10652 | ac_status=$? |
| 10653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10654 | rm -f conftest.er1 |
| 10655 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10656 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10657 | (exit $ac_status); } && { |
| 10658 | test -z "$ac_c_werror_flag" || |
| 10659 | test ! -s conftest.err |
| 10660 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10661 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10662 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10663 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10665 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10666 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10667 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10668 | |
| 10669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10670 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10671 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10672 | |
| 10673 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10674 | { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5 |
| 10675 | $as_echo_n "checking elf.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10676 | cat >conftest.$ac_ext <<_ACEOF |
| 10677 | /* confdefs.h. */ |
| 10678 | _ACEOF |
| 10679 | cat confdefs.h >>conftest.$ac_ext |
| 10680 | cat >>conftest.$ac_ext <<_ACEOF |
| 10681 | /* end confdefs.h. */ |
| 10682 | #include <elf.h> |
| 10683 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10684 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10685 | case "(($ac_try" in |
| 10686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10687 | *) ac_try_echo=$ac_try;; |
| 10688 | esac |
| 10689 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10690 | $as_echo "$ac_try_echo") >&5 |
| 10691 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10692 | ac_status=$? |
| 10693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10694 | rm -f conftest.er1 |
| 10695 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10696 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10697 | (exit $ac_status); } >/dev/null && { |
| 10698 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10699 | test ! -s conftest.err |
| 10700 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10701 | ac_header_preproc=yes |
| 10702 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10703 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10705 | |
| 10706 | ac_header_preproc=no |
| 10707 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10708 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10709 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10710 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10711 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10712 | |
| 10713 | # So? What about this header? |
| 10714 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10715 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10716 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10717 | $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10718 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 |
| 10719 | $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] | 10720 | ac_header_preproc=yes |
| 10721 | ;; |
| 10722 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10723 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 |
| 10724 | $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} |
| 10725 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 |
| 10726 | $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} |
| 10727 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 |
| 10728 | $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} |
| 10729 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10730 | $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10731 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 |
| 10732 | $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} |
| 10733 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 |
| 10734 | $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} |
| 10735 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10736 | ;; |
| 10737 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10738 | { $as_echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10739 | $as_echo_n "checking for elf.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10740 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10741 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10742 | else |
| 10743 | ac_cv_header_elf_h=$ac_header_preproc |
| 10744 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10745 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10746 | $as_echo "$ac_cv_header_elf_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10747 | |
| 10748 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 10749 | if test "x$ac_cv_header_elf_h" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10750 | HAS_ELF=1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10751 | fi |
| 10752 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10753 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10754 | if test "$HAS_ELF" = 1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10755 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10756 | { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
| 10757 | $as_echo_n "checking for main in -lelf... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10758 | if test "${ac_cv_lib_elf_main+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10759 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10760 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10761 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10762 | LIBS="-lelf $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10763 | cat >conftest.$ac_ext <<_ACEOF |
| 10764 | /* confdefs.h. */ |
| 10765 | _ACEOF |
| 10766 | cat confdefs.h >>conftest.$ac_ext |
| 10767 | cat >>conftest.$ac_ext <<_ACEOF |
| 10768 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10769 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10770 | |
| 10771 | int |
| 10772 | main () |
| 10773 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10774 | return main (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10775 | ; |
| 10776 | return 0; |
| 10777 | } |
| 10778 | _ACEOF |
| 10779 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10780 | if { (ac_try="$ac_link" |
| 10781 | case "(($ac_try" in |
| 10782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10783 | *) ac_try_echo=$ac_try;; |
| 10784 | esac |
| 10785 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10786 | $as_echo "$ac_try_echo") >&5 |
| 10787 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10788 | ac_status=$? |
| 10789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10790 | rm -f conftest.er1 |
| 10791 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10792 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10793 | (exit $ac_status); } && { |
| 10794 | test -z "$ac_c_werror_flag" || |
| 10795 | test ! -s conftest.err |
| 10796 | } && test -s conftest$ac_exeext && { |
| 10797 | test "$cross_compiling" = yes || |
| 10798 | $as_test_x conftest$ac_exeext |
| 10799 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10800 | ac_cv_lib_elf_main=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10801 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10802 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10803 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10804 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10805 | ac_cv_lib_elf_main=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10806 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10807 | |
| 10808 | rm -rf conftest.dSYM |
| 10809 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10810 | conftest$ac_exeext conftest.$ac_ext |
| 10811 | LIBS=$ac_check_lib_save_LIBS |
| 10812 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10813 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 |
| 10814 | $as_echo "$ac_cv_lib_elf_main" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 10815 | if test "x$ac_cv_lib_elf_main" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10816 | cat >>confdefs.h <<_ACEOF |
| 10817 | #define HAVE_LIBELF 1 |
| 10818 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10819 | |
| 10820 | LIBS="-lelf $LIBS" |
| 10821 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10822 | fi |
| 10823 | |
| 10824 | fi |
| 10825 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10826 | |
| 10827 | |
| 10828 | |
| 10829 | |
| 10830 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10831 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10832 | 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] | 10833 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 10834 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 10835 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| 10836 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10837 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10838 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10839 | cat >conftest.$ac_ext <<_ACEOF |
| 10840 | /* confdefs.h. */ |
| 10841 | _ACEOF |
| 10842 | cat confdefs.h >>conftest.$ac_ext |
| 10843 | cat >>conftest.$ac_ext <<_ACEOF |
| 10844 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10845 | #include <sys/types.h> |
| 10846 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10847 | |
| 10848 | int |
| 10849 | main () |
| 10850 | { |
| 10851 | if ((DIR *) 0) |
| 10852 | return 0; |
| 10853 | ; |
| 10854 | return 0; |
| 10855 | } |
| 10856 | _ACEOF |
| 10857 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10858 | if { (ac_try="$ac_compile" |
| 10859 | case "(($ac_try" in |
| 10860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10861 | *) ac_try_echo=$ac_try;; |
| 10862 | esac |
| 10863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10864 | $as_echo "$ac_try_echo") >&5 |
| 10865 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10866 | ac_status=$? |
| 10867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10868 | rm -f conftest.er1 |
| 10869 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10871 | (exit $ac_status); } && { |
| 10872 | test -z "$ac_c_werror_flag" || |
| 10873 | test ! -s conftest.err |
| 10874 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10875 | eval "$as_ac_Header=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10876 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10877 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10879 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10880 | eval "$as_ac_Header=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10881 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10882 | |
| 10883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10884 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10885 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10886 | $as_echo "$as_val"'` |
| 10887 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10888 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 10889 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 10890 | $as_echo "$as_val"'` |
| 10891 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10892 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10893 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10894 | _ACEOF |
| 10895 | |
| 10896 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10897 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10898 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10899 | done |
| 10900 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 10901 | if test $ac_header_dirent = dirent.h; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10902 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10903 | $as_echo_n "checking for library containing opendir... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10904 | if test "${ac_cv_search_opendir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10905 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10906 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10907 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10908 | cat >conftest.$ac_ext <<_ACEOF |
| 10909 | /* confdefs.h. */ |
| 10910 | _ACEOF |
| 10911 | cat confdefs.h >>conftest.$ac_ext |
| 10912 | cat >>conftest.$ac_ext <<_ACEOF |
| 10913 | /* end confdefs.h. */ |
| 10914 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10915 | /* Override any GCC internal prototype to avoid an error. |
| 10916 | Use char because int might match the return type of a GCC |
| 10917 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10918 | #ifdef __cplusplus |
| 10919 | extern "C" |
| 10920 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10921 | char opendir (); |
| 10922 | int |
| 10923 | main () |
| 10924 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10925 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10926 | ; |
| 10927 | return 0; |
| 10928 | } |
| 10929 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10930 | for ac_lib in '' dir; do |
| 10931 | if test -z "$ac_lib"; then |
| 10932 | ac_res="none required" |
| 10933 | else |
| 10934 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10935 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10936 | fi |
| 10937 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10938 | if { (ac_try="$ac_link" |
| 10939 | case "(($ac_try" in |
| 10940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10941 | *) ac_try_echo=$ac_try;; |
| 10942 | esac |
| 10943 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10944 | $as_echo "$ac_try_echo") >&5 |
| 10945 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10946 | ac_status=$? |
| 10947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10948 | rm -f conftest.er1 |
| 10949 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10951 | (exit $ac_status); } && { |
| 10952 | test -z "$ac_c_werror_flag" || |
| 10953 | test ! -s conftest.err |
| 10954 | } && test -s conftest$ac_exeext && { |
| 10955 | test "$cross_compiling" = yes || |
| 10956 | $as_test_x conftest$ac_exeext |
| 10957 | }; then |
| 10958 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10959 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10960 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10961 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10962 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10963 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10964 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10965 | |
| 10966 | rm -rf conftest.dSYM |
| 10967 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10968 | conftest$ac_exeext |
| 10969 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10970 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10971 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10972 | done |
| 10973 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10974 | : |
| 10975 | else |
| 10976 | ac_cv_search_opendir=no |
| 10977 | fi |
| 10978 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10979 | LIBS=$ac_func_search_save_LIBS |
| 10980 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10981 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10982 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 10983 | ac_res=$ac_cv_search_opendir |
| 10984 | if test "$ac_res" != no; then |
| 10985 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10986 | |
| 10987 | fi |
| 10988 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10989 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10990 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10991 | $as_echo_n "checking for library containing opendir... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10992 | if test "${ac_cv_search_opendir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10993 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10994 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10995 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10996 | cat >conftest.$ac_ext <<_ACEOF |
| 10997 | /* confdefs.h. */ |
| 10998 | _ACEOF |
| 10999 | cat confdefs.h >>conftest.$ac_ext |
| 11000 | cat >>conftest.$ac_ext <<_ACEOF |
| 11001 | /* end confdefs.h. */ |
| 11002 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11003 | /* Override any GCC internal prototype to avoid an error. |
| 11004 | Use char because int might match the return type of a GCC |
| 11005 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11006 | #ifdef __cplusplus |
| 11007 | extern "C" |
| 11008 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11009 | char opendir (); |
| 11010 | int |
| 11011 | main () |
| 11012 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11013 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11014 | ; |
| 11015 | return 0; |
| 11016 | } |
| 11017 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11018 | for ac_lib in '' x; do |
| 11019 | if test -z "$ac_lib"; then |
| 11020 | ac_res="none required" |
| 11021 | else |
| 11022 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11023 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11024 | fi |
| 11025 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11026 | if { (ac_try="$ac_link" |
| 11027 | case "(($ac_try" in |
| 11028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11029 | *) ac_try_echo=$ac_try;; |
| 11030 | esac |
| 11031 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11032 | $as_echo "$ac_try_echo") >&5 |
| 11033 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11034 | ac_status=$? |
| 11035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11036 | rm -f conftest.er1 |
| 11037 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11038 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11039 | (exit $ac_status); } && { |
| 11040 | test -z "$ac_c_werror_flag" || |
| 11041 | test ! -s conftest.err |
| 11042 | } && test -s conftest$ac_exeext && { |
| 11043 | test "$cross_compiling" = yes || |
| 11044 | $as_test_x conftest$ac_exeext |
| 11045 | }; then |
| 11046 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11047 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11048 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11050 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11051 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11052 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11053 | |
| 11054 | rm -rf conftest.dSYM |
| 11055 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11056 | conftest$ac_exeext |
| 11057 | if test "${ac_cv_search_opendir+set}" = set; then |
| 11058 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11059 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11060 | done |
| 11061 | if test "${ac_cv_search_opendir+set}" = set; then |
| 11062 | : |
| 11063 | else |
| 11064 | ac_cv_search_opendir=no |
| 11065 | fi |
| 11066 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11067 | LIBS=$ac_func_search_save_LIBS |
| 11068 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11069 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 11070 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 11071 | ac_res=$ac_cv_search_opendir |
| 11072 | if test "$ac_res" != no; then |
| 11073 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11074 | |
| 11075 | fi |
| 11076 | |
| 11077 | fi |
| 11078 | |
| 11079 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11080 | if test $ac_cv_header_sys_wait_h = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11081 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
| 11082 | $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] | 11083 | cat >conftest.$ac_ext <<_ACEOF |
| 11084 | /* confdefs.h. */ |
| 11085 | _ACEOF |
| 11086 | cat confdefs.h >>conftest.$ac_ext |
| 11087 | cat >>conftest.$ac_ext <<_ACEOF |
| 11088 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11089 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11090 | int |
| 11091 | main () |
| 11092 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11093 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11094 | ; |
| 11095 | return 0; |
| 11096 | } |
| 11097 | _ACEOF |
| 11098 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11099 | if { (ac_try="$ac_compile" |
| 11100 | case "(($ac_try" in |
| 11101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11102 | *) ac_try_echo=$ac_try;; |
| 11103 | esac |
| 11104 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11105 | $as_echo "$ac_try_echo") >&5 |
| 11106 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11107 | ac_status=$? |
| 11108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11109 | rm -f conftest.er1 |
| 11110 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11112 | (exit $ac_status); } && { |
| 11113 | test -z "$ac_c_werror_flag" || |
| 11114 | test ! -s conftest.err |
| 11115 | } && test -s conftest.$ac_objext; then |
| 11116 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11117 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11118 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11119 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11120 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11121 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11122 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11123 | #define HAVE_UNION_WAIT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11124 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11125 | |
| 11126 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11127 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11129 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11130 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11131 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11132 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11133 | |
| 11134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11135 | fi |
| 11136 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11137 | |
| 11138 | |
| 11139 | |
| 11140 | |
| 11141 | |
| 11142 | |
| 11143 | |
| 11144 | |
| 11145 | |
| 11146 | |
| 11147 | |
| 11148 | |
| 11149 | |
| 11150 | |
| 11151 | |
| 11152 | |
| 11153 | |
| 11154 | |
| 11155 | |
| 11156 | |
| 11157 | |
| 11158 | |
| 11159 | |
| 11160 | |
| 11161 | |
| 11162 | |
| 11163 | |
| 11164 | |
| 11165 | |
| 11166 | |
| 11167 | |
| 11168 | |
| 11169 | |
| 11170 | |
| 11171 | |
| 11172 | |
| 11173 | |
| 11174 | |
| 11175 | |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 11176 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11177 | 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] | 11178 | 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] | 11179 | iconv.h langinfo.h math.h unistd.h stropts.h errno.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11180 | sys/resource.h sys/systeminfo.h locale.h \ |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 11181 | sys/stream.h termios.h libc.h sys/statfs.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11182 | 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] | 11183 | libgen.h util/debug.h util/msg18n.h frame.h \ |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11184 | 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] | 11185 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11186 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11187 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11188 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11189 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11190 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11191 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11192 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11193 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11194 | $as_echo "$as_val"'` |
| 11195 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11196 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11197 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11198 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11199 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11200 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11201 | cat >conftest.$ac_ext <<_ACEOF |
| 11202 | /* confdefs.h. */ |
| 11203 | _ACEOF |
| 11204 | cat confdefs.h >>conftest.$ac_ext |
| 11205 | cat >>conftest.$ac_ext <<_ACEOF |
| 11206 | /* end confdefs.h. */ |
| 11207 | $ac_includes_default |
| 11208 | #include <$ac_header> |
| 11209 | _ACEOF |
| 11210 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11211 | if { (ac_try="$ac_compile" |
| 11212 | case "(($ac_try" in |
| 11213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11214 | *) ac_try_echo=$ac_try;; |
| 11215 | esac |
| 11216 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11217 | $as_echo "$ac_try_echo") >&5 |
| 11218 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11219 | ac_status=$? |
| 11220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11221 | rm -f conftest.er1 |
| 11222 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11223 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11224 | (exit $ac_status); } && { |
| 11225 | test -z "$ac_c_werror_flag" || |
| 11226 | test ! -s conftest.err |
| 11227 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11228 | ac_header_compiler=yes |
| 11229 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11230 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11232 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11233 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11234 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11235 | |
| 11236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11237 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11238 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11239 | |
| 11240 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11241 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11242 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11243 | cat >conftest.$ac_ext <<_ACEOF |
| 11244 | /* confdefs.h. */ |
| 11245 | _ACEOF |
| 11246 | cat confdefs.h >>conftest.$ac_ext |
| 11247 | cat >>conftest.$ac_ext <<_ACEOF |
| 11248 | /* end confdefs.h. */ |
| 11249 | #include <$ac_header> |
| 11250 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11251 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11252 | case "(($ac_try" in |
| 11253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11254 | *) ac_try_echo=$ac_try;; |
| 11255 | esac |
| 11256 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11257 | $as_echo "$ac_try_echo") >&5 |
| 11258 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11259 | ac_status=$? |
| 11260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11261 | rm -f conftest.er1 |
| 11262 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11263 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11264 | (exit $ac_status); } >/dev/null && { |
| 11265 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11266 | test ! -s conftest.err |
| 11267 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11268 | ac_header_preproc=yes |
| 11269 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11270 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11272 | |
| 11273 | ac_header_preproc=no |
| 11274 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11275 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11276 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11277 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11278 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11279 | |
| 11280 | # So? What about this header? |
| 11281 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11282 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11283 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11284 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11285 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11286 | $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] | 11287 | ac_header_preproc=yes |
| 11288 | ;; |
| 11289 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11290 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11291 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11292 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11293 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11294 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11295 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11296 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11297 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11298 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11299 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11300 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11301 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11302 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11303 | ;; |
| 11304 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11305 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11306 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11307 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11308 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11309 | else |
| 11310 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11311 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11312 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11313 | $as_echo "$as_val"'` |
| 11314 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11315 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11316 | |
| 11317 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11318 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 11319 | $as_echo "$as_val"'` |
| 11320 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11321 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11322 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11323 | _ACEOF |
| 11324 | |
| 11325 | fi |
| 11326 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11327 | done |
| 11328 | |
| 11329 | |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 11330 | |
| 11331 | for ac_header in sys/ptem.h |
| 11332 | do |
| 11333 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11334 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11335 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11336 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11337 | $as_echo_n "(cached) " >&6 |
| 11338 | else |
| 11339 | cat >conftest.$ac_ext <<_ACEOF |
| 11340 | /* confdefs.h. */ |
| 11341 | _ACEOF |
| 11342 | cat confdefs.h >>conftest.$ac_ext |
| 11343 | cat >>conftest.$ac_ext <<_ACEOF |
| 11344 | /* end confdefs.h. */ |
| 11345 | #if defined HAVE_SYS_STREAM_H |
| 11346 | # include <sys/stream.h> |
| 11347 | #endif |
| 11348 | |
| 11349 | #include <$ac_header> |
| 11350 | _ACEOF |
| 11351 | rm -f conftest.$ac_objext |
| 11352 | if { (ac_try="$ac_compile" |
| 11353 | case "(($ac_try" in |
| 11354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11355 | *) ac_try_echo=$ac_try;; |
| 11356 | esac |
| 11357 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11358 | $as_echo "$ac_try_echo") >&5 |
| 11359 | (eval "$ac_compile") 2>conftest.er1 |
| 11360 | ac_status=$? |
| 11361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11362 | rm -f conftest.er1 |
| 11363 | cat conftest.err >&5 |
| 11364 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11365 | (exit $ac_status); } && { |
| 11366 | test -z "$ac_c_werror_flag" || |
| 11367 | test ! -s conftest.err |
| 11368 | } && test -s conftest.$ac_objext; then |
| 11369 | eval "$as_ac_Header=yes" |
| 11370 | else |
| 11371 | $as_echo "$as_me: failed program was:" >&5 |
| 11372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11373 | |
| 11374 | eval "$as_ac_Header=no" |
| 11375 | fi |
| 11376 | |
| 11377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11378 | fi |
| 11379 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11380 | $as_echo "$as_val"'` |
| 11381 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11382 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11383 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 11384 | $as_echo "$as_val"'` |
| 11385 | if test "x$as_val" = x""yes; then |
| 11386 | cat >>confdefs.h <<_ACEOF |
| 11387 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11388 | _ACEOF |
| 11389 | |
| 11390 | fi |
| 11391 | |
| 11392 | done |
| 11393 | |
| 11394 | |
| 11395 | |
| 11396 | for ac_header in sys/sysctl.h |
| 11397 | do |
| 11398 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11399 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11400 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11401 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11402 | $as_echo_n "(cached) " >&6 |
| 11403 | else |
| 11404 | cat >conftest.$ac_ext <<_ACEOF |
| 11405 | /* confdefs.h. */ |
| 11406 | _ACEOF |
| 11407 | cat confdefs.h >>conftest.$ac_ext |
| 11408 | cat >>conftest.$ac_ext <<_ACEOF |
| 11409 | /* end confdefs.h. */ |
| 11410 | #if defined HAVE_SYS_PARAM_H |
| 11411 | # include <sys/param.h> |
| 11412 | #endif |
| 11413 | |
| 11414 | #include <$ac_header> |
| 11415 | _ACEOF |
| 11416 | rm -f conftest.$ac_objext |
| 11417 | if { (ac_try="$ac_compile" |
| 11418 | case "(($ac_try" in |
| 11419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11420 | *) ac_try_echo=$ac_try;; |
| 11421 | esac |
| 11422 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11423 | $as_echo "$ac_try_echo") >&5 |
| 11424 | (eval "$ac_compile") 2>conftest.er1 |
| 11425 | ac_status=$? |
| 11426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11427 | rm -f conftest.er1 |
| 11428 | cat conftest.err >&5 |
| 11429 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11430 | (exit $ac_status); } && { |
| 11431 | test -z "$ac_c_werror_flag" || |
| 11432 | test ! -s conftest.err |
| 11433 | } && test -s conftest.$ac_objext; then |
| 11434 | eval "$as_ac_Header=yes" |
| 11435 | else |
| 11436 | $as_echo "$as_me: failed program was:" >&5 |
| 11437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11438 | |
| 11439 | eval "$as_ac_Header=no" |
| 11440 | fi |
| 11441 | |
| 11442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11443 | fi |
| 11444 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11445 | $as_echo "$as_val"'` |
| 11446 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11447 | $as_echo "$ac_res" >&6; } |
| 11448 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 11449 | $as_echo "$as_val"'` |
| 11450 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 11451 | cat >>confdefs.h <<_ACEOF |
| 11452 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11453 | _ACEOF |
| 11454 | |
| 11455 | fi |
| 11456 | |
| 11457 | done |
| 11458 | |
| 11459 | |
| 11460 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11461 | { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5 |
| 11462 | $as_echo_n "checking for pthread_np.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11463 | cat >conftest.$ac_ext <<_ACEOF |
| 11464 | /* confdefs.h. */ |
| 11465 | _ACEOF |
| 11466 | cat confdefs.h >>conftest.$ac_ext |
| 11467 | cat >>conftest.$ac_ext <<_ACEOF |
| 11468 | /* end confdefs.h. */ |
| 11469 | |
| 11470 | #include <pthread.h> |
| 11471 | #include <pthread_np.h> |
| 11472 | int |
| 11473 | main () |
| 11474 | { |
| 11475 | int i; i = 0; |
| 11476 | ; |
| 11477 | return 0; |
| 11478 | } |
| 11479 | _ACEOF |
| 11480 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11481 | if { (ac_try="$ac_compile" |
| 11482 | case "(($ac_try" in |
| 11483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11484 | *) ac_try_echo=$ac_try;; |
| 11485 | esac |
| 11486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11487 | $as_echo "$ac_try_echo") >&5 |
| 11488 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11489 | ac_status=$? |
| 11490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11491 | rm -f conftest.er1 |
| 11492 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11494 | (exit $ac_status); } && { |
| 11495 | test -z "$ac_c_werror_flag" || |
| 11496 | test ! -s conftest.err |
| 11497 | } && test -s conftest.$ac_objext; then |
| 11498 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11499 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11500 | cat >>confdefs.h <<\_ACEOF |
| 11501 | #define HAVE_PTHREAD_NP_H 1 |
| 11502 | _ACEOF |
| 11503 | |
| 11504 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11505 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11507 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11508 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11509 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11510 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11511 | |
| 11512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11513 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11514 | |
| 11515 | for ac_header in strings.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11516 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11517 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11518 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11519 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11520 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11521 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11522 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11523 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11524 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11525 | $as_echo "$as_val"'` |
| 11526 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11527 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11528 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11529 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11530 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11531 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11532 | cat >conftest.$ac_ext <<_ACEOF |
| 11533 | /* confdefs.h. */ |
| 11534 | _ACEOF |
| 11535 | cat confdefs.h >>conftest.$ac_ext |
| 11536 | cat >>conftest.$ac_ext <<_ACEOF |
| 11537 | /* end confdefs.h. */ |
| 11538 | $ac_includes_default |
| 11539 | #include <$ac_header> |
| 11540 | _ACEOF |
| 11541 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11542 | if { (ac_try="$ac_compile" |
| 11543 | case "(($ac_try" in |
| 11544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11545 | *) ac_try_echo=$ac_try;; |
| 11546 | esac |
| 11547 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11548 | $as_echo "$ac_try_echo") >&5 |
| 11549 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11550 | ac_status=$? |
| 11551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11552 | rm -f conftest.er1 |
| 11553 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11555 | (exit $ac_status); } && { |
| 11556 | test -z "$ac_c_werror_flag" || |
| 11557 | test ! -s conftest.err |
| 11558 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11559 | ac_header_compiler=yes |
| 11560 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11561 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11563 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11564 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11565 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11566 | |
| 11567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11568 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11569 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11570 | |
| 11571 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11572 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11573 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11574 | cat >conftest.$ac_ext <<_ACEOF |
| 11575 | /* confdefs.h. */ |
| 11576 | _ACEOF |
| 11577 | cat confdefs.h >>conftest.$ac_ext |
| 11578 | cat >>conftest.$ac_ext <<_ACEOF |
| 11579 | /* end confdefs.h. */ |
| 11580 | #include <$ac_header> |
| 11581 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11582 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11583 | case "(($ac_try" in |
| 11584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11585 | *) ac_try_echo=$ac_try;; |
| 11586 | esac |
| 11587 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11588 | $as_echo "$ac_try_echo") >&5 |
| 11589 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11590 | ac_status=$? |
| 11591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11592 | rm -f conftest.er1 |
| 11593 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11594 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11595 | (exit $ac_status); } >/dev/null && { |
| 11596 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11597 | test ! -s conftest.err |
| 11598 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11599 | ac_header_preproc=yes |
| 11600 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11601 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11603 | |
| 11604 | ac_header_preproc=no |
| 11605 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11606 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11607 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11608 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11609 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11610 | |
| 11611 | # So? What about this header? |
| 11612 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11613 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11614 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11615 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11616 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11617 | $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] | 11618 | ac_header_preproc=yes |
| 11619 | ;; |
| 11620 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11621 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11622 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11623 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11624 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11625 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11626 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11627 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11628 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11629 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11630 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11631 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11632 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11633 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11634 | ;; |
| 11635 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11636 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11637 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11638 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11639 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11640 | else |
| 11641 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11642 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11643 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11644 | $as_echo "$as_val"'` |
| 11645 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11646 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11647 | |
| 11648 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 11649 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 11650 | $as_echo "$as_val"'` |
| 11651 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11652 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11653 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11654 | _ACEOF |
| 11655 | |
| 11656 | fi |
| 11657 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11658 | done |
| 11659 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 11660 | if test "x$MACOSX" = "xyes"; then |
| 11661 | cat >>confdefs.h <<\_ACEOF |
| 11662 | #define NO_STRINGS_WITH_STRING_H 1 |
| 11663 | _ACEOF |
| 11664 | |
| 11665 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11666 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11667 | { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
| 11668 | $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] | 11669 | cppflags_save=$CPPFLAGS |
| 11670 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11671 | cat >conftest.$ac_ext <<_ACEOF |
| 11672 | /* confdefs.h. */ |
| 11673 | _ACEOF |
| 11674 | cat confdefs.h >>conftest.$ac_ext |
| 11675 | cat >>conftest.$ac_ext <<_ACEOF |
| 11676 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11677 | |
| 11678 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 11679 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 11680 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 11681 | #endif |
| 11682 | #ifdef HAVE_XM_XM_H |
| 11683 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 11684 | #endif |
| 11685 | #ifdef HAVE_STRING_H |
| 11686 | # include <string.h> |
| 11687 | #endif |
| 11688 | #if defined(HAVE_STRINGS_H) |
| 11689 | # include <strings.h> |
| 11690 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11691 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11692 | int |
| 11693 | main () |
| 11694 | { |
| 11695 | int i; i = 0; |
| 11696 | ; |
| 11697 | return 0; |
| 11698 | } |
| 11699 | _ACEOF |
| 11700 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11701 | if { (ac_try="$ac_compile" |
| 11702 | case "(($ac_try" in |
| 11703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11704 | *) ac_try_echo=$ac_try;; |
| 11705 | esac |
| 11706 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11707 | $as_echo "$ac_try_echo") >&5 |
| 11708 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11709 | ac_status=$? |
| 11710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11711 | rm -f conftest.er1 |
| 11712 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11713 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11714 | (exit $ac_status); } && { |
| 11715 | test -z "$ac_c_werror_flag" || |
| 11716 | test ! -s conftest.err |
| 11717 | } && test -s conftest.$ac_objext; then |
| 11718 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11719 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11720 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11721 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11723 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11724 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11725 | #define NO_STRINGS_WITH_STRING_H 1 |
| 11726 | _ACEOF |
| 11727 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11728 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11729 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11730 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11731 | |
| 11732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11733 | CPPFLAGS=$cppflags_save |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 11734 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11735 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11736 | if test $ac_cv_c_compiler_gnu = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11737 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 11738 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11739 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11740 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11741 | else |
| 11742 | ac_pattern="Autoconf.*'x'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11743 | cat >conftest.$ac_ext <<_ACEOF |
| 11744 | /* confdefs.h. */ |
| 11745 | _ACEOF |
| 11746 | cat confdefs.h >>conftest.$ac_ext |
| 11747 | cat >>conftest.$ac_ext <<_ACEOF |
| 11748 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11749 | #include <sgtty.h> |
| 11750 | Autoconf TIOCGETP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11751 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11752 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11753 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11754 | ac_cv_prog_gcc_traditional=yes |
| 11755 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11756 | ac_cv_prog_gcc_traditional=no |
| 11757 | fi |
| 11758 | rm -f conftest* |
| 11759 | |
| 11760 | |
| 11761 | if test $ac_cv_prog_gcc_traditional = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11762 | cat >conftest.$ac_ext <<_ACEOF |
| 11763 | /* confdefs.h. */ |
| 11764 | _ACEOF |
| 11765 | cat confdefs.h >>conftest.$ac_ext |
| 11766 | cat >>conftest.$ac_ext <<_ACEOF |
| 11767 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11768 | #include <termio.h> |
| 11769 | Autoconf TCGETA |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11770 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11771 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11772 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11773 | ac_cv_prog_gcc_traditional=yes |
| 11774 | fi |
| 11775 | rm -f conftest* |
| 11776 | |
| 11777 | fi |
| 11778 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11779 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 11780 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11781 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 11782 | CC="$CC -traditional" |
| 11783 | fi |
| 11784 | fi |
| 11785 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11786 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 11787 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11788 | if test "${ac_cv_c_const+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11789 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11790 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11791 | cat >conftest.$ac_ext <<_ACEOF |
| 11792 | /* confdefs.h. */ |
| 11793 | _ACEOF |
| 11794 | cat confdefs.h >>conftest.$ac_ext |
| 11795 | cat >>conftest.$ac_ext <<_ACEOF |
| 11796 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11797 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11798 | int |
| 11799 | main () |
| 11800 | { |
| 11801 | /* FIXME: Include the comments suggested by Paul. */ |
| 11802 | #ifndef __cplusplus |
| 11803 | /* Ultrix mips cc rejects this. */ |
| 11804 | typedef int charset[2]; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11805 | const charset cs; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11806 | /* SunOS 4.1.1 cc rejects this. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11807 | char const *const *pcpcc; |
| 11808 | char **ppc; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11809 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 11810 | struct point {int x, y;}; |
| 11811 | static struct point const zero = {0,0}; |
| 11812 | /* AIX XL C 1.02.0.0 rejects this. |
| 11813 | It does not let you subtract one const X* pointer from another in |
| 11814 | an arm of an if-expression whose if-part is not a constant |
| 11815 | expression */ |
| 11816 | const char *g = "string"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11817 | pcpcc = &g + (g ? g-g : 0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11818 | /* HPUX 7.0 cc rejects these. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11819 | ++pcpcc; |
| 11820 | ppc = (char**) pcpcc; |
| 11821 | pcpcc = (char const *const *) ppc; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11822 | { /* SCO 3.2v4 cc rejects this. */ |
| 11823 | char *t; |
| 11824 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11825 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11826 | *t++ = 0; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11827 | if (s) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11828 | } |
| 11829 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 11830 | int x[] = {25, 17}; |
| 11831 | const int *foo = &x[0]; |
| 11832 | ++foo; |
| 11833 | } |
| 11834 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 11835 | typedef const int *iptr; |
| 11836 | iptr p = 0; |
| 11837 | ++p; |
| 11838 | } |
| 11839 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 11840 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 11841 | struct s { int j; const int *ap[3]; }; |
| 11842 | struct s *b; b->j = 5; |
| 11843 | } |
| 11844 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 11845 | const int foo = 10; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11846 | if (!foo) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11847 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11848 | return !cs[0] && !zero.x; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11849 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11850 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11851 | ; |
| 11852 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11853 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11854 | _ACEOF |
| 11855 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11856 | if { (ac_try="$ac_compile" |
| 11857 | case "(($ac_try" in |
| 11858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11859 | *) ac_try_echo=$ac_try;; |
| 11860 | esac |
| 11861 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11862 | $as_echo "$ac_try_echo") >&5 |
| 11863 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11864 | ac_status=$? |
| 11865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11866 | rm -f conftest.er1 |
| 11867 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11868 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11869 | (exit $ac_status); } && { |
| 11870 | test -z "$ac_c_werror_flag" || |
| 11871 | test ! -s conftest.err |
| 11872 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11873 | ac_cv_c_const=yes |
| 11874 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11875 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11876 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11877 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11878 | ac_cv_c_const=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11879 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11880 | |
| 11881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11882 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11883 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 11884 | $as_echo "$ac_cv_c_const" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11885 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11886 | |
| 11887 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11888 | #define const /**/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11889 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11890 | |
| 11891 | fi |
| 11892 | |
Bram Moolenaar | 76243bd | 2009-03-02 01:47:02 +0000 | [diff] [blame] | 11893 | { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 11894 | $as_echo_n "checking for working volatile... " >&6; } |
| 11895 | if test "${ac_cv_c_volatile+set}" = set; then |
| 11896 | $as_echo_n "(cached) " >&6 |
| 11897 | else |
| 11898 | cat >conftest.$ac_ext <<_ACEOF |
| 11899 | /* confdefs.h. */ |
| 11900 | _ACEOF |
| 11901 | cat confdefs.h >>conftest.$ac_ext |
| 11902 | cat >>conftest.$ac_ext <<_ACEOF |
| 11903 | /* end confdefs.h. */ |
| 11904 | |
| 11905 | int |
| 11906 | main () |
| 11907 | { |
| 11908 | |
| 11909 | volatile int x; |
| 11910 | int * volatile y = (int *) 0; |
| 11911 | return !x && !y; |
| 11912 | ; |
| 11913 | return 0; |
| 11914 | } |
| 11915 | _ACEOF |
| 11916 | rm -f conftest.$ac_objext |
| 11917 | if { (ac_try="$ac_compile" |
| 11918 | case "(($ac_try" in |
| 11919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11920 | *) ac_try_echo=$ac_try;; |
| 11921 | esac |
| 11922 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11923 | $as_echo "$ac_try_echo") >&5 |
| 11924 | (eval "$ac_compile") 2>conftest.er1 |
| 11925 | ac_status=$? |
| 11926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11927 | rm -f conftest.er1 |
| 11928 | cat conftest.err >&5 |
| 11929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11930 | (exit $ac_status); } && { |
| 11931 | test -z "$ac_c_werror_flag" || |
| 11932 | test ! -s conftest.err |
| 11933 | } && test -s conftest.$ac_objext; then |
| 11934 | ac_cv_c_volatile=yes |
| 11935 | else |
| 11936 | $as_echo "$as_me: failed program was:" >&5 |
| 11937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11938 | |
| 11939 | ac_cv_c_volatile=no |
| 11940 | fi |
| 11941 | |
| 11942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11943 | fi |
| 11944 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
| 11945 | $as_echo "$ac_cv_c_volatile" >&6; } |
| 11946 | if test $ac_cv_c_volatile = no; then |
| 11947 | |
| 11948 | cat >>confdefs.h <<\_ACEOF |
| 11949 | #define volatile /**/ |
| 11950 | _ACEOF |
| 11951 | |
| 11952 | fi |
| 11953 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11954 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 11955 | $as_echo_n "checking for mode_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11956 | if test "${ac_cv_type_mode_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11957 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11958 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11959 | ac_cv_type_mode_t=no |
| 11960 | cat >conftest.$ac_ext <<_ACEOF |
| 11961 | /* confdefs.h. */ |
| 11962 | _ACEOF |
| 11963 | cat confdefs.h >>conftest.$ac_ext |
| 11964 | cat >>conftest.$ac_ext <<_ACEOF |
| 11965 | /* end confdefs.h. */ |
| 11966 | $ac_includes_default |
| 11967 | int |
| 11968 | main () |
| 11969 | { |
| 11970 | if (sizeof (mode_t)) |
| 11971 | return 0; |
| 11972 | ; |
| 11973 | return 0; |
| 11974 | } |
| 11975 | _ACEOF |
| 11976 | rm -f conftest.$ac_objext |
| 11977 | if { (ac_try="$ac_compile" |
| 11978 | case "(($ac_try" in |
| 11979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11980 | *) ac_try_echo=$ac_try;; |
| 11981 | esac |
| 11982 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11983 | $as_echo "$ac_try_echo") >&5 |
| 11984 | (eval "$ac_compile") 2>conftest.er1 |
| 11985 | ac_status=$? |
| 11986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11987 | rm -f conftest.er1 |
| 11988 | cat conftest.err >&5 |
| 11989 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11990 | (exit $ac_status); } && { |
| 11991 | test -z "$ac_c_werror_flag" || |
| 11992 | test ! -s conftest.err |
| 11993 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 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 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12004 | if (sizeof ((mode_t))) |
| 12005 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12006 | ; |
| 12007 | return 0; |
| 12008 | } |
| 12009 | _ACEOF |
| 12010 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12019 | ac_status=$? |
| 12020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12021 | rm -f conftest.er1 |
| 12022 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 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 |
| 12028 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12029 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12030 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12031 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12032 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12033 | ac_cv_type_mode_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12034 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12035 | |
| 12036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12037 | else |
| 12038 | $as_echo "$as_me: failed program was:" >&5 |
| 12039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12040 | |
| 12041 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12042 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12043 | |
| 12044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12045 | fi |
| 12046 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 12047 | $as_echo "$ac_cv_type_mode_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12048 | if test "x$ac_cv_type_mode_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12049 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12050 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12051 | |
| 12052 | cat >>confdefs.h <<_ACEOF |
| 12053 | #define mode_t int |
| 12054 | _ACEOF |
| 12055 | |
| 12056 | fi |
| 12057 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12058 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
| 12059 | $as_echo_n "checking for off_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12060 | if test "${ac_cv_type_off_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12061 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12062 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12063 | ac_cv_type_off_t=no |
| 12064 | cat >conftest.$ac_ext <<_ACEOF |
| 12065 | /* confdefs.h. */ |
| 12066 | _ACEOF |
| 12067 | cat confdefs.h >>conftest.$ac_ext |
| 12068 | cat >>conftest.$ac_ext <<_ACEOF |
| 12069 | /* end confdefs.h. */ |
| 12070 | $ac_includes_default |
| 12071 | int |
| 12072 | main () |
| 12073 | { |
| 12074 | if (sizeof (off_t)) |
| 12075 | return 0; |
| 12076 | ; |
| 12077 | return 0; |
| 12078 | } |
| 12079 | _ACEOF |
| 12080 | rm -f conftest.$ac_objext |
| 12081 | if { (ac_try="$ac_compile" |
| 12082 | case "(($ac_try" in |
| 12083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12084 | *) ac_try_echo=$ac_try;; |
| 12085 | esac |
| 12086 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12087 | $as_echo "$ac_try_echo") >&5 |
| 12088 | (eval "$ac_compile") 2>conftest.er1 |
| 12089 | ac_status=$? |
| 12090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12091 | rm -f conftest.er1 |
| 12092 | cat conftest.err >&5 |
| 12093 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12094 | (exit $ac_status); } && { |
| 12095 | test -z "$ac_c_werror_flag" || |
| 12096 | test ! -s conftest.err |
| 12097 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 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 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12108 | if (sizeof ((off_t))) |
| 12109 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12110 | ; |
| 12111 | return 0; |
| 12112 | } |
| 12113 | _ACEOF |
| 12114 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12123 | ac_status=$? |
| 12124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12125 | rm -f conftest.er1 |
| 12126 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 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 |
| 12132 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12133 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12134 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12135 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12136 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12137 | ac_cv_type_off_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12138 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12139 | |
| 12140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12141 | else |
| 12142 | $as_echo "$as_me: failed program was:" >&5 |
| 12143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12144 | |
| 12145 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12146 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12147 | |
| 12148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12149 | fi |
| 12150 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 12151 | $as_echo "$ac_cv_type_off_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12152 | if test "x$ac_cv_type_off_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12153 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12154 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12155 | |
| 12156 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12157 | #define off_t long int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12158 | _ACEOF |
| 12159 | |
| 12160 | fi |
| 12161 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12162 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 12163 | $as_echo_n "checking for pid_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12164 | if test "${ac_cv_type_pid_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12165 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12166 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12167 | ac_cv_type_pid_t=no |
| 12168 | cat >conftest.$ac_ext <<_ACEOF |
| 12169 | /* confdefs.h. */ |
| 12170 | _ACEOF |
| 12171 | cat confdefs.h >>conftest.$ac_ext |
| 12172 | cat >>conftest.$ac_ext <<_ACEOF |
| 12173 | /* end confdefs.h. */ |
| 12174 | $ac_includes_default |
| 12175 | int |
| 12176 | main () |
| 12177 | { |
| 12178 | if (sizeof (pid_t)) |
| 12179 | return 0; |
| 12180 | ; |
| 12181 | return 0; |
| 12182 | } |
| 12183 | _ACEOF |
| 12184 | rm -f conftest.$ac_objext |
| 12185 | if { (ac_try="$ac_compile" |
| 12186 | case "(($ac_try" in |
| 12187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12188 | *) ac_try_echo=$ac_try;; |
| 12189 | esac |
| 12190 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12191 | $as_echo "$ac_try_echo") >&5 |
| 12192 | (eval "$ac_compile") 2>conftest.er1 |
| 12193 | ac_status=$? |
| 12194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12195 | rm -f conftest.er1 |
| 12196 | cat conftest.err >&5 |
| 12197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12198 | (exit $ac_status); } && { |
| 12199 | test -z "$ac_c_werror_flag" || |
| 12200 | test ! -s conftest.err |
| 12201 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 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 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12212 | if (sizeof ((pid_t))) |
| 12213 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12214 | ; |
| 12215 | return 0; |
| 12216 | } |
| 12217 | _ACEOF |
| 12218 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12227 | ac_status=$? |
| 12228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12229 | rm -f conftest.er1 |
| 12230 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 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 |
| 12236 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12237 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12238 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12239 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12240 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12241 | ac_cv_type_pid_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12242 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12243 | |
| 12244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12245 | else |
| 12246 | $as_echo "$as_me: failed program was:" >&5 |
| 12247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12248 | |
| 12249 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12250 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12251 | |
| 12252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12253 | fi |
| 12254 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 12255 | $as_echo "$ac_cv_type_pid_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12256 | if test "x$ac_cv_type_pid_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12257 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12258 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12259 | |
| 12260 | cat >>confdefs.h <<_ACEOF |
| 12261 | #define pid_t int |
| 12262 | _ACEOF |
| 12263 | |
| 12264 | fi |
| 12265 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12266 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
| 12267 | $as_echo_n "checking for size_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12268 | if test "${ac_cv_type_size_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12269 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12270 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12271 | ac_cv_type_size_t=no |
| 12272 | cat >conftest.$ac_ext <<_ACEOF |
| 12273 | /* confdefs.h. */ |
| 12274 | _ACEOF |
| 12275 | cat confdefs.h >>conftest.$ac_ext |
| 12276 | cat >>conftest.$ac_ext <<_ACEOF |
| 12277 | /* end confdefs.h. */ |
| 12278 | $ac_includes_default |
| 12279 | int |
| 12280 | main () |
| 12281 | { |
| 12282 | if (sizeof (size_t)) |
| 12283 | return 0; |
| 12284 | ; |
| 12285 | return 0; |
| 12286 | } |
| 12287 | _ACEOF |
| 12288 | rm -f conftest.$ac_objext |
| 12289 | if { (ac_try="$ac_compile" |
| 12290 | case "(($ac_try" in |
| 12291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12292 | *) ac_try_echo=$ac_try;; |
| 12293 | esac |
| 12294 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12295 | $as_echo "$ac_try_echo") >&5 |
| 12296 | (eval "$ac_compile") 2>conftest.er1 |
| 12297 | ac_status=$? |
| 12298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12299 | rm -f conftest.er1 |
| 12300 | cat conftest.err >&5 |
| 12301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12302 | (exit $ac_status); } && { |
| 12303 | test -z "$ac_c_werror_flag" || |
| 12304 | test ! -s conftest.err |
| 12305 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12306 | cat >conftest.$ac_ext <<_ACEOF |
| 12307 | /* confdefs.h. */ |
| 12308 | _ACEOF |
| 12309 | cat confdefs.h >>conftest.$ac_ext |
| 12310 | cat >>conftest.$ac_ext <<_ACEOF |
| 12311 | /* end confdefs.h. */ |
| 12312 | $ac_includes_default |
| 12313 | int |
| 12314 | main () |
| 12315 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12316 | if (sizeof ((size_t))) |
| 12317 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12318 | ; |
| 12319 | return 0; |
| 12320 | } |
| 12321 | _ACEOF |
| 12322 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12323 | if { (ac_try="$ac_compile" |
| 12324 | case "(($ac_try" in |
| 12325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12326 | *) ac_try_echo=$ac_try;; |
| 12327 | esac |
| 12328 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12329 | $as_echo "$ac_try_echo") >&5 |
| 12330 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12331 | ac_status=$? |
| 12332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12333 | rm -f conftest.er1 |
| 12334 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12336 | (exit $ac_status); } && { |
| 12337 | test -z "$ac_c_werror_flag" || |
| 12338 | test ! -s conftest.err |
| 12339 | } && test -s conftest.$ac_objext; then |
| 12340 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12341 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12342 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12343 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12344 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12345 | ac_cv_type_size_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12346 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12347 | |
| 12348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12349 | else |
| 12350 | $as_echo "$as_me: failed program was:" >&5 |
| 12351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12352 | |
| 12353 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12354 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12355 | |
| 12356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12357 | fi |
| 12358 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 12359 | $as_echo "$ac_cv_type_size_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12360 | if test "x$ac_cv_type_size_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12361 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12362 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12363 | |
| 12364 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12365 | #define size_t unsigned int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12366 | _ACEOF |
| 12367 | |
| 12368 | fi |
| 12369 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12370 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 12371 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12372 | if test "${ac_cv_type_uid_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12373 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12374 | else |
| 12375 | cat >conftest.$ac_ext <<_ACEOF |
| 12376 | /* confdefs.h. */ |
| 12377 | _ACEOF |
| 12378 | cat confdefs.h >>conftest.$ac_ext |
| 12379 | cat >>conftest.$ac_ext <<_ACEOF |
| 12380 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12381 | #include <sys/types.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12382 | |
| 12383 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12384 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12385 | $EGREP "uid_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12386 | ac_cv_type_uid_t=yes |
| 12387 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12388 | ac_cv_type_uid_t=no |
| 12389 | fi |
| 12390 | rm -f conftest* |
| 12391 | |
| 12392 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12393 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 12394 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12395 | if test $ac_cv_type_uid_t = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12396 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12397 | cat >>confdefs.h <<\_ACEOF |
| 12398 | #define uid_t int |
| 12399 | _ACEOF |
| 12400 | |
| 12401 | |
| 12402 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12403 | #define gid_t int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12404 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12405 | |
| 12406 | fi |
| 12407 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12408 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 12409 | $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] | 12410 | if test "${ac_cv_header_time+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12411 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12412 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12413 | cat >conftest.$ac_ext <<_ACEOF |
| 12414 | /* confdefs.h. */ |
| 12415 | _ACEOF |
| 12416 | cat confdefs.h >>conftest.$ac_ext |
| 12417 | cat >>conftest.$ac_ext <<_ACEOF |
| 12418 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12419 | #include <sys/types.h> |
| 12420 | #include <sys/time.h> |
| 12421 | #include <time.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12422 | |
| 12423 | int |
| 12424 | main () |
| 12425 | { |
| 12426 | if ((struct tm *) 0) |
| 12427 | return 0; |
| 12428 | ; |
| 12429 | return 0; |
| 12430 | } |
| 12431 | _ACEOF |
| 12432 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12433 | if { (ac_try="$ac_compile" |
| 12434 | case "(($ac_try" in |
| 12435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12436 | *) ac_try_echo=$ac_try;; |
| 12437 | esac |
| 12438 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12439 | $as_echo "$ac_try_echo") >&5 |
| 12440 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12441 | ac_status=$? |
| 12442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12443 | rm -f conftest.er1 |
| 12444 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12445 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12446 | (exit $ac_status); } && { |
| 12447 | test -z "$ac_c_werror_flag" || |
| 12448 | test ! -s conftest.err |
| 12449 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12450 | ac_cv_header_time=yes |
| 12451 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12452 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12453 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12454 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12455 | ac_cv_header_time=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12456 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12457 | |
| 12458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12459 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12460 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 12461 | $as_echo "$ac_cv_header_time" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12462 | if test $ac_cv_header_time = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12463 | |
| 12464 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12465 | #define TIME_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12466 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12467 | |
| 12468 | fi |
| 12469 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12470 | { $as_echo "$as_me:$LINENO: checking for ino_t" >&5 |
| 12471 | $as_echo_n "checking for ino_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12472 | if test "${ac_cv_type_ino_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12473 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12474 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12475 | ac_cv_type_ino_t=no |
| 12476 | cat >conftest.$ac_ext <<_ACEOF |
| 12477 | /* confdefs.h. */ |
| 12478 | _ACEOF |
| 12479 | cat confdefs.h >>conftest.$ac_ext |
| 12480 | cat >>conftest.$ac_ext <<_ACEOF |
| 12481 | /* end confdefs.h. */ |
| 12482 | $ac_includes_default |
| 12483 | int |
| 12484 | main () |
| 12485 | { |
| 12486 | if (sizeof (ino_t)) |
| 12487 | return 0; |
| 12488 | ; |
| 12489 | return 0; |
| 12490 | } |
| 12491 | _ACEOF |
| 12492 | rm -f conftest.$ac_objext |
| 12493 | if { (ac_try="$ac_compile" |
| 12494 | case "(($ac_try" in |
| 12495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12496 | *) ac_try_echo=$ac_try;; |
| 12497 | esac |
| 12498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12499 | $as_echo "$ac_try_echo") >&5 |
| 12500 | (eval "$ac_compile") 2>conftest.er1 |
| 12501 | ac_status=$? |
| 12502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12503 | rm -f conftest.er1 |
| 12504 | cat conftest.err >&5 |
| 12505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12506 | (exit $ac_status); } && { |
| 12507 | test -z "$ac_c_werror_flag" || |
| 12508 | test ! -s conftest.err |
| 12509 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 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 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12520 | if (sizeof ((ino_t))) |
| 12521 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12522 | ; |
| 12523 | return 0; |
| 12524 | } |
| 12525 | _ACEOF |
| 12526 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12535 | ac_status=$? |
| 12536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12537 | rm -f conftest.er1 |
| 12538 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 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 |
| 12544 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12545 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12546 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12547 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12548 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12549 | ac_cv_type_ino_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12550 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12551 | |
| 12552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12553 | else |
| 12554 | $as_echo "$as_me: failed program was:" >&5 |
| 12555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12556 | |
| 12557 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12558 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12559 | |
| 12560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12561 | fi |
| 12562 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
| 12563 | $as_echo "$ac_cv_type_ino_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12564 | if test "x$ac_cv_type_ino_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12565 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12566 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12567 | |
| 12568 | cat >>confdefs.h <<_ACEOF |
| 12569 | #define ino_t long |
| 12570 | _ACEOF |
| 12571 | |
| 12572 | fi |
| 12573 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12574 | { $as_echo "$as_me:$LINENO: checking for dev_t" >&5 |
| 12575 | $as_echo_n "checking for dev_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12576 | if test "${ac_cv_type_dev_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12577 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12578 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12579 | ac_cv_type_dev_t=no |
| 12580 | cat >conftest.$ac_ext <<_ACEOF |
| 12581 | /* confdefs.h. */ |
| 12582 | _ACEOF |
| 12583 | cat confdefs.h >>conftest.$ac_ext |
| 12584 | cat >>conftest.$ac_ext <<_ACEOF |
| 12585 | /* end confdefs.h. */ |
| 12586 | $ac_includes_default |
| 12587 | int |
| 12588 | main () |
| 12589 | { |
| 12590 | if (sizeof (dev_t)) |
| 12591 | return 0; |
| 12592 | ; |
| 12593 | return 0; |
| 12594 | } |
| 12595 | _ACEOF |
| 12596 | rm -f conftest.$ac_objext |
| 12597 | if { (ac_try="$ac_compile" |
| 12598 | case "(($ac_try" in |
| 12599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12600 | *) ac_try_echo=$ac_try;; |
| 12601 | esac |
| 12602 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12603 | $as_echo "$ac_try_echo") >&5 |
| 12604 | (eval "$ac_compile") 2>conftest.er1 |
| 12605 | ac_status=$? |
| 12606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12607 | rm -f conftest.er1 |
| 12608 | cat conftest.err >&5 |
| 12609 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12610 | (exit $ac_status); } && { |
| 12611 | test -z "$ac_c_werror_flag" || |
| 12612 | test ! -s conftest.err |
| 12613 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12614 | cat >conftest.$ac_ext <<_ACEOF |
| 12615 | /* confdefs.h. */ |
| 12616 | _ACEOF |
| 12617 | cat confdefs.h >>conftest.$ac_ext |
| 12618 | cat >>conftest.$ac_ext <<_ACEOF |
| 12619 | /* end confdefs.h. */ |
| 12620 | $ac_includes_default |
| 12621 | int |
| 12622 | main () |
| 12623 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12624 | if (sizeof ((dev_t))) |
| 12625 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12626 | ; |
| 12627 | return 0; |
| 12628 | } |
| 12629 | _ACEOF |
| 12630 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12631 | if { (ac_try="$ac_compile" |
| 12632 | case "(($ac_try" in |
| 12633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12634 | *) ac_try_echo=$ac_try;; |
| 12635 | esac |
| 12636 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12637 | $as_echo "$ac_try_echo") >&5 |
| 12638 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12639 | ac_status=$? |
| 12640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12641 | rm -f conftest.er1 |
| 12642 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12643 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12644 | (exit $ac_status); } && { |
| 12645 | test -z "$ac_c_werror_flag" || |
| 12646 | test ! -s conftest.err |
| 12647 | } && test -s conftest.$ac_objext; then |
| 12648 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12649 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12650 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12652 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12653 | ac_cv_type_dev_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12654 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12655 | |
| 12656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12657 | else |
| 12658 | $as_echo "$as_me: failed program was:" >&5 |
| 12659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12660 | |
| 12661 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12662 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12663 | |
| 12664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12665 | fi |
| 12666 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
| 12667 | $as_echo "$ac_cv_type_dev_t" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12668 | if test "x$ac_cv_type_dev_t" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12669 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12670 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12671 | |
| 12672 | cat >>confdefs.h <<_ACEOF |
| 12673 | #define dev_t unsigned |
| 12674 | _ACEOF |
| 12675 | |
| 12676 | fi |
| 12677 | |
| 12678 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12679 | { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5 |
| 12680 | $as_echo_n "checking for rlim_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12681 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12682 | { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 12683 | $as_echo "(cached) $ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12684 | else |
| 12685 | cat >conftest.$ac_ext <<_ACEOF |
| 12686 | /* confdefs.h. */ |
| 12687 | _ACEOF |
| 12688 | cat confdefs.h >>conftest.$ac_ext |
| 12689 | cat >>conftest.$ac_ext <<_ACEOF |
| 12690 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12691 | |
| 12692 | #include <sys/types.h> |
| 12693 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12694 | # include <stdlib.h> |
| 12695 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12696 | #endif |
| 12697 | #ifdef HAVE_SYS_RESOURCE_H |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12698 | # include <sys/resource.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12699 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12700 | |
| 12701 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12702 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12703 | $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] | 12704 | ac_cv_type_rlim_t=yes |
| 12705 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12706 | ac_cv_type_rlim_t=no |
| 12707 | fi |
| 12708 | rm -f conftest* |
| 12709 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12710 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
| 12711 | $as_echo "$ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12712 | fi |
| 12713 | if test $ac_cv_type_rlim_t = no; then |
| 12714 | cat >> confdefs.h <<\EOF |
| 12715 | #define rlim_t unsigned long |
| 12716 | EOF |
| 12717 | fi |
| 12718 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12719 | { $as_echo "$as_me:$LINENO: checking for stack_t" >&5 |
| 12720 | $as_echo_n "checking for stack_t... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12721 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12722 | { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
| 12723 | $as_echo "(cached) $ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12724 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12725 | cat >conftest.$ac_ext <<_ACEOF |
| 12726 | /* confdefs.h. */ |
| 12727 | _ACEOF |
| 12728 | cat confdefs.h >>conftest.$ac_ext |
| 12729 | cat >>conftest.$ac_ext <<_ACEOF |
| 12730 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12731 | |
| 12732 | #include <sys/types.h> |
| 12733 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12734 | # include <stdlib.h> |
| 12735 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12736 | #endif |
| 12737 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12738 | |
| 12739 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12740 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12741 | $EGREP "stack_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12742 | ac_cv_type_stack_t=yes |
| 12743 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12744 | ac_cv_type_stack_t=no |
| 12745 | fi |
| 12746 | rm -f conftest* |
| 12747 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12748 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
| 12749 | $as_echo "$ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12750 | fi |
| 12751 | if test $ac_cv_type_stack_t = no; then |
| 12752 | cat >> confdefs.h <<\EOF |
| 12753 | #define stack_t struct sigaltstack |
| 12754 | EOF |
| 12755 | fi |
| 12756 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12757 | { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
| 12758 | $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] | 12759 | cat >conftest.$ac_ext <<_ACEOF |
| 12760 | /* confdefs.h. */ |
| 12761 | _ACEOF |
| 12762 | cat confdefs.h >>conftest.$ac_ext |
| 12763 | cat >>conftest.$ac_ext <<_ACEOF |
| 12764 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12765 | |
| 12766 | #include <sys/types.h> |
| 12767 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12768 | # include <stdlib.h> |
| 12769 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12770 | #endif |
| 12771 | #include <signal.h> |
| 12772 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12773 | |
| 12774 | int |
| 12775 | main () |
| 12776 | { |
| 12777 | stack_t sigstk; sigstk.ss_base = 0; |
| 12778 | ; |
| 12779 | return 0; |
| 12780 | } |
| 12781 | _ACEOF |
| 12782 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12783 | if { (ac_try="$ac_compile" |
| 12784 | case "(($ac_try" in |
| 12785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12786 | *) ac_try_echo=$ac_try;; |
| 12787 | esac |
| 12788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12789 | $as_echo "$ac_try_echo") >&5 |
| 12790 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12791 | ac_status=$? |
| 12792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12793 | rm -f conftest.er1 |
| 12794 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12795 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12796 | (exit $ac_status); } && { |
| 12797 | test -z "$ac_c_werror_flag" || |
| 12798 | test ! -s conftest.err |
| 12799 | } && test -s conftest.$ac_objext; then |
| 12800 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12801 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12802 | #define HAVE_SS_BASE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12803 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12804 | |
| 12805 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12806 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12808 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12809 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12810 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12811 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12812 | |
| 12813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12814 | |
| 12815 | olibs="$LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12816 | { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
| 12817 | $as_echo_n "checking --with-tlib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12818 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12819 | # Check whether --with-tlib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12820 | if test "${with_tlib+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12821 | withval=$with_tlib; |
| 12822 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12823 | |
| 12824 | if test -n "$with_tlib"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12825 | { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5 |
| 12826 | $as_echo "$with_tlib" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12827 | LIBS="$LIBS -l$with_tlib" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12828 | { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
| 12829 | $as_echo_n "checking for linking with $with_tlib library... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12830 | cat >conftest.$ac_ext <<_ACEOF |
| 12831 | /* confdefs.h. */ |
| 12832 | _ACEOF |
| 12833 | cat confdefs.h >>conftest.$ac_ext |
| 12834 | cat >>conftest.$ac_ext <<_ACEOF |
| 12835 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12836 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12837 | int |
| 12838 | main () |
| 12839 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12840 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12841 | ; |
| 12842 | return 0; |
| 12843 | } |
| 12844 | _ACEOF |
| 12845 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12846 | if { (ac_try="$ac_link" |
| 12847 | case "(($ac_try" in |
| 12848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12849 | *) ac_try_echo=$ac_try;; |
| 12850 | esac |
| 12851 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12852 | $as_echo "$ac_try_echo") >&5 |
| 12853 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12854 | ac_status=$? |
| 12855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12856 | rm -f conftest.er1 |
| 12857 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12858 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12859 | (exit $ac_status); } && { |
| 12860 | test -z "$ac_c_werror_flag" || |
| 12861 | test ! -s conftest.err |
| 12862 | } && test -s conftest$ac_exeext && { |
| 12863 | test "$cross_compiling" = yes || |
| 12864 | $as_test_x conftest$ac_exeext |
| 12865 | }; then |
| 12866 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 12867 | $as_echo "OK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12868 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12869 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12871 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12872 | { { $as_echo "$as_me:$LINENO: error: FAILED" >&5 |
| 12873 | $as_echo "$as_me: error: FAILED" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12874 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12875 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12876 | |
| 12877 | rm -rf conftest.dSYM |
| 12878 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12879 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12880 | olibs="$LIBS" |
| 12881 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12882 | { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
| 12883 | $as_echo "empty: automatic terminal library selection" >&6; } |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 12884 | case "`uname -s 2>/dev/null`" in |
| 12885 | OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12886 | *) tlibs="ncurses termlib termcap curses";; |
| 12887 | esac |
| 12888 | for libname in $tlibs; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12889 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12890 | as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
| 12891 | { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
| 12892 | $as_echo_n "checking for tgetent in -l${libname}... " >&6; } |
| 12893 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12894 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12895 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12896 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12897 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12898 | cat >conftest.$ac_ext <<_ACEOF |
| 12899 | /* confdefs.h. */ |
| 12900 | _ACEOF |
| 12901 | cat confdefs.h >>conftest.$ac_ext |
| 12902 | cat >>conftest.$ac_ext <<_ACEOF |
| 12903 | /* end confdefs.h. */ |
| 12904 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12905 | /* Override any GCC internal prototype to avoid an error. |
| 12906 | Use char because int might match the return type of a GCC |
| 12907 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12908 | #ifdef __cplusplus |
| 12909 | extern "C" |
| 12910 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12911 | char tgetent (); |
| 12912 | int |
| 12913 | main () |
| 12914 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12915 | return tgetent (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12916 | ; |
| 12917 | return 0; |
| 12918 | } |
| 12919 | _ACEOF |
| 12920 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12921 | if { (ac_try="$ac_link" |
| 12922 | case "(($ac_try" in |
| 12923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12924 | *) ac_try_echo=$ac_try;; |
| 12925 | esac |
| 12926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12927 | $as_echo "$ac_try_echo") >&5 |
| 12928 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12929 | ac_status=$? |
| 12930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12931 | rm -f conftest.er1 |
| 12932 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12934 | (exit $ac_status); } && { |
| 12935 | test -z "$ac_c_werror_flag" || |
| 12936 | test ! -s conftest.err |
| 12937 | } && test -s conftest$ac_exeext && { |
| 12938 | test "$cross_compiling" = yes || |
| 12939 | $as_test_x conftest$ac_exeext |
| 12940 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12941 | eval "$as_ac_Lib=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12942 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12943 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12944 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12945 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12946 | eval "$as_ac_Lib=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12947 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12948 | |
| 12949 | rm -rf conftest.dSYM |
| 12950 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12951 | conftest$ac_exeext conftest.$ac_ext |
| 12952 | LIBS=$ac_check_lib_save_LIBS |
| 12953 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12954 | ac_res=`eval 'as_val=${'$as_ac_Lib'} |
| 12955 | $as_echo "$as_val"'` |
| 12956 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12957 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12958 | as_val=`eval 'as_val=${'$as_ac_Lib'} |
| 12959 | $as_echo "$as_val"'` |
| 12960 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12961 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12962 | #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12963 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12964 | |
| 12965 | LIBS="-l${libname} $LIBS" |
| 12966 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12967 | fi |
| 12968 | |
| 12969 | if test "x$olibs" != "x$LIBS"; then |
| 12970 | if test "$cross_compiling" = yes; then |
| 12971 | res="FAIL" |
| 12972 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12973 | cat >conftest.$ac_ext <<_ACEOF |
| 12974 | /* confdefs.h. */ |
| 12975 | _ACEOF |
| 12976 | cat confdefs.h >>conftest.$ac_ext |
| 12977 | cat >>conftest.$ac_ext <<_ACEOF |
| 12978 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12979 | |
| 12980 | #ifdef HAVE_TERMCAP_H |
| 12981 | # include <termcap.h> |
| 12982 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12983 | #if STDC_HEADERS |
| 12984 | # include <stdlib.h> |
| 12985 | # include <stddef.h> |
| 12986 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12987 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12988 | _ACEOF |
| 12989 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12990 | if { (ac_try="$ac_link" |
| 12991 | case "(($ac_try" in |
| 12992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12993 | *) ac_try_echo=$ac_try;; |
| 12994 | esac |
| 12995 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12996 | $as_echo "$ac_try_echo") >&5 |
| 12997 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12998 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13000 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13001 | { (case "(($ac_try" in |
| 13002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13003 | *) ac_try_echo=$ac_try;; |
| 13004 | esac |
| 13005 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13006 | $as_echo "$ac_try_echo") >&5 |
| 13007 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13008 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13009 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13010 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13011 | res="OK" |
| 13012 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13013 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13014 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13015 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13016 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13017 | ( exit $ac_status ) |
| 13018 | res="FAIL" |
| 13019 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13020 | rm -rf conftest.dSYM |
| 13021 | 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] | 13022 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13023 | |
| 13024 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13025 | if test "$res" = "OK"; then |
| 13026 | break |
| 13027 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13028 | { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
| 13029 | $as_echo "$libname library is not usable" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13030 | LIBS="$olibs" |
| 13031 | fi |
| 13032 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13033 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13034 | { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5 |
| 13035 | $as_echo "no terminal library found" >&6; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13036 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13037 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13038 | |
| 13039 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13040 | { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5 |
| 13041 | $as_echo_n "checking for tgetent()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13042 | cat >conftest.$ac_ext <<_ACEOF |
| 13043 | /* confdefs.h. */ |
| 13044 | _ACEOF |
| 13045 | cat confdefs.h >>conftest.$ac_ext |
| 13046 | cat >>conftest.$ac_ext <<_ACEOF |
| 13047 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13048 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13049 | int |
| 13050 | main () |
| 13051 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13052 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13053 | ; |
| 13054 | return 0; |
| 13055 | } |
| 13056 | _ACEOF |
| 13057 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13058 | if { (ac_try="$ac_link" |
| 13059 | case "(($ac_try" in |
| 13060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13061 | *) ac_try_echo=$ac_try;; |
| 13062 | esac |
| 13063 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13064 | $as_echo "$ac_try_echo") >&5 |
| 13065 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13066 | ac_status=$? |
| 13067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13068 | rm -f conftest.er1 |
| 13069 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13070 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13071 | (exit $ac_status); } && { |
| 13072 | test -z "$ac_c_werror_flag" || |
| 13073 | test ! -s conftest.err |
| 13074 | } && test -s conftest$ac_exeext && { |
| 13075 | test "$cross_compiling" = yes || |
| 13076 | $as_test_x conftest$ac_exeext |
| 13077 | }; then |
| 13078 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13079 | $as_echo "yes" >&6; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13080 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13081 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13083 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13084 | { { $as_echo "$as_me:$LINENO: error: NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13085 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13086 | Or specify the name of the library with --with-tlib." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13087 | $as_echo "$as_me: error: NOT FOUND! |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13088 | You need to install a terminal library; for example ncurses. |
| 13089 | Or specify the name of the library with --with-tlib." >&2;} |
| 13090 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13091 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13092 | |
| 13093 | rm -rf conftest.dSYM |
| 13094 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13095 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13096 | fi |
| 13097 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13098 | { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 |
| 13099 | $as_echo_n "checking whether we talk terminfo... " >&6; } |
| 13100 | if test "${vim_cv_terminfo+set}" = set; then |
| 13101 | $as_echo_n "(cached) " >&6 |
| 13102 | else |
| 13103 | |
| 13104 | if test "$cross_compiling" = yes; then |
| 13105 | |
| 13106 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5 |
| 13107 | $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] | 13108 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13109 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13110 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13111 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13112 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13113 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13114 | #ifdef HAVE_TERMCAP_H |
| 13115 | # include <termcap.h> |
| 13116 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13117 | #ifdef HAVE_STRING_H |
| 13118 | # include <string.h> |
| 13119 | #endif |
| 13120 | #if STDC_HEADERS |
| 13121 | # include <stdlib.h> |
| 13122 | # include <stddef.h> |
| 13123 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13124 | main() |
| 13125 | {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] | 13126 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13127 | _ACEOF |
| 13128 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13129 | if { (ac_try="$ac_link" |
| 13130 | case "(($ac_try" in |
| 13131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13132 | *) ac_try_echo=$ac_try;; |
| 13133 | esac |
| 13134 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13135 | $as_echo "$ac_try_echo") >&5 |
| 13136 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13137 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13138 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13139 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 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_try") 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); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13150 | |
| 13151 | vim_cv_terminfo=no |
| 13152 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13153 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13154 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13155 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13157 | |
| 13158 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13159 | |
| 13160 | vim_cv_terminfo=yes |
| 13161 | |
| 13162 | fi |
| 13163 | rm -rf conftest.dSYM |
| 13164 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13165 | fi |
| 13166 | |
| 13167 | |
| 13168 | |
| 13169 | fi |
| 13170 | { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5 |
| 13171 | $as_echo "$vim_cv_terminfo" >&6; } |
| 13172 | |
| 13173 | if test "x$vim_cv_terminfo" = "xyes" ; then |
| 13174 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13175 | #define TERMINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13176 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13177 | |
| 13178 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13179 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13180 | if test "x$olibs" != "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13181 | { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
| 13182 | $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } |
| 13183 | if test "${vim_cv_tgent+set}" = set; then |
| 13184 | $as_echo_n "(cached) " >&6 |
| 13185 | else |
| 13186 | |
| 13187 | if test "$cross_compiling" = yes; then |
| 13188 | |
| 13189 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 13190 | $as_echo "$as_me: error: failed to compile test program." >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13191 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13192 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13193 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13194 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13195 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13196 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13197 | #ifdef HAVE_TERMCAP_H |
| 13198 | # include <termcap.h> |
| 13199 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13200 | #if STDC_HEADERS |
| 13201 | # include <stdlib.h> |
| 13202 | # include <stddef.h> |
| 13203 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13204 | main() |
| 13205 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13206 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13207 | _ACEOF |
| 13208 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13209 | if { (ac_try="$ac_link" |
| 13210 | case "(($ac_try" in |
| 13211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13212 | *) ac_try_echo=$ac_try;; |
| 13213 | esac |
| 13214 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13215 | $as_echo "$ac_try_echo") >&5 |
| 13216 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13217 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13218 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13219 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13220 | { (case "(($ac_try" in |
| 13221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13222 | *) ac_try_echo=$ac_try;; |
| 13223 | esac |
| 13224 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13225 | $as_echo "$ac_try_echo") >&5 |
| 13226 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13227 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13228 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13229 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13230 | |
| 13231 | vim_cv_tgent=zero |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13232 | |
| 13233 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13234 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13235 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13237 | |
| 13238 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13239 | |
| 13240 | vim_cv_tgent=non-zero |
| 13241 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13242 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13243 | rm -rf conftest.dSYM |
| 13244 | 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] | 13245 | fi |
| 13246 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13247 | |
| 13248 | |
| 13249 | fi |
| 13250 | { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5 |
| 13251 | $as_echo "$vim_cv_tgent" >&6; } |
| 13252 | |
| 13253 | if test "x$vim_cv_tgent" = "xzero" ; then |
| 13254 | cat >>confdefs.h <<\_ACEOF |
| 13255 | #define TGETENT_ZERO_ERR 0 |
| 13256 | _ACEOF |
| 13257 | |
| 13258 | fi |
| 13259 | fi |
| 13260 | |
| 13261 | { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
| 13262 | $as_echo_n "checking whether termcap.h contains ospeed... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13263 | cat >conftest.$ac_ext <<_ACEOF |
| 13264 | /* confdefs.h. */ |
| 13265 | _ACEOF |
| 13266 | cat confdefs.h >>conftest.$ac_ext |
| 13267 | cat >>conftest.$ac_ext <<_ACEOF |
| 13268 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13269 | |
| 13270 | #ifdef HAVE_TERMCAP_H |
| 13271 | # include <termcap.h> |
| 13272 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13273 | |
| 13274 | int |
| 13275 | main () |
| 13276 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13277 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13278 | ; |
| 13279 | return 0; |
| 13280 | } |
| 13281 | _ACEOF |
| 13282 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13283 | if { (ac_try="$ac_link" |
| 13284 | case "(($ac_try" in |
| 13285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13286 | *) ac_try_echo=$ac_try;; |
| 13287 | esac |
| 13288 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13289 | $as_echo "$ac_try_echo") >&5 |
| 13290 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13291 | ac_status=$? |
| 13292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13293 | rm -f conftest.er1 |
| 13294 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13295 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13296 | (exit $ac_status); } && { |
| 13297 | test -z "$ac_c_werror_flag" || |
| 13298 | test ! -s conftest.err |
| 13299 | } && test -s conftest$ac_exeext && { |
| 13300 | test "$cross_compiling" = yes || |
| 13301 | $as_test_x conftest$ac_exeext |
| 13302 | }; then |
| 13303 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13304 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13305 | #define HAVE_OSPEED 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13306 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13307 | |
| 13308 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13309 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13311 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13312 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13313 | $as_echo "no" >&6; } |
| 13314 | { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
| 13315 | $as_echo_n "checking whether ospeed can be extern... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13316 | cat >conftest.$ac_ext <<_ACEOF |
| 13317 | /* confdefs.h. */ |
| 13318 | _ACEOF |
| 13319 | cat confdefs.h >>conftest.$ac_ext |
| 13320 | cat >>conftest.$ac_ext <<_ACEOF |
| 13321 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13322 | |
| 13323 | #ifdef HAVE_TERMCAP_H |
| 13324 | # include <termcap.h> |
| 13325 | #endif |
| 13326 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13327 | |
| 13328 | int |
| 13329 | main () |
| 13330 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13331 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13332 | ; |
| 13333 | return 0; |
| 13334 | } |
| 13335 | _ACEOF |
| 13336 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13337 | if { (ac_try="$ac_link" |
| 13338 | case "(($ac_try" in |
| 13339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13340 | *) ac_try_echo=$ac_try;; |
| 13341 | esac |
| 13342 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13343 | $as_echo "$ac_try_echo") >&5 |
| 13344 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13345 | ac_status=$? |
| 13346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13347 | rm -f conftest.er1 |
| 13348 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13350 | (exit $ac_status); } && { |
| 13351 | test -z "$ac_c_werror_flag" || |
| 13352 | test ! -s conftest.err |
| 13353 | } && test -s conftest$ac_exeext && { |
| 13354 | test "$cross_compiling" = yes || |
| 13355 | $as_test_x conftest$ac_exeext |
| 13356 | }; then |
| 13357 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13358 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13359 | #define OSPEED_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13360 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13361 | |
| 13362 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13363 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13364 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13365 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13366 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13367 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13368 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13369 | |
| 13370 | rm -rf conftest.dSYM |
| 13371 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13372 | conftest$ac_exeext conftest.$ac_ext |
| 13373 | |
| 13374 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13375 | |
| 13376 | rm -rf conftest.dSYM |
| 13377 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13378 | conftest$ac_exeext conftest.$ac_ext |
| 13379 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13380 | { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
| 13381 | $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] | 13382 | cat >conftest.$ac_ext <<_ACEOF |
| 13383 | /* confdefs.h. */ |
| 13384 | _ACEOF |
| 13385 | cat confdefs.h >>conftest.$ac_ext |
| 13386 | cat >>conftest.$ac_ext <<_ACEOF |
| 13387 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13388 | |
| 13389 | #ifdef HAVE_TERMCAP_H |
| 13390 | # include <termcap.h> |
| 13391 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13392 | |
| 13393 | int |
| 13394 | main () |
| 13395 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13396 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13397 | ; |
| 13398 | return 0; |
| 13399 | } |
| 13400 | _ACEOF |
| 13401 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13402 | if { (ac_try="$ac_link" |
| 13403 | case "(($ac_try" in |
| 13404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13405 | *) ac_try_echo=$ac_try;; |
| 13406 | esac |
| 13407 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13408 | $as_echo "$ac_try_echo") >&5 |
| 13409 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13410 | ac_status=$? |
| 13411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13412 | rm -f conftest.er1 |
| 13413 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13414 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13415 | (exit $ac_status); } && { |
| 13416 | test -z "$ac_c_werror_flag" || |
| 13417 | test ! -s conftest.err |
| 13418 | } && test -s conftest$ac_exeext && { |
| 13419 | test "$cross_compiling" = yes || |
| 13420 | $as_test_x conftest$ac_exeext |
| 13421 | }; then |
| 13422 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13423 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13424 | #define HAVE_UP_BC_PC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13425 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13426 | |
| 13427 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13428 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13430 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13431 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13432 | $as_echo "no" >&6; } |
| 13433 | { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
| 13434 | $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] | 13435 | cat >conftest.$ac_ext <<_ACEOF |
| 13436 | /* confdefs.h. */ |
| 13437 | _ACEOF |
| 13438 | cat confdefs.h >>conftest.$ac_ext |
| 13439 | cat >>conftest.$ac_ext <<_ACEOF |
| 13440 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13441 | |
| 13442 | #ifdef HAVE_TERMCAP_H |
| 13443 | # include <termcap.h> |
| 13444 | #endif |
| 13445 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13446 | |
| 13447 | int |
| 13448 | main () |
| 13449 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13450 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13451 | ; |
| 13452 | return 0; |
| 13453 | } |
| 13454 | _ACEOF |
| 13455 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13456 | if { (ac_try="$ac_link" |
| 13457 | case "(($ac_try" in |
| 13458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13459 | *) ac_try_echo=$ac_try;; |
| 13460 | esac |
| 13461 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13462 | $as_echo "$ac_try_echo") >&5 |
| 13463 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13464 | ac_status=$? |
| 13465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13466 | rm -f conftest.er1 |
| 13467 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13468 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13469 | (exit $ac_status); } && { |
| 13470 | test -z "$ac_c_werror_flag" || |
| 13471 | test ! -s conftest.err |
| 13472 | } && test -s conftest$ac_exeext && { |
| 13473 | test "$cross_compiling" = yes || |
| 13474 | $as_test_x conftest$ac_exeext |
| 13475 | }; then |
| 13476 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13477 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13478 | #define UP_BC_PC_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13479 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13480 | |
| 13481 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13482 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13483 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13484 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13485 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13486 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13487 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13488 | |
| 13489 | rm -rf conftest.dSYM |
| 13490 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13491 | conftest$ac_exeext conftest.$ac_ext |
| 13492 | |
| 13493 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13494 | |
| 13495 | rm -rf conftest.dSYM |
| 13496 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13497 | conftest$ac_exeext conftest.$ac_ext |
| 13498 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13499 | { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
| 13500 | $as_echo_n "checking whether tputs() uses outfuntype... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13501 | cat >conftest.$ac_ext <<_ACEOF |
| 13502 | /* confdefs.h. */ |
| 13503 | _ACEOF |
| 13504 | cat confdefs.h >>conftest.$ac_ext |
| 13505 | cat >>conftest.$ac_ext <<_ACEOF |
| 13506 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13507 | |
| 13508 | #ifdef HAVE_TERMCAP_H |
| 13509 | # include <termcap.h> |
| 13510 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13511 | |
| 13512 | int |
| 13513 | main () |
| 13514 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13515 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13516 | ; |
| 13517 | return 0; |
| 13518 | } |
| 13519 | _ACEOF |
| 13520 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13521 | if { (ac_try="$ac_compile" |
| 13522 | case "(($ac_try" in |
| 13523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13524 | *) ac_try_echo=$ac_try;; |
| 13525 | esac |
| 13526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13527 | $as_echo "$ac_try_echo") >&5 |
| 13528 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13529 | ac_status=$? |
| 13530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13531 | rm -f conftest.er1 |
| 13532 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13534 | (exit $ac_status); } && { |
| 13535 | test -z "$ac_c_werror_flag" || |
| 13536 | test ! -s conftest.err |
| 13537 | } && test -s conftest.$ac_objext; then |
| 13538 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13539 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13540 | #define HAVE_OUTFUNTYPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13541 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13542 | |
| 13543 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13544 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13545 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13546 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13547 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13548 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13549 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13550 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13552 | |
| 13553 | { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13554 | $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] | 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 | |
| 13562 | #include <sys/types.h> |
| 13563 | #include <sys/time.h> |
| 13564 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13565 | int |
| 13566 | main () |
| 13567 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13568 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13569 | ; |
| 13570 | return 0; |
| 13571 | } |
| 13572 | _ACEOF |
| 13573 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13574 | if { (ac_try="$ac_compile" |
| 13575 | case "(($ac_try" in |
| 13576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13577 | *) ac_try_echo=$ac_try;; |
| 13578 | esac |
| 13579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13580 | $as_echo "$ac_try_echo") >&5 |
| 13581 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13582 | ac_status=$? |
| 13583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13584 | rm -f conftest.er1 |
| 13585 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13587 | (exit $ac_status); } && { |
| 13588 | test -z "$ac_c_werror_flag" || |
| 13589 | test ! -s conftest.err |
| 13590 | } && test -s conftest.$ac_objext; then |
| 13591 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13592 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13593 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13594 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13595 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13596 | |
| 13597 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13598 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13600 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13601 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13602 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13603 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13604 | |
| 13605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13606 | |
| 13607 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13608 | { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 13609 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13610 | if test -r /dev/ptc; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13611 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13612 | #define HAVE_DEV_PTC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13613 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13614 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13615 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13616 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13617 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13618 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13619 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13620 | fi |
| 13621 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13622 | { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 |
| 13623 | $as_echo_n "checking for SVR4 ptys... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13624 | if test -c /dev/ptmx ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13625 | cat >conftest.$ac_ext <<_ACEOF |
| 13626 | /* confdefs.h. */ |
| 13627 | _ACEOF |
| 13628 | cat confdefs.h >>conftest.$ac_ext |
| 13629 | cat >>conftest.$ac_ext <<_ACEOF |
| 13630 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13631 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13632 | int |
| 13633 | main () |
| 13634 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13635 | ptsname(0);grantpt(0);unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13636 | ; |
| 13637 | return 0; |
| 13638 | } |
| 13639 | _ACEOF |
| 13640 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13641 | if { (ac_try="$ac_link" |
| 13642 | case "(($ac_try" in |
| 13643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13644 | *) ac_try_echo=$ac_try;; |
| 13645 | esac |
| 13646 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13647 | $as_echo "$ac_try_echo") >&5 |
| 13648 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13649 | ac_status=$? |
| 13650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13651 | rm -f conftest.er1 |
| 13652 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13653 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13654 | (exit $ac_status); } && { |
| 13655 | test -z "$ac_c_werror_flag" || |
| 13656 | test ! -s conftest.err |
| 13657 | } && test -s conftest$ac_exeext && { |
| 13658 | test "$cross_compiling" = yes || |
| 13659 | $as_test_x conftest$ac_exeext |
| 13660 | }; then |
| 13661 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13662 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13663 | #define HAVE_SVR4_PTYS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13664 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13665 | |
| 13666 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13667 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13669 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13670 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13671 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13672 | fi |
| 13673 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13674 | rm -rf conftest.dSYM |
| 13675 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13676 | conftest$ac_exeext conftest.$ac_ext |
| 13677 | else |
| 13678 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13679 | $as_echo "no" >&6; } |
| 13680 | fi |
| 13681 | |
| 13682 | { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5 |
| 13683 | $as_echo_n "checking for ptyranges... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13684 | if test -d /dev/ptym ; then |
| 13685 | pdir='/dev/ptym' |
| 13686 | else |
| 13687 | pdir='/dev' |
| 13688 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13689 | cat >conftest.$ac_ext <<_ACEOF |
| 13690 | /* confdefs.h. */ |
| 13691 | _ACEOF |
| 13692 | cat confdefs.h >>conftest.$ac_ext |
| 13693 | cat >>conftest.$ac_ext <<_ACEOF |
| 13694 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13695 | #ifdef M_UNIX |
| 13696 | yes; |
| 13697 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13698 | |
| 13699 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13701 | $EGREP "yes" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13702 | ptys=`echo /dev/ptyp??` |
| 13703 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13704 | ptys=`echo $pdir/pty??` |
| 13705 | fi |
| 13706 | rm -f conftest* |
| 13707 | |
| 13708 | if test "$ptys" != "$pdir/pty??" ; then |
| 13709 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 13710 | 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] | 13711 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13712 | #define PTYRANGE0 "$p0" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13713 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13714 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13715 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13716 | #define PTYRANGE1 "$p1" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13717 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13718 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13719 | { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
| 13720 | $as_echo "$p0 / $p1" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13721 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13722 | { $as_echo "$as_me:$LINENO: result: don't know" >&5 |
| 13723 | $as_echo "don't know" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13724 | fi |
| 13725 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13726 | rm -f conftest_grp |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13727 | { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5 |
| 13728 | $as_echo_n "checking default tty permissions/group... " >&6; } |
| 13729 | if test "${vim_cv_tty_group+set}" = set; then |
| 13730 | $as_echo_n "(cached) " >&6 |
| 13731 | else |
| 13732 | |
| 13733 | if test "$cross_compiling" = yes; then |
| 13734 | |
| 13735 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5 |
| 13736 | $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] | 13737 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13738 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13739 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13740 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13741 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13742 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13743 | #include <sys/types.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13744 | #if STDC_HEADERS |
| 13745 | # include <stdlib.h> |
| 13746 | # include <stddef.h> |
| 13747 | #endif |
| 13748 | #ifdef HAVE_UNISTD_H |
| 13749 | #include <unistd.h> |
| 13750 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13751 | #include <sys/stat.h> |
| 13752 | #include <stdio.h> |
| 13753 | main() |
| 13754 | { |
| 13755 | struct stat sb; |
| 13756 | char *x,*ttyname(); |
| 13757 | int om, m; |
| 13758 | FILE *fp; |
| 13759 | |
| 13760 | if (!(x = ttyname(0))) exit(1); |
| 13761 | if (stat(x, &sb)) exit(1); |
| 13762 | om = sb.st_mode; |
| 13763 | if (om & 002) exit(0); |
| 13764 | m = system("mesg y"); |
| 13765 | if (m == -1 || m == 127) exit(1); |
| 13766 | if (stat(x, &sb)) exit(1); |
| 13767 | m = sb.st_mode; |
| 13768 | if (chmod(x, om)) exit(1); |
| 13769 | if (m & 002) exit(0); |
| 13770 | if (sb.st_gid == getgid()) exit(1); |
| 13771 | if (!(fp=fopen("conftest_grp", "w"))) |
| 13772 | exit(1); |
| 13773 | fprintf(fp, "%d\n", sb.st_gid); |
| 13774 | fclose(fp); |
| 13775 | exit(0); |
| 13776 | } |
| 13777 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13778 | _ACEOF |
| 13779 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13780 | if { (ac_try="$ac_link" |
| 13781 | case "(($ac_try" in |
| 13782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13783 | *) ac_try_echo=$ac_try;; |
| 13784 | esac |
| 13785 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13786 | $as_echo "$ac_try_echo") >&5 |
| 13787 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13788 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13789 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13790 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13791 | { (case "(($ac_try" in |
| 13792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13793 | *) ac_try_echo=$ac_try;; |
| 13794 | esac |
| 13795 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13796 | $as_echo "$ac_try_echo") >&5 |
| 13797 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13798 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13799 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13800 | (exit $ac_status); }; }; then |
| 13801 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13802 | if test -f conftest_grp; then |
| 13803 | vim_cv_tty_group=`cat conftest_grp` |
| 13804 | if test "x$vim_cv_tty_mode" = "x" ; then |
| 13805 | vim_cv_tty_mode=0620 |
| 13806 | fi |
| 13807 | { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 |
| 13808 | $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } |
| 13809 | else |
| 13810 | vim_cv_tty_group=world |
Bram Moolenaar | 7295107 | 2009-12-02 16:58:33 +0000 | [diff] [blame] | 13811 | { $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5 |
| 13812 | $as_echo "ptys are world accessible" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13813 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13814 | |
| 13815 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13816 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13817 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13818 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13819 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13820 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13821 | |
| 13822 | vim_cv_tty_group=world |
Bram Moolenaar | 7295107 | 2009-12-02 16:58:33 +0000 | [diff] [blame] | 13823 | { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5 |
| 13824 | $as_echo "can't determine - assume ptys are world accessible" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13825 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13826 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13827 | rm -rf conftest.dSYM |
| 13828 | 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] | 13829 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13830 | |
| 13831 | |
| 13832 | |
| 13833 | fi |
| 13834 | { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5 |
| 13835 | $as_echo "$vim_cv_tty_group" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13836 | rm -f conftest_grp |
| 13837 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13838 | if test "x$vim_cv_tty_group" != "xworld" ; then |
| 13839 | cat >>confdefs.h <<_ACEOF |
| 13840 | #define PTYGROUP $vim_cv_tty_group |
| 13841 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13842 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13843 | if test "x$vim_cv_tty_mode" = "x" ; then |
| 13844 | { { $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 |
| 13845 | $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;} |
| 13846 | { (exit 1); exit 1; }; } |
| 13847 | else |
| 13848 | cat >>confdefs.h <<\_ACEOF |
| 13849 | #define PTYMODE 0620 |
| 13850 | _ACEOF |
| 13851 | |
| 13852 | fi |
| 13853 | fi |
| 13854 | |
| 13855 | |
| 13856 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 13857 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13858 | if test "${ac_cv_type_signal+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13859 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13860 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13861 | cat >conftest.$ac_ext <<_ACEOF |
| 13862 | /* confdefs.h. */ |
| 13863 | _ACEOF |
| 13864 | cat confdefs.h >>conftest.$ac_ext |
| 13865 | cat >>conftest.$ac_ext <<_ACEOF |
| 13866 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13867 | #include <sys/types.h> |
| 13868 | #include <signal.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13869 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13870 | int |
| 13871 | main () |
| 13872 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13873 | return *(signal (0, 0)) (0) == 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13874 | ; |
| 13875 | return 0; |
| 13876 | } |
| 13877 | _ACEOF |
| 13878 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13879 | if { (ac_try="$ac_compile" |
| 13880 | case "(($ac_try" in |
| 13881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13882 | *) ac_try_echo=$ac_try;; |
| 13883 | esac |
| 13884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13885 | $as_echo "$ac_try_echo") >&5 |
| 13886 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13887 | ac_status=$? |
| 13888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13889 | rm -f conftest.er1 |
| 13890 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13892 | (exit $ac_status); } && { |
| 13893 | test -z "$ac_c_werror_flag" || |
| 13894 | test ! -s conftest.err |
| 13895 | } && test -s conftest.$ac_objext; then |
| 13896 | ac_cv_type_signal=int |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13897 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13898 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13899 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13900 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13901 | ac_cv_type_signal=void |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13902 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13903 | |
| 13904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13905 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13906 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 13907 | $as_echo "$ac_cv_type_signal" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13908 | |
| 13909 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13910 | #define RETSIGTYPE $ac_cv_type_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13911 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13912 | |
| 13913 | |
| 13914 | |
| 13915 | if test $ac_cv_type_signal = void; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13916 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13917 | #define SIGRETURN return |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13918 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13919 | |
| 13920 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13921 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13922 | #define SIGRETURN return 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13923 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13924 | |
| 13925 | fi |
| 13926 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13927 | { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
| 13928 | $as_echo_n "checking for struct sigcontext... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13929 | cat >conftest.$ac_ext <<_ACEOF |
| 13930 | /* confdefs.h. */ |
| 13931 | _ACEOF |
| 13932 | cat confdefs.h >>conftest.$ac_ext |
| 13933 | cat >>conftest.$ac_ext <<_ACEOF |
| 13934 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13935 | |
| 13936 | #include <signal.h> |
| 13937 | test_sig() |
| 13938 | { |
| 13939 | struct sigcontext *scont; |
| 13940 | scont = (struct sigcontext *)0; |
| 13941 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13942 | } |
| 13943 | int |
| 13944 | main () |
| 13945 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13946 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13947 | ; |
| 13948 | return 0; |
| 13949 | } |
| 13950 | _ACEOF |
| 13951 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13952 | if { (ac_try="$ac_compile" |
| 13953 | case "(($ac_try" in |
| 13954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13955 | *) ac_try_echo=$ac_try;; |
| 13956 | esac |
| 13957 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13958 | $as_echo "$ac_try_echo") >&5 |
| 13959 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13960 | ac_status=$? |
| 13961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13962 | rm -f conftest.er1 |
| 13963 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13964 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13965 | (exit $ac_status); } && { |
| 13966 | test -z "$ac_c_werror_flag" || |
| 13967 | test ! -s conftest.err |
| 13968 | } && test -s conftest.$ac_objext; then |
| 13969 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13970 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13971 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13972 | #define HAVE_SIGCONTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13973 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13974 | |
| 13975 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13976 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13978 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13979 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13980 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13981 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13982 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13984 | |
| 13985 | { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5 |
| 13986 | $as_echo_n "checking getcwd implementation is broken... " >&6; } |
| 13987 | if test "${vim_cv_getcwd_broken+set}" = set; then |
| 13988 | $as_echo_n "(cached) " >&6 |
| 13989 | else |
| 13990 | |
| 13991 | if test "$cross_compiling" = yes; then |
| 13992 | |
| 13993 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5 |
| 13994 | $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] | 13995 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13996 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13997 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13998 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13999 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14000 | #include "confdefs.h" |
| 14001 | #ifdef HAVE_UNISTD_H |
| 14002 | #include <unistd.h> |
| 14003 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14004 | char *dagger[] = { "IFS=pwd", 0 }; |
| 14005 | main() |
| 14006 | { |
| 14007 | char buffer[500]; |
| 14008 | extern char **environ; |
| 14009 | environ = dagger; |
| 14010 | return getcwd(buffer, 500) ? 0 : 1; |
| 14011 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14012 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14013 | _ACEOF |
| 14014 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14015 | if { (ac_try="$ac_link" |
| 14016 | case "(($ac_try" in |
| 14017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14018 | *) ac_try_echo=$ac_try;; |
| 14019 | esac |
| 14020 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14021 | $as_echo "$ac_try_echo") >&5 |
| 14022 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14023 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14024 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14025 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14026 | { (case "(($ac_try" in |
| 14027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14028 | *) ac_try_echo=$ac_try;; |
| 14029 | esac |
| 14030 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14031 | $as_echo "$ac_try_echo") >&5 |
| 14032 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14033 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14034 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14035 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14036 | |
| 14037 | vim_cv_getcwd_broken=no |
| 14038 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14039 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14040 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 14041 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14043 | |
| 14044 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14045 | |
| 14046 | vim_cv_getcwd_broken=yes |
| 14047 | |
| 14048 | fi |
| 14049 | rm -rf conftest.dSYM |
| 14050 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14051 | fi |
| 14052 | |
| 14053 | |
| 14054 | |
| 14055 | fi |
| 14056 | { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5 |
| 14057 | $as_echo "$vim_cv_getcwd_broken" >&6; } |
| 14058 | |
| 14059 | if test "x$vim_cv_getcwd_broken" = "xyes" ; then |
| 14060 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14061 | #define BAD_GETCWD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14062 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14063 | |
| 14064 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14065 | |
| 14066 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14067 | |
| 14068 | |
| 14069 | |
| 14070 | |
| 14071 | |
| 14072 | |
| 14073 | |
| 14074 | |
| 14075 | |
| 14076 | |
| 14077 | |
| 14078 | |
| 14079 | |
| 14080 | |
| 14081 | |
| 14082 | |
| 14083 | |
| 14084 | |
| 14085 | |
| 14086 | |
| 14087 | |
| 14088 | |
| 14089 | |
| 14090 | |
| 14091 | |
| 14092 | |
| 14093 | |
| 14094 | |
| 14095 | |
| 14096 | |
| 14097 | |
| 14098 | |
| 14099 | |
| 14100 | |
| 14101 | |
| 14102 | |
| 14103 | |
| 14104 | |
| 14105 | |
| 14106 | |
| 14107 | |
| 14108 | |
| 14109 | |
| 14110 | |
Bram Moolenaar | 25153e1 | 2010-02-24 14:47:08 +0100 | [diff] [blame] | 14111 | for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14112 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
Bram Moolenaar | eaf0339 | 2009-11-17 11:08:52 +0000 | [diff] [blame] | 14113 | memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14114 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 14115 | sigvec strcasecmp strerror strftime stricmp strncasecmp \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 14116 | strnicmp strpbrk strtol tgetent towlower towupper iswupper \ |
| 14117 | usleep utime utimes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14118 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14119 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14120 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14121 | $as_echo_n "checking for $ac_func... " >&6; } |
| 14122 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14123 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14124 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14125 | cat >conftest.$ac_ext <<_ACEOF |
| 14126 | /* confdefs.h. */ |
| 14127 | _ACEOF |
| 14128 | cat confdefs.h >>conftest.$ac_ext |
| 14129 | cat >>conftest.$ac_ext <<_ACEOF |
| 14130 | /* end confdefs.h. */ |
| 14131 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14132 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14133 | #define $ac_func innocuous_$ac_func |
| 14134 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14135 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14136 | which can conflict with char $ac_func (); below. |
| 14137 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14138 | <limits.h> exists even on freestanding compilers. */ |
| 14139 | |
| 14140 | #ifdef __STDC__ |
| 14141 | # include <limits.h> |
| 14142 | #else |
| 14143 | # include <assert.h> |
| 14144 | #endif |
| 14145 | |
| 14146 | #undef $ac_func |
| 14147 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14148 | /* Override any GCC internal prototype to avoid an error. |
| 14149 | Use char because int might match the return type of a GCC |
| 14150 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14151 | #ifdef __cplusplus |
| 14152 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14153 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14154 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14155 | /* The GNU C library defines this for functions which it implements |
| 14156 | to always fail with ENOSYS. Some functions are actually named |
| 14157 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14158 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14159 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14160 | #endif |
| 14161 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14162 | int |
| 14163 | main () |
| 14164 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14165 | return $ac_func (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14166 | ; |
| 14167 | return 0; |
| 14168 | } |
| 14169 | _ACEOF |
| 14170 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14179 | ac_status=$? |
| 14180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14181 | rm -f conftest.er1 |
| 14182 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14191 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14192 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14193 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14194 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14195 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14196 | eval "$as_ac_var=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14197 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14198 | |
| 14199 | rm -rf conftest.dSYM |
| 14200 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14201 | conftest$ac_exeext conftest.$ac_ext |
| 14202 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14203 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 14204 | $as_echo "$as_val"'` |
| 14205 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14206 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 14207 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 14208 | $as_echo "$as_val"'` |
| 14209 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14210 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14211 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14212 | _ACEOF |
| 14213 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14214 | fi |
| 14215 | done |
| 14216 | |
Bram Moolenaar | 25153e1 | 2010-02-24 14:47:08 +0100 | [diff] [blame] | 14217 | { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
| 14218 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
| 14219 | if test "${ac_cv_sys_largefile_source+set}" = set; then |
| 14220 | $as_echo_n "(cached) " >&6 |
| 14221 | else |
| 14222 | while :; do |
| 14223 | cat >conftest.$ac_ext <<_ACEOF |
| 14224 | /* confdefs.h. */ |
| 14225 | _ACEOF |
| 14226 | cat confdefs.h >>conftest.$ac_ext |
| 14227 | cat >>conftest.$ac_ext <<_ACEOF |
| 14228 | /* end confdefs.h. */ |
| 14229 | #include <sys/types.h> /* for off_t */ |
| 14230 | #include <stdio.h> |
| 14231 | int |
| 14232 | main () |
| 14233 | { |
| 14234 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 14235 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 14236 | ; |
| 14237 | return 0; |
| 14238 | } |
| 14239 | _ACEOF |
| 14240 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14241 | if { (ac_try="$ac_link" |
| 14242 | case "(($ac_try" in |
| 14243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14244 | *) ac_try_echo=$ac_try;; |
| 14245 | esac |
| 14246 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14247 | $as_echo "$ac_try_echo") >&5 |
| 14248 | (eval "$ac_link") 2>conftest.er1 |
| 14249 | ac_status=$? |
| 14250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14251 | rm -f conftest.er1 |
| 14252 | cat conftest.err >&5 |
| 14253 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14254 | (exit $ac_status); } && { |
| 14255 | test -z "$ac_c_werror_flag" || |
| 14256 | test ! -s conftest.err |
| 14257 | } && test -s conftest$ac_exeext && { |
| 14258 | test "$cross_compiling" = yes || |
| 14259 | $as_test_x conftest$ac_exeext |
| 14260 | }; then |
| 14261 | ac_cv_sys_largefile_source=no; break |
| 14262 | else |
| 14263 | $as_echo "$as_me: failed program was:" >&5 |
| 14264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14265 | |
| 14266 | |
| 14267 | fi |
| 14268 | |
| 14269 | rm -rf conftest.dSYM |
| 14270 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14271 | conftest$ac_exeext conftest.$ac_ext |
| 14272 | cat >conftest.$ac_ext <<_ACEOF |
| 14273 | /* confdefs.h. */ |
| 14274 | _ACEOF |
| 14275 | cat confdefs.h >>conftest.$ac_ext |
| 14276 | cat >>conftest.$ac_ext <<_ACEOF |
| 14277 | /* end confdefs.h. */ |
| 14278 | #define _LARGEFILE_SOURCE 1 |
| 14279 | #include <sys/types.h> /* for off_t */ |
| 14280 | #include <stdio.h> |
| 14281 | int |
| 14282 | main () |
| 14283 | { |
| 14284 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 14285 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 14286 | ; |
| 14287 | return 0; |
| 14288 | } |
| 14289 | _ACEOF |
| 14290 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14291 | if { (ac_try="$ac_link" |
| 14292 | case "(($ac_try" in |
| 14293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14294 | *) ac_try_echo=$ac_try;; |
| 14295 | esac |
| 14296 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14297 | $as_echo "$ac_try_echo") >&5 |
| 14298 | (eval "$ac_link") 2>conftest.er1 |
| 14299 | ac_status=$? |
| 14300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14301 | rm -f conftest.er1 |
| 14302 | cat conftest.err >&5 |
| 14303 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14304 | (exit $ac_status); } && { |
| 14305 | test -z "$ac_c_werror_flag" || |
| 14306 | test ! -s conftest.err |
| 14307 | } && test -s conftest$ac_exeext && { |
| 14308 | test "$cross_compiling" = yes || |
| 14309 | $as_test_x conftest$ac_exeext |
| 14310 | }; then |
| 14311 | ac_cv_sys_largefile_source=1; break |
| 14312 | else |
| 14313 | $as_echo "$as_me: failed program was:" >&5 |
| 14314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14315 | |
| 14316 | |
| 14317 | fi |
| 14318 | |
| 14319 | rm -rf conftest.dSYM |
| 14320 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14321 | conftest$ac_exeext conftest.$ac_ext |
| 14322 | ac_cv_sys_largefile_source=unknown |
| 14323 | break |
| 14324 | done |
| 14325 | fi |
| 14326 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
| 14327 | $as_echo "$ac_cv_sys_largefile_source" >&6; } |
| 14328 | case $ac_cv_sys_largefile_source in #( |
| 14329 | no | unknown) ;; |
| 14330 | *) |
| 14331 | cat >>confdefs.h <<_ACEOF |
| 14332 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 14333 | _ACEOF |
| 14334 | ;; |
| 14335 | esac |
| 14336 | rm -rf conftest* |
| 14337 | |
| 14338 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 14339 | # in glibc 2.1.3, but that breaks too many other things. |
| 14340 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 14341 | if test $ac_cv_sys_largefile_source != unknown; then |
| 14342 | |
| 14343 | cat >>confdefs.h <<\_ACEOF |
| 14344 | #define HAVE_FSEEKO 1 |
| 14345 | _ACEOF |
| 14346 | |
| 14347 | fi |
| 14348 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14349 | |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14350 | # Check whether --enable-largefile was given. |
| 14351 | if test "${enable_largefile+set}" = set; then |
| 14352 | enableval=$enable_largefile; |
| 14353 | fi |
| 14354 | |
| 14355 | if test "$enable_largefile" != no; then |
| 14356 | |
| 14357 | { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
| 14358 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 14359 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
| 14360 | $as_echo_n "(cached) " >&6 |
| 14361 | else |
| 14362 | ac_cv_sys_largefile_CC=no |
| 14363 | if test "$GCC" != yes; then |
| 14364 | ac_save_CC=$CC |
| 14365 | while :; do |
| 14366 | # IRIX 6.2 and later do not support large files by default, |
| 14367 | # so use the C compiler's -n32 option if that helps. |
| 14368 | cat >conftest.$ac_ext <<_ACEOF |
| 14369 | /* confdefs.h. */ |
| 14370 | _ACEOF |
| 14371 | cat confdefs.h >>conftest.$ac_ext |
| 14372 | cat >>conftest.$ac_ext <<_ACEOF |
| 14373 | /* end confdefs.h. */ |
| 14374 | #include <sys/types.h> |
| 14375 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 14376 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 14377 | since some C++ compilers masquerading as C compilers |
| 14378 | incorrectly reject 9223372036854775807. */ |
| 14379 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 14380 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 14381 | && LARGE_OFF_T % 2147483647 == 1) |
| 14382 | ? 1 : -1]; |
| 14383 | int |
| 14384 | main () |
| 14385 | { |
| 14386 | |
| 14387 | ; |
| 14388 | return 0; |
| 14389 | } |
| 14390 | _ACEOF |
| 14391 | rm -f conftest.$ac_objext |
| 14392 | if { (ac_try="$ac_compile" |
| 14393 | case "(($ac_try" in |
| 14394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14395 | *) ac_try_echo=$ac_try;; |
| 14396 | esac |
| 14397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14398 | $as_echo "$ac_try_echo") >&5 |
| 14399 | (eval "$ac_compile") 2>conftest.er1 |
| 14400 | ac_status=$? |
| 14401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14402 | rm -f conftest.er1 |
| 14403 | cat conftest.err >&5 |
| 14404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14405 | (exit $ac_status); } && { |
| 14406 | test -z "$ac_c_werror_flag" || |
| 14407 | test ! -s conftest.err |
| 14408 | } && test -s conftest.$ac_objext; then |
| 14409 | break |
| 14410 | else |
| 14411 | $as_echo "$as_me: failed program was:" >&5 |
| 14412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14413 | |
| 14414 | |
| 14415 | fi |
| 14416 | |
| 14417 | rm -f core conftest.err conftest.$ac_objext |
| 14418 | CC="$CC -n32" |
| 14419 | rm -f conftest.$ac_objext |
| 14420 | if { (ac_try="$ac_compile" |
| 14421 | case "(($ac_try" in |
| 14422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14423 | *) ac_try_echo=$ac_try;; |
| 14424 | esac |
| 14425 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14426 | $as_echo "$ac_try_echo") >&5 |
| 14427 | (eval "$ac_compile") 2>conftest.er1 |
| 14428 | ac_status=$? |
| 14429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14430 | rm -f conftest.er1 |
| 14431 | cat conftest.err >&5 |
| 14432 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14433 | (exit $ac_status); } && { |
| 14434 | test -z "$ac_c_werror_flag" || |
| 14435 | test ! -s conftest.err |
| 14436 | } && test -s conftest.$ac_objext; then |
| 14437 | ac_cv_sys_largefile_CC=' -n32'; break |
| 14438 | else |
| 14439 | $as_echo "$as_me: failed program was:" >&5 |
| 14440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14441 | |
| 14442 | |
| 14443 | fi |
| 14444 | |
| 14445 | rm -f core conftest.err conftest.$ac_objext |
| 14446 | break |
| 14447 | done |
| 14448 | CC=$ac_save_CC |
| 14449 | rm -f conftest.$ac_ext |
| 14450 | fi |
| 14451 | fi |
| 14452 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
| 14453 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 14454 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 14455 | CC=$CC$ac_cv_sys_largefile_CC |
| 14456 | fi |
| 14457 | |
| 14458 | { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 14459 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 14460 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
| 14461 | $as_echo_n "(cached) " >&6 |
| 14462 | else |
| 14463 | while :; do |
| 14464 | cat >conftest.$ac_ext <<_ACEOF |
| 14465 | /* confdefs.h. */ |
| 14466 | _ACEOF |
| 14467 | cat confdefs.h >>conftest.$ac_ext |
| 14468 | cat >>conftest.$ac_ext <<_ACEOF |
| 14469 | /* end confdefs.h. */ |
| 14470 | #include <sys/types.h> |
| 14471 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 14472 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 14473 | since some C++ compilers masquerading as C compilers |
| 14474 | incorrectly reject 9223372036854775807. */ |
| 14475 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 14476 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 14477 | && LARGE_OFF_T % 2147483647 == 1) |
| 14478 | ? 1 : -1]; |
| 14479 | int |
| 14480 | main () |
| 14481 | { |
| 14482 | |
| 14483 | ; |
| 14484 | return 0; |
| 14485 | } |
| 14486 | _ACEOF |
| 14487 | rm -f conftest.$ac_objext |
| 14488 | if { (ac_try="$ac_compile" |
| 14489 | case "(($ac_try" in |
| 14490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14491 | *) ac_try_echo=$ac_try;; |
| 14492 | esac |
| 14493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14494 | $as_echo "$ac_try_echo") >&5 |
| 14495 | (eval "$ac_compile") 2>conftest.er1 |
| 14496 | ac_status=$? |
| 14497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14498 | rm -f conftest.er1 |
| 14499 | cat conftest.err >&5 |
| 14500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14501 | (exit $ac_status); } && { |
| 14502 | test -z "$ac_c_werror_flag" || |
| 14503 | test ! -s conftest.err |
| 14504 | } && test -s conftest.$ac_objext; then |
| 14505 | ac_cv_sys_file_offset_bits=no; break |
| 14506 | else |
| 14507 | $as_echo "$as_me: failed program was:" >&5 |
| 14508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14509 | |
| 14510 | |
| 14511 | fi |
| 14512 | |
| 14513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14514 | cat >conftest.$ac_ext <<_ACEOF |
| 14515 | /* confdefs.h. */ |
| 14516 | _ACEOF |
| 14517 | cat confdefs.h >>conftest.$ac_ext |
| 14518 | cat >>conftest.$ac_ext <<_ACEOF |
| 14519 | /* end confdefs.h. */ |
| 14520 | #define _FILE_OFFSET_BITS 64 |
| 14521 | #include <sys/types.h> |
| 14522 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 14523 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 14524 | since some C++ compilers masquerading as C compilers |
| 14525 | incorrectly reject 9223372036854775807. */ |
| 14526 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 14527 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 14528 | && LARGE_OFF_T % 2147483647 == 1) |
| 14529 | ? 1 : -1]; |
| 14530 | int |
| 14531 | main () |
| 14532 | { |
| 14533 | |
| 14534 | ; |
| 14535 | return 0; |
| 14536 | } |
| 14537 | _ACEOF |
| 14538 | rm -f conftest.$ac_objext |
| 14539 | if { (ac_try="$ac_compile" |
| 14540 | case "(($ac_try" in |
| 14541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14542 | *) ac_try_echo=$ac_try;; |
| 14543 | esac |
| 14544 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14545 | $as_echo "$ac_try_echo") >&5 |
| 14546 | (eval "$ac_compile") 2>conftest.er1 |
| 14547 | ac_status=$? |
| 14548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14549 | rm -f conftest.er1 |
| 14550 | cat conftest.err >&5 |
| 14551 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14552 | (exit $ac_status); } && { |
| 14553 | test -z "$ac_c_werror_flag" || |
| 14554 | test ! -s conftest.err |
| 14555 | } && test -s conftest.$ac_objext; then |
| 14556 | ac_cv_sys_file_offset_bits=64; break |
| 14557 | else |
| 14558 | $as_echo "$as_me: failed program was:" >&5 |
| 14559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14560 | |
| 14561 | |
| 14562 | fi |
| 14563 | |
| 14564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14565 | ac_cv_sys_file_offset_bits=unknown |
| 14566 | break |
| 14567 | done |
| 14568 | fi |
| 14569 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
| 14570 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 14571 | case $ac_cv_sys_file_offset_bits in #( |
| 14572 | no | unknown) ;; |
| 14573 | *) |
| 14574 | cat >>confdefs.h <<_ACEOF |
| 14575 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 14576 | _ACEOF |
| 14577 | ;; |
| 14578 | esac |
| 14579 | rm -rf conftest* |
| 14580 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 14581 | { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
| 14582 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 14583 | if test "${ac_cv_sys_large_files+set}" = set; then |
| 14584 | $as_echo_n "(cached) " >&6 |
| 14585 | else |
| 14586 | while :; do |
| 14587 | cat >conftest.$ac_ext <<_ACEOF |
| 14588 | /* confdefs.h. */ |
| 14589 | _ACEOF |
| 14590 | cat confdefs.h >>conftest.$ac_ext |
| 14591 | cat >>conftest.$ac_ext <<_ACEOF |
| 14592 | /* end confdefs.h. */ |
| 14593 | #include <sys/types.h> |
| 14594 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 14595 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 14596 | since some C++ compilers masquerading as C compilers |
| 14597 | incorrectly reject 9223372036854775807. */ |
| 14598 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 14599 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 14600 | && LARGE_OFF_T % 2147483647 == 1) |
| 14601 | ? 1 : -1]; |
| 14602 | int |
| 14603 | main () |
| 14604 | { |
| 14605 | |
| 14606 | ; |
| 14607 | return 0; |
| 14608 | } |
| 14609 | _ACEOF |
| 14610 | rm -f conftest.$ac_objext |
| 14611 | if { (ac_try="$ac_compile" |
| 14612 | case "(($ac_try" in |
| 14613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14614 | *) ac_try_echo=$ac_try;; |
| 14615 | esac |
| 14616 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14617 | $as_echo "$ac_try_echo") >&5 |
| 14618 | (eval "$ac_compile") 2>conftest.er1 |
| 14619 | ac_status=$? |
| 14620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14621 | rm -f conftest.er1 |
| 14622 | cat conftest.err >&5 |
| 14623 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14624 | (exit $ac_status); } && { |
| 14625 | test -z "$ac_c_werror_flag" || |
| 14626 | test ! -s conftest.err |
| 14627 | } && test -s conftest.$ac_objext; then |
| 14628 | ac_cv_sys_large_files=no; break |
| 14629 | else |
| 14630 | $as_echo "$as_me: failed program was:" >&5 |
| 14631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14632 | |
| 14633 | |
| 14634 | fi |
| 14635 | |
| 14636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14637 | cat >conftest.$ac_ext <<_ACEOF |
| 14638 | /* confdefs.h. */ |
| 14639 | _ACEOF |
| 14640 | cat confdefs.h >>conftest.$ac_ext |
| 14641 | cat >>conftest.$ac_ext <<_ACEOF |
| 14642 | /* end confdefs.h. */ |
| 14643 | #define _LARGE_FILES 1 |
| 14644 | #include <sys/types.h> |
| 14645 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 14646 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 14647 | since some C++ compilers masquerading as C compilers |
| 14648 | incorrectly reject 9223372036854775807. */ |
| 14649 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 14650 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 14651 | && LARGE_OFF_T % 2147483647 == 1) |
| 14652 | ? 1 : -1]; |
| 14653 | int |
| 14654 | main () |
| 14655 | { |
| 14656 | |
| 14657 | ; |
| 14658 | return 0; |
| 14659 | } |
| 14660 | _ACEOF |
| 14661 | rm -f conftest.$ac_objext |
| 14662 | if { (ac_try="$ac_compile" |
| 14663 | case "(($ac_try" in |
| 14664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14665 | *) ac_try_echo=$ac_try;; |
| 14666 | esac |
| 14667 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14668 | $as_echo "$ac_try_echo") >&5 |
| 14669 | (eval "$ac_compile") 2>conftest.er1 |
| 14670 | ac_status=$? |
| 14671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14672 | rm -f conftest.er1 |
| 14673 | cat conftest.err >&5 |
| 14674 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14675 | (exit $ac_status); } && { |
| 14676 | test -z "$ac_c_werror_flag" || |
| 14677 | test ! -s conftest.err |
| 14678 | } && test -s conftest.$ac_objext; then |
| 14679 | ac_cv_sys_large_files=1; break |
| 14680 | else |
| 14681 | $as_echo "$as_me: failed program was:" >&5 |
| 14682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14683 | |
| 14684 | |
| 14685 | fi |
| 14686 | |
| 14687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14688 | ac_cv_sys_large_files=unknown |
| 14689 | break |
| 14690 | done |
| 14691 | fi |
| 14692 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
| 14693 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 14694 | case $ac_cv_sys_large_files in #( |
| 14695 | no | unknown) ;; |
| 14696 | *) |
| 14697 | cat >>confdefs.h <<_ACEOF |
| 14698 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 14699 | _ACEOF |
| 14700 | ;; |
| 14701 | esac |
| 14702 | rm -rf conftest* |
| 14703 | fi |
| 14704 | fi |
| 14705 | |
| 14706 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14707 | { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5 |
| 14708 | $as_echo_n "checking for st_blksize... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14709 | cat >conftest.$ac_ext <<_ACEOF |
| 14710 | /* confdefs.h. */ |
| 14711 | _ACEOF |
| 14712 | cat confdefs.h >>conftest.$ac_ext |
| 14713 | cat >>conftest.$ac_ext <<_ACEOF |
| 14714 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14715 | #include <sys/types.h> |
| 14716 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14717 | int |
| 14718 | main () |
| 14719 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14720 | struct stat st; |
| 14721 | int n; |
| 14722 | |
| 14723 | stat("/", &st); |
| 14724 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14725 | ; |
| 14726 | return 0; |
| 14727 | } |
| 14728 | _ACEOF |
| 14729 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14730 | if { (ac_try="$ac_compile" |
| 14731 | case "(($ac_try" in |
| 14732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14733 | *) ac_try_echo=$ac_try;; |
| 14734 | esac |
| 14735 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14736 | $as_echo "$ac_try_echo") >&5 |
| 14737 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14738 | ac_status=$? |
| 14739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14740 | rm -f conftest.er1 |
| 14741 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14742 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14743 | (exit $ac_status); } && { |
| 14744 | test -z "$ac_c_werror_flag" || |
| 14745 | test ! -s conftest.err |
| 14746 | } && test -s conftest.$ac_objext; then |
| 14747 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14748 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14749 | #define HAVE_ST_BLKSIZE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14750 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14751 | |
| 14752 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14753 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14755 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14756 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14757 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14758 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14759 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14761 | |
| 14762 | { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
| 14763 | $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } |
| 14764 | if test "${vim_cv_stat_ignores_slash+set}" = set; then |
| 14765 | $as_echo_n "(cached) " >&6 |
| 14766 | else |
| 14767 | |
| 14768 | if test "$cross_compiling" = yes; then |
| 14769 | |
| 14770 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5 |
| 14771 | $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] | 14772 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14773 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14774 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14775 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14776 | |
| 14777 | #include "confdefs.h" |
| 14778 | #if STDC_HEADERS |
| 14779 | # include <stdlib.h> |
| 14780 | # include <stddef.h> |
| 14781 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14782 | #include <sys/types.h> |
| 14783 | #include <sys/stat.h> |
| 14784 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14785 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14786 | _ACEOF |
| 14787 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14788 | if { (ac_try="$ac_link" |
| 14789 | case "(($ac_try" in |
| 14790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14791 | *) ac_try_echo=$ac_try;; |
| 14792 | esac |
| 14793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14794 | $as_echo "$ac_try_echo") >&5 |
| 14795 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14796 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14798 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14799 | { (case "(($ac_try" in |
| 14800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14801 | *) ac_try_echo=$ac_try;; |
| 14802 | esac |
| 14803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14804 | $as_echo "$ac_try_echo") >&5 |
| 14805 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14806 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14807 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14808 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14809 | |
| 14810 | vim_cv_stat_ignores_slash=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14811 | |
| 14812 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14813 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 14814 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14816 | |
| 14817 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14818 | |
| 14819 | vim_cv_stat_ignores_slash=no |
| 14820 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14821 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14822 | rm -rf conftest.dSYM |
| 14823 | 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] | 14824 | fi |
| 14825 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14826 | |
| 14827 | |
| 14828 | fi |
| 14829 | { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5 |
| 14830 | $as_echo "$vim_cv_stat_ignores_slash" >&6; } |
| 14831 | |
| 14832 | if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then |
| 14833 | cat >>confdefs.h <<\_ACEOF |
| 14834 | #define STAT_IGNORES_SLASH 1 |
| 14835 | _ACEOF |
| 14836 | |
| 14837 | fi |
| 14838 | |
| 14839 | { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5 |
| 14840 | $as_echo_n "checking for iconv_open()... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14841 | save_LIBS="$LIBS" |
| 14842 | LIBS="$LIBS -liconv" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14843 | cat >conftest.$ac_ext <<_ACEOF |
| 14844 | /* confdefs.h. */ |
| 14845 | _ACEOF |
| 14846 | cat confdefs.h >>conftest.$ac_ext |
| 14847 | cat >>conftest.$ac_ext <<_ACEOF |
| 14848 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14849 | |
| 14850 | #ifdef HAVE_ICONV_H |
| 14851 | # include <iconv.h> |
| 14852 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14853 | |
| 14854 | int |
| 14855 | main () |
| 14856 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14857 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14858 | ; |
| 14859 | return 0; |
| 14860 | } |
| 14861 | _ACEOF |
| 14862 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14863 | if { (ac_try="$ac_link" |
| 14864 | case "(($ac_try" in |
| 14865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14866 | *) ac_try_echo=$ac_try;; |
| 14867 | esac |
| 14868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14869 | $as_echo "$ac_try_echo") >&5 |
| 14870 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14871 | ac_status=$? |
| 14872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14873 | rm -f conftest.er1 |
| 14874 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14876 | (exit $ac_status); } && { |
| 14877 | test -z "$ac_c_werror_flag" || |
| 14878 | test ! -s conftest.err |
| 14879 | } && test -s conftest$ac_exeext && { |
| 14880 | test "$cross_compiling" = yes || |
| 14881 | $as_test_x conftest$ac_exeext |
| 14882 | }; then |
| 14883 | { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5 |
| 14884 | $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14885 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14886 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14887 | |
| 14888 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14889 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14891 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14892 | LIBS="$save_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14893 | cat >conftest.$ac_ext <<_ACEOF |
| 14894 | /* confdefs.h. */ |
| 14895 | _ACEOF |
| 14896 | cat confdefs.h >>conftest.$ac_ext |
| 14897 | cat >>conftest.$ac_ext <<_ACEOF |
| 14898 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14899 | |
| 14900 | #ifdef HAVE_ICONV_H |
| 14901 | # include <iconv.h> |
| 14902 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14903 | |
| 14904 | int |
| 14905 | main () |
| 14906 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14907 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14908 | ; |
| 14909 | return 0; |
| 14910 | } |
| 14911 | _ACEOF |
| 14912 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14913 | if { (ac_try="$ac_link" |
| 14914 | case "(($ac_try" in |
| 14915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14916 | *) ac_try_echo=$ac_try;; |
| 14917 | esac |
| 14918 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14919 | $as_echo "$ac_try_echo") >&5 |
| 14920 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14921 | ac_status=$? |
| 14922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14923 | rm -f conftest.er1 |
| 14924 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14925 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14926 | (exit $ac_status); } && { |
| 14927 | test -z "$ac_c_werror_flag" || |
| 14928 | test ! -s conftest.err |
| 14929 | } && test -s conftest$ac_exeext && { |
| 14930 | test "$cross_compiling" = yes || |
| 14931 | $as_test_x conftest$ac_exeext |
| 14932 | }; then |
| 14933 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14934 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14935 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14936 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14937 | |
| 14938 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14939 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14941 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14942 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14943 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14944 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14945 | |
| 14946 | rm -rf conftest.dSYM |
| 14947 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14948 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14949 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14950 | |
| 14951 | rm -rf conftest.dSYM |
| 14952 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14953 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14954 | |
| 14955 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14956 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
| 14957 | $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14958 | cat >conftest.$ac_ext <<_ACEOF |
| 14959 | /* confdefs.h. */ |
| 14960 | _ACEOF |
| 14961 | cat confdefs.h >>conftest.$ac_ext |
| 14962 | cat >>conftest.$ac_ext <<_ACEOF |
| 14963 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14964 | |
| 14965 | #ifdef HAVE_LANGINFO_H |
| 14966 | # include <langinfo.h> |
| 14967 | #endif |
| 14968 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14969 | int |
| 14970 | main () |
| 14971 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14972 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14973 | ; |
| 14974 | return 0; |
| 14975 | } |
| 14976 | _ACEOF |
| 14977 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14978 | if { (ac_try="$ac_link" |
| 14979 | case "(($ac_try" in |
| 14980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14981 | *) ac_try_echo=$ac_try;; |
| 14982 | esac |
| 14983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14984 | $as_echo "$ac_try_echo") >&5 |
| 14985 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14986 | ac_status=$? |
| 14987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14988 | rm -f conftest.er1 |
| 14989 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14991 | (exit $ac_status); } && { |
| 14992 | test -z "$ac_c_werror_flag" || |
| 14993 | test ! -s conftest.err |
| 14994 | } && test -s conftest$ac_exeext && { |
| 14995 | test "$cross_compiling" = yes || |
| 14996 | $as_test_x conftest$ac_exeext |
| 14997 | }; then |
| 14998 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14999 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15000 | #define HAVE_NL_LANGINFO_CODESET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15001 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15002 | |
| 15003 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15004 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15005 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15006 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15007 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15008 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15009 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15010 | |
| 15011 | rm -rf conftest.dSYM |
| 15012 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15013 | conftest$ac_exeext conftest.$ac_ext |
| 15014 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15015 | |
| 15016 | { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5 |
| 15017 | $as_echo_n "checking for strtod in -lm... " >&6; } |
| 15018 | if test "${ac_cv_lib_m_strtod+set}" = set; then |
| 15019 | $as_echo_n "(cached) " >&6 |
| 15020 | else |
| 15021 | ac_check_lib_save_LIBS=$LIBS |
| 15022 | LIBS="-lm $LIBS" |
| 15023 | cat >conftest.$ac_ext <<_ACEOF |
| 15024 | /* confdefs.h. */ |
| 15025 | _ACEOF |
| 15026 | cat confdefs.h >>conftest.$ac_ext |
| 15027 | cat >>conftest.$ac_ext <<_ACEOF |
| 15028 | /* end confdefs.h. */ |
| 15029 | |
| 15030 | /* Override any GCC internal prototype to avoid an error. |
| 15031 | Use char because int might match the return type of a GCC |
| 15032 | builtin and then its argument prototype would still apply. */ |
| 15033 | #ifdef __cplusplus |
| 15034 | extern "C" |
| 15035 | #endif |
| 15036 | char strtod (); |
| 15037 | int |
| 15038 | main () |
| 15039 | { |
| 15040 | return strtod (); |
| 15041 | ; |
| 15042 | return 0; |
| 15043 | } |
| 15044 | _ACEOF |
| 15045 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15046 | if { (ac_try="$ac_link" |
| 15047 | case "(($ac_try" in |
| 15048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15049 | *) ac_try_echo=$ac_try;; |
| 15050 | esac |
| 15051 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15052 | $as_echo "$ac_try_echo") >&5 |
| 15053 | (eval "$ac_link") 2>conftest.er1 |
| 15054 | ac_status=$? |
| 15055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15056 | rm -f conftest.er1 |
| 15057 | cat conftest.err >&5 |
| 15058 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15059 | (exit $ac_status); } && { |
| 15060 | test -z "$ac_c_werror_flag" || |
| 15061 | test ! -s conftest.err |
| 15062 | } && test -s conftest$ac_exeext && { |
| 15063 | test "$cross_compiling" = yes || |
| 15064 | $as_test_x conftest$ac_exeext |
| 15065 | }; then |
| 15066 | ac_cv_lib_m_strtod=yes |
| 15067 | else |
| 15068 | $as_echo "$as_me: failed program was:" >&5 |
| 15069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15070 | |
| 15071 | ac_cv_lib_m_strtod=no |
| 15072 | fi |
| 15073 | |
| 15074 | rm -rf conftest.dSYM |
| 15075 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15076 | conftest$ac_exeext conftest.$ac_ext |
| 15077 | LIBS=$ac_check_lib_save_LIBS |
| 15078 | fi |
| 15079 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5 |
| 15080 | $as_echo "$ac_cv_lib_m_strtod" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 15081 | if test "x$ac_cv_lib_m_strtod" = x""yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15082 | cat >>confdefs.h <<_ACEOF |
| 15083 | #define HAVE_LIBM 1 |
| 15084 | _ACEOF |
| 15085 | |
| 15086 | LIBS="-lm $LIBS" |
| 15087 | |
| 15088 | fi |
| 15089 | |
| 15090 | { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5 |
| 15091 | $as_echo_n "checking for strtod() and other floating point functions... " >&6; } |
| 15092 | cat >conftest.$ac_ext <<_ACEOF |
| 15093 | /* confdefs.h. */ |
| 15094 | _ACEOF |
| 15095 | cat confdefs.h >>conftest.$ac_ext |
| 15096 | cat >>conftest.$ac_ext <<_ACEOF |
| 15097 | /* end confdefs.h. */ |
| 15098 | |
| 15099 | #ifdef HAVE_MATH_H |
| 15100 | # include <math.h> |
| 15101 | #endif |
| 15102 | #if STDC_HEADERS |
| 15103 | # include <stdlib.h> |
| 15104 | # include <stddef.h> |
| 15105 | #endif |
| 15106 | |
| 15107 | int |
| 15108 | main () |
| 15109 | { |
| 15110 | char *s; double d; |
| 15111 | d = strtod("1.1", &s); |
| 15112 | d = fabs(1.11); |
| 15113 | d = ceil(1.11); |
| 15114 | d = floor(1.11); |
| 15115 | d = log10(1.11); |
| 15116 | d = pow(1.11, 2.22); |
| 15117 | d = sqrt(1.11); |
| 15118 | d = sin(1.11); |
| 15119 | d = cos(1.11); |
| 15120 | d = atan(1.11); |
| 15121 | |
| 15122 | ; |
| 15123 | return 0; |
| 15124 | } |
| 15125 | _ACEOF |
| 15126 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15127 | if { (ac_try="$ac_link" |
| 15128 | case "(($ac_try" in |
| 15129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15130 | *) ac_try_echo=$ac_try;; |
| 15131 | esac |
| 15132 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15133 | $as_echo "$ac_try_echo") >&5 |
| 15134 | (eval "$ac_link") 2>conftest.er1 |
| 15135 | ac_status=$? |
| 15136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15137 | rm -f conftest.er1 |
| 15138 | cat conftest.err >&5 |
| 15139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15140 | (exit $ac_status); } && { |
| 15141 | test -z "$ac_c_werror_flag" || |
| 15142 | test ! -s conftest.err |
| 15143 | } && test -s conftest$ac_exeext && { |
| 15144 | test "$cross_compiling" = yes || |
| 15145 | $as_test_x conftest$ac_exeext |
| 15146 | }; then |
| 15147 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15148 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
| 15149 | #define HAVE_FLOAT_FUNCS 1 |
| 15150 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15151 | |
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: failed program was:" >&5 |
| 15154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15155 | |
| 15156 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15157 | $as_echo "no" >&6; } |
| 15158 | fi |
| 15159 | |
| 15160 | rm -rf conftest.dSYM |
| 15161 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15162 | conftest$ac_exeext conftest.$ac_ext |
| 15163 | |
| 15164 | { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5 |
| 15165 | $as_echo_n "checking --disable-acl argument... " >&6; } |
| 15166 | # Check whether --enable-acl was given. |
| 15167 | if test "${enable_acl+set}" = set; then |
| 15168 | enableval=$enable_acl; |
| 15169 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15170 | enable_acl="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15171 | fi |
| 15172 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15173 | if test "$enable_acl" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15174 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15175 | $as_echo "no" >&6; } |
| 15176 | { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
| 15177 | $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15178 | if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15179 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15180 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15181 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15182 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15183 | cat >conftest.$ac_ext <<_ACEOF |
| 15184 | /* confdefs.h. */ |
| 15185 | _ACEOF |
| 15186 | cat confdefs.h >>conftest.$ac_ext |
| 15187 | cat >>conftest.$ac_ext <<_ACEOF |
| 15188 | /* end confdefs.h. */ |
| 15189 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15190 | /* Override any GCC internal prototype to avoid an error. |
| 15191 | Use char because int might match the return type of a GCC |
| 15192 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15193 | #ifdef __cplusplus |
| 15194 | extern "C" |
| 15195 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15196 | char acl_get_file (); |
| 15197 | int |
| 15198 | main () |
| 15199 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15200 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15201 | ; |
| 15202 | return 0; |
| 15203 | } |
| 15204 | _ACEOF |
| 15205 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15206 | if { (ac_try="$ac_link" |
| 15207 | case "(($ac_try" in |
| 15208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15209 | *) ac_try_echo=$ac_try;; |
| 15210 | esac |
| 15211 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15212 | $as_echo "$ac_try_echo") >&5 |
| 15213 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15214 | ac_status=$? |
| 15215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15216 | rm -f conftest.er1 |
| 15217 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15218 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15219 | (exit $ac_status); } && { |
| 15220 | test -z "$ac_c_werror_flag" || |
| 15221 | test ! -s conftest.err |
| 15222 | } && test -s conftest$ac_exeext && { |
| 15223 | test "$cross_compiling" = yes || |
| 15224 | $as_test_x conftest$ac_exeext |
| 15225 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15226 | ac_cv_lib_posix1e_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15227 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15228 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15229 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15230 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15231 | ac_cv_lib_posix1e_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15232 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15233 | |
| 15234 | rm -rf conftest.dSYM |
| 15235 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15236 | conftest$ac_exeext conftest.$ac_ext |
| 15237 | LIBS=$ac_check_lib_save_LIBS |
| 15238 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15239 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 15240 | $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 15241 | 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] | 15242 | LIBS="$LIBS -lposix1e" |
| 15243 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15244 | { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
| 15245 | $as_echo_n "checking for acl_get_file in -lacl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15246 | if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15247 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15248 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15249 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15250 | LIBS="-lacl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15251 | cat >conftest.$ac_ext <<_ACEOF |
| 15252 | /* confdefs.h. */ |
| 15253 | _ACEOF |
| 15254 | cat confdefs.h >>conftest.$ac_ext |
| 15255 | cat >>conftest.$ac_ext <<_ACEOF |
| 15256 | /* end confdefs.h. */ |
| 15257 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15258 | /* Override any GCC internal prototype to avoid an error. |
| 15259 | Use char because int might match the return type of a GCC |
| 15260 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15261 | #ifdef __cplusplus |
| 15262 | extern "C" |
| 15263 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15264 | char acl_get_file (); |
| 15265 | int |
| 15266 | main () |
| 15267 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15268 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15269 | ; |
| 15270 | return 0; |
| 15271 | } |
| 15272 | _ACEOF |
| 15273 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15274 | if { (ac_try="$ac_link" |
| 15275 | case "(($ac_try" in |
| 15276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15277 | *) ac_try_echo=$ac_try;; |
| 15278 | esac |
| 15279 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15280 | $as_echo "$ac_try_echo") >&5 |
| 15281 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15282 | ac_status=$? |
| 15283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15284 | rm -f conftest.er1 |
| 15285 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15286 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15287 | (exit $ac_status); } && { |
| 15288 | test -z "$ac_c_werror_flag" || |
| 15289 | test ! -s conftest.err |
| 15290 | } && test -s conftest$ac_exeext && { |
| 15291 | test "$cross_compiling" = yes || |
| 15292 | $as_test_x conftest$ac_exeext |
| 15293 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15294 | ac_cv_lib_acl_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15295 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15296 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15297 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15298 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15299 | ac_cv_lib_acl_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15300 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15301 | |
| 15302 | rm -rf conftest.dSYM |
| 15303 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15304 | conftest$ac_exeext conftest.$ac_ext |
| 15305 | LIBS=$ac_check_lib_save_LIBS |
| 15306 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15307 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 15308 | $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 15309 | 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] | 15310 | LIBS="$LIBS -lacl" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15311 | { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
| 15312 | $as_echo_n "checking for fgetxattr in -lattr... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15313 | if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15314 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15315 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15316 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15317 | LIBS="-lattr $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15318 | cat >conftest.$ac_ext <<_ACEOF |
| 15319 | /* confdefs.h. */ |
| 15320 | _ACEOF |
| 15321 | cat confdefs.h >>conftest.$ac_ext |
| 15322 | cat >>conftest.$ac_ext <<_ACEOF |
| 15323 | /* end confdefs.h. */ |
| 15324 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15325 | /* Override any GCC internal prototype to avoid an error. |
| 15326 | Use char because int might match the return type of a GCC |
| 15327 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15328 | #ifdef __cplusplus |
| 15329 | extern "C" |
| 15330 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15331 | char fgetxattr (); |
| 15332 | int |
| 15333 | main () |
| 15334 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15335 | return fgetxattr (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15336 | ; |
| 15337 | return 0; |
| 15338 | } |
| 15339 | _ACEOF |
| 15340 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15341 | if { (ac_try="$ac_link" |
| 15342 | case "(($ac_try" in |
| 15343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15344 | *) ac_try_echo=$ac_try;; |
| 15345 | esac |
| 15346 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15347 | $as_echo "$ac_try_echo") >&5 |
| 15348 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15349 | ac_status=$? |
| 15350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15351 | rm -f conftest.er1 |
| 15352 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15353 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15354 | (exit $ac_status); } && { |
| 15355 | test -z "$ac_c_werror_flag" || |
| 15356 | test ! -s conftest.err |
| 15357 | } && test -s conftest$ac_exeext && { |
| 15358 | test "$cross_compiling" = yes || |
| 15359 | $as_test_x conftest$ac_exeext |
| 15360 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15361 | ac_cv_lib_attr_fgetxattr=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15362 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15363 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15364 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15365 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15366 | ac_cv_lib_attr_fgetxattr=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15367 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15368 | |
| 15369 | rm -rf conftest.dSYM |
| 15370 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15371 | conftest$ac_exeext conftest.$ac_ext |
| 15372 | LIBS=$ac_check_lib_save_LIBS |
| 15373 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15374 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 15375 | $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 15376 | if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15377 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15378 | fi |
| 15379 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15380 | fi |
| 15381 | |
| 15382 | fi |
| 15383 | |
| 15384 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15385 | { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
| 15386 | $as_echo_n "checking for POSIX ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15387 | cat >conftest.$ac_ext <<_ACEOF |
| 15388 | /* confdefs.h. */ |
| 15389 | _ACEOF |
| 15390 | cat confdefs.h >>conftest.$ac_ext |
| 15391 | cat >>conftest.$ac_ext <<_ACEOF |
| 15392 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15393 | |
| 15394 | #include <sys/types.h> |
| 15395 | #ifdef HAVE_SYS_ACL_H |
| 15396 | # include <sys/acl.h> |
| 15397 | #endif |
| 15398 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15399 | int |
| 15400 | main () |
| 15401 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15402 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 15403 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 15404 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15405 | ; |
| 15406 | return 0; |
| 15407 | } |
| 15408 | _ACEOF |
| 15409 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15410 | if { (ac_try="$ac_link" |
| 15411 | case "(($ac_try" in |
| 15412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15413 | *) ac_try_echo=$ac_try;; |
| 15414 | esac |
| 15415 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15416 | $as_echo "$ac_try_echo") >&5 |
| 15417 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15418 | ac_status=$? |
| 15419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15420 | rm -f conftest.er1 |
| 15421 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15422 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15423 | (exit $ac_status); } && { |
| 15424 | test -z "$ac_c_werror_flag" || |
| 15425 | test ! -s conftest.err |
| 15426 | } && test -s conftest$ac_exeext && { |
| 15427 | test "$cross_compiling" = yes || |
| 15428 | $as_test_x conftest$ac_exeext |
| 15429 | }; then |
| 15430 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15431 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15432 | #define HAVE_POSIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15433 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15434 | |
| 15435 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15436 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15437 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15438 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15439 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15440 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15441 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15442 | |
| 15443 | rm -rf conftest.dSYM |
| 15444 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15445 | conftest$ac_exeext conftest.$ac_ext |
| 15446 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15447 | { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
| 15448 | $as_echo_n "checking for Solaris ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15449 | cat >conftest.$ac_ext <<_ACEOF |
| 15450 | /* confdefs.h. */ |
| 15451 | _ACEOF |
| 15452 | cat confdefs.h >>conftest.$ac_ext |
| 15453 | cat >>conftest.$ac_ext <<_ACEOF |
| 15454 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15455 | |
| 15456 | #ifdef HAVE_SYS_ACL_H |
| 15457 | # include <sys/acl.h> |
| 15458 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15459 | int |
| 15460 | main () |
| 15461 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15462 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15463 | |
| 15464 | ; |
| 15465 | return 0; |
| 15466 | } |
| 15467 | _ACEOF |
| 15468 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15469 | if { (ac_try="$ac_link" |
| 15470 | case "(($ac_try" in |
| 15471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15472 | *) ac_try_echo=$ac_try;; |
| 15473 | esac |
| 15474 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15475 | $as_echo "$ac_try_echo") >&5 |
| 15476 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15477 | ac_status=$? |
| 15478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15479 | rm -f conftest.er1 |
| 15480 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15481 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15482 | (exit $ac_status); } && { |
| 15483 | test -z "$ac_c_werror_flag" || |
| 15484 | test ! -s conftest.err |
| 15485 | } && test -s conftest$ac_exeext && { |
| 15486 | test "$cross_compiling" = yes || |
| 15487 | $as_test_x conftest$ac_exeext |
| 15488 | }; then |
| 15489 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15490 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15491 | #define HAVE_SOLARIS_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15492 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15493 | |
| 15494 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15495 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15496 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15497 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15498 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15499 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15500 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15501 | |
| 15502 | rm -rf conftest.dSYM |
| 15503 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15504 | conftest$ac_exeext conftest.$ac_ext |
| 15505 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15506 | { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
| 15507 | $as_echo_n "checking for AIX ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15508 | cat >conftest.$ac_ext <<_ACEOF |
| 15509 | /* confdefs.h. */ |
| 15510 | _ACEOF |
| 15511 | cat confdefs.h >>conftest.$ac_ext |
| 15512 | cat >>conftest.$ac_ext <<_ACEOF |
| 15513 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15514 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15515 | #if STDC_HEADERS |
| 15516 | # include <stdlib.h> |
| 15517 | # include <stddef.h> |
| 15518 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15519 | #ifdef HAVE_SYS_ACL_H |
| 15520 | # include <sys/acl.h> |
| 15521 | #endif |
| 15522 | #ifdef HAVE_SYS_ACCESS_H |
| 15523 | # include <sys/access.h> |
| 15524 | #endif |
| 15525 | #define _ALL_SOURCE |
| 15526 | |
| 15527 | #include <sys/stat.h> |
| 15528 | |
| 15529 | int aclsize; |
| 15530 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15531 | int |
| 15532 | main () |
| 15533 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15534 | aclsize = sizeof(struct acl); |
| 15535 | aclent = (void *)malloc(aclsize); |
| 15536 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15537 | |
| 15538 | ; |
| 15539 | return 0; |
| 15540 | } |
| 15541 | _ACEOF |
| 15542 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15543 | if { (ac_try="$ac_link" |
| 15544 | case "(($ac_try" in |
| 15545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15546 | *) ac_try_echo=$ac_try;; |
| 15547 | esac |
| 15548 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15549 | $as_echo "$ac_try_echo") >&5 |
| 15550 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15551 | ac_status=$? |
| 15552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15553 | rm -f conftest.er1 |
| 15554 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15555 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15556 | (exit $ac_status); } && { |
| 15557 | test -z "$ac_c_werror_flag" || |
| 15558 | test ! -s conftest.err |
| 15559 | } && test -s conftest$ac_exeext && { |
| 15560 | test "$cross_compiling" = yes || |
| 15561 | $as_test_x conftest$ac_exeext |
| 15562 | }; then |
| 15563 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15564 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15565 | #define HAVE_AIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15566 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15567 | |
| 15568 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15569 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15571 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15572 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15573 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15574 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15575 | |
| 15576 | rm -rf conftest.dSYM |
| 15577 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15578 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15579 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15580 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15581 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15582 | fi |
| 15583 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15584 | { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 |
| 15585 | $as_echo_n "checking --disable-gpm argument... " >&6; } |
| 15586 | # Check whether --enable-gpm was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15587 | if test "${enable_gpm+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15588 | enableval=$enable_gpm; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15589 | else |
| 15590 | enable_gpm="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15591 | fi |
| 15592 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15593 | |
| 15594 | if test "$enable_gpm" = "yes"; then |
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; } |
| 15597 | { $as_echo "$as_me:$LINENO: checking for gpm" >&5 |
| 15598 | $as_echo_n "checking for gpm... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15599 | if test "${vi_cv_have_gpm+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15600 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15601 | else |
| 15602 | olibs="$LIBS" ; LIBS="-lgpm" |
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 <gpm.h> |
| 15610 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15611 | int |
| 15612 | main () |
| 15613 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15614 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15615 | ; |
| 15616 | return 0; |
| 15617 | } |
| 15618 | _ACEOF |
| 15619 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15620 | if { (ac_try="$ac_link" |
| 15621 | case "(($ac_try" in |
| 15622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15623 | *) ac_try_echo=$ac_try;; |
| 15624 | esac |
| 15625 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15626 | $as_echo "$ac_try_echo") >&5 |
| 15627 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15628 | ac_status=$? |
| 15629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15630 | rm -f conftest.er1 |
| 15631 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15632 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15633 | (exit $ac_status); } && { |
| 15634 | test -z "$ac_c_werror_flag" || |
| 15635 | test ! -s conftest.err |
| 15636 | } && test -s conftest$ac_exeext && { |
| 15637 | test "$cross_compiling" = yes || |
| 15638 | $as_test_x conftest$ac_exeext |
| 15639 | }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15640 | vi_cv_have_gpm=yes |
| 15641 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15642 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15643 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15644 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15645 | vi_cv_have_gpm=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15646 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15647 | |
| 15648 | rm -rf conftest.dSYM |
| 15649 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15650 | conftest$ac_exeext conftest.$ac_ext |
| 15651 | LIBS="$olibs" |
| 15652 | |
| 15653 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15654 | { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
| 15655 | $as_echo "$vi_cv_have_gpm" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15656 | if test $vi_cv_have_gpm = yes; then |
| 15657 | LIBS="$LIBS -lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15658 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15659 | #define HAVE_GPM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15660 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15661 | |
| 15662 | fi |
| 15663 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15664 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15665 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15666 | fi |
| 15667 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15668 | { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5 |
| 15669 | $as_echo_n "checking --disable-sysmouse argument... " >&6; } |
| 15670 | # Check whether --enable-sysmouse was given. |
| 15671 | if test "${enable_sysmouse+set}" = set; then |
| 15672 | enableval=$enable_sysmouse; |
| 15673 | else |
| 15674 | enable_sysmouse="yes" |
| 15675 | fi |
| 15676 | |
| 15677 | |
| 15678 | if test "$enable_sysmouse" = "yes"; then |
| 15679 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15680 | $as_echo "no" >&6; } |
| 15681 | { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5 |
| 15682 | $as_echo_n "checking for sysmouse... " >&6; } |
| 15683 | if test "${vi_cv_have_sysmouse+set}" = set; then |
| 15684 | $as_echo_n "(cached) " >&6 |
| 15685 | else |
| 15686 | cat >conftest.$ac_ext <<_ACEOF |
| 15687 | /* confdefs.h. */ |
| 15688 | _ACEOF |
| 15689 | cat confdefs.h >>conftest.$ac_ext |
| 15690 | cat >>conftest.$ac_ext <<_ACEOF |
| 15691 | /* end confdefs.h. */ |
| 15692 | #include <sys/consio.h> |
| 15693 | #include <signal.h> |
| 15694 | #include <sys/fbio.h> |
| 15695 | int |
| 15696 | main () |
| 15697 | { |
| 15698 | struct mouse_info mouse; |
| 15699 | mouse.operation = MOUSE_MODE; |
| 15700 | mouse.operation = MOUSE_SHOW; |
| 15701 | mouse.u.mode.mode = 0; |
| 15702 | mouse.u.mode.signal = SIGUSR2; |
| 15703 | ; |
| 15704 | return 0; |
| 15705 | } |
| 15706 | _ACEOF |
| 15707 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15708 | if { (ac_try="$ac_link" |
| 15709 | case "(($ac_try" in |
| 15710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15711 | *) ac_try_echo=$ac_try;; |
| 15712 | esac |
| 15713 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15714 | $as_echo "$ac_try_echo") >&5 |
| 15715 | (eval "$ac_link") 2>conftest.er1 |
| 15716 | ac_status=$? |
| 15717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15718 | rm -f conftest.er1 |
| 15719 | cat conftest.err >&5 |
| 15720 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15721 | (exit $ac_status); } && { |
| 15722 | test -z "$ac_c_werror_flag" || |
| 15723 | test ! -s conftest.err |
| 15724 | } && test -s conftest$ac_exeext && { |
| 15725 | test "$cross_compiling" = yes || |
| 15726 | $as_test_x conftest$ac_exeext |
| 15727 | }; then |
| 15728 | vi_cv_have_sysmouse=yes |
| 15729 | else |
| 15730 | $as_echo "$as_me: failed program was:" >&5 |
| 15731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15732 | |
| 15733 | vi_cv_have_sysmouse=no |
| 15734 | fi |
| 15735 | |
| 15736 | rm -rf conftest.dSYM |
| 15737 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15738 | conftest$ac_exeext conftest.$ac_ext |
| 15739 | |
| 15740 | fi |
| 15741 | { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5 |
| 15742 | $as_echo "$vi_cv_have_sysmouse" >&6; } |
| 15743 | if test $vi_cv_have_sysmouse = yes; then |
| 15744 | cat >>confdefs.h <<\_ACEOF |
| 15745 | #define HAVE_SYSMOUSE 1 |
| 15746 | _ACEOF |
| 15747 | |
| 15748 | fi |
| 15749 | else |
| 15750 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15751 | $as_echo "yes" >&6; } |
| 15752 | fi |
| 15753 | |
Bram Moolenaar | f05da21 | 2009-11-17 16:13:15 +0000 | [diff] [blame] | 15754 | { $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5 |
| 15755 | $as_echo_n "checking for FD_CLOEXEC... " >&6; } |
| 15756 | cat >conftest.$ac_ext <<_ACEOF |
| 15757 | /* confdefs.h. */ |
| 15758 | _ACEOF |
| 15759 | cat confdefs.h >>conftest.$ac_ext |
| 15760 | cat >>conftest.$ac_ext <<_ACEOF |
| 15761 | /* end confdefs.h. */ |
| 15762 | #if HAVE_FCNTL_H |
| 15763 | # include <fcntl.h> |
| 15764 | #endif |
| 15765 | int |
| 15766 | main () |
| 15767 | { |
| 15768 | int flag = FD_CLOEXEC; |
| 15769 | ; |
| 15770 | return 0; |
| 15771 | } |
| 15772 | _ACEOF |
| 15773 | rm -f conftest.$ac_objext |
| 15774 | if { (ac_try="$ac_compile" |
| 15775 | case "(($ac_try" in |
| 15776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15777 | *) ac_try_echo=$ac_try;; |
| 15778 | esac |
| 15779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15780 | $as_echo "$ac_try_echo") >&5 |
| 15781 | (eval "$ac_compile") 2>conftest.er1 |
| 15782 | ac_status=$? |
| 15783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15784 | rm -f conftest.er1 |
| 15785 | cat conftest.err >&5 |
| 15786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15787 | (exit $ac_status); } && { |
| 15788 | test -z "$ac_c_werror_flag" || |
| 15789 | test ! -s conftest.err |
| 15790 | } && test -s conftest.$ac_objext; then |
| 15791 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15792 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
| 15793 | #define HAVE_FD_CLOEXEC 1 |
| 15794 | _ACEOF |
| 15795 | |
| 15796 | else |
| 15797 | $as_echo "$as_me: failed program was:" >&5 |
| 15798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15799 | |
| 15800 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15801 | $as_echo "not usable" >&6; } |
| 15802 | fi |
| 15803 | |
| 15804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15805 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15806 | { $as_echo "$as_me:$LINENO: checking for rename" >&5 |
| 15807 | $as_echo_n "checking for rename... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15808 | cat >conftest.$ac_ext <<_ACEOF |
| 15809 | /* confdefs.h. */ |
| 15810 | _ACEOF |
| 15811 | cat confdefs.h >>conftest.$ac_ext |
| 15812 | cat >>conftest.$ac_ext <<_ACEOF |
| 15813 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15814 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15815 | int |
| 15816 | main () |
| 15817 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15818 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15819 | ; |
| 15820 | return 0; |
| 15821 | } |
| 15822 | _ACEOF |
| 15823 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15824 | if { (ac_try="$ac_link" |
| 15825 | case "(($ac_try" in |
| 15826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15827 | *) ac_try_echo=$ac_try;; |
| 15828 | esac |
| 15829 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15830 | $as_echo "$ac_try_echo") >&5 |
| 15831 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15832 | ac_status=$? |
| 15833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15834 | rm -f conftest.er1 |
| 15835 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15836 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15837 | (exit $ac_status); } && { |
| 15838 | test -z "$ac_c_werror_flag" || |
| 15839 | test ! -s conftest.err |
| 15840 | } && test -s conftest$ac_exeext && { |
| 15841 | test "$cross_compiling" = yes || |
| 15842 | $as_test_x conftest$ac_exeext |
| 15843 | }; then |
| 15844 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15845 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15846 | #define HAVE_RENAME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15847 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15848 | |
| 15849 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15850 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15851 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15852 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15853 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15854 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15855 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15856 | |
| 15857 | rm -rf conftest.dSYM |
| 15858 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15859 | conftest$ac_exeext conftest.$ac_ext |
| 15860 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15861 | { $as_echo "$as_me:$LINENO: checking for sysctl" >&5 |
| 15862 | $as_echo_n "checking for sysctl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15863 | cat >conftest.$ac_ext <<_ACEOF |
| 15864 | /* confdefs.h. */ |
| 15865 | _ACEOF |
| 15866 | cat confdefs.h >>conftest.$ac_ext |
| 15867 | cat >>conftest.$ac_ext <<_ACEOF |
| 15868 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15869 | #include <sys/types.h> |
| 15870 | #include <sys/sysctl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15871 | int |
| 15872 | main () |
| 15873 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15874 | int mib[2], r; |
| 15875 | size_t len; |
| 15876 | |
| 15877 | mib[0] = CTL_HW; |
| 15878 | mib[1] = HW_USERMEM; |
| 15879 | len = sizeof(r); |
| 15880 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15881 | |
| 15882 | ; |
| 15883 | return 0; |
| 15884 | } |
| 15885 | _ACEOF |
| 15886 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15887 | if { (ac_try="$ac_compile" |
| 15888 | case "(($ac_try" in |
| 15889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15890 | *) ac_try_echo=$ac_try;; |
| 15891 | esac |
| 15892 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15893 | $as_echo "$ac_try_echo") >&5 |
| 15894 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15895 | ac_status=$? |
| 15896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15897 | rm -f conftest.er1 |
| 15898 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15899 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15900 | (exit $ac_status); } && { |
| 15901 | test -z "$ac_c_werror_flag" || |
| 15902 | test ! -s conftest.err |
| 15903 | } && test -s conftest.$ac_objext; then |
| 15904 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15905 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15906 | #define HAVE_SYSCTL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15907 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15908 | |
| 15909 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15910 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15911 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15912 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15913 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15914 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15915 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15916 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15918 | |
| 15919 | { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5 |
| 15920 | $as_echo_n "checking for sysinfo... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15921 | cat >conftest.$ac_ext <<_ACEOF |
| 15922 | /* confdefs.h. */ |
| 15923 | _ACEOF |
| 15924 | cat confdefs.h >>conftest.$ac_ext |
| 15925 | cat >>conftest.$ac_ext <<_ACEOF |
| 15926 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15927 | #include <sys/types.h> |
| 15928 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15929 | int |
| 15930 | main () |
| 15931 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15932 | struct sysinfo sinfo; |
| 15933 | int t; |
| 15934 | |
| 15935 | (void)sysinfo(&sinfo); |
| 15936 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15937 | |
| 15938 | ; |
| 15939 | return 0; |
| 15940 | } |
| 15941 | _ACEOF |
| 15942 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15943 | if { (ac_try="$ac_compile" |
| 15944 | case "(($ac_try" in |
| 15945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15946 | *) ac_try_echo=$ac_try;; |
| 15947 | esac |
| 15948 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15949 | $as_echo "$ac_try_echo") >&5 |
| 15950 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15951 | ac_status=$? |
| 15952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15953 | rm -f conftest.er1 |
| 15954 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15956 | (exit $ac_status); } && { |
| 15957 | test -z "$ac_c_werror_flag" || |
| 15958 | test ! -s conftest.err |
| 15959 | } && test -s conftest.$ac_objext; then |
| 15960 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15961 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15962 | #define HAVE_SYSINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15963 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15964 | |
| 15965 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15966 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15967 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15968 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15969 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15970 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15971 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15972 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15974 | |
| 15975 | { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5 |
| 15976 | $as_echo_n "checking for sysinfo.mem_unit... " >&6; } |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15977 | cat >conftest.$ac_ext <<_ACEOF |
| 15978 | /* confdefs.h. */ |
| 15979 | _ACEOF |
| 15980 | cat confdefs.h >>conftest.$ac_ext |
| 15981 | cat >>conftest.$ac_ext <<_ACEOF |
| 15982 | /* end confdefs.h. */ |
| 15983 | #include <sys/types.h> |
| 15984 | #include <sys/sysinfo.h> |
| 15985 | int |
| 15986 | main () |
| 15987 | { |
| 15988 | struct sysinfo sinfo; |
| 15989 | sinfo.mem_unit = 1; |
| 15990 | |
| 15991 | ; |
| 15992 | return 0; |
| 15993 | } |
| 15994 | _ACEOF |
| 15995 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15996 | if { (ac_try="$ac_compile" |
| 15997 | case "(($ac_try" in |
| 15998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15999 | *) ac_try_echo=$ac_try;; |
| 16000 | esac |
| 16001 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16002 | $as_echo "$ac_try_echo") >&5 |
| 16003 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 16004 | ac_status=$? |
| 16005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16006 | rm -f conftest.er1 |
| 16007 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16009 | (exit $ac_status); } && { |
| 16010 | test -z "$ac_c_werror_flag" || |
| 16011 | test ! -s conftest.err |
| 16012 | } && test -s conftest.$ac_objext; then |
| 16013 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16014 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 16015 | #define HAVE_SYSINFO_MEM_UNIT 1 |
| 16016 | _ACEOF |
| 16017 | |
| 16018 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16019 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 16020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16021 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16022 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16023 | $as_echo "no" >&6; } |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 16024 | fi |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 16025 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16027 | |
| 16028 | { $as_echo "$as_me:$LINENO: checking for sysconf" >&5 |
| 16029 | $as_echo_n "checking for sysconf... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16030 | cat >conftest.$ac_ext <<_ACEOF |
| 16031 | /* confdefs.h. */ |
| 16032 | _ACEOF |
| 16033 | cat confdefs.h >>conftest.$ac_ext |
| 16034 | cat >>conftest.$ac_ext <<_ACEOF |
| 16035 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16036 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16037 | int |
| 16038 | main () |
| 16039 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16040 | (void)sysconf(_SC_PAGESIZE); |
| 16041 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16042 | |
| 16043 | ; |
| 16044 | return 0; |
| 16045 | } |
| 16046 | _ACEOF |
| 16047 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16048 | if { (ac_try="$ac_compile" |
| 16049 | case "(($ac_try" in |
| 16050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16051 | *) ac_try_echo=$ac_try;; |
| 16052 | esac |
| 16053 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16054 | $as_echo "$ac_try_echo") >&5 |
| 16055 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16056 | ac_status=$? |
| 16057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16058 | rm -f conftest.er1 |
| 16059 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16060 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16061 | (exit $ac_status); } && { |
| 16062 | test -z "$ac_c_werror_flag" || |
| 16063 | test ! -s conftest.err |
| 16064 | } && test -s conftest.$ac_objext; then |
| 16065 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16066 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16067 | #define HAVE_SYSCONF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16068 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16069 | |
| 16070 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16071 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16073 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16074 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 16075 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16076 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16077 | |
| 16078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16079 | |
| 16080 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16081 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
| 16082 | $as_echo_n "checking size of int... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16083 | if test "${ac_cv_sizeof_int+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16084 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16085 | else |
| 16086 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16087 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 16088 | $as_echo "$as_me: error: failed to compile test program" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16089 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16090 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16091 | cat >conftest.$ac_ext <<_ACEOF |
| 16092 | /* confdefs.h. */ |
| 16093 | _ACEOF |
| 16094 | cat confdefs.h >>conftest.$ac_ext |
| 16095 | cat >>conftest.$ac_ext <<_ACEOF |
| 16096 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16097 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16098 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16099 | #if STDC_HEADERS |
| 16100 | # include <stdlib.h> |
| 16101 | # include <stddef.h> |
| 16102 | #endif |
| 16103 | main() |
| 16104 | { |
| 16105 | FILE *f=fopen("conftestval", "w"); |
| 16106 | if (!f) exit(1); |
| 16107 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 16108 | exit(0); |
| 16109 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16110 | _ACEOF |
| 16111 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16112 | if { (ac_try="$ac_link" |
| 16113 | case "(($ac_try" in |
| 16114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16115 | *) ac_try_echo=$ac_try;; |
| 16116 | esac |
| 16117 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16118 | $as_echo "$ac_try_echo") >&5 |
| 16119 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16120 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16121 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16122 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16123 | { (case "(($ac_try" in |
| 16124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16125 | *) ac_try_echo=$ac_try;; |
| 16126 | esac |
| 16127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16128 | $as_echo "$ac_try_echo") >&5 |
| 16129 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16130 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16131 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16132 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16133 | ac_cv_sizeof_int=`cat conftestval` |
| 16134 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16135 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 16136 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16138 | |
| 16139 | ( exit $ac_status ) |
| 16140 | ac_cv_sizeof_int=0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16141 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16142 | rm -rf conftest.dSYM |
| 16143 | 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] | 16144 | fi |
| 16145 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16146 | |
| 16147 | fi |
| 16148 | |
| 16149 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 16150 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16151 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16152 | #define SIZEOF_INT $ac_cv_sizeof_int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16153 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16154 | |
| 16155 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16156 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16157 | bcopy_test_prog=' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16158 | #include "confdefs.h" |
| 16159 | #ifdef HAVE_STRING_H |
| 16160 | # include <string.h> |
| 16161 | #endif |
| 16162 | #if STDC_HEADERS |
| 16163 | # include <stdlib.h> |
| 16164 | # include <stddef.h> |
| 16165 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16166 | main() { |
| 16167 | char buf[10]; |
| 16168 | strcpy(buf, "abcdefghi"); |
| 16169 | mch_memmove(buf, buf + 2, 3); |
| 16170 | if (strncmp(buf, "ababcf", 6)) |
| 16171 | exit(1); |
| 16172 | strcpy(buf, "abcdefghi"); |
| 16173 | mch_memmove(buf + 2, buf, 3); |
| 16174 | if (strncmp(buf, "cdedef", 6)) |
| 16175 | exit(1); |
| 16176 | exit(0); /* libc version works properly. */ |
| 16177 | }' |
| 16178 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16179 | { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5 |
| 16180 | $as_echo_n "checking whether memmove handles overlaps... " >&6; } |
| 16181 | if test "${vim_cv_memmove_handles_overlap+set}" = set; then |
| 16182 | $as_echo_n "(cached) " >&6 |
| 16183 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16184 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16185 | if test "$cross_compiling" = yes; then |
| 16186 | |
| 16187 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5 |
| 16188 | $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] | 16189 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16190 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16191 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16192 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16193 | #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] | 16194 | _ACEOF |
| 16195 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16196 | if { (ac_try="$ac_link" |
| 16197 | case "(($ac_try" in |
| 16198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16199 | *) ac_try_echo=$ac_try;; |
| 16200 | esac |
| 16201 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16202 | $as_echo "$ac_try_echo") >&5 |
| 16203 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16204 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16205 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16206 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16207 | { (case "(($ac_try" in |
| 16208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16209 | *) ac_try_echo=$ac_try;; |
| 16210 | esac |
| 16211 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16212 | $as_echo "$ac_try_echo") >&5 |
| 16213 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16214 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16215 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16216 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16217 | |
| 16218 | vim_cv_memmove_handles_overlap=yes |
| 16219 | |
| 16220 | else |
| 16221 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 16222 | $as_echo "$as_me: failed program was:" >&5 |
| 16223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16224 | |
| 16225 | ( exit $ac_status ) |
| 16226 | |
| 16227 | vim_cv_memmove_handles_overlap=no |
| 16228 | |
| 16229 | fi |
| 16230 | rm -rf conftest.dSYM |
| 16231 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16232 | fi |
| 16233 | |
| 16234 | |
| 16235 | |
| 16236 | fi |
| 16237 | { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5 |
| 16238 | $as_echo "$vim_cv_memmove_handles_overlap" >&6; } |
| 16239 | |
| 16240 | if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16241 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16242 | #define USEMEMMOVE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16243 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16244 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16245 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16246 | { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5 |
| 16247 | $as_echo_n "checking whether bcopy handles overlaps... " >&6; } |
| 16248 | if test "${vim_cv_bcopy_handles_overlap+set}" = set; then |
| 16249 | $as_echo_n "(cached) " >&6 |
| 16250 | else |
| 16251 | |
| 16252 | if test "$cross_compiling" = yes; then |
| 16253 | |
| 16254 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5 |
| 16255 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;} |
| 16256 | { (exit 1); exit 1; }; } |
| 16257 | |
| 16258 | else |
| 16259 | cat >conftest.$ac_ext <<_ACEOF |
| 16260 | #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog |
| 16261 | _ACEOF |
| 16262 | rm -f conftest$ac_exeext |
| 16263 | if { (ac_try="$ac_link" |
| 16264 | case "(($ac_try" in |
| 16265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16266 | *) ac_try_echo=$ac_try;; |
| 16267 | esac |
| 16268 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16269 | $as_echo "$ac_try_echo") >&5 |
| 16270 | (eval "$ac_link") 2>&5 |
| 16271 | ac_status=$? |
| 16272 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16273 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16274 | { (case "(($ac_try" in |
| 16275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16276 | *) ac_try_echo=$ac_try;; |
| 16277 | esac |
| 16278 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16279 | $as_echo "$ac_try_echo") >&5 |
| 16280 | (eval "$ac_try") 2>&5 |
| 16281 | ac_status=$? |
| 16282 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16283 | (exit $ac_status); }; }; then |
| 16284 | |
| 16285 | vim_cv_bcopy_handles_overlap=yes |
| 16286 | |
| 16287 | else |
| 16288 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 16289 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16291 | |
| 16292 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16293 | |
| 16294 | vim_cv_bcopy_handles_overlap=no |
| 16295 | |
| 16296 | fi |
| 16297 | rm -rf conftest.dSYM |
| 16298 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16299 | fi |
| 16300 | |
| 16301 | |
| 16302 | |
| 16303 | fi |
| 16304 | { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5 |
| 16305 | $as_echo "$vim_cv_bcopy_handles_overlap" >&6; } |
| 16306 | |
| 16307 | if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then |
| 16308 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16309 | #define USEBCOPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16310 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16311 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16312 | else |
| 16313 | { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5 |
| 16314 | $as_echo_n "checking whether memcpy handles overlaps... " >&6; } |
| 16315 | if test "${vim_cv_memcpy_handles_overlap+set}" = set; then |
| 16316 | $as_echo_n "(cached) " >&6 |
| 16317 | else |
| 16318 | |
| 16319 | if test "$cross_compiling" = yes; then |
| 16320 | |
| 16321 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5 |
| 16322 | $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] | 16323 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16324 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16325 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16326 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16327 | #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] | 16328 | _ACEOF |
| 16329 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16330 | if { (ac_try="$ac_link" |
| 16331 | case "(($ac_try" in |
| 16332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16333 | *) ac_try_echo=$ac_try;; |
| 16334 | esac |
| 16335 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16336 | $as_echo "$ac_try_echo") >&5 |
| 16337 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16338 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16340 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16341 | { (case "(($ac_try" in |
| 16342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16343 | *) ac_try_echo=$ac_try;; |
| 16344 | esac |
| 16345 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16346 | $as_echo "$ac_try_echo") >&5 |
| 16347 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16348 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16350 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16351 | |
| 16352 | vim_cv_memcpy_handles_overlap=yes |
| 16353 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16354 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16355 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 16356 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16357 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16358 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16359 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16360 | |
| 16361 | vim_cv_memcpy_handles_overlap=no |
| 16362 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16363 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16364 | rm -rf conftest.dSYM |
| 16365 | 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] | 16366 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16367 | |
| 16368 | |
| 16369 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16370 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16371 | { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5 |
| 16372 | $as_echo "$vim_cv_memcpy_handles_overlap" >&6; } |
| 16373 | |
| 16374 | if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then |
| 16375 | cat >>confdefs.h <<\_ACEOF |
| 16376 | #define USEMEMCPY 1 |
| 16377 | _ACEOF |
| 16378 | |
| 16379 | fi |
| 16380 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16381 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16382 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16383 | |
| 16384 | |
| 16385 | if test "$enable_multibyte" = "yes"; then |
| 16386 | cflags_save=$CFLAGS |
| 16387 | ldflags_save=$LDFLAGS |
Bram Moolenaar | 94ba1ce | 2009-04-22 15:53:09 +0000 | [diff] [blame] | 16388 | if test "x$x_includes" != "xNONE" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16389 | CFLAGS="$CFLAGS -I$x_includes" |
| 16390 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16391 | { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
| 16392 | $as_echo_n "checking whether X_LOCALE needed... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16393 | cat >conftest.$ac_ext <<_ACEOF |
| 16394 | /* confdefs.h. */ |
| 16395 | _ACEOF |
| 16396 | cat confdefs.h >>conftest.$ac_ext |
| 16397 | cat >>conftest.$ac_ext <<_ACEOF |
| 16398 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16399 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16400 | int |
| 16401 | main () |
| 16402 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16403 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16404 | ; |
| 16405 | return 0; |
| 16406 | } |
| 16407 | _ACEOF |
| 16408 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16409 | if { (ac_try="$ac_compile" |
| 16410 | case "(($ac_try" in |
| 16411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16412 | *) ac_try_echo=$ac_try;; |
| 16413 | esac |
| 16414 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16415 | $as_echo "$ac_try_echo") >&5 |
| 16416 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16417 | ac_status=$? |
| 16418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16419 | rm -f conftest.er1 |
| 16420 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16421 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16422 | (exit $ac_status); } && { |
| 16423 | test -z "$ac_c_werror_flag" || |
| 16424 | test ! -s conftest.err |
| 16425 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16426 | cat >conftest.$ac_ext <<_ACEOF |
| 16427 | /* confdefs.h. */ |
| 16428 | _ACEOF |
| 16429 | cat confdefs.h >>conftest.$ac_ext |
| 16430 | cat >>conftest.$ac_ext <<_ACEOF |
| 16431 | /* end confdefs.h. */ |
| 16432 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16433 | /* Override any GCC internal prototype to avoid an error. |
| 16434 | Use char because int might match the return type of a GCC |
| 16435 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16436 | #ifdef __cplusplus |
| 16437 | extern "C" |
| 16438 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16439 | char _Xsetlocale (); |
| 16440 | int |
| 16441 | main () |
| 16442 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16443 | return _Xsetlocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16444 | ; |
| 16445 | return 0; |
| 16446 | } |
| 16447 | _ACEOF |
| 16448 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16449 | if { (ac_try="$ac_link" |
| 16450 | case "(($ac_try" in |
| 16451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16452 | *) ac_try_echo=$ac_try;; |
| 16453 | esac |
| 16454 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16455 | $as_echo "$ac_try_echo") >&5 |
| 16456 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16457 | ac_status=$? |
| 16458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16459 | rm -f conftest.er1 |
| 16460 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16461 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16462 | (exit $ac_status); } && { |
| 16463 | test -z "$ac_c_werror_flag" || |
| 16464 | test ! -s conftest.err |
| 16465 | } && test -s conftest$ac_exeext && { |
| 16466 | test "$cross_compiling" = yes || |
| 16467 | $as_test_x conftest$ac_exeext |
| 16468 | }; then |
| 16469 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16470 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16471 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16472 | #define X_LOCALE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16473 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16474 | |
| 16475 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16476 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16478 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16479 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16480 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16481 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16482 | |
| 16483 | rm -rf conftest.dSYM |
| 16484 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16485 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16486 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16487 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16489 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16490 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16491 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16492 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16493 | |
| 16494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16495 | fi |
| 16496 | CFLAGS=$cflags_save |
| 16497 | LDFLAGS=$ldflags_save |
| 16498 | fi |
| 16499 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16500 | { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 16501 | $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16502 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16503 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16504 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16505 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16506 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16507 | cat >conftest.$ac_ext <<_ACEOF |
| 16508 | /* confdefs.h. */ |
| 16509 | _ACEOF |
| 16510 | cat confdefs.h >>conftest.$ac_ext |
| 16511 | cat >>conftest.$ac_ext <<_ACEOF |
| 16512 | /* end confdefs.h. */ |
| 16513 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16514 | /* Override any GCC internal prototype to avoid an error. |
| 16515 | Use char because int might match the return type of a GCC |
| 16516 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16517 | #ifdef __cplusplus |
| 16518 | extern "C" |
| 16519 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16520 | char _xpg4_setrunelocale (); |
| 16521 | int |
| 16522 | main () |
| 16523 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16524 | return _xpg4_setrunelocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16525 | ; |
| 16526 | return 0; |
| 16527 | } |
| 16528 | _ACEOF |
| 16529 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16530 | if { (ac_try="$ac_link" |
| 16531 | case "(($ac_try" in |
| 16532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16533 | *) ac_try_echo=$ac_try;; |
| 16534 | esac |
| 16535 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16536 | $as_echo "$ac_try_echo") >&5 |
| 16537 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16538 | ac_status=$? |
| 16539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16540 | rm -f conftest.er1 |
| 16541 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16543 | (exit $ac_status); } && { |
| 16544 | test -z "$ac_c_werror_flag" || |
| 16545 | test ! -s conftest.err |
| 16546 | } && test -s conftest$ac_exeext && { |
| 16547 | test "$cross_compiling" = yes || |
| 16548 | $as_test_x conftest$ac_exeext |
| 16549 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16550 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16551 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16552 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16553 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16554 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16555 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16556 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16557 | |
| 16558 | rm -rf conftest.dSYM |
| 16559 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16560 | conftest$ac_exeext conftest.$ac_ext |
| 16561 | LIBS=$ac_check_lib_save_LIBS |
| 16562 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16563 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 16564 | $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 16565 | if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16566 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16567 | fi |
| 16568 | |
| 16569 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16570 | { $as_echo "$as_me:$LINENO: checking how to create tags" >&5 |
| 16571 | $as_echo_n "checking how to create tags... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16572 | test -f tags && mv tags tags.save |
| 16573 | 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] | 16574 | TAGPRG="ctags -I INIT+ --fields=+S" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16575 | else |
Bram Moolenaar | 0c7ce77 | 2009-05-13 12:49:39 +0000 | [diff] [blame] | 16576 | TAGPRG="ctags" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16577 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 16578 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 16579 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 16580 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 16581 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 16582 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 16583 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 16584 | fi |
| 16585 | test -f tags.save && mv tags.save tags |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16586 | { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
| 16587 | $as_echo "$TAGPRG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16588 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16589 | { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
| 16590 | $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] | 16591 | MANDEF="man" |
Bram Moolenaar | 8b13150 | 2008-02-13 09:28:19 +0000 | [diff] [blame] | 16592 | (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] | 16593 | { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5 |
| 16594 | $as_echo "$MANDEF" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16595 | if test "$MANDEF" = "man -s"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16596 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16597 | #define USEMAN_S 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16598 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16599 | |
| 16600 | fi |
| 16601 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16602 | { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
| 16603 | $as_echo_n "checking --disable-nls argument... " >&6; } |
| 16604 | # Check whether --enable-nls was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16605 | if test "${enable_nls+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16606 | enableval=$enable_nls; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16607 | else |
| 16608 | enable_nls="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16609 | fi |
| 16610 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16611 | |
| 16612 | if test "$enable_nls" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16613 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16614 | $as_echo "no" >&6; } |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 16615 | |
| 16616 | INSTALL_LANGS=install-languages |
| 16617 | |
| 16618 | INSTALL_TOOL_LANGS=install-tool-languages |
| 16619 | |
| 16620 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16621 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 16622 | set dummy msgfmt; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16623 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 16624 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16625 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16626 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16627 | else |
| 16628 | if test -n "$MSGFMT"; then |
| 16629 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 16630 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16632 | for as_dir in $PATH |
| 16633 | do |
| 16634 | IFS=$as_save_IFS |
| 16635 | test -z "$as_dir" && as_dir=. |
| 16636 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16637 | 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] | 16638 | ac_cv_prog_MSGFMT="msgfmt" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16639 | $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] | 16640 | break 2 |
| 16641 | fi |
| 16642 | done |
| 16643 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16644 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16645 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16646 | fi |
| 16647 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16648 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16649 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16650 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 16651 | $as_echo "$MSGFMT" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16652 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16653 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16654 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16655 | fi |
| 16656 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16657 | |
| 16658 | { $as_echo "$as_me:$LINENO: checking for NLS" >&5 |
| 16659 | $as_echo_n "checking for NLS... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16660 | if test -f po/Makefile; then |
| 16661 | have_gettext="no" |
| 16662 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16663 | cat >conftest.$ac_ext <<_ACEOF |
| 16664 | /* confdefs.h. */ |
| 16665 | _ACEOF |
| 16666 | cat confdefs.h >>conftest.$ac_ext |
| 16667 | cat >>conftest.$ac_ext <<_ACEOF |
| 16668 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16669 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16670 | int |
| 16671 | main () |
| 16672 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16673 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16674 | ; |
| 16675 | return 0; |
| 16676 | } |
| 16677 | _ACEOF |
| 16678 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16679 | if { (ac_try="$ac_link" |
| 16680 | case "(($ac_try" in |
| 16681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16682 | *) ac_try_echo=$ac_try;; |
| 16683 | esac |
| 16684 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16685 | $as_echo "$ac_try_echo") >&5 |
| 16686 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16687 | ac_status=$? |
| 16688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16689 | rm -f conftest.er1 |
| 16690 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16691 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16692 | (exit $ac_status); } && { |
| 16693 | test -z "$ac_c_werror_flag" || |
| 16694 | test ! -s conftest.err |
| 16695 | } && test -s conftest$ac_exeext && { |
| 16696 | test "$cross_compiling" = yes || |
| 16697 | $as_test_x conftest$ac_exeext |
| 16698 | }; then |
| 16699 | { $as_echo "$as_me:$LINENO: result: gettext() works" >&5 |
| 16700 | $as_echo "gettext() works" >&6; }; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16701 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16702 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16704 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16705 | olibs=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16706 | LIBS="$LIBS -lintl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16707 | cat >conftest.$ac_ext <<_ACEOF |
| 16708 | /* confdefs.h. */ |
| 16709 | _ACEOF |
| 16710 | cat confdefs.h >>conftest.$ac_ext |
| 16711 | cat >>conftest.$ac_ext <<_ACEOF |
| 16712 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16713 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16714 | int |
| 16715 | main () |
| 16716 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16717 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16718 | ; |
| 16719 | return 0; |
| 16720 | } |
| 16721 | _ACEOF |
| 16722 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16723 | if { (ac_try="$ac_link" |
| 16724 | case "(($ac_try" in |
| 16725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16726 | *) ac_try_echo=$ac_try;; |
| 16727 | esac |
| 16728 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16729 | $as_echo "$ac_try_echo") >&5 |
| 16730 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16731 | ac_status=$? |
| 16732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16733 | rm -f conftest.er1 |
| 16734 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16735 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16736 | (exit $ac_status); } && { |
| 16737 | test -z "$ac_c_werror_flag" || |
| 16738 | test ! -s conftest.err |
| 16739 | } && test -s conftest$ac_exeext && { |
| 16740 | test "$cross_compiling" = yes || |
| 16741 | $as_test_x conftest$ac_exeext |
| 16742 | }; then |
| 16743 | { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 |
| 16744 | $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16745 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16746 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16748 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16749 | { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 |
| 16750 | $as_echo "gettext() doesn't work" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16751 | LIBS=$olibs |
| 16752 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16753 | |
| 16754 | rm -rf conftest.dSYM |
| 16755 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16756 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16757 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16758 | |
| 16759 | rm -rf conftest.dSYM |
| 16760 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16761 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16762 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16763 | { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
| 16764 | $as_echo "msgfmt not found - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16765 | fi |
| 16766 | if test $have_gettext = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16767 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16768 | #define HAVE_GETTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16769 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16770 | |
| 16771 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16772 | |
| 16773 | |
| 16774 | for ac_func in bind_textdomain_codeset |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16775 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16776 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16777 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16778 | $as_echo_n "checking for $ac_func... " >&6; } |
| 16779 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16780 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16781 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16782 | cat >conftest.$ac_ext <<_ACEOF |
| 16783 | /* confdefs.h. */ |
| 16784 | _ACEOF |
| 16785 | cat confdefs.h >>conftest.$ac_ext |
| 16786 | cat >>conftest.$ac_ext <<_ACEOF |
| 16787 | /* end confdefs.h. */ |
| 16788 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16789 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16790 | #define $ac_func innocuous_$ac_func |
| 16791 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16792 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16793 | which can conflict with char $ac_func (); below. |
| 16794 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16795 | <limits.h> exists even on freestanding compilers. */ |
| 16796 | |
| 16797 | #ifdef __STDC__ |
| 16798 | # include <limits.h> |
| 16799 | #else |
| 16800 | # include <assert.h> |
| 16801 | #endif |
| 16802 | |
| 16803 | #undef $ac_func |
| 16804 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16805 | /* Override any GCC internal prototype to avoid an error. |
| 16806 | Use char because int might match the return type of a GCC |
| 16807 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16808 | #ifdef __cplusplus |
| 16809 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16810 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16811 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16812 | /* The GNU C library defines this for functions which it implements |
| 16813 | to always fail with ENOSYS. Some functions are actually named |
| 16814 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16815 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16816 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16817 | #endif |
| 16818 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16819 | int |
| 16820 | main () |
| 16821 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16822 | return $ac_func (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16823 | ; |
| 16824 | return 0; |
| 16825 | } |
| 16826 | _ACEOF |
| 16827 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16828 | if { (ac_try="$ac_link" |
| 16829 | case "(($ac_try" in |
| 16830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16831 | *) ac_try_echo=$ac_try;; |
| 16832 | esac |
| 16833 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16834 | $as_echo "$ac_try_echo") >&5 |
| 16835 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16836 | ac_status=$? |
| 16837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16838 | rm -f conftest.er1 |
| 16839 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16841 | (exit $ac_status); } && { |
| 16842 | test -z "$ac_c_werror_flag" || |
| 16843 | test ! -s conftest.err |
| 16844 | } && test -s conftest$ac_exeext && { |
| 16845 | test "$cross_compiling" = yes || |
| 16846 | $as_test_x conftest$ac_exeext |
| 16847 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16848 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16849 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16850 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16851 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16852 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16853 | eval "$as_ac_var=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16854 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16855 | |
| 16856 | rm -rf conftest.dSYM |
| 16857 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16858 | conftest$ac_exeext conftest.$ac_ext |
| 16859 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16860 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 16861 | $as_echo "$as_val"'` |
| 16862 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16863 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 16864 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 16865 | $as_echo "$as_val"'` |
| 16866 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16867 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16868 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16869 | _ACEOF |
| 16870 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16871 | fi |
| 16872 | done |
| 16873 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16874 | { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
| 16875 | $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16876 | cat >conftest.$ac_ext <<_ACEOF |
| 16877 | /* confdefs.h. */ |
| 16878 | _ACEOF |
| 16879 | cat confdefs.h >>conftest.$ac_ext |
| 16880 | cat >>conftest.$ac_ext <<_ACEOF |
| 16881 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16882 | #include <libintl.h> |
| 16883 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16884 | int |
| 16885 | main () |
| 16886 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16887 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16888 | ; |
| 16889 | return 0; |
| 16890 | } |
| 16891 | _ACEOF |
| 16892 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16893 | if { (ac_try="$ac_link" |
| 16894 | case "(($ac_try" in |
| 16895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16896 | *) ac_try_echo=$ac_try;; |
| 16897 | esac |
| 16898 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16899 | $as_echo "$ac_try_echo") >&5 |
| 16900 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16901 | ac_status=$? |
| 16902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16903 | rm -f conftest.er1 |
| 16904 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16905 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16906 | (exit $ac_status); } && { |
| 16907 | test -z "$ac_c_werror_flag" || |
| 16908 | test ! -s conftest.err |
| 16909 | } && test -s conftest$ac_exeext && { |
| 16910 | test "$cross_compiling" = yes || |
| 16911 | $as_test_x conftest$ac_exeext |
| 16912 | }; then |
| 16913 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16914 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16915 | #define HAVE_NL_MSG_CAT_CNTR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16916 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16917 | |
| 16918 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16919 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16921 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16922 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16923 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16924 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16925 | |
| 16926 | rm -rf conftest.dSYM |
| 16927 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16928 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16929 | fi |
| 16930 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16931 | { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
| 16932 | $as_echo "no \"po/Makefile\" - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16933 | fi |
| 16934 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16935 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16936 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16937 | fi |
| 16938 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16939 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16940 | { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 16941 | $as_echo_n "checking for dlfcn.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16942 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16943 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16944 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16945 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 16946 | $as_echo "$ac_cv_header_dlfcn_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16947 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16948 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16949 | { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 16950 | $as_echo_n "checking dlfcn.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16951 | cat >conftest.$ac_ext <<_ACEOF |
| 16952 | /* confdefs.h. */ |
| 16953 | _ACEOF |
| 16954 | cat confdefs.h >>conftest.$ac_ext |
| 16955 | cat >>conftest.$ac_ext <<_ACEOF |
| 16956 | /* end confdefs.h. */ |
| 16957 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16958 | #include <dlfcn.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16959 | _ACEOF |
| 16960 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16961 | if { (ac_try="$ac_compile" |
| 16962 | case "(($ac_try" in |
| 16963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16964 | *) ac_try_echo=$ac_try;; |
| 16965 | esac |
| 16966 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16967 | $as_echo "$ac_try_echo") >&5 |
| 16968 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16969 | ac_status=$? |
| 16970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16971 | rm -f conftest.er1 |
| 16972 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16974 | (exit $ac_status); } && { |
| 16975 | test -z "$ac_c_werror_flag" || |
| 16976 | test ! -s conftest.err |
| 16977 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16978 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16979 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16980 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16982 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16983 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16984 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16985 | |
| 16986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16987 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16988 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16989 | |
| 16990 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16991 | { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 16992 | $as_echo_n "checking dlfcn.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16993 | cat >conftest.$ac_ext <<_ACEOF |
| 16994 | /* confdefs.h. */ |
| 16995 | _ACEOF |
| 16996 | cat confdefs.h >>conftest.$ac_ext |
| 16997 | cat >>conftest.$ac_ext <<_ACEOF |
| 16998 | /* end confdefs.h. */ |
| 16999 | #include <dlfcn.h> |
| 17000 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17001 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17002 | case "(($ac_try" in |
| 17003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17004 | *) ac_try_echo=$ac_try;; |
| 17005 | esac |
| 17006 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17007 | $as_echo "$ac_try_echo") >&5 |
| 17008 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17009 | ac_status=$? |
| 17010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17011 | rm -f conftest.er1 |
| 17012 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17014 | (exit $ac_status); } >/dev/null && { |
| 17015 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 17016 | test ! -s conftest.err |
| 17017 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17018 | ac_header_preproc=yes |
| 17019 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17020 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17022 | |
| 17023 | ac_header_preproc=no |
| 17024 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17025 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17026 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17027 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17028 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17029 | |
| 17030 | # So? What about this header? |
| 17031 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17032 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17033 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17034 | $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17035 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 17036 | $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] | 17037 | ac_header_preproc=yes |
| 17038 | ;; |
| 17039 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17040 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 17041 | $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 17042 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 17043 | $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 17044 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 17045 | $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 17046 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 17047 | $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17048 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 17049 | $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 17050 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 17051 | $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 17052 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17053 | ;; |
| 17054 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17055 | { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 17056 | $as_echo_n "checking for dlfcn.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17057 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17058 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17059 | else |
| 17060 | ac_cv_header_dlfcn_h=$ac_header_preproc |
| 17061 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17062 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 17063 | $as_echo "$ac_cv_header_dlfcn_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17064 | |
| 17065 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17066 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17067 | DLL=dlfcn.h |
| 17068 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17069 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17070 | { $as_echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 17071 | $as_echo_n "checking for dl.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17072 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17073 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17074 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17075 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 17076 | $as_echo "$ac_cv_header_dl_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17077 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17078 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17079 | { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5 |
| 17080 | $as_echo_n "checking dl.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17081 | cat >conftest.$ac_ext <<_ACEOF |
| 17082 | /* confdefs.h. */ |
| 17083 | _ACEOF |
| 17084 | cat confdefs.h >>conftest.$ac_ext |
| 17085 | cat >>conftest.$ac_ext <<_ACEOF |
| 17086 | /* end confdefs.h. */ |
| 17087 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17088 | #include <dl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17089 | _ACEOF |
| 17090 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17091 | if { (ac_try="$ac_compile" |
| 17092 | case "(($ac_try" in |
| 17093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17094 | *) ac_try_echo=$ac_try;; |
| 17095 | esac |
| 17096 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17097 | $as_echo "$ac_try_echo") >&5 |
| 17098 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17099 | ac_status=$? |
| 17100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17101 | rm -f conftest.er1 |
| 17102 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17103 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17104 | (exit $ac_status); } && { |
| 17105 | test -z "$ac_c_werror_flag" || |
| 17106 | test ! -s conftest.err |
| 17107 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17108 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17109 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17110 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17112 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17113 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17114 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17115 | |
| 17116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17117 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17118 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17119 | |
| 17120 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17121 | { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5 |
| 17122 | $as_echo_n "checking dl.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17123 | cat >conftest.$ac_ext <<_ACEOF |
| 17124 | /* confdefs.h. */ |
| 17125 | _ACEOF |
| 17126 | cat confdefs.h >>conftest.$ac_ext |
| 17127 | cat >>conftest.$ac_ext <<_ACEOF |
| 17128 | /* end confdefs.h. */ |
| 17129 | #include <dl.h> |
| 17130 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17131 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17132 | case "(($ac_try" in |
| 17133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17134 | *) ac_try_echo=$ac_try;; |
| 17135 | esac |
| 17136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17137 | $as_echo "$ac_try_echo") >&5 |
| 17138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17139 | ac_status=$? |
| 17140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17141 | rm -f conftest.er1 |
| 17142 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17144 | (exit $ac_status); } >/dev/null && { |
| 17145 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 17146 | test ! -s conftest.err |
| 17147 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17148 | ac_header_preproc=yes |
| 17149 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17150 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17152 | |
| 17153 | ac_header_preproc=no |
| 17154 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17155 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17156 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17157 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17158 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17159 | |
| 17160 | # So? What about this header? |
| 17161 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17162 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17163 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17164 | $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17165 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 |
| 17166 | $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] | 17167 | ac_header_preproc=yes |
| 17168 | ;; |
| 17169 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17170 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 |
| 17171 | $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} |
| 17172 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 |
| 17173 | $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} |
| 17174 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 |
| 17175 | $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} |
| 17176 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 17177 | $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17178 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 |
| 17179 | $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} |
| 17180 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 |
| 17181 | $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} |
| 17182 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17183 | ;; |
| 17184 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17185 | { $as_echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 17186 | $as_echo_n "checking for dl.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17187 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17188 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17189 | else |
| 17190 | ac_cv_header_dl_h=$ac_header_preproc |
| 17191 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17192 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 17193 | $as_echo "$ac_cv_header_dl_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17194 | |
| 17195 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17196 | if test "x$ac_cv_header_dl_h" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17197 | DLL=dl.h |
| 17198 | fi |
| 17199 | |
| 17200 | |
| 17201 | fi |
| 17202 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17203 | |
| 17204 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17205 | |
| 17206 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17207 | #define HAVE_DLFCN_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17208 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17209 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17210 | { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5 |
| 17211 | $as_echo_n "checking for dlopen()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17212 | cat >conftest.$ac_ext <<_ACEOF |
| 17213 | /* confdefs.h. */ |
| 17214 | _ACEOF |
| 17215 | cat confdefs.h >>conftest.$ac_ext |
| 17216 | cat >>conftest.$ac_ext <<_ACEOF |
| 17217 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17218 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17219 | int |
| 17220 | main () |
| 17221 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17222 | |
| 17223 | extern void* dlopen(); |
| 17224 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17225 | |
| 17226 | ; |
| 17227 | return 0; |
| 17228 | } |
| 17229 | _ACEOF |
| 17230 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17231 | if { (ac_try="$ac_link" |
| 17232 | case "(($ac_try" in |
| 17233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17234 | *) ac_try_echo=$ac_try;; |
| 17235 | esac |
| 17236 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17237 | $as_echo "$ac_try_echo") >&5 |
| 17238 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17239 | ac_status=$? |
| 17240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17241 | rm -f conftest.er1 |
| 17242 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17243 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17244 | (exit $ac_status); } && { |
| 17245 | test -z "$ac_c_werror_flag" || |
| 17246 | test ! -s conftest.err |
| 17247 | } && test -s conftest$ac_exeext && { |
| 17248 | test "$cross_compiling" = yes || |
| 17249 | $as_test_x conftest$ac_exeext |
| 17250 | }; then |
| 17251 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17252 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17253 | |
| 17254 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17255 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17256 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17257 | |
| 17258 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17259 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17261 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17262 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17263 | $as_echo "no" >&6; }; |
| 17264 | { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
| 17265 | $as_echo_n "checking for dlopen() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17266 | olibs=$LIBS |
| 17267 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17268 | cat >conftest.$ac_ext <<_ACEOF |
| 17269 | /* confdefs.h. */ |
| 17270 | _ACEOF |
| 17271 | cat confdefs.h >>conftest.$ac_ext |
| 17272 | cat >>conftest.$ac_ext <<_ACEOF |
| 17273 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17274 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17275 | int |
| 17276 | main () |
| 17277 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17278 | |
| 17279 | extern void* dlopen(); |
| 17280 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17281 | |
| 17282 | ; |
| 17283 | return 0; |
| 17284 | } |
| 17285 | _ACEOF |
| 17286 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17287 | if { (ac_try="$ac_link" |
| 17288 | case "(($ac_try" in |
| 17289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17290 | *) ac_try_echo=$ac_try;; |
| 17291 | esac |
| 17292 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17293 | $as_echo "$ac_try_echo") >&5 |
| 17294 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17295 | ac_status=$? |
| 17296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17297 | rm -f conftest.er1 |
| 17298 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17299 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17300 | (exit $ac_status); } && { |
| 17301 | test -z "$ac_c_werror_flag" || |
| 17302 | test ! -s conftest.err |
| 17303 | } && test -s conftest$ac_exeext && { |
| 17304 | test "$cross_compiling" = yes || |
| 17305 | $as_test_x conftest$ac_exeext |
| 17306 | }; then |
| 17307 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17308 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17309 | |
| 17310 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17311 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17312 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17313 | |
| 17314 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17315 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17317 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17318 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17319 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17320 | LIBS=$olibs |
| 17321 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17322 | |
| 17323 | rm -rf conftest.dSYM |
| 17324 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17325 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17326 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17327 | |
| 17328 | rm -rf conftest.dSYM |
| 17329 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17330 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17331 | { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5 |
| 17332 | $as_echo_n "checking for dlsym()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17333 | cat >conftest.$ac_ext <<_ACEOF |
| 17334 | /* confdefs.h. */ |
| 17335 | _ACEOF |
| 17336 | cat confdefs.h >>conftest.$ac_ext |
| 17337 | cat >>conftest.$ac_ext <<_ACEOF |
| 17338 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17339 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17340 | int |
| 17341 | main () |
| 17342 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17343 | |
| 17344 | extern void* dlsym(); |
| 17345 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17346 | |
| 17347 | ; |
| 17348 | return 0; |
| 17349 | } |
| 17350 | _ACEOF |
| 17351 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17352 | if { (ac_try="$ac_link" |
| 17353 | case "(($ac_try" in |
| 17354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17355 | *) ac_try_echo=$ac_try;; |
| 17356 | esac |
| 17357 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17358 | $as_echo "$ac_try_echo") >&5 |
| 17359 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17360 | ac_status=$? |
| 17361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17362 | rm -f conftest.er1 |
| 17363 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17364 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17365 | (exit $ac_status); } && { |
| 17366 | test -z "$ac_c_werror_flag" || |
| 17367 | test ! -s conftest.err |
| 17368 | } && test -s conftest$ac_exeext && { |
| 17369 | test "$cross_compiling" = yes || |
| 17370 | $as_test_x conftest$ac_exeext |
| 17371 | }; then |
| 17372 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17373 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17374 | |
| 17375 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17376 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17377 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17378 | |
| 17379 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17380 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17382 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17383 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17384 | $as_echo "no" >&6; }; |
| 17385 | { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
| 17386 | $as_echo_n "checking for dlsym() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17387 | olibs=$LIBS |
| 17388 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17389 | cat >conftest.$ac_ext <<_ACEOF |
| 17390 | /* confdefs.h. */ |
| 17391 | _ACEOF |
| 17392 | cat confdefs.h >>conftest.$ac_ext |
| 17393 | cat >>conftest.$ac_ext <<_ACEOF |
| 17394 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17395 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17396 | int |
| 17397 | main () |
| 17398 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17399 | |
| 17400 | extern void* dlsym(); |
| 17401 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17402 | |
| 17403 | ; |
| 17404 | return 0; |
| 17405 | } |
| 17406 | _ACEOF |
| 17407 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17408 | if { (ac_try="$ac_link" |
| 17409 | case "(($ac_try" in |
| 17410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17411 | *) ac_try_echo=$ac_try;; |
| 17412 | esac |
| 17413 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17414 | $as_echo "$ac_try_echo") >&5 |
| 17415 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17416 | ac_status=$? |
| 17417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17418 | rm -f conftest.er1 |
| 17419 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17420 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17421 | (exit $ac_status); } && { |
| 17422 | test -z "$ac_c_werror_flag" || |
| 17423 | test ! -s conftest.err |
| 17424 | } && test -s conftest$ac_exeext && { |
| 17425 | test "$cross_compiling" = yes || |
| 17426 | $as_test_x conftest$ac_exeext |
| 17427 | }; then |
| 17428 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17429 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17430 | |
| 17431 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17432 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17433 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17434 | |
| 17435 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17436 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17438 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17439 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17440 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17441 | LIBS=$olibs |
| 17442 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17443 | |
| 17444 | rm -rf conftest.dSYM |
| 17445 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17446 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17447 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17448 | |
| 17449 | rm -rf conftest.dSYM |
| 17450 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17451 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17452 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17453 | |
| 17454 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17455 | #define HAVE_DL_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17456 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17457 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17458 | { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5 |
| 17459 | $as_echo_n "checking for shl_load()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17460 | cat >conftest.$ac_ext <<_ACEOF |
| 17461 | /* confdefs.h. */ |
| 17462 | _ACEOF |
| 17463 | cat confdefs.h >>conftest.$ac_ext |
| 17464 | cat >>conftest.$ac_ext <<_ACEOF |
| 17465 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17466 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17467 | int |
| 17468 | main () |
| 17469 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17470 | |
| 17471 | extern void* shl_load(); |
| 17472 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17473 | |
| 17474 | ; |
| 17475 | return 0; |
| 17476 | } |
| 17477 | _ACEOF |
| 17478 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17479 | if { (ac_try="$ac_link" |
| 17480 | case "(($ac_try" in |
| 17481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17482 | *) ac_try_echo=$ac_try;; |
| 17483 | esac |
| 17484 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17485 | $as_echo "$ac_try_echo") >&5 |
| 17486 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17487 | ac_status=$? |
| 17488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17489 | rm -f conftest.er1 |
| 17490 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17491 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17492 | (exit $ac_status); } && { |
| 17493 | test -z "$ac_c_werror_flag" || |
| 17494 | test ! -s conftest.err |
| 17495 | } && test -s conftest$ac_exeext && { |
| 17496 | test "$cross_compiling" = yes || |
| 17497 | $as_test_x conftest$ac_exeext |
| 17498 | }; then |
| 17499 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17500 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17501 | |
| 17502 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17503 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17504 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17505 | |
| 17506 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17507 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17509 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17510 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17511 | $as_echo "no" >&6; }; |
| 17512 | { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
| 17513 | $as_echo_n "checking for shl_load() in -ldld... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17514 | olibs=$LIBS |
| 17515 | LIBS="$LIBS -ldld" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17516 | cat >conftest.$ac_ext <<_ACEOF |
| 17517 | /* confdefs.h. */ |
| 17518 | _ACEOF |
| 17519 | cat confdefs.h >>conftest.$ac_ext |
| 17520 | cat >>conftest.$ac_ext <<_ACEOF |
| 17521 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17522 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17523 | int |
| 17524 | main () |
| 17525 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17526 | |
| 17527 | extern void* shl_load(); |
| 17528 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17529 | |
| 17530 | ; |
| 17531 | return 0; |
| 17532 | } |
| 17533 | _ACEOF |
| 17534 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17535 | if { (ac_try="$ac_link" |
| 17536 | case "(($ac_try" in |
| 17537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17538 | *) ac_try_echo=$ac_try;; |
| 17539 | esac |
| 17540 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17541 | $as_echo "$ac_try_echo") >&5 |
| 17542 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17543 | ac_status=$? |
| 17544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17545 | rm -f conftest.er1 |
| 17546 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17547 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17548 | (exit $ac_status); } && { |
| 17549 | test -z "$ac_c_werror_flag" || |
| 17550 | test ! -s conftest.err |
| 17551 | } && test -s conftest$ac_exeext && { |
| 17552 | test "$cross_compiling" = yes || |
| 17553 | $as_test_x conftest$ac_exeext |
| 17554 | }; then |
| 17555 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17556 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17557 | |
| 17558 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17559 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17560 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17561 | |
| 17562 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17563 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17565 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17566 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17567 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17568 | LIBS=$olibs |
| 17569 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17570 | |
| 17571 | rm -rf conftest.dSYM |
| 17572 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17573 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17574 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17575 | |
| 17576 | rm -rf conftest.dSYM |
| 17577 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17578 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17579 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17580 | |
| 17581 | for ac_header in setjmp.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17582 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17583 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17584 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17585 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17586 | $as_echo_n "checking for $ac_header... " >&6; } |
| 17587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17588 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17589 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17590 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 17591 | $as_echo "$as_val"'` |
| 17592 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17593 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17594 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17595 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17596 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 17597 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17598 | cat >conftest.$ac_ext <<_ACEOF |
| 17599 | /* confdefs.h. */ |
| 17600 | _ACEOF |
| 17601 | cat confdefs.h >>conftest.$ac_ext |
| 17602 | cat >>conftest.$ac_ext <<_ACEOF |
| 17603 | /* end confdefs.h. */ |
| 17604 | $ac_includes_default |
| 17605 | #include <$ac_header> |
| 17606 | _ACEOF |
| 17607 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17608 | if { (ac_try="$ac_compile" |
| 17609 | case "(($ac_try" in |
| 17610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17611 | *) ac_try_echo=$ac_try;; |
| 17612 | esac |
| 17613 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17614 | $as_echo "$ac_try_echo") >&5 |
| 17615 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17616 | ac_status=$? |
| 17617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17618 | rm -f conftest.er1 |
| 17619 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17620 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17621 | (exit $ac_status); } && { |
| 17622 | test -z "$ac_c_werror_flag" || |
| 17623 | test ! -s conftest.err |
| 17624 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17625 | ac_header_compiler=yes |
| 17626 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17627 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17629 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17630 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17631 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17632 | |
| 17633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17634 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17635 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17636 | |
| 17637 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17638 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17639 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17640 | cat >conftest.$ac_ext <<_ACEOF |
| 17641 | /* confdefs.h. */ |
| 17642 | _ACEOF |
| 17643 | cat confdefs.h >>conftest.$ac_ext |
| 17644 | cat >>conftest.$ac_ext <<_ACEOF |
| 17645 | /* end confdefs.h. */ |
| 17646 | #include <$ac_header> |
| 17647 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17648 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17649 | case "(($ac_try" in |
| 17650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17651 | *) ac_try_echo=$ac_try;; |
| 17652 | esac |
| 17653 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17654 | $as_echo "$ac_try_echo") >&5 |
| 17655 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17656 | ac_status=$? |
| 17657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17658 | rm -f conftest.er1 |
| 17659 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17660 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17661 | (exit $ac_status); } >/dev/null && { |
| 17662 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 17663 | test ! -s conftest.err |
| 17664 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17665 | ac_header_preproc=yes |
| 17666 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17667 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17669 | |
| 17670 | ac_header_preproc=no |
| 17671 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17672 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17673 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17674 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17675 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17676 | |
| 17677 | # So? What about this header? |
| 17678 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17679 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17680 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17681 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17682 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17683 | $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] | 17684 | ac_header_preproc=yes |
| 17685 | ;; |
| 17686 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17687 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17688 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17690 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17692 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17694 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17696 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17697 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17698 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17699 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17700 | ;; |
| 17701 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17702 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17703 | $as_echo_n "checking for $ac_header... " >&6; } |
| 17704 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17705 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17706 | else |
| 17707 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17708 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17709 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 17710 | $as_echo "$as_val"'` |
| 17711 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17712 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17713 | |
| 17714 | fi |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17715 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 17716 | $as_echo "$as_val"'` |
| 17717 | if test "x$as_val" = x""yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17718 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17719 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17720 | _ACEOF |
| 17721 | |
| 17722 | fi |
| 17723 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17724 | done |
| 17725 | |
| 17726 | |
| 17727 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 17728 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 17729 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 17730 | PERL_LIBS="$PERL_LIBS -ldl" |
| 17731 | fi |
| 17732 | fi |
| 17733 | |
| 17734 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 17735 | && test "x$GUITYPE" != "xCARBONGUI"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17736 | { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
| 17737 | $as_echo_n "checking whether we need -framework Carbon... " >&6; } |
Bram Moolenaar | b90daee | 2006-10-17 09:49:09 +0000 | [diff] [blame] | 17738 | if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17739 | || test "x$features" = "xhuge"; then |
| 17740 | LIBS="$LIBS -framework Carbon" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17741 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17742 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17743 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17744 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17745 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17746 | fi |
| 17747 | fi |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 17748 | if test "x$MACARCH" = "xboth"; then |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 17749 | LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 17750 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17751 | |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 17752 | DEPEND_CFLAGS_FILTER= |
| 17753 | if test "$GCC" = yes; then |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 17754 | { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 |
| 17755 | $as_echo_n "checking for GCC 3 or later... " >&6; } |
Bram Moolenaar | 2217cae | 2006-03-25 21:55:52 +0000 | [diff] [blame] | 17756 | gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` |
Bram Moolenaar | f740b29 | 2006-02-16 22:11:02 +0000 | [diff] [blame] | 17757 | if test "$gccmajor" -gt "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 17758 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 17759 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17760 | $as_echo "yes" >&6; } |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 17761 | else |
| 17762 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17763 | $as_echo "no" >&6; } |
| 17764 | fi |
Bram Moolenaar | 56d1db3 | 2009-12-16 16:14:51 +0000 | [diff] [blame] | 17765 | { $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] | 17766 | $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } |
| 17767 | if test "$gccmajor" -gt "3"; then |
Bram Moolenaar | 56d1db3 | 2009-12-16 16:14:51 +0000 | [diff] [blame] | 17768 | 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] | 17769 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17770 | $as_echo "yes" >&6; } |
| 17771 | else |
| 17772 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17773 | $as_echo "no" >&6; } |
| 17774 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 17775 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 17776 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17777 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17778 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 17779 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17780 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17781 | # This file is a shell script that caches the results of configure |
| 17782 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17783 | # scripts and configure runs, see configure's option --config-cache. |
| 17784 | # It is not useful on other systems. If it contains results you don't |
| 17785 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17786 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17787 | # config.status only pays attention to the cache file if you give it |
| 17788 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17789 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17790 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 17791 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 17792 | # following values. |
| 17793 | |
| 17794 | _ACEOF |
| 17795 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17796 | # The following way of writing the cache mishandles newlines in values, |
| 17797 | # but we know of no workaround that is simple, portable, and efficient. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17798 | # So, we kill variables containing newlines. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17799 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 17800 | # 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] | 17801 | ( |
| 17802 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 17803 | eval ac_val=\$$ac_var |
| 17804 | case $ac_val in #( |
| 17805 | *${as_nl}*) |
| 17806 | case $ac_var in #( |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17807 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 17808 | $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] | 17809 | esac |
| 17810 | case $ac_var in #( |
| 17811 | _ | IFS | as_nl) ;; #( |
| 17812 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 17813 | *) $as_unset $ac_var ;; |
| 17814 | esac ;; |
| 17815 | esac |
| 17816 | done |
| 17817 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17818 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17819 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 17820 | *${as_nl}ac_space=\ *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17821 | # `set' does not quote correctly, so add quotes (double-quote |
| 17822 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 17823 | sed -n \ |
| 17824 | "s/'/'\\\\''/g; |
| 17825 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17826 | ;; #( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17827 | *) |
| 17828 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17829 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17830 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17831 | esac | |
| 17832 | sort |
| 17833 | ) | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17834 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17835 | /^ac_cv_env_/b end |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17836 | t clear |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17837 | :clear |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17838 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 17839 | t end |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17840 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 17841 | :end' >>confcache |
| 17842 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 17843 | if test -w "$cache_file"; then |
| 17844 | test "x$cache_file" != "x/dev/null" && |
| 17845 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 17846 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17847 | cat confcache >$cache_file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17848 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17849 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 17850 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17851 | fi |
| 17852 | fi |
| 17853 | rm -f confcache |
| 17854 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17855 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 17856 | # Let make expand exec_prefix. |
| 17857 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 17858 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17859 | DEFS=-DHAVE_CONFIG_H |
| 17860 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17861 | ac_libobjs= |
| 17862 | ac_ltlibobjs= |
| 17863 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 17864 | # 1. Remove the extension, and $U if already installed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17865 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 17866 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 17867 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 17868 | # will be set to the directory where LIBOBJS objects are built. |
| 17869 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 17870 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17871 | done |
| 17872 | LIBOBJS=$ac_libobjs |
| 17873 | |
| 17874 | LTLIBOBJS=$ac_ltlibobjs |
| 17875 | |
| 17876 | |
| 17877 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17878 | : ${CONFIG_STATUS=./config.status} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17879 | ac_write_fail=0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17880 | ac_clean_files_save=$ac_clean_files |
| 17881 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17882 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 17883 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 17884 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17885 | #! $SHELL |
| 17886 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17887 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17888 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17889 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17890 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17891 | debug=false |
| 17892 | ac_cs_recheck=false |
| 17893 | ac_cs_silent=false |
| 17894 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 17895 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17896 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17897 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17898 | ## --------------------- ## |
| 17899 | ## M4sh Initialization. ## |
| 17900 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17901 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17902 | # Be more Bourne compatible |
| 17903 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17904 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17905 | emulate sh |
| 17906 | NULLCMD=: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17907 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17908 | # is contrary to our usage. Disable this feature. |
| 17909 | alias -g '${1+"$@"}'='"$@"' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17910 | setopt NO_GLOB_SUBST |
| 17911 | else |
| 17912 | case `(set -o) 2>/dev/null` in |
| 17913 | *posix*) set -o posix ;; |
| 17914 | esac |
| 17915 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17916 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17917 | |
| 17918 | |
| 17919 | |
| 17920 | |
| 17921 | # PATH needs CR |
| 17922 | # Avoid depending upon Character Ranges. |
| 17923 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 17924 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 17925 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 17926 | as_cr_digits='0123456789' |
| 17927 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 17928 | |
| 17929 | as_nl=' |
| 17930 | ' |
| 17931 | export as_nl |
| 17932 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 17933 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 17934 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 17935 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 17936 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 17937 | as_echo='printf %s\n' |
| 17938 | as_echo_n='printf %s' |
| 17939 | else |
| 17940 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 17941 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 17942 | as_echo_n='/usr/ucb/echo -n' |
| 17943 | else |
| 17944 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 17945 | as_echo_n_body='eval |
| 17946 | arg=$1; |
| 17947 | case $arg in |
| 17948 | *"$as_nl"*) |
| 17949 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 17950 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 17951 | esac; |
| 17952 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 17953 | ' |
| 17954 | export as_echo_n_body |
| 17955 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 17956 | fi |
| 17957 | export as_echo_body |
| 17958 | as_echo='sh -c $as_echo_body as_echo' |
| 17959 | fi |
| 17960 | |
| 17961 | # The user is always right. |
| 17962 | if test "${PATH_SEPARATOR+set}" != set; then |
| 17963 | PATH_SEPARATOR=: |
| 17964 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 17965 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 17966 | PATH_SEPARATOR=';' |
| 17967 | } |
| 17968 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17969 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17970 | # Support unset when possible. |
| 17971 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 17972 | as_unset=unset |
| 17973 | else |
| 17974 | as_unset=false |
| 17975 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17976 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17977 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17978 | # IFS |
| 17979 | # We need space, tab and new line, in precisely that order. Quoting is |
| 17980 | # there to prevent editors from complaining about space-tab. |
| 17981 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 17982 | # splitting by setting IFS to empty value.) |
| 17983 | IFS=" "" $as_nl" |
| 17984 | |
| 17985 | # Find who we are. Look in the path if we contain no directory separator. |
| 17986 | case $0 in |
| 17987 | *[\\/]* ) as_myself=$0 ;; |
| 17988 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17989 | for as_dir in $PATH |
| 17990 | do |
| 17991 | IFS=$as_save_IFS |
| 17992 | test -z "$as_dir" && as_dir=. |
| 17993 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17994 | done |
| 17995 | IFS=$as_save_IFS |
| 17996 | |
| 17997 | ;; |
| 17998 | esac |
| 17999 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 18000 | # in which case we are not to be found in the path. |
| 18001 | if test "x$as_myself" = x; then |
| 18002 | as_myself=$0 |
| 18003 | fi |
| 18004 | if test ! -f "$as_myself"; then |
| 18005 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 18006 | { (exit 1); exit 1; } |
| 18007 | fi |
| 18008 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18009 | # Work around bugs in pre-3.0 UWIN ksh. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18010 | for as_var in ENV MAIL MAILPATH |
| 18011 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 18012 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18013 | PS1='$ ' |
| 18014 | PS2='> ' |
| 18015 | PS4='+ ' |
| 18016 | |
| 18017 | # NLS nuisances. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18018 | LC_ALL=C |
| 18019 | export LC_ALL |
| 18020 | LANGUAGE=C |
| 18021 | export LANGUAGE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18022 | |
| 18023 | # Required to use basename. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18024 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 18025 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18026 | as_expr=expr |
| 18027 | else |
| 18028 | as_expr=false |
| 18029 | fi |
| 18030 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18031 | 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] | 18032 | as_basename=basename |
| 18033 | else |
| 18034 | as_basename=false |
| 18035 | fi |
| 18036 | |
| 18037 | |
| 18038 | # Name of the executable. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18039 | as_me=`$as_basename -- "$0" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18040 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 18041 | X"$0" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18042 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 18043 | $as_echo X/"$0" | |
| 18044 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 18045 | s//\1/ |
| 18046 | q |
| 18047 | } |
| 18048 | /^X\/\(\/\/\)$/{ |
| 18049 | s//\1/ |
| 18050 | q |
| 18051 | } |
| 18052 | /^X\/\(\/\).*/{ |
| 18053 | s//\1/ |
| 18054 | q |
| 18055 | } |
| 18056 | s/.*/./; q'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18057 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18058 | # CDPATH. |
| 18059 | $as_unset CDPATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18060 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18061 | |
| 18062 | |
| 18063 | as_lineno_1=$LINENO |
| 18064 | as_lineno_2=$LINENO |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18065 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18066 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18067 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18068 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 18069 | # uniformly replaced by the line number. The first 'sed' inserts a |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18070 | # line-number line after each line using $LINENO; the second 'sed' |
| 18071 | # does the real work. The second script uses 'N' to pair each |
| 18072 | # line-number line with the line containing $LINENO, and appends |
| 18073 | # trailing '-' during substitution so that $LINENO is not a special |
| 18074 | # case at line end. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18075 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18076 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 18077 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 18078 | sed -n ' |
| 18079 | p |
| 18080 | /[$]LINENO/= |
| 18081 | ' <$as_myself | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18082 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18083 | s/[$]LINENO.*/&-/ |
| 18084 | t lineno |
| 18085 | b |
| 18086 | :lineno |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18087 | N |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18088 | :loop |
| 18089 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18090 | t loop |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18091 | s/-\n.*// |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18092 | ' >$as_me.lineno && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18093 | chmod +x "$as_me.lineno" || |
| 18094 | { $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] | 18095 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18096 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18097 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 18098 | # (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] | 18099 | # original and so on. Autoconf is especially sensitive to this). |
| 18100 | . "./$as_me.lineno" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18101 | # Exit status is that of the last command. |
| 18102 | exit |
| 18103 | } |
| 18104 | |
| 18105 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18106 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 18107 | as_dirname=dirname |
| 18108 | else |
| 18109 | as_dirname=false |
| 18110 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18111 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18112 | ECHO_C= ECHO_N= ECHO_T= |
| 18113 | case `echo -n x` in |
| 18114 | -n*) |
| 18115 | case `echo 'x\c'` in |
| 18116 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 18117 | *) ECHO_C='\c';; |
| 18118 | esac;; |
| 18119 | *) |
| 18120 | ECHO_N='-n';; |
| 18121 | esac |
| 18122 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 18123 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18124 | as_expr=expr |
| 18125 | else |
| 18126 | as_expr=false |
| 18127 | fi |
| 18128 | |
| 18129 | rm -f conf$$ conf$$.exe conf$$.file |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18130 | if test -d conf$$.dir; then |
| 18131 | rm -f conf$$.dir/conf$$.file |
| 18132 | else |
| 18133 | rm -f conf$$.dir |
| 18134 | mkdir conf$$.dir 2>/dev/null |
| 18135 | fi |
| 18136 | if (echo >conf$$.file) 2>/dev/null; then |
| 18137 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18138 | as_ln_s='ln -s' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18139 | # ... but there are two gotchas: |
| 18140 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 18141 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 18142 | # In both cases, we have to default to `cp -p'. |
| 18143 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 18144 | as_ln_s='cp -p' |
| 18145 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 18146 | as_ln_s=ln |
| 18147 | else |
| 18148 | as_ln_s='cp -p' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18149 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18150 | else |
| 18151 | as_ln_s='cp -p' |
| 18152 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18153 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 18154 | rmdir conf$$.dir 2>/dev/null |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18155 | |
| 18156 | if mkdir -p . 2>/dev/null; then |
| 18157 | as_mkdir_p=: |
| 18158 | else |
| 18159 | test -d ./-p && rmdir ./-p |
| 18160 | as_mkdir_p=false |
| 18161 | fi |
| 18162 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18163 | if test -x / >/dev/null 2>&1; then |
| 18164 | as_test_x='test -x' |
| 18165 | else |
| 18166 | if ls -dL / >/dev/null 2>&1; then |
| 18167 | as_ls_L_option=L |
| 18168 | else |
| 18169 | as_ls_L_option= |
| 18170 | fi |
| 18171 | as_test_x=' |
| 18172 | eval sh -c '\'' |
| 18173 | if test -d "$1"; then |
| 18174 | test -d "$1/."; |
| 18175 | else |
| 18176 | case $1 in |
| 18177 | -*)set "./$1";; |
| 18178 | esac; |
| 18179 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 18180 | ???[sx]*):;;*)false;;esac;fi |
| 18181 | '\'' sh |
| 18182 | ' |
| 18183 | fi |
| 18184 | as_executable_p=$as_test_x |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18185 | |
| 18186 | # Sed expression to map a string onto a valid CPP name. |
| 18187 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 18188 | |
| 18189 | # Sed expression to map a string onto a valid variable name. |
| 18190 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 18191 | |
| 18192 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18193 | exec 6>&1 |
| 18194 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18195 | # 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] | 18196 | # report actual input values of CONFIG_FILES etc. instead of their |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18197 | # values after options handling. |
| 18198 | ac_log=" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18199 | This file was extended by $as_me, which was |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18200 | generated by GNU Autoconf 2.63. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18201 | |
| 18202 | CONFIG_FILES = $CONFIG_FILES |
| 18203 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 18204 | CONFIG_LINKS = $CONFIG_LINKS |
| 18205 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 18206 | $ $0 $@ |
| 18207 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18208 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 18209 | " |
| 18210 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18211 | _ACEOF |
| 18212 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18213 | case $ac_config_files in *" |
| 18214 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 18215 | esac |
| 18216 | |
| 18217 | case $ac_config_headers in *" |
| 18218 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 18219 | esac |
| 18220 | |
| 18221 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18222 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18223 | # Files that config.status was made for. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18224 | config_files="$ac_config_files" |
| 18225 | config_headers="$ac_config_headers" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18226 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18227 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18228 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18229 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18230 | ac_cs_usage="\ |
| 18231 | \`$as_me' instantiates files from templates according to the |
| 18232 | current configuration. |
| 18233 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18234 | Usage: $0 [OPTION]... [FILE]... |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18235 | |
| 18236 | -h, --help print this help, then exit |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18237 | -V, --version print version number and configuration settings, then exit |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18238 | -q, --quiet, --silent |
| 18239 | do not print progress messages |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18240 | -d, --debug don't remove temporary files |
| 18241 | --recheck update $as_me by reconfiguring in the same conditions |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18242 | --file=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18243 | instantiate the configuration file FILE |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18244 | --header=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18245 | instantiate the configuration header FILE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18246 | |
| 18247 | Configuration files: |
| 18248 | $config_files |
| 18249 | |
| 18250 | Configuration headers: |
| 18251 | $config_headers |
| 18252 | |
| 18253 | Report bugs to <bug-autoconf@gnu.org>." |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18254 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18255 | _ACEOF |
| 18256 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18257 | ac_cs_version="\\ |
| 18258 | config.status |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18259 | configured by $0, generated by GNU Autoconf 2.63, |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18260 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18261 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18262 | Copyright (C) 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18263 | This config.status script is free software; the Free Software Foundation |
| 18264 | gives unlimited permission to copy, distribute and modify it." |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18265 | |
| 18266 | ac_pwd='$ac_pwd' |
| 18267 | srcdir='$srcdir' |
| 18268 | AWK='$AWK' |
| 18269 | test -n "\$AWK" || AWK=awk |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18270 | _ACEOF |
| 18271 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18272 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18273 | # The default lists apply if the user does not specify any file. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18274 | ac_need_defaults=: |
| 18275 | while test $# != 0 |
| 18276 | do |
| 18277 | case $1 in |
| 18278 | --*=*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18279 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 18280 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18281 | ac_shift=: |
| 18282 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18283 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18284 | ac_option=$1 |
| 18285 | ac_optarg=$2 |
| 18286 | ac_shift=shift |
| 18287 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18288 | esac |
| 18289 | |
| 18290 | case $ac_option in |
| 18291 | # Handling of the options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18292 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 18293 | ac_cs_recheck=: ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18294 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 18295 | $as_echo "$ac_cs_version"; exit ;; |
| 18296 | --debug | --debu | --deb | --de | --d | -d ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18297 | debug=: ;; |
| 18298 | --file | --fil | --fi | --f ) |
| 18299 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18300 | case $ac_optarg in |
| 18301 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 18302 | esac |
| 18303 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18304 | ac_need_defaults=false;; |
| 18305 | --header | --heade | --head | --hea ) |
| 18306 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18307 | case $ac_optarg in |
| 18308 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 18309 | esac |
| 18310 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18311 | ac_need_defaults=false;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18312 | --he | --h) |
| 18313 | # Conflict between --help and --header |
| 18314 | { $as_echo "$as_me: error: ambiguous option: $1 |
| 18315 | Try \`$0 --help' for more information." >&2 |
| 18316 | { (exit 1); exit 1; }; };; |
| 18317 | --help | --hel | -h ) |
| 18318 | $as_echo "$ac_cs_usage"; exit ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18319 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 18320 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 18321 | ac_cs_silent=: ;; |
| 18322 | |
| 18323 | # This is an error. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18324 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
| 18325 | Try \`$0 --help' for more information." >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18326 | { (exit 1); exit 1; }; } ;; |
| 18327 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18328 | *) ac_config_targets="$ac_config_targets $1" |
| 18329 | ac_need_defaults=false ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18330 | |
| 18331 | esac |
| 18332 | shift |
| 18333 | done |
| 18334 | |
| 18335 | ac_configure_extra_args= |
| 18336 | |
| 18337 | if $ac_cs_silent; then |
| 18338 | exec 6>/dev/null |
| 18339 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 18340 | fi |
| 18341 | |
| 18342 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18343 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18344 | if \$ac_cs_recheck; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18345 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 18346 | shift |
| 18347 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 18348 | CONFIG_SHELL='$SHELL' |
| 18349 | export CONFIG_SHELL |
| 18350 | exec "\$@" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18351 | fi |
| 18352 | |
| 18353 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18354 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18355 | exec 5>>auto/config.log |
| 18356 | { |
| 18357 | echo |
| 18358 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 18359 | ## Running $as_me. ## |
| 18360 | _ASBOX |
| 18361 | $as_echo "$ac_log" |
| 18362 | } >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18363 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18364 | _ACEOF |
| 18365 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18366 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18367 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18368 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18369 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18370 | # Handling of arguments. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18371 | for ac_config_target in $ac_config_targets |
| 18372 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18373 | case $ac_config_target in |
| 18374 | "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 18375 | "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 18376 | |
| 18377 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 18378 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18379 | { (exit 1); exit 1; }; };; |
| 18380 | esac |
| 18381 | done |
| 18382 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18383 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18384 | # If the user did not use the arguments to specify the items to instantiate, |
| 18385 | # then the envvar interface is used. Set only those that are not. |
| 18386 | # We use the long form for the default assignment because of an extremely |
| 18387 | # bizarre bug on SunOS 4.1.3. |
| 18388 | if $ac_need_defaults; then |
| 18389 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 18390 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 18391 | fi |
| 18392 | |
| 18393 | # Have a temporary directory for convenience. Make it in the build tree |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18394 | # 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] | 18395 | # creating and moving files from /tmp can sometimes cause problems. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18396 | # Hook for its removal unless debugging. |
| 18397 | # Note that there is a small window in which the directory will not be cleaned: |
| 18398 | # after its creation but before its name has been assigned to `$tmp'. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18399 | $debug || |
| 18400 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18401 | tmp= |
| 18402 | trap 'exit_status=$? |
| 18403 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 18404 | ' 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18405 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 18406 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18407 | # Create a (secure) tmp directory for tmp files. |
| 18408 | |
| 18409 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18410 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18411 | test -n "$tmp" && test -d "$tmp" |
| 18412 | } || |
| 18413 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18414 | tmp=./conf$$-$RANDOM |
| 18415 | (umask 077 && mkdir "$tmp") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18416 | } || |
| 18417 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18418 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18419 | { (exit 1); exit 1; } |
| 18420 | } |
| 18421 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18422 | # Set up the scripts for CONFIG_FILES section. |
| 18423 | # No need to generate them if there are no CONFIG_FILES. |
| 18424 | # This happens for instance with `./config.status config.h'. |
| 18425 | if test -n "$CONFIG_FILES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18426 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18427 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18428 | ac_cr='
' |
| 18429 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 18430 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 18431 | ac_cs_awk_cr='\\r' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18432 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18433 | ac_cs_awk_cr=$ac_cr |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18434 | fi |
| 18435 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18436 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18437 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18438 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18439 | |
| 18440 | { |
| 18441 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 18442 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 18443 | echo "_ACEOF" |
| 18444 | } >conf$$subs.sh || |
| 18445 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 18446 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 18447 | { (exit 1); exit 1; }; } |
| 18448 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 18449 | ac_delim='%!_!# ' |
| 18450 | for ac_last_try in false false false false false :; do |
| 18451 | . ./conf$$subs.sh || |
| 18452 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 18453 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 18454 | { (exit 1); exit 1; }; } |
| 18455 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18456 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 18457 | if test $ac_delim_n = $ac_delim_num; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18458 | break |
| 18459 | elif $ac_last_try; then |
| 18460 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 18461 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 18462 | { (exit 1); exit 1; }; } |
| 18463 | else |
| 18464 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 18465 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18466 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18467 | rm -f conf$$subs.sh |
| 18468 | |
| 18469 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18470 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18471 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18472 | sed -n ' |
| 18473 | h |
| 18474 | s/^/S["/; s/!.*/"]=/ |
| 18475 | p |
| 18476 | g |
| 18477 | s/^[^!]*!// |
| 18478 | :repl |
| 18479 | t repl |
| 18480 | s/'"$ac_delim"'$// |
| 18481 | t delim |
| 18482 | :nl |
| 18483 | h |
| 18484 | s/\(.\{148\}\).*/\1/ |
| 18485 | t more1 |
| 18486 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 18487 | p |
| 18488 | n |
| 18489 | b repl |
| 18490 | :more1 |
| 18491 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 18492 | p |
| 18493 | g |
| 18494 | s/.\{148\}// |
| 18495 | t nl |
| 18496 | :delim |
| 18497 | h |
| 18498 | s/\(.\{148\}\).*/\1/ |
| 18499 | t more2 |
| 18500 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 18501 | p |
| 18502 | b |
| 18503 | :more2 |
| 18504 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 18505 | p |
| 18506 | g |
| 18507 | s/.\{148\}// |
| 18508 | t delim |
| 18509 | ' <conf$$subs.awk | sed ' |
| 18510 | /^[^""]/{ |
| 18511 | N |
| 18512 | s/\n// |
| 18513 | } |
| 18514 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 18515 | rm -f conf$$subs.awk |
| 18516 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18517 | _ACAWK |
| 18518 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 18519 | for (key in S) S_is_set[key] = 1 |
| 18520 | FS = "" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18521 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18522 | } |
| 18523 | { |
| 18524 | line = $ 0 |
| 18525 | nfields = split(line, field, "@") |
| 18526 | substed = 0 |
| 18527 | len = length(field[1]) |
| 18528 | for (i = 2; i < nfields; i++) { |
| 18529 | key = field[i] |
| 18530 | keylen = length(key) |
| 18531 | if (S_is_set[key]) { |
| 18532 | value = S[key] |
| 18533 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 18534 | len += length(value) + length(field[++i]) |
| 18535 | substed = 1 |
| 18536 | } else |
| 18537 | len += 1 + keylen |
| 18538 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18539 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18540 | print line |
| 18541 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18542 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18543 | _ACAWK |
| 18544 | _ACEOF |
| 18545 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18546 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 18547 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 18548 | else |
| 18549 | cat |
| 18550 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 18551 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 18552 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
| 18553 | { (exit 1); exit 1; }; } |
| 18554 | _ACEOF |
| 18555 | |
| 18556 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 18557 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 18558 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 18559 | # (actually we leave an empty line to preserve line numbers). |
| 18560 | if test "x$srcdir" = x.; then |
| 18561 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 18562 | s/:*\$(srcdir):*/:/ |
| 18563 | s/:*\${srcdir}:*/:/ |
| 18564 | s/:*@srcdir@:*/:/ |
| 18565 | s/^\([^=]*=[ ]*\):*/\1/ |
| 18566 | s/:*$// |
| 18567 | s/^[^=]*=[ ]*$// |
| 18568 | }' |
| 18569 | fi |
| 18570 | |
| 18571 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18572 | fi # test -n "$CONFIG_FILES" |
| 18573 | |
| 18574 | # Set up the scripts for CONFIG_HEADERS section. |
| 18575 | # No need to generate them if there are no CONFIG_HEADERS. |
| 18576 | # This happens for instance with `./config.status Makefile'. |
| 18577 | if test -n "$CONFIG_HEADERS"; then |
| 18578 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 18579 | BEGIN { |
| 18580 | _ACEOF |
| 18581 | |
| 18582 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 18583 | # here-document in config.status, that substitutes the proper values into |
| 18584 | # config.h.in to produce config.h. |
| 18585 | |
| 18586 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 18587 | # handling of long lines. |
| 18588 | ac_delim='%!_!# ' |
| 18589 | for ac_last_try in false false :; do |
| 18590 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 18591 | if test -z "$ac_t"; then |
| 18592 | break |
| 18593 | elif $ac_last_try; then |
| 18594 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 18595 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 18596 | { (exit 1); exit 1; }; } |
| 18597 | else |
| 18598 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 18599 | fi |
| 18600 | done |
| 18601 | |
| 18602 | # For the awk script, D is an array of macro values keyed by name, |
| 18603 | # likewise P contains macro parameters if any. Preserve backslash |
| 18604 | # newline sequences. |
| 18605 | |
| 18606 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 18607 | sed -n ' |
| 18608 | s/.\{148\}/&'"$ac_delim"'/g |
| 18609 | t rset |
| 18610 | :rset |
| 18611 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 18612 | t def |
| 18613 | d |
| 18614 | :def |
| 18615 | s/\\$// |
| 18616 | t bsnl |
| 18617 | s/["\\]/\\&/g |
| 18618 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 18619 | D["\1"]=" \3"/p |
| 18620 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 18621 | d |
| 18622 | :bsnl |
| 18623 | s/["\\]/\\&/g |
| 18624 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 18625 | D["\1"]=" \3\\\\\\n"\\/p |
| 18626 | t cont |
| 18627 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 18628 | t cont |
| 18629 | d |
| 18630 | :cont |
| 18631 | n |
| 18632 | s/.\{148\}/&'"$ac_delim"'/g |
| 18633 | t clear |
| 18634 | :clear |
| 18635 | s/\\$// |
| 18636 | t bsnlc |
| 18637 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 18638 | d |
| 18639 | :bsnlc |
| 18640 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 18641 | b cont |
| 18642 | ' <confdefs.h | sed ' |
| 18643 | s/'"$ac_delim"'/"\\\ |
| 18644 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 18645 | |
| 18646 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18647 | for (key in D) D_is_set[key] = 1 |
| 18648 | FS = "" |
| 18649 | } |
| 18650 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 18651 | line = \$ 0 |
| 18652 | split(line, arg, " ") |
| 18653 | if (arg[1] == "#") { |
| 18654 | defundef = arg[2] |
| 18655 | mac1 = arg[3] |
| 18656 | } else { |
| 18657 | defundef = substr(arg[1], 2) |
| 18658 | mac1 = arg[2] |
| 18659 | } |
| 18660 | split(mac1, mac2, "(") #) |
| 18661 | macro = mac2[1] |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18662 | prefix = substr(line, 1, index(line, defundef) - 1) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18663 | if (D_is_set[macro]) { |
| 18664 | # Preserve the white space surrounding the "#". |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18665 | print prefix "define", macro P[macro] D[macro] |
| 18666 | next |
| 18667 | } else { |
| 18668 | # Replace #undef with comments. This is necessary, for example, |
| 18669 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 18670 | # on some systems where configure will not decide to define it. |
| 18671 | if (defundef == "undef") { |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18672 | print "/*", prefix defundef, macro, "*/" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18673 | next |
| 18674 | } |
| 18675 | } |
| 18676 | } |
| 18677 | { print } |
| 18678 | _ACAWK |
| 18679 | _ACEOF |
| 18680 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18681 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 18682 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 18683 | { (exit 1); exit 1; }; } |
| 18684 | fi # test -n "$CONFIG_HEADERS" |
| 18685 | |
| 18686 | |
| 18687 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 18688 | shift |
| 18689 | for ac_tag |
| 18690 | do |
| 18691 | case $ac_tag in |
| 18692 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 18693 | esac |
| 18694 | case $ac_mode$ac_tag in |
| 18695 | :[FHL]*:*);; |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18696 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
| 18697 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18698 | { (exit 1); exit 1; }; };; |
| 18699 | :[FH]-) ac_tag=-:-;; |
| 18700 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 18701 | esac |
| 18702 | ac_save_IFS=$IFS |
| 18703 | IFS=: |
| 18704 | set x $ac_tag |
| 18705 | IFS=$ac_save_IFS |
| 18706 | shift |
| 18707 | ac_file=$1 |
| 18708 | shift |
| 18709 | |
| 18710 | case $ac_mode in |
| 18711 | :L) ac_source=$1;; |
| 18712 | :[FH]) |
| 18713 | ac_file_inputs= |
| 18714 | for ac_f |
| 18715 | do |
| 18716 | case $ac_f in |
| 18717 | -) ac_f="$tmp/stdin";; |
| 18718 | *) # Look for the file first in the build tree, then in the source tree |
| 18719 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 18720 | # because $ac_f cannot contain `:'. |
| 18721 | test -f "$ac_f" || |
| 18722 | case $ac_f in |
| 18723 | [\\/$]*) false;; |
| 18724 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 18725 | esac || |
| 18726 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 18727 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 18728 | { (exit 1); exit 1; }; };; |
| 18729 | esac |
| 18730 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 18731 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
| 18732 | done |
| 18733 | |
| 18734 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18735 | # use $as_me), people would be surprised to read: |
| 18736 | # /* config.h. Generated by config.status. */ |
| 18737 | configure_input='Generated from '` |
| 18738 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 18739 | `' by configure.' |
| 18740 | if test x"$ac_file" != x-; then |
| 18741 | configure_input="$ac_file. $configure_input" |
| 18742 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18743 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 18744 | fi |
| 18745 | # Neutralize special characters interpreted by sed in replacement strings. |
| 18746 | case $configure_input in #( |
| 18747 | *\&* | *\|* | *\\* ) |
| 18748 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 18749 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 18750 | *) ac_sed_conf_input=$configure_input;; |
| 18751 | esac |
| 18752 | |
| 18753 | case $ac_tag in |
| 18754 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 18755 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18756 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18757 | { (exit 1); exit 1; }; } ;; |
| 18758 | esac |
| 18759 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18760 | esac |
| 18761 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18762 | ac_dir=`$as_dirname -- "$ac_file" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18763 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18764 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18765 | X"$ac_file" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18766 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 18767 | $as_echo X"$ac_file" | |
| 18768 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18769 | s//\1/ |
| 18770 | q |
| 18771 | } |
| 18772 | /^X\(\/\/\)[^/].*/{ |
| 18773 | s//\1/ |
| 18774 | q |
| 18775 | } |
| 18776 | /^X\(\/\/\)$/{ |
| 18777 | s//\1/ |
| 18778 | q |
| 18779 | } |
| 18780 | /^X\(\/\).*/{ |
| 18781 | s//\1/ |
| 18782 | q |
| 18783 | } |
| 18784 | s/.*/./; q'` |
| 18785 | { as_dir="$ac_dir" |
| 18786 | case $as_dir in #( |
| 18787 | -*) as_dir=./$as_dir;; |
| 18788 | esac |
| 18789 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18790 | as_dirs= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18791 | while :; do |
| 18792 | case $as_dir in #( |
| 18793 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 18794 | *) as_qdir=$as_dir;; |
| 18795 | esac |
| 18796 | as_dirs="'$as_qdir' $as_dirs" |
| 18797 | as_dir=`$as_dirname -- "$as_dir" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18798 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18799 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 18800 | X"$as_dir" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18801 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 18802 | $as_echo X"$as_dir" | |
| 18803 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18804 | s//\1/ |
| 18805 | q |
| 18806 | } |
| 18807 | /^X\(\/\/\)[^/].*/{ |
| 18808 | s//\1/ |
| 18809 | q |
| 18810 | } |
| 18811 | /^X\(\/\/\)$/{ |
| 18812 | s//\1/ |
| 18813 | q |
| 18814 | } |
| 18815 | /^X\(\/\).*/{ |
| 18816 | s//\1/ |
| 18817 | q |
| 18818 | } |
| 18819 | s/.*/./; q'` |
| 18820 | test -d "$as_dir" && break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18821 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18822 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 18823 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 18824 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18825 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18826 | ac_builddir=. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18827 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18828 | case "$ac_dir" in |
| 18829 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18830 | *) |
| 18831 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 18832 | # A ".." for each directory in $ac_dir_suffix. |
| 18833 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 18834 | case $ac_top_builddir_sub in |
| 18835 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18836 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 18837 | esac ;; |
| 18838 | esac |
| 18839 | ac_abs_top_builddir=$ac_pwd |
| 18840 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 18841 | # for backward compatibility: |
| 18842 | ac_top_builddir=$ac_top_build_prefix |
| 18843 | |
| 18844 | case $srcdir in |
| 18845 | .) # We are building in place. |
| 18846 | ac_srcdir=. |
| 18847 | ac_top_srcdir=$ac_top_builddir_sub |
| 18848 | ac_abs_top_srcdir=$ac_pwd ;; |
| 18849 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 18850 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 18851 | ac_top_srcdir=$srcdir |
| 18852 | ac_abs_top_srcdir=$srcdir ;; |
| 18853 | *) # Relative name. |
| 18854 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 18855 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 18856 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 18857 | esac |
| 18858 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 18859 | |
| 18860 | |
| 18861 | case $ac_mode in |
| 18862 | :F) |
| 18863 | # |
| 18864 | # CONFIG_FILE |
| 18865 | # |
| 18866 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18867 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18868 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18869 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18870 | # If the template does not know about datarootdir, expand it. |
| 18871 | # FIXME: This hack should be removed a few years after 2.60. |
| 18872 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 18873 | |
| 18874 | ac_sed_dataroot=' |
| 18875 | /datarootdir/ { |
| 18876 | p |
| 18877 | q |
| 18878 | } |
| 18879 | /@datadir@/p |
| 18880 | /@docdir@/p |
| 18881 | /@infodir@/p |
| 18882 | /@localedir@/p |
| 18883 | /@mandir@/p |
| 18884 | ' |
| 18885 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 18886 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 18887 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 18888 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 18889 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 18890 | _ACEOF |
| 18891 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18892 | ac_datarootdir_hack=' |
| 18893 | s&@datadir@&$datadir&g |
| 18894 | s&@docdir@&$docdir&g |
| 18895 | s&@infodir@&$infodir&g |
| 18896 | s&@localedir@&$localedir&g |
| 18897 | s&@mandir@&$mandir&g |
| 18898 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 18899 | esac |
| 18900 | _ACEOF |
| 18901 | |
| 18902 | # Neutralize VPATH when `$srcdir' = `.'. |
| 18903 | # Shell code in configure.ac might set extrasub. |
| 18904 | # FIXME: do we really want to maintain this feature? |
| 18905 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18906 | ac_sed_extra="$ac_vpsub |
| 18907 | $extrasub |
| 18908 | _ACEOF |
| 18909 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18910 | :t |
| 18911 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 18912 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 18913 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 18914 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 18915 | s&@srcdir@&$ac_srcdir&;t t |
| 18916 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 18917 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 18918 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 18919 | s&@builddir@&$ac_builddir&;t t |
| 18920 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 18921 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 18922 | $ac_datarootdir_hack |
| 18923 | " |
| 18924 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 18925 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18926 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18927 | { (exit 1); exit 1; }; } |
| 18928 | |
| 18929 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 18930 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 18931 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 18932 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 18933 | which seems to be undefined. Please make sure it is defined." >&5 |
| 18934 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 18935 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 18936 | |
| 18937 | rm -f "$tmp/stdin" |
| 18938 | case $ac_file in |
| 18939 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 18940 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 18941 | esac \ |
| 18942 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18943 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18944 | { (exit 1); exit 1; }; } |
| 18945 | ;; |
| 18946 | :H) |
| 18947 | # |
| 18948 | # CONFIG_HEADER |
| 18949 | # |
| 18950 | if test x"$ac_file" != x-; then |
| 18951 | { |
| 18952 | $as_echo "/* $configure_input */" \ |
| 18953 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 18954 | } >"$tmp/config.h" \ |
| 18955 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18956 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18957 | { (exit 1); exit 1; }; } |
| 18958 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 18959 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 18960 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 18961 | else |
| 18962 | rm -f "$ac_file" |
| 18963 | mv "$tmp/config.h" "$ac_file" \ |
| 18964 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18965 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18966 | { (exit 1); exit 1; }; } |
| 18967 | fi |
| 18968 | else |
| 18969 | $as_echo "/* $configure_input */" \ |
| 18970 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 18971 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 18972 | $as_echo "$as_me: error: could not create -" >&2;} |
| 18973 | { (exit 1); exit 1; }; } |
| 18974 | fi |
| 18975 | ;; |
| 18976 | |
| 18977 | |
| 18978 | esac |
| 18979 | |
| 18980 | done # for ac_tag |
| 18981 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18982 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18983 | { (exit 0); exit 0; } |
| 18984 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18985 | chmod +x $CONFIG_STATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18986 | ac_clean_files=$ac_clean_files_save |
| 18987 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18988 | test $ac_write_fail = 0 || |
| 18989 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 18990 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 18991 | { (exit 1); exit 1; }; } |
| 18992 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18993 | |
| 18994 | # configure is writing to config.log, and then calls config.status. |
| 18995 | # config.status does its own redirection, appending to config.log. |
| 18996 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 18997 | # by configure, so config.status won't be able to write to it; its |
| 18998 | # output is simply discarded. So we exec the FD to /dev/null, |
| 18999 | # effectively closing config.log, so it can be properly (re)opened and |
| 19000 | # appended to by config.status. When coming back to configure, we |
| 19001 | # need to make the FD available again. |
| 19002 | if test "$no_create" != yes; then |
| 19003 | ac_cs_success=: |
| 19004 | ac_config_status_args= |
| 19005 | test "$silent" = yes && |
| 19006 | ac_config_status_args="$ac_config_status_args --quiet" |
| 19007 | exec 5>/dev/null |
| 19008 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 19009 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 19010 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 19011 | # would make configure fail if this is the last instruction. |
| 19012 | $ac_cs_success || { (exit 1); exit 1; } |
| 19013 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 19014 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 19015 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 19016 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 19017 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 19018 | |
| 19019 | |