1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (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' 50else 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' 70fi 71 72# The user is always right. 73if 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 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell [email protected] about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="vim.h" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624LINK_AS_NEEDED 625DEPEND_CFLAGS_FILTER 626MAKEMO 627MSGFMT 628INSTALL_TOOL_LANGS 629INSTALL_LANGS 630TAGPRG 631HANGULIN_OBJ 632HANGULIN_SRC 633GUI_X_LIBS 634GUITYPE 635GUI_LIB_LOC 636GUI_INC_LOC 637NARROW_PROTO 638MOTIF_LIBNAME 639GRESOURCE_OBJ 640GRESOURCE_SRC 641GRESOURCE_HDR 642GLIB_COMPILE_RESOURCES 643GNOME_INCLUDEDIR 644GNOME_LIBDIR 645GNOME_LIBS 646GTK_LIBNAME 647GTK_LIBS 648GTK_CFLAGS 649PKG_CONFIG 650X_LIB 651X_EXTRA_LIBS 652X_LIBS 653X_PRE_LIBS 654X_CFLAGS 655XMKMF 656xmkmfpath 657SNIFF_OBJ 658SNIFF_SRC 659NETBEANS_OBJ 660NETBEANS_SRC 661WORKSHOP_OBJ 662WORKSHOP_SRC 663RUBY_LIBS 664RUBY_CFLAGS 665RUBY_PRO 666RUBY_OBJ 667RUBY_SRC 668vi_cv_path_ruby 669TCL_LIBS 670TCL_CFLAGS 671TCL_PRO 672TCL_OBJ 673TCL_SRC 674vi_cv_path_tcl 675PYTHON3_OBJ 676PYTHON3_SRC 677PYTHON3_CFLAGS 678PYTHON3_LIBS 679PYTHON3_CONFDIR 680vi_cv_path_python3 681PYTHON_OBJ 682PYTHON_SRC 683PYTHON_CFLAGS 684PYTHON_GETPATH_CFLAGS 685PYTHON_LIBS 686PYTHON_CONFDIR 687vi_cv_path_python 688PERL_LIBS 689PERL_CFLAGS 690PERL_PRO 691PERL_OBJ 692PERL_SRC 693shrpenv 694vi_cv_perl_xsubpp 695vi_cv_perllib 696vi_cv_path_perl 697MZSCHEME_MZC 698MZSCHEME_EXTRA 699MZSCHEME_CFLAGS 700MZSCHEME_LIBS 701MZSCHEME_PRO 702MZSCHEME_OBJ 703MZSCHEME_SRC 704vi_cv_path_mzscheme 705LUA_CFLAGS 706LUA_LIBS 707LUA_PRO 708LUA_OBJ 709LUA_SRC 710vi_cv_path_plain_lua 711vi_cv_path_luajit 712vi_cv_path_lua 713compiledby 714dogvimdiff 715dovimdiff 716QUOTESED 717line_break 718VIEWNAME 719EXNAME 720VIMNAME 721OS_EXTRA_OBJ 722OS_EXTRA_SRC 723XCODE_SELECT 724CPP_MM 725STRIP 726AWK 727FGREP 728EGREP 729GREP 730CPP 731OBJEXT 732EXEEXT 733ac_ct_CC 734CPPFLAGS 735LDFLAGS 736CFLAGS 737CC 738SET_MAKE 739target_alias 740host_alias 741build_alias 742LIBS 743ECHO_T 744ECHO_N 745ECHO_C 746DEFS 747mandir 748localedir 749libdir 750psdir 751pdfdir 752dvidir 753htmldir 754infodir 755docdir 756oldincludedir 757includedir 758localstatedir 759sharedstatedir 760sysconfdir 761datadir 762datarootdir 763libexecdir 764sbindir 765bindir 766program_transform_name 767prefix 768exec_prefix 769PACKAGE_URL 770PACKAGE_BUGREPORT 771PACKAGE_STRING 772PACKAGE_VERSION 773PACKAGE_TARNAME 774PACKAGE_NAME 775PATH_SEPARATOR 776SHELL' 777ac_subst_files='' 778ac_user_opts=' 779enable_option_checking 780enable_fail_if_missing 781enable_darwin 782with_mac_arch 783with_developer_dir 784with_local_dir 785with_vim_name 786with_ex_name 787with_view_name 788with_global_runtime 789with_modified_by 790enable_smack 791enable_selinux 792with_features 793with_compiledby 794enable_xsmp 795enable_xsmp_interact 796enable_luainterp 797with_lua_prefix 798with_luajit 799enable_mzschemeinterp 800with_plthome 801enable_perlinterp 802enable_pythoninterp 803with_python_config_dir 804enable_python3interp 805with_python3_config_dir 806enable_tclinterp 807with_tclsh 808enable_rubyinterp 809with_ruby_command 810enable_cscope 811enable_workshop 812enable_netbeans 813enable_sniff 814enable_multibyte 815enable_hangulinput 816enable_xim 817enable_fontset 818with_x 819enable_gui 820enable_gtk2_check 821enable_gnome_check 822enable_motif_check 823enable_athena_check 824enable_nextaw_check 825enable_carbon_check 826enable_gtktest 827with_gnome_includes 828with_gnome_libs 829with_gnome 830with_motif_lib 831with_tlib 832enable_largefile 833enable_acl 834enable_gpm 835enable_sysmouse 836enable_nls 837' 838 ac_precious_vars='build_alias 839host_alias 840target_alias 841CC 842CFLAGS 843LDFLAGS 844LIBS 845CPPFLAGS 846CPP 847XMKMF' 848 849 850# Initialize some variables set by options. 851ac_init_help= 852ac_init_version=false 853ac_unrecognized_opts= 854ac_unrecognized_sep= 855# The variables have the same names as the options, with 856# dashes changed to underlines. 857cache_file=/dev/null 858exec_prefix=NONE 859no_create= 860no_recursion= 861prefix=NONE 862program_prefix=NONE 863program_suffix=NONE 864program_transform_name=s,x,x, 865silent= 866site= 867srcdir= 868verbose= 869x_includes=NONE 870x_libraries=NONE 871 872# Installation directory options. 873# These are left unexpanded so users can "make install exec_prefix=/foo" 874# and all the variables that are supposed to be based on exec_prefix 875# by default will actually change. 876# Use braces instead of parens because sh, perl, etc. also accept them. 877# (The list follows the same order as the GNU Coding Standards.) 878bindir='${exec_prefix}/bin' 879sbindir='${exec_prefix}/sbin' 880libexecdir='${exec_prefix}/libexec' 881datarootdir='${prefix}/share' 882datadir='${datarootdir}' 883sysconfdir='${prefix}/etc' 884sharedstatedir='${prefix}/com' 885localstatedir='${prefix}/var' 886includedir='${prefix}/include' 887oldincludedir='/usr/include' 888docdir='${datarootdir}/doc/${PACKAGE}' 889infodir='${datarootdir}/info' 890htmldir='${docdir}' 891dvidir='${docdir}' 892pdfdir='${docdir}' 893psdir='${docdir}' 894libdir='${exec_prefix}/lib' 895localedir='${datarootdir}/locale' 896mandir='${datarootdir}/man' 897 898ac_prev= 899ac_dashdash= 900for ac_option 901do 902 # If the previous option needs an argument, assign it. 903 if test -n "$ac_prev"; then 904 eval $ac_prev=\$ac_option 905 ac_prev= 906 continue 907 fi 908 909 case $ac_option in 910 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 911 *=) ac_optarg= ;; 912 *) ac_optarg=yes ;; 913 esac 914 915 # Accept the important Cygnus configure options, so we can diagnose typos. 916 917 case $ac_dashdash$ac_option in 918 --) 919 ac_dashdash=yes ;; 920 921 -bindir | --bindir | --bindi | --bind | --bin | --bi) 922 ac_prev=bindir ;; 923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 924 bindir=$ac_optarg ;; 925 926 -build | --build | --buil | --bui | --bu) 927 ac_prev=build_alias ;; 928 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 929 build_alias=$ac_optarg ;; 930 931 -cache-file | --cache-file | --cache-fil | --cache-fi \ 932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 933 ac_prev=cache_file ;; 934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 936 cache_file=$ac_optarg ;; 937 938 --config-cache | -C) 939 cache_file=config.cache ;; 940 941 -datadir | --datadir | --datadi | --datad) 942 ac_prev=datadir ;; 943 -datadir=* | --datadir=* | --datadi=* | --datad=*) 944 datadir=$ac_optarg ;; 945 946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 947 | --dataroo | --dataro | --datar) 948 ac_prev=datarootdir ;; 949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 951 datarootdir=$ac_optarg ;; 952 953 -disable-* | --disable-*) 954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 955 # Reject names that are not valid shell variable names. 956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 957 as_fn_error $? "invalid feature name: $ac_useropt" 958 ac_useropt_orig=$ac_useropt 959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 960 case $ac_user_opts in 961 *" 962"enable_$ac_useropt" 963"*) ;; 964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 965 ac_unrecognized_sep=', ';; 966 esac 967 eval enable_$ac_useropt=no ;; 968 969 -docdir | --docdir | --docdi | --doc | --do) 970 ac_prev=docdir ;; 971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 972 docdir=$ac_optarg ;; 973 974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 975 ac_prev=dvidir ;; 976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 977 dvidir=$ac_optarg ;; 978 979 -enable-* | --enable-*) 980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 981 # Reject names that are not valid shell variable names. 982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 983 as_fn_error $? "invalid feature name: $ac_useropt" 984 ac_useropt_orig=$ac_useropt 985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 986 case $ac_user_opts in 987 *" 988"enable_$ac_useropt" 989"*) ;; 990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 991 ac_unrecognized_sep=', ';; 992 esac 993 eval enable_$ac_useropt=\$ac_optarg ;; 994 995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 997 | --exec | --exe | --ex) 998 ac_prev=exec_prefix ;; 999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1001 | --exec=* | --exe=* | --ex=*) 1002 exec_prefix=$ac_optarg ;; 1003 1004 -gas | --gas | --ga | --g) 1005 # Obsolete; use --with-gas. 1006 with_gas=yes ;; 1007 1008 -help | --help | --hel | --he | -h) 1009 ac_init_help=long ;; 1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1011 ac_init_help=recursive ;; 1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1013 ac_init_help=short ;; 1014 1015 -host | --host | --hos | --ho) 1016 ac_prev=host_alias ;; 1017 -host=* | --host=* | --hos=* | --ho=*) 1018 host_alias=$ac_optarg ;; 1019 1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1021 ac_prev=htmldir ;; 1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1023 | --ht=*) 1024 htmldir=$ac_optarg ;; 1025 1026 -includedir | --includedir | --includedi | --included | --include \ 1027 | --includ | --inclu | --incl | --inc) 1028 ac_prev=includedir ;; 1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1030 | --includ=* | --inclu=* | --incl=* | --inc=*) 1031 includedir=$ac_optarg ;; 1032 1033 -infodir | --infodir | --infodi | --infod | --info | --inf) 1034 ac_prev=infodir ;; 1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1036 infodir=$ac_optarg ;; 1037 1038 -libdir | --libdir | --libdi | --libd) 1039 ac_prev=libdir ;; 1040 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1041 libdir=$ac_optarg ;; 1042 1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1044 | --libexe | --libex | --libe) 1045 ac_prev=libexecdir ;; 1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1047 | --libexe=* | --libex=* | --libe=*) 1048 libexecdir=$ac_optarg ;; 1049 1050 -localedir | --localedir | --localedi | --localed | --locale) 1051 ac_prev=localedir ;; 1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1053 localedir=$ac_optarg ;; 1054 1055 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1056 | --localstate | --localstat | --localsta | --localst | --locals) 1057 ac_prev=localstatedir ;; 1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1060 localstatedir=$ac_optarg ;; 1061 1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1063 ac_prev=mandir ;; 1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1065 mandir=$ac_optarg ;; 1066 1067 -nfp | --nfp | --nf) 1068 # Obsolete; use --without-fp. 1069 with_fp=no ;; 1070 1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1072 | --no-cr | --no-c | -n) 1073 no_create=yes ;; 1074 1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1077 no_recursion=yes ;; 1078 1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1081 | --oldin | --oldi | --old | --ol | --o) 1082 ac_prev=oldincludedir ;; 1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1086 oldincludedir=$ac_optarg ;; 1087 1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1089 ac_prev=prefix ;; 1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1091 prefix=$ac_optarg ;; 1092 1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1094 | --program-pre | --program-pr | --program-p) 1095 ac_prev=program_prefix ;; 1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1098 program_prefix=$ac_optarg ;; 1099 1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1101 | --program-suf | --program-su | --program-s) 1102 ac_prev=program_suffix ;; 1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1105 program_suffix=$ac_optarg ;; 1106 1107 -program-transform-name | --program-transform-name \ 1108 | --program-transform-nam | --program-transform-na \ 1109 | --program-transform-n | --program-transform- \ 1110 | --program-transform | --program-transfor \ 1111 | --program-transfo | --program-transf \ 1112 | --program-trans | --program-tran \ 1113 | --progr-tra | --program-tr | --program-t) 1114 ac_prev=program_transform_name ;; 1115 -program-transform-name=* | --program-transform-name=* \ 1116 | --program-transform-nam=* | --program-transform-na=* \ 1117 | --program-transform-n=* | --program-transform-=* \ 1118 | --program-transform=* | --program-transfor=* \ 1119 | --program-transfo=* | --program-transf=* \ 1120 | --program-trans=* | --program-tran=* \ 1121 | --progr-tra=* | --program-tr=* | --program-t=*) 1122 program_transform_name=$ac_optarg ;; 1123 1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1125 ac_prev=pdfdir ;; 1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1127 pdfdir=$ac_optarg ;; 1128 1129 -psdir | --psdir | --psdi | --psd | --ps) 1130 ac_prev=psdir ;; 1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1132 psdir=$ac_optarg ;; 1133 1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1135 | -silent | --silent | --silen | --sile | --sil) 1136 silent=yes ;; 1137 1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1139 ac_prev=sbindir ;; 1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1141 | --sbi=* | --sb=*) 1142 sbindir=$ac_optarg ;; 1143 1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1146 | --sharedst | --shareds | --shared | --share | --shar \ 1147 | --sha | --sh) 1148 ac_prev=sharedstatedir ;; 1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1152 | --sha=* | --sh=*) 1153 sharedstatedir=$ac_optarg ;; 1154 1155 -site | --site | --sit) 1156 ac_prev=site ;; 1157 -site=* | --site=* | --sit=*) 1158 site=$ac_optarg ;; 1159 1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1161 ac_prev=srcdir ;; 1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1163 srcdir=$ac_optarg ;; 1164 1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1166 | --syscon | --sysco | --sysc | --sys | --sy) 1167 ac_prev=sysconfdir ;; 1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1170 sysconfdir=$ac_optarg ;; 1171 1172 -target | --target | --targe | --targ | --tar | --ta | --t) 1173 ac_prev=target_alias ;; 1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1175 target_alias=$ac_optarg ;; 1176 1177 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1178 verbose=yes ;; 1179 1180 -version | --version | --versio | --versi | --vers | -V) 1181 ac_init_version=: ;; 1182 1183 -with-* | --with-*) 1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1185 # Reject names that are not valid shell variable names. 1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1187 as_fn_error $? "invalid package name: $ac_useropt" 1188 ac_useropt_orig=$ac_useropt 1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1190 case $ac_user_opts in 1191 *" 1192"with_$ac_useropt" 1193"*) ;; 1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1195 ac_unrecognized_sep=', ';; 1196 esac 1197 eval with_$ac_useropt=\$ac_optarg ;; 1198 1199 -without-* | --without-*) 1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1201 # Reject names that are not valid shell variable names. 1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1203 as_fn_error $? "invalid package name: $ac_useropt" 1204 ac_useropt_orig=$ac_useropt 1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1206 case $ac_user_opts in 1207 *" 1208"with_$ac_useropt" 1209"*) ;; 1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1211 ac_unrecognized_sep=', ';; 1212 esac 1213 eval with_$ac_useropt=no ;; 1214 1215 --x) 1216 # Obsolete; use --with-x. 1217 with_x=yes ;; 1218 1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1220 | --x-incl | --x-inc | --x-in | --x-i) 1221 ac_prev=x_includes ;; 1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1224 x_includes=$ac_optarg ;; 1225 1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1228 ac_prev=x_libraries ;; 1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1231 x_libraries=$ac_optarg ;; 1232 1233 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1234Try \`$0 --help' for more information" 1235 ;; 1236 1237 *=*) 1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1239 # Reject names that are not valid shell variable names. 1240 case $ac_envvar in #( 1241 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1242 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1243 esac 1244 eval $ac_envvar=\$ac_optarg 1245 export $ac_envvar ;; 1246 1247 *) 1248 # FIXME: should be removed in autoconf 3.0. 1249 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1251 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1252 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1253 ;; 1254 1255 esac 1256done 1257 1258if test -n "$ac_prev"; then 1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1260 as_fn_error $? "missing argument to $ac_option" 1261fi 1262 1263if test -n "$ac_unrecognized_opts"; then 1264 case $enable_option_checking in 1265 no) ;; 1266 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1267 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1268 esac 1269fi 1270 1271# Check all directory arguments for consistency. 1272for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1273 datadir sysconfdir sharedstatedir localstatedir includedir \ 1274 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1275 libdir localedir mandir 1276do 1277 eval ac_val=\$$ac_var 1278 # Remove trailing slashes. 1279 case $ac_val in 1280 */ ) 1281 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1282 eval $ac_var=\$ac_val;; 1283 esac 1284 # Be sure to have absolute directory names. 1285 case $ac_val in 1286 [\\/$]* | ?:[\\/]* ) continue;; 1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1288 esac 1289 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1290done 1291 1292# There might be people who depend on the old broken behavior: `$host' 1293# used to hold the argument of --host etc. 1294# FIXME: To remove some day. 1295build=$build_alias 1296host=$host_alias 1297target=$target_alias 1298 1299# FIXME: To remove some day. 1300if test "x$host_alias" != x; then 1301 if test "x$build_alias" = x; then 1302 cross_compiling=maybe 1303 elif test "x$build_alias" != "x$host_alias"; then 1304 cross_compiling=yes 1305 fi 1306fi 1307 1308ac_tool_prefix= 1309test -n "$host_alias" && ac_tool_prefix=$host_alias- 1310 1311test "$silent" = yes && exec 6>/dev/null 1312 1313 1314ac_pwd=`pwd` && test -n "$ac_pwd" && 1315ac_ls_di=`ls -di .` && 1316ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1317 as_fn_error $? "working directory cannot be determined" 1318test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1319 as_fn_error $? "pwd does not report name of working directory" 1320 1321 1322# Find the source files, if location was not specified. 1323if test -z "$srcdir"; then 1324 ac_srcdir_defaulted=yes 1325 # Try the directory containing this script, then the parent directory. 1326 ac_confdir=`$as_dirname -- "$as_myself" || 1327$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1328 X"$as_myself" : 'X\(//\)[^/]' \| \ 1329 X"$as_myself" : 'X\(//\)$' \| \ 1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1331$as_echo X"$as_myself" | 1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1333 s//\1/ 1334 q 1335 } 1336 /^X\(\/\/\)[^/].*/{ 1337 s//\1/ 1338 q 1339 } 1340 /^X\(\/\/\)$/{ 1341 s//\1/ 1342 q 1343 } 1344 /^X\(\/\).*/{ 1345 s//\1/ 1346 q 1347 } 1348 s/.*/./; q'` 1349 srcdir=$ac_confdir 1350 if test ! -r "$srcdir/$ac_unique_file"; then 1351 srcdir=.. 1352 fi 1353else 1354 ac_srcdir_defaulted=no 1355fi 1356if test ! -r "$srcdir/$ac_unique_file"; then 1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1358 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1359fi 1360ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1361ac_abs_confdir=`( 1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1363 pwd)` 1364# When building in place, set srcdir=. 1365if test "$ac_abs_confdir" = "$ac_pwd"; then 1366 srcdir=. 1367fi 1368# Remove unnecessary trailing slashes from srcdir. 1369# Double slashes in file names in object file debugging info 1370# mess up M-x gdb in Emacs. 1371case $srcdir in 1372*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1373esac 1374for ac_var in $ac_precious_vars; do 1375 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1376 eval ac_env_${ac_var}_value=\$${ac_var} 1377 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1378 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1379done 1380 1381# 1382# Report the --help message. 1383# 1384if test "$ac_init_help" = "long"; then 1385 # Omit some internal or obsolete options to make the list less imposing. 1386 # This message is too long to be a string in the A/UX 3.1 sh. 1387 cat <<_ACEOF 1388\`configure' configures this package to adapt to many kinds of systems. 1389 1390Usage: $0 [OPTION]... [VAR=VALUE]... 1391 1392To assign environment variables (e.g., CC, CFLAGS...), specify them as 1393VAR=VALUE. See below for descriptions of some of the useful variables. 1394 1395Defaults for the options are specified in brackets. 1396 1397Configuration: 1398 -h, --help display this help and exit 1399 --help=short display options specific to this package 1400 --help=recursive display the short help of all the included packages 1401 -V, --version display version information and exit 1402 -q, --quiet, --silent do not print \`checking ...' messages 1403 --cache-file=FILE cache test results in FILE [disabled] 1404 -C, --config-cache alias for \`--cache-file=config.cache' 1405 -n, --no-create do not create output files 1406 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1407 1408Installation directories: 1409 --prefix=PREFIX install architecture-independent files in PREFIX 1410 [$ac_default_prefix] 1411 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1412 [PREFIX] 1413 1414By default, \`make install' will install all the files in 1415\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1416an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1417for instance \`--prefix=\$HOME'. 1418 1419For better control, use the options below. 1420 1421Fine tuning of the installation directories: 1422 --bindir=DIR user executables [EPREFIX/bin] 1423 --sbindir=DIR system admin executables [EPREFIX/sbin] 1424 --libexecdir=DIR program executables [EPREFIX/libexec] 1425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1427 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1428 --libdir=DIR object code libraries [EPREFIX/lib] 1429 --includedir=DIR C header files [PREFIX/include] 1430 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1433 --infodir=DIR info documentation [DATAROOTDIR/info] 1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1435 --mandir=DIR man documentation [DATAROOTDIR/man] 1436 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1437 --htmldir=DIR html documentation [DOCDIR] 1438 --dvidir=DIR dvi documentation [DOCDIR] 1439 --pdfdir=DIR pdf documentation [DOCDIR] 1440 --psdir=DIR ps documentation [DOCDIR] 1441_ACEOF 1442 1443 cat <<\_ACEOF 1444 1445X features: 1446 --x-includes=DIR X include files are in DIR 1447 --x-libraries=DIR X library files are in DIR 1448_ACEOF 1449fi 1450 1451if test -n "$ac_init_help"; then 1452 1453 cat <<\_ACEOF 1454 1455Optional Features: 1456 --disable-option-checking ignore unrecognized --enable/--with options 1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1459 --enable-fail-if-missing Fail if dependencies on additional features 1460 specified on the command line are missing. 1461 --disable-darwin Disable Darwin (Mac OS X) support. 1462 --disable-smack Do not check for Smack support. 1463 --disable-selinux Do not check for SELinux support. 1464 --disable-xsmp Disable XSMP session management 1465 --disable-xsmp-interact Disable XSMP interaction 1466 --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic 1467 --enable-mzschemeinterp Include MzScheme interpreter. 1468 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic 1469 --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic 1470 --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic 1471 --enable-tclinterp Include Tcl interpreter. 1472 --enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic 1473 --enable-cscope Include cscope interface. 1474 --enable-workshop Include Sun Visual Workshop support. 1475 --disable-netbeans Disable NetBeans integration support. 1476 --enable-sniff Include Sniff interface. 1477 --enable-multibyte Include multibyte editing support. 1478 --enable-hangulinput Include Hangul input support. 1479 --enable-xim Include XIM input support. 1480 --enable-fontset Include X fontset output support. 1481 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/motif/athena/neXtaw/photon/carbon 1482 --enable-gtk2-check If auto-select 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 1488 --disable-gtktest Do not try to compile and run a test GTK program 1489 --disable-largefile omit support for large files 1490 --disable-acl Don't check for ACL support. 1491 --disable-gpm Don't use gpm (Linux mouse daemon). 1492 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1493 --disable-nls Don't support NLS (gettext()). 1494 1495Optional Packages: 1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1498 --with-mac-arch=ARCH current, intel, ppc or both 1499 --with-developer-dir=PATH use PATH as location for Xcode developer tools 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. 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-lua-prefix=PFX Prefix where Lua is installed. 1510 --with-luajit Link with LuaJIT instead of Lua. 1511 --with-plthome=PLTHOME Use PLTHOME. 1512 --with-python-config-dir=PATH Python's config directory 1513 --with-python3-config-dir=PATH Python's config directory 1514 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1515 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1516 --with-x use the X Window System 1517 --with-gnome-includes=DIR Specify location of GNOME headers 1518 --with-gnome-libs=DIR Specify location of GNOME libs 1519 --with-gnome Specify prefix for GNOME files 1520 --with-motif-lib=STRING Library for Motif 1521 --with-tlib=library terminal library to be used 1522 1523Some influential environment variables: 1524 CC C compiler command 1525 CFLAGS C compiler flags 1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1527 nonstandard directory <lib dir> 1528 LIBS libraries to pass to the linker, e.g. -l<library> 1529 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1530 you have headers in a nonstandard directory <include dir> 1531 CPP C preprocessor 1532 XMKMF Path to xmkmf, Makefile generator for X Window System 1533 1534Use these variables to override the choices made by `configure' or to help 1535it to find libraries and programs with nonstandard names/locations. 1536 1537Report bugs to the package provider. 1538_ACEOF 1539ac_status=$? 1540fi 1541 1542if test "$ac_init_help" = "recursive"; then 1543 # If there are subdirs, report their specific --help. 1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1545 test -d "$ac_dir" || 1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1547 continue 1548 ac_builddir=. 1549 1550case "$ac_dir" in 1551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1552*) 1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1554 # A ".." for each directory in $ac_dir_suffix. 1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1556 case $ac_top_builddir_sub in 1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1559 esac ;; 1560esac 1561ac_abs_top_builddir=$ac_pwd 1562ac_abs_builddir=$ac_pwd$ac_dir_suffix 1563# for backward compatibility: 1564ac_top_builddir=$ac_top_build_prefix 1565 1566case $srcdir in 1567 .) # We are building in place. 1568 ac_srcdir=. 1569 ac_top_srcdir=$ac_top_builddir_sub 1570 ac_abs_top_srcdir=$ac_pwd ;; 1571 [\\/]* | ?:[\\/]* ) # Absolute name. 1572 ac_srcdir=$srcdir$ac_dir_suffix; 1573 ac_top_srcdir=$srcdir 1574 ac_abs_top_srcdir=$srcdir ;; 1575 *) # Relative name. 1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1577 ac_top_srcdir=$ac_top_build_prefix$srcdir 1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1579esac 1580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1581 1582 cd "$ac_dir" || { ac_status=$?; continue; } 1583 # Check for guested configure. 1584 if test -f "$ac_srcdir/configure.gnu"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1587 elif test -f "$ac_srcdir/configure"; then 1588 echo && 1589 $SHELL "$ac_srcdir/configure" --help=recursive 1590 else 1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1592 fi || ac_status=$? 1593 cd "$ac_pwd" || { ac_status=$?; break; } 1594 done 1595fi 1596 1597test -n "$ac_init_help" && exit $ac_status 1598if $ac_init_version; then 1599 cat <<\_ACEOF 1600configure 1601generated by GNU Autoconf 2.69 1602 1603Copyright (C) 2012 Free Software Foundation, Inc. 1604This configure script is free software; the Free Software Foundation 1605gives unlimited permission to copy, distribute and modify it. 1606_ACEOF 1607 exit 1608fi 1609 1610## ------------------------ ## 1611## Autoconf initialization. ## 1612## ------------------------ ## 1613 1614# ac_fn_c_try_compile LINENO 1615# -------------------------- 1616# Try to compile conftest.$ac_ext, and return whether this succeeded. 1617ac_fn_c_try_compile () 1618{ 1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1620 rm -f conftest.$ac_objext 1621 if { { ac_try="$ac_compile" 1622case "(($ac_try" in 1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1624 *) ac_try_echo=$ac_try;; 1625esac 1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1627$as_echo "$ac_try_echo"; } >&5 1628 (eval "$ac_compile") 2>conftest.err 1629 ac_status=$? 1630 if test -s conftest.err; then 1631 grep -v '^ *+' conftest.err >conftest.er1 1632 cat conftest.er1 >&5 1633 mv -f conftest.er1 conftest.err 1634 fi 1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1636 test $ac_status = 0; } && { 1637 test -z "$ac_c_werror_flag" || 1638 test ! -s conftest.err 1639 } && test -s conftest.$ac_objext; then : 1640 ac_retval=0 1641else 1642 $as_echo "$as_me: failed program was:" >&5 1643sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=1 1646fi 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650} # ac_fn_c_try_compile 1651 1652# ac_fn_c_try_cpp LINENO 1653# ---------------------- 1654# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1655ac_fn_c_try_cpp () 1656{ 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 if { { ac_try="$ac_cpp conftest.$ac_ext" 1659case "(($ac_try" in 1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1661 *) ac_try_echo=$ac_try;; 1662esac 1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1664$as_echo "$ac_try_echo"; } >&5 1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1666 ac_status=$? 1667 if test -s conftest.err; then 1668 grep -v '^ *+' conftest.err >conftest.er1 1669 cat conftest.er1 >&5 1670 mv -f conftest.er1 conftest.err 1671 fi 1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1673 test $ac_status = 0; } > conftest.i && { 1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1675 test ! -s conftest.err 1676 }; then : 1677 ac_retval=0 1678else 1679 $as_echo "$as_me: failed program was:" >&5 1680sed 's/^/| /' conftest.$ac_ext >&5 1681 1682 ac_retval=1 1683fi 1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685 as_fn_set_status $ac_retval 1686 1687} # ac_fn_c_try_cpp 1688 1689# ac_fn_c_try_link LINENO 1690# ----------------------- 1691# Try to link conftest.$ac_ext, and return whether this succeeded. 1692ac_fn_c_try_link () 1693{ 1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 rm -f conftest.$ac_objext conftest$ac_exeext 1696 if { { ac_try="$ac_link" 1697case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700esac 1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702$as_echo "$ac_try_echo"; } >&5 1703 (eval "$ac_link") 2>conftest.err 1704 ac_status=$? 1705 if test -s conftest.err; then 1706 grep -v '^ *+' conftest.err >conftest.er1 1707 cat conftest.er1 >&5 1708 mv -f conftest.er1 conftest.err 1709 fi 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; } && { 1712 test -z "$ac_c_werror_flag" || 1713 test ! -s conftest.err 1714 } && test -s conftest$ac_exeext && { 1715 test "$cross_compiling" = yes || 1716 test -x conftest$ac_exeext 1717 }; then : 1718 ac_retval=0 1719else 1720 $as_echo "$as_me: failed program was:" >&5 1721sed 's/^/| /' conftest.$ac_ext >&5 1722 1723 ac_retval=1 1724fi 1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1727 # interfere with the next link command; also delete a directory that is 1728 # left behind by Apple's compiler. We do this before executing the actions. 1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1731 as_fn_set_status $ac_retval 1732 1733} # ac_fn_c_try_link 1734 1735# ac_fn_c_try_run LINENO 1736# ---------------------- 1737# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1738# that executables *can* be run. 1739ac_fn_c_try_run () 1740{ 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 if { { ac_try="$ac_link" 1743case "(($ac_try" in 1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1745 *) ac_try_echo=$ac_try;; 1746esac 1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1748$as_echo "$ac_try_echo"; } >&5 1749 (eval "$ac_link") 2>&5 1750 ac_status=$? 1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1753 { { case "(($ac_try" in 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *) ac_try_echo=$ac_try;; 1756esac 1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758$as_echo "$ac_try_echo"; } >&5 1759 (eval "$ac_try") 2>&5 1760 ac_status=$? 1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1762 test $ac_status = 0; }; }; then : 1763 ac_retval=0 1764else 1765 $as_echo "$as_me: program exited with status $ac_status" >&5 1766 $as_echo "$as_me: failed program was:" >&5 1767sed 's/^/| /' conftest.$ac_ext >&5 1768 1769 ac_retval=$ac_status 1770fi 1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1773 as_fn_set_status $ac_retval 1774 1775} # ac_fn_c_try_run 1776 1777# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1778# ------------------------------------------------------- 1779# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1780# the include files in INCLUDES and setting the cache variable VAR 1781# accordingly. 1782ac_fn_c_check_header_mongrel () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 if eval \${$3+:} false; then : 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1787$as_echo_n "checking for $2... " >&6; } 1788if eval \${$3+:} false; then : 1789 $as_echo_n "(cached) " >&6 1790fi 1791eval ac_res=\$$3 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1793$as_echo "$ac_res" >&6; } 1794else 1795 # Is the header compilable? 1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1797$as_echo_n "checking $2 usability... " >&6; } 1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1799/* end confdefs.h. */ 1800$4 1801#include <$2> 1802_ACEOF 1803if ac_fn_c_try_compile "$LINENO"; then : 1804 ac_header_compiler=yes 1805else 1806 ac_header_compiler=no 1807fi 1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1810$as_echo "$ac_header_compiler" >&6; } 1811 1812# Is the header present? 1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1814$as_echo_n "checking $2 presence... " >&6; } 1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816/* end confdefs.h. */ 1817#include <$2> 1818_ACEOF 1819if ac_fn_c_try_cpp "$LINENO"; then : 1820 ac_header_preproc=yes 1821else 1822 ac_header_preproc=no 1823fi 1824rm -f conftest.err conftest.i conftest.$ac_ext 1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1826$as_echo "$ac_header_preproc" >&6; } 1827 1828# So? What about this header? 1829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1830 yes:no: ) 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1832$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1835 ;; 1836 no:yes:* ) 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1838$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1840$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1842$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1844$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1847 ;; 1848esac 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1850$as_echo_n "checking for $2... " >&6; } 1851if eval \${$3+:} false; then : 1852 $as_echo_n "(cached) " >&6 1853else 1854 eval "$3=\$ac_header_compiler" 1855fi 1856eval ac_res=\$$3 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858$as_echo "$ac_res" >&6; } 1859fi 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1861 1862} # ac_fn_c_check_header_mongrel 1863 1864# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1865# ------------------------------------------------------- 1866# Tests whether HEADER exists and can be compiled using the include files in 1867# INCLUDES, setting the cache variable VAR accordingly. 1868ac_fn_c_check_header_compile () 1869{ 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1872$as_echo_n "checking for $2... " >&6; } 1873if eval \${$3+:} false; then : 1874 $as_echo_n "(cached) " >&6 1875else 1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1877/* end confdefs.h. */ 1878$4 1879#include <$2> 1880_ACEOF 1881if ac_fn_c_try_compile "$LINENO"; then : 1882 eval "$3=yes" 1883else 1884 eval "$3=no" 1885fi 1886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1887fi 1888eval ac_res=\$$3 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1890$as_echo "$ac_res" >&6; } 1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1892 1893} # ac_fn_c_check_header_compile 1894 1895# ac_fn_c_check_func LINENO FUNC VAR 1896# ---------------------------------- 1897# Tests whether FUNC exists, setting the cache variable VAR accordingly 1898ac_fn_c_check_func () 1899{ 1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1902$as_echo_n "checking for $2... " >&6; } 1903if eval \${$3+:} false; then : 1904 $as_echo_n "(cached) " >&6 1905else 1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1907/* end confdefs.h. */ 1908/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1909 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1910#define $2 innocuous_$2 1911 1912/* System header to define __stub macros and hopefully few prototypes, 1913 which can conflict with char $2 (); below. 1914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1915 <limits.h> exists even on freestanding compilers. */ 1916 1917#ifdef __STDC__ 1918# include <limits.h> 1919#else 1920# include <assert.h> 1921#endif 1922 1923#undef $2 1924 1925/* Override any GCC internal prototype to avoid an error. 1926 Use char because int might match the return type of a GCC 1927 builtin and then its argument prototype would still apply. */ 1928#ifdef __cplusplus 1929extern "C" 1930#endif 1931char $2 (); 1932/* The GNU C library defines this for functions which it implements 1933 to always fail with ENOSYS. Some functions are actually named 1934 something starting with __ and the normal name is an alias. */ 1935#if defined __stub_$2 || defined __stub___$2 1936choke me 1937#endif 1938 1939int 1940main () 1941{ 1942return $2 (); 1943 ; 1944 return 0; 1945} 1946_ACEOF 1947if ac_fn_c_try_link "$LINENO"; then : 1948 eval "$3=yes" 1949else 1950 eval "$3=no" 1951fi 1952rm -f core conftest.err conftest.$ac_objext \ 1953 conftest$ac_exeext conftest.$ac_ext 1954fi 1955eval ac_res=\$$3 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1957$as_echo "$ac_res" >&6; } 1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1959 1960} # ac_fn_c_check_func 1961 1962# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1963# ------------------------------------------- 1964# Tests whether TYPE exists after having included INCLUDES, setting cache 1965# variable VAR accordingly. 1966ac_fn_c_check_type () 1967{ 1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1970$as_echo_n "checking for $2... " >&6; } 1971if eval \${$3+:} false; then : 1972 $as_echo_n "(cached) " >&6 1973else 1974 eval "$3=no" 1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1976/* end confdefs.h. */ 1977$4 1978int 1979main () 1980{ 1981if (sizeof ($2)) 1982 return 0; 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987if ac_fn_c_try_compile "$LINENO"; then : 1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1989/* end confdefs.h. */ 1990$4 1991int 1992main () 1993{ 1994if (sizeof (($2))) 1995 return 0; 1996 ; 1997 return 0; 1998} 1999_ACEOF 2000if ac_fn_c_try_compile "$LINENO"; then : 2001 2002else 2003 eval "$3=yes" 2004fi 2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2006fi 2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2008fi 2009eval ac_res=\$$3 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2011$as_echo "$ac_res" >&6; } 2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2013 2014} # ac_fn_c_check_type 2015 2016# ac_fn_c_find_uintX_t LINENO BITS VAR 2017# ------------------------------------ 2018# Finds an unsigned integer type with width BITS, setting cache variable VAR 2019# accordingly. 2020ac_fn_c_find_uintX_t () 2021{ 2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2024$as_echo_n "checking for uint$2_t... " >&6; } 2025if eval \${$3+:} false; then : 2026 $as_echo_n "(cached) " >&6 2027else 2028 eval "$3=no" 2029 # Order is important - never check a type that is potentially smaller 2030 # than half of the expected target width. 2031 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2032 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035$ac_includes_default 2036int 2037main () 2038{ 2039static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2040test_array [0] = 0; 2041return test_array [0]; 2042 2043 ; 2044 return 0; 2045} 2046_ACEOF 2047if ac_fn_c_try_compile "$LINENO"; then : 2048 case $ac_type in #( 2049 uint$2_t) : 2050 eval "$3=yes" ;; #( 2051 *) : 2052 eval "$3=\$ac_type" ;; 2053esac 2054fi 2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2056 if eval test \"x\$"$3"\" = x"no"; then : 2057 2058else 2059 break 2060fi 2061 done 2062fi 2063eval ac_res=\$$3 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2065$as_echo "$ac_res" >&6; } 2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2067 2068} # ac_fn_c_find_uintX_t 2069 2070# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2071# -------------------------------------------- 2072# Tries to find the compile-time value of EXPR in a program that includes 2073# INCLUDES, setting VAR accordingly. Returns whether the value could be 2074# computed 2075ac_fn_c_compute_int () 2076{ 2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2078 if test "$cross_compiling" = yes; then 2079 # Depending upon the size, compute the lo and hi bounds. 2080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2081/* end confdefs.h. */ 2082$4 2083int 2084main () 2085{ 2086static int test_array [1 - 2 * !(($2) >= 0)]; 2087test_array [0] = 0; 2088return test_array [0]; 2089 2090 ; 2091 return 0; 2092} 2093_ACEOF 2094if ac_fn_c_try_compile "$LINENO"; then : 2095 ac_lo=0 ac_mid=0 2096 while :; do 2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2098/* end confdefs.h. */ 2099$4 2100int 2101main () 2102{ 2103static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2104test_array [0] = 0; 2105return test_array [0]; 2106 2107 ; 2108 return 0; 2109} 2110_ACEOF 2111if ac_fn_c_try_compile "$LINENO"; then : 2112 ac_hi=$ac_mid; break 2113else 2114 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2115 if test $ac_lo -le $ac_mid; then 2116 ac_lo= ac_hi= 2117 break 2118 fi 2119 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2120fi 2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2122 done 2123else 2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2125/* end confdefs.h. */ 2126$4 2127int 2128main () 2129{ 2130static int test_array [1 - 2 * !(($2) < 0)]; 2131test_array [0] = 0; 2132return test_array [0]; 2133 2134 ; 2135 return 0; 2136} 2137_ACEOF 2138if ac_fn_c_try_compile "$LINENO"; then : 2139 ac_hi=-1 ac_mid=-1 2140 while :; do 2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2142/* end confdefs.h. */ 2143$4 2144int 2145main () 2146{ 2147static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2148test_array [0] = 0; 2149return test_array [0]; 2150 2151 ; 2152 return 0; 2153} 2154_ACEOF 2155if ac_fn_c_try_compile "$LINENO"; then : 2156 ac_lo=$ac_mid; break 2157else 2158 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2159 if test $ac_mid -le $ac_hi; then 2160 ac_lo= ac_hi= 2161 break 2162 fi 2163 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2164fi 2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2166 done 2167else 2168 ac_lo= ac_hi= 2169fi 2170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2171fi 2172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2173# Binary search between lo and hi bounds. 2174while test "x$ac_lo" != "x$ac_hi"; do 2175 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2177/* end confdefs.h. */ 2178$4 2179int 2180main () 2181{ 2182static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2183test_array [0] = 0; 2184return test_array [0]; 2185 2186 ; 2187 return 0; 2188} 2189_ACEOF 2190if ac_fn_c_try_compile "$LINENO"; then : 2191 ac_hi=$ac_mid 2192else 2193 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2194fi 2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2196done 2197case $ac_lo in #(( 2198?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2199'') ac_retval=1 ;; 2200esac 2201 else 2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2203/* end confdefs.h. */ 2204$4 2205static long int longval () { return $2; } 2206static unsigned long int ulongval () { return $2; } 2207#include <stdio.h> 2208#include <stdlib.h> 2209int 2210main () 2211{ 2212 2213 FILE *f = fopen ("conftest.val", "w"); 2214 if (! f) 2215 return 1; 2216 if (($2) < 0) 2217 { 2218 long int i = longval (); 2219 if (i != ($2)) 2220 return 1; 2221 fprintf (f, "%ld", i); 2222 } 2223 else 2224 { 2225 unsigned long int i = ulongval (); 2226 if (i != ($2)) 2227 return 1; 2228 fprintf (f, "%lu", i); 2229 } 2230 /* Do not output a trailing newline, as this causes \r\n confusion 2231 on some platforms. */ 2232 return ferror (f) || fclose (f) != 0; 2233 2234 ; 2235 return 0; 2236} 2237_ACEOF 2238if ac_fn_c_try_run "$LINENO"; then : 2239 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2240else 2241 ac_retval=1 2242fi 2243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2244 conftest.$ac_objext conftest.beam conftest.$ac_ext 2245rm -f conftest.val 2246 2247 fi 2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2249 as_fn_set_status $ac_retval 2250 2251} # ac_fn_c_compute_int 2252cat >auto/config.log <<_ACEOF 2253This file contains any messages produced by compilers while 2254running configure, to aid debugging if configure makes a mistake. 2255 2256It was created by $as_me, which was 2257generated by GNU Autoconf 2.69. Invocation command line was 2258 2259 $ $0 $@ 2260 2261_ACEOF 2262exec 5>>auto/config.log 2263{ 2264cat <<_ASUNAME 2265## --------- ## 2266## Platform. ## 2267## --------- ## 2268 2269hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2270uname -m = `(uname -m) 2>/dev/null || echo unknown` 2271uname -r = `(uname -r) 2>/dev/null || echo unknown` 2272uname -s = `(uname -s) 2>/dev/null || echo unknown` 2273uname -v = `(uname -v) 2>/dev/null || echo unknown` 2274 2275/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2276/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2277 2278/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2279/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2280/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2281/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2282/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2283/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2284/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2285 2286_ASUNAME 2287 2288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2289for as_dir in $PATH 2290do 2291 IFS=$as_save_IFS 2292 test -z "$as_dir" && as_dir=. 2293 $as_echo "PATH: $as_dir" 2294 done 2295IFS=$as_save_IFS 2296 2297} >&5 2298 2299cat >&5 <<_ACEOF 2300 2301 2302## ----------- ## 2303## Core tests. ## 2304## ----------- ## 2305 2306_ACEOF 2307 2308 2309# Keep a trace of the command line. 2310# Strip out --no-create and --no-recursion so they do not pile up. 2311# Strip out --silent because we don't want to record it for future runs. 2312# Also quote any args containing shell meta-characters. 2313# Make two passes to allow for proper duplicate-argument suppression. 2314ac_configure_args= 2315ac_configure_args0= 2316ac_configure_args1= 2317ac_must_keep_next=false 2318for ac_pass in 1 2 2319do 2320 for ac_arg 2321 do 2322 case $ac_arg in 2323 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2325 | -silent | --silent | --silen | --sile | --sil) 2326 continue ;; 2327 *\'*) 2328 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2329 esac 2330 case $ac_pass in 2331 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2332 2) 2333 as_fn_append ac_configure_args1 " '$ac_arg'" 2334 if test $ac_must_keep_next = true; then 2335 ac_must_keep_next=false # Got value, back to normal. 2336 else 2337 case $ac_arg in 2338 *=* | --config-cache | -C | -disable-* | --disable-* \ 2339 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2340 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2341 | -with-* | --with-* | -without-* | --without-* | --x) 2342 case "$ac_configure_args0 " in 2343 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2344 esac 2345 ;; 2346 -* ) ac_must_keep_next=true ;; 2347 esac 2348 fi 2349 as_fn_append ac_configure_args " '$ac_arg'" 2350 ;; 2351 esac 2352 done 2353done 2354{ ac_configure_args0=; unset ac_configure_args0;} 2355{ ac_configure_args1=; unset ac_configure_args1;} 2356 2357# When interrupted or exit'd, cleanup temporary files, and complete 2358# config.log. We remove comments because anyway the quotes in there 2359# would cause problems or look ugly. 2360# WARNING: Use '\'' to represent an apostrophe within the trap. 2361# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2362trap 'exit_status=$? 2363 # Save into config.log some information that might help in debugging. 2364 { 2365 echo 2366 2367 $as_echo "## ---------------- ## 2368## Cache variables. ## 2369## ---------------- ##" 2370 echo 2371 # The following way of writing the cache mishandles newlines in values, 2372( 2373 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2374 eval ac_val=\$$ac_var 2375 case $ac_val in #( 2376 *${as_nl}*) 2377 case $ac_var in #( 2378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2379$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2380 esac 2381 case $ac_var in #( 2382 _ | IFS | as_nl) ;; #( 2383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2384 *) { eval $ac_var=; unset $ac_var;} ;; 2385 esac ;; 2386 esac 2387 done 2388 (set) 2>&1 | 2389 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2390 *${as_nl}ac_space=\ *) 2391 sed -n \ 2392 "s/'\''/'\''\\\\'\'''\''/g; 2393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2394 ;; #( 2395 *) 2396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2397 ;; 2398 esac | 2399 sort 2400) 2401 echo 2402 2403 $as_echo "## ----------------- ## 2404## Output variables. ## 2405## ----------------- ##" 2406 echo 2407 for ac_var in $ac_subst_vars 2408 do 2409 eval ac_val=\$$ac_var 2410 case $ac_val in 2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2412 esac 2413 $as_echo "$ac_var='\''$ac_val'\''" 2414 done | sort 2415 echo 2416 2417 if test -n "$ac_subst_files"; then 2418 $as_echo "## ------------------- ## 2419## File substitutions. ## 2420## ------------------- ##" 2421 echo 2422 for ac_var in $ac_subst_files 2423 do 2424 eval ac_val=\$$ac_var 2425 case $ac_val in 2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2427 esac 2428 $as_echo "$ac_var='\''$ac_val'\''" 2429 done | sort 2430 echo 2431 fi 2432 2433 if test -s confdefs.h; then 2434 $as_echo "## ----------- ## 2435## confdefs.h. ## 2436## ----------- ##" 2437 echo 2438 cat confdefs.h 2439 echo 2440 fi 2441 test "$ac_signal" != 0 && 2442 $as_echo "$as_me: caught signal $ac_signal" 2443 $as_echo "$as_me: exit $exit_status" 2444 } >&5 2445 rm -f core *.core core.conftest.* && 2446 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2447 exit $exit_status 2448' 0 2449for ac_signal in 1 2 13 15; do 2450 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2451done 2452ac_signal=0 2453 2454# confdefs.h avoids OS command line length limits that DEFS can exceed. 2455rm -f -r conftest* confdefs.h 2456 2457$as_echo "/* confdefs.h */" > confdefs.h 2458 2459# Predefined preprocessor variables. 2460 2461cat >>confdefs.h <<_ACEOF 2462#define PACKAGE_NAME "$PACKAGE_NAME" 2463_ACEOF 2464 2465cat >>confdefs.h <<_ACEOF 2466#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2467_ACEOF 2468 2469cat >>confdefs.h <<_ACEOF 2470#define PACKAGE_VERSION "$PACKAGE_VERSION" 2471_ACEOF 2472 2473cat >>confdefs.h <<_ACEOF 2474#define PACKAGE_STRING "$PACKAGE_STRING" 2475_ACEOF 2476 2477cat >>confdefs.h <<_ACEOF 2478#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2479_ACEOF 2480 2481cat >>confdefs.h <<_ACEOF 2482#define PACKAGE_URL "$PACKAGE_URL" 2483_ACEOF 2484 2485 2486# Let the site file select an alternate cache file if it wants to. 2487# Prefer an explicitly selected file to automatically selected ones. 2488ac_site_file1=NONE 2489ac_site_file2=NONE 2490if test -n "$CONFIG_SITE"; then 2491 # We do not want a PATH search for config.site. 2492 case $CONFIG_SITE in #(( 2493 -*) ac_site_file1=./$CONFIG_SITE;; 2494 */*) ac_site_file1=$CONFIG_SITE;; 2495 *) ac_site_file1=./$CONFIG_SITE;; 2496 esac 2497elif test "x$prefix" != xNONE; then 2498 ac_site_file1=$prefix/share/config.site 2499 ac_site_file2=$prefix/etc/config.site 2500else 2501 ac_site_file1=$ac_default_prefix/share/config.site 2502 ac_site_file2=$ac_default_prefix/etc/config.site 2503fi 2504for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2505do 2506 test "x$ac_site_file" = xNONE && continue 2507 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2509$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2510 sed 's/^/| /' "$ac_site_file" >&5 2511 . "$ac_site_file" \ 2512 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2514as_fn_error $? "failed to load site script $ac_site_file 2515See \`config.log' for more details" "$LINENO" 5; } 2516 fi 2517done 2518 2519if test -r "$cache_file"; then 2520 # Some versions of bash will fail to source /dev/null (special files 2521 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2522 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2524$as_echo "$as_me: loading cache $cache_file" >&6;} 2525 case $cache_file in 2526 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2527 *) . "./$cache_file";; 2528 esac 2529 fi 2530else 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2532$as_echo "$as_me: creating cache $cache_file" >&6;} 2533 >$cache_file 2534fi 2535 2536# Check that the precious variables saved in the cache have kept the same 2537# value. 2538ac_cache_corrupted=false 2539for ac_var in $ac_precious_vars; do 2540 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2541 eval ac_new_set=\$ac_env_${ac_var}_set 2542 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2543 eval ac_new_val=\$ac_env_${ac_var}_value 2544 case $ac_old_set,$ac_new_set in 2545 set,) 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2547$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2548 ac_cache_corrupted=: ;; 2549 ,set) 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2551$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2552 ac_cache_corrupted=: ;; 2553 ,);; 2554 *) 2555 if test "x$ac_old_val" != "x$ac_new_val"; then 2556 # differences in whitespace do not lead to failure. 2557 ac_old_val_w=`echo x $ac_old_val` 2558 ac_new_val_w=`echo x $ac_new_val` 2559 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2561$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2562 ac_cache_corrupted=: 2563 else 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2565$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2566 eval $ac_var=\$ac_old_val 2567 fi 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2569$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2571$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2572 fi;; 2573 esac 2574 # Pass precious variables to config.status. 2575 if test "$ac_new_set" = set; then 2576 case $ac_new_val in 2577 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2578 *) ac_arg=$ac_var=$ac_new_val ;; 2579 esac 2580 case " $ac_configure_args " in 2581 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2582 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2583 esac 2584 fi 2585done 2586if $ac_cache_corrupted; then 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2590$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2591 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2592fi 2593## -------------------- ## 2594## Main body of script. ## 2595## -------------------- ## 2596 2597ac_ext=c 2598ac_cpp='$CPP $CPPFLAGS' 2599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2601ac_compiler_gnu=$ac_cv_c_compiler_gnu 2602 2603 2604ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2605 2606 2607$as_echo "#define UNIX 1" >>confdefs.h 2608 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2610$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2611set x ${MAKE-make} 2612ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2613if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2614 $as_echo_n "(cached) " >&6 2615else 2616 cat >conftest.make <<\_ACEOF 2617SHELL = /bin/sh 2618all: 2619 @echo '@@@%%%=$(MAKE)=@@@%%%' 2620_ACEOF 2621# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2622case `${MAKE-make} -f conftest.make 2>/dev/null` in 2623 *@@@%%%=?*=@@@%%%*) 2624 eval ac_cv_prog_make_${ac_make}_set=yes;; 2625 *) 2626 eval ac_cv_prog_make_${ac_make}_set=no;; 2627esac 2628rm -f conftest.make 2629fi 2630if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2632$as_echo "yes" >&6; } 2633 SET_MAKE= 2634else 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2636$as_echo "no" >&6; } 2637 SET_MAKE="MAKE=${MAKE-make}" 2638fi 2639 2640 2641ac_ext=c 2642ac_cpp='$CPP $CPPFLAGS' 2643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2645ac_compiler_gnu=$ac_cv_c_compiler_gnu 2646if test -n "$ac_tool_prefix"; then 2647 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2648set dummy ${ac_tool_prefix}gcc; ac_word=$2 2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2650$as_echo_n "checking for $ac_word... " >&6; } 2651if ${ac_cv_prog_CC+:} false; then : 2652 $as_echo_n "(cached) " >&6 2653else 2654 if test -n "$CC"; then 2655 ac_cv_prog_CC="$CC" # Let the user override the test. 2656else 2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2658for as_dir in $PATH 2659do 2660 IFS=$as_save_IFS 2661 test -z "$as_dir" && as_dir=. 2662 for ac_exec_ext in '' $ac_executable_extensions; do 2663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2664 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2666 break 2 2667 fi 2668done 2669 done 2670IFS=$as_save_IFS 2671 2672fi 2673fi 2674CC=$ac_cv_prog_CC 2675if test -n "$CC"; then 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2677$as_echo "$CC" >&6; } 2678else 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2680$as_echo "no" >&6; } 2681fi 2682 2683 2684fi 2685if test -z "$ac_cv_prog_CC"; then 2686 ac_ct_CC=$CC 2687 # Extract the first word of "gcc", so it can be a program name with args. 2688set dummy gcc; ac_word=$2 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2690$as_echo_n "checking for $ac_word... " >&6; } 2691if ${ac_cv_prog_ac_ct_CC+:} false; then : 2692 $as_echo_n "(cached) " >&6 2693else 2694 if test -n "$ac_ct_CC"; then 2695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2696else 2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2698for as_dir in $PATH 2699do 2700 IFS=$as_save_IFS 2701 test -z "$as_dir" && as_dir=. 2702 for ac_exec_ext in '' $ac_executable_extensions; do 2703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2704 ac_cv_prog_ac_ct_CC="gcc" 2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2706 break 2 2707 fi 2708done 2709 done 2710IFS=$as_save_IFS 2711 2712fi 2713fi 2714ac_ct_CC=$ac_cv_prog_ac_ct_CC 2715if test -n "$ac_ct_CC"; then 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2717$as_echo "$ac_ct_CC" >&6; } 2718else 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2720$as_echo "no" >&6; } 2721fi 2722 2723 if test "x$ac_ct_CC" = x; then 2724 CC="" 2725 else 2726 case $cross_compiling:$ac_tool_warned in 2727yes:) 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2730ac_tool_warned=yes ;; 2731esac 2732 CC=$ac_ct_CC 2733 fi 2734else 2735 CC="$ac_cv_prog_CC" 2736fi 2737 2738if test -z "$CC"; then 2739 if test -n "$ac_tool_prefix"; then 2740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2741set dummy ${ac_tool_prefix}cc; ac_word=$2 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2743$as_echo_n "checking for $ac_word... " >&6; } 2744if ${ac_cv_prog_CC+:} false; then : 2745 $as_echo_n "(cached) " >&6 2746else 2747 if test -n "$CC"; then 2748 ac_cv_prog_CC="$CC" # Let the user override the test. 2749else 2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2751for as_dir in $PATH 2752do 2753 IFS=$as_save_IFS 2754 test -z "$as_dir" && as_dir=. 2755 for ac_exec_ext in '' $ac_executable_extensions; do 2756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2757 ac_cv_prog_CC="${ac_tool_prefix}cc" 2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2759 break 2 2760 fi 2761done 2762 done 2763IFS=$as_save_IFS 2764 2765fi 2766fi 2767CC=$ac_cv_prog_CC 2768if test -n "$CC"; then 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2770$as_echo "$CC" >&6; } 2771else 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2773$as_echo "no" >&6; } 2774fi 2775 2776 2777 fi 2778fi 2779if test -z "$CC"; then 2780 # Extract the first word of "cc", so it can be a program name with args. 2781set dummy cc; ac_word=$2 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2783$as_echo_n "checking for $ac_word... " >&6; } 2784if ${ac_cv_prog_CC+:} false; then : 2785 $as_echo_n "(cached) " >&6 2786else 2787 if test -n "$CC"; then 2788 ac_cv_prog_CC="$CC" # Let the user override the test. 2789else 2790 ac_prog_rejected=no 2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2792for as_dir in $PATH 2793do 2794 IFS=$as_save_IFS 2795 test -z "$as_dir" && as_dir=. 2796 for ac_exec_ext in '' $ac_executable_extensions; do 2797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2799 ac_prog_rejected=yes 2800 continue 2801 fi 2802 ac_cv_prog_CC="cc" 2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2804 break 2 2805 fi 2806done 2807 done 2808IFS=$as_save_IFS 2809 2810if test $ac_prog_rejected = yes; then 2811 # We found a bogon in the path, so make sure we never use it. 2812 set dummy $ac_cv_prog_CC 2813 shift 2814 if test $# != 0; then 2815 # We chose a different compiler from the bogus one. 2816 # However, it has the same basename, so the bogon will be chosen 2817 # first if we set CC to just the basename; use the full file name. 2818 shift 2819 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2820 fi 2821fi 2822fi 2823fi 2824CC=$ac_cv_prog_CC 2825if test -n "$CC"; then 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2827$as_echo "$CC" >&6; } 2828else 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2830$as_echo "no" >&6; } 2831fi 2832 2833 2834fi 2835if test -z "$CC"; then 2836 if test -n "$ac_tool_prefix"; then 2837 for ac_prog in cl.exe 2838 do 2839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2840set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2842$as_echo_n "checking for $ac_word... " >&6; } 2843if ${ac_cv_prog_CC+:} false; then : 2844 $as_echo_n "(cached) " >&6 2845else 2846 if test -n "$CC"; then 2847 ac_cv_prog_CC="$CC" # Let the user override the test. 2848else 2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2850for as_dir in $PATH 2851do 2852 IFS=$as_save_IFS 2853 test -z "$as_dir" && as_dir=. 2854 for ac_exec_ext in '' $ac_executable_extensions; do 2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2858 break 2 2859 fi 2860done 2861 done 2862IFS=$as_save_IFS 2863 2864fi 2865fi 2866CC=$ac_cv_prog_CC 2867if test -n "$CC"; then 2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2869$as_echo "$CC" >&6; } 2870else 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2872$as_echo "no" >&6; } 2873fi 2874 2875 2876 test -n "$CC" && break 2877 done 2878fi 2879if test -z "$CC"; then 2880 ac_ct_CC=$CC 2881 for ac_prog in cl.exe 2882do 2883 # Extract the first word of "$ac_prog", so it can be a program name with args. 2884set dummy $ac_prog; ac_word=$2 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2886$as_echo_n "checking for $ac_word... " >&6; } 2887if ${ac_cv_prog_ac_ct_CC+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 if test -n "$ac_ct_CC"; then 2891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2892else 2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2894for as_dir in $PATH 2895do 2896 IFS=$as_save_IFS 2897 test -z "$as_dir" && as_dir=. 2898 for ac_exec_ext in '' $ac_executable_extensions; do 2899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2900 ac_cv_prog_ac_ct_CC="$ac_prog" 2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2902 break 2 2903 fi 2904done 2905 done 2906IFS=$as_save_IFS 2907 2908fi 2909fi 2910ac_ct_CC=$ac_cv_prog_ac_ct_CC 2911if test -n "$ac_ct_CC"; then 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2913$as_echo "$ac_ct_CC" >&6; } 2914else 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2916$as_echo "no" >&6; } 2917fi 2918 2919 2920 test -n "$ac_ct_CC" && break 2921done 2922 2923 if test "x$ac_ct_CC" = x; then 2924 CC="" 2925 else 2926 case $cross_compiling:$ac_tool_warned in 2927yes:) 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2930ac_tool_warned=yes ;; 2931esac 2932 CC=$ac_ct_CC 2933 fi 2934fi 2935 2936fi 2937 2938 2939test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2941as_fn_error $? "no acceptable C compiler found in \$PATH 2942See \`config.log' for more details" "$LINENO" 5; } 2943 2944# Provide some information about the compiler. 2945$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2946set X $ac_compile 2947ac_compiler=$2 2948for ac_option in --version -v -V -qversion; do 2949 { { ac_try="$ac_compiler $ac_option >&5" 2950case "(($ac_try" in 2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2952 *) ac_try_echo=$ac_try;; 2953esac 2954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2955$as_echo "$ac_try_echo"; } >&5 2956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2957 ac_status=$? 2958 if test -s conftest.err; then 2959 sed '10a\ 2960... rest of stderr output deleted ... 2961 10q' conftest.err >conftest.er1 2962 cat conftest.er1 >&5 2963 fi 2964 rm -f conftest.er1 conftest.err 2965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2966 test $ac_status = 0; } 2967done 2968 2969cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2970/* end confdefs.h. */ 2971 2972int 2973main () 2974{ 2975 2976 ; 2977 return 0; 2978} 2979_ACEOF 2980ac_clean_files_save=$ac_clean_files 2981ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2982# Try to create an executable without -o first, disregard a.out. 2983# It will help us diagnose broken compilers, and finding out an intuition 2984# of exeext. 2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2986$as_echo_n "checking whether the C compiler works... " >&6; } 2987ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2988 2989# The possible output files: 2990ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2991 2992ac_rmfiles= 2993for ac_file in $ac_files 2994do 2995 case $ac_file in 2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2997 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2998 esac 2999done 3000rm -f $ac_rmfiles 3001 3002if { { ac_try="$ac_link_default" 3003case "(($ac_try" in 3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3005 *) ac_try_echo=$ac_try;; 3006esac 3007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3008$as_echo "$ac_try_echo"; } >&5 3009 (eval "$ac_link_default") 2>&5 3010 ac_status=$? 3011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3012 test $ac_status = 0; }; then : 3013 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3014# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3015# in a Makefile. We should not override ac_cv_exeext if it was cached, 3016# so that the user can short-circuit this test for compilers unknown to 3017# Autoconf. 3018for ac_file in $ac_files '' 3019do 3020 test -f "$ac_file" || continue 3021 case $ac_file in 3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3023 ;; 3024 [ab].out ) 3025 # We found the default executable, but exeext='' is most 3026 # certainly right. 3027 break;; 3028 *.* ) 3029 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3030 then :; else 3031 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3032 fi 3033 # We set ac_cv_exeext here because the later test for it is not 3034 # safe: cross compilers may not add the suffix if given an `-o' 3035 # argument, so we may need to know it at that point already. 3036 # Even if this section looks crufty: it has the advantage of 3037 # actually working. 3038 break;; 3039 * ) 3040 break;; 3041 esac 3042done 3043test "$ac_cv_exeext" = no && ac_cv_exeext= 3044 3045else 3046 ac_file='' 3047fi 3048if test -z "$ac_file"; then : 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3050$as_echo "no" >&6; } 3051$as_echo "$as_me: failed program was:" >&5 3052sed 's/^/| /' conftest.$ac_ext >&5 3053 3054{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3056as_fn_error 77 "C compiler cannot create executables 3057See \`config.log' for more details" "$LINENO" 5; } 3058else 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3060$as_echo "yes" >&6; } 3061fi 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3063$as_echo_n "checking for C compiler default output file name... " >&6; } 3064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3065$as_echo "$ac_file" >&6; } 3066ac_exeext=$ac_cv_exeext 3067 3068rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3069ac_clean_files=$ac_clean_files_save 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3071$as_echo_n "checking for suffix of executables... " >&6; } 3072if { { ac_try="$ac_link" 3073case "(($ac_try" in 3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3075 *) ac_try_echo=$ac_try;; 3076esac 3077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3078$as_echo "$ac_try_echo"; } >&5 3079 (eval "$ac_link") 2>&5 3080 ac_status=$? 3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3082 test $ac_status = 0; }; then : 3083 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3084# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3085# work properly (i.e., refer to `conftest.exe'), while it won't with 3086# `rm'. 3087for ac_file in conftest.exe conftest conftest.*; do 3088 test -f "$ac_file" || continue 3089 case $ac_file in 3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3091 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3092 break;; 3093 * ) break;; 3094 esac 3095done 3096else 3097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3099as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3100See \`config.log' for more details" "$LINENO" 5; } 3101fi 3102rm -f conftest conftest$ac_cv_exeext 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3104$as_echo "$ac_cv_exeext" >&6; } 3105 3106rm -f conftest.$ac_ext 3107EXEEXT=$ac_cv_exeext 3108ac_exeext=$EXEEXT 3109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3110/* end confdefs.h. */ 3111#include <stdio.h> 3112int 3113main () 3114{ 3115FILE *f = fopen ("conftest.out", "w"); 3116 return ferror (f) || fclose (f) != 0; 3117 3118 ; 3119 return 0; 3120} 3121_ACEOF 3122ac_clean_files="$ac_clean_files conftest.out" 3123# Check that the compiler produces executables we can run. If not, either 3124# the compiler is broken, or we cross compile. 3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3126$as_echo_n "checking whether we are cross compiling... " >&6; } 3127if test "$cross_compiling" != yes; then 3128 { { ac_try="$ac_link" 3129case "(($ac_try" in 3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3131 *) ac_try_echo=$ac_try;; 3132esac 3133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3134$as_echo "$ac_try_echo"; } >&5 3135 (eval "$ac_link") 2>&5 3136 ac_status=$? 3137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3138 test $ac_status = 0; } 3139 if { ac_try='./conftest$ac_cv_exeext' 3140 { { case "(($ac_try" in 3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3142 *) ac_try_echo=$ac_try;; 3143esac 3144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3145$as_echo "$ac_try_echo"; } >&5 3146 (eval "$ac_try") 2>&5 3147 ac_status=$? 3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3149 test $ac_status = 0; }; }; then 3150 cross_compiling=no 3151 else 3152 if test "$cross_compiling" = maybe; then 3153 cross_compiling=yes 3154 else 3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3157as_fn_error $? "cannot run C compiled programs. 3158If you meant to cross compile, use \`--host'. 3159See \`config.log' for more details" "$LINENO" 5; } 3160 fi 3161 fi 3162fi 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3164$as_echo "$cross_compiling" >&6; } 3165 3166rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3167ac_clean_files=$ac_clean_files_save 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3169$as_echo_n "checking for suffix of object files... " >&6; } 3170if ${ac_cv_objext+:} false; then : 3171 $as_echo_n "(cached) " >&6 3172else 3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3174/* end confdefs.h. */ 3175 3176int 3177main () 3178{ 3179 3180 ; 3181 return 0; 3182} 3183_ACEOF 3184rm -f conftest.o conftest.obj 3185if { { ac_try="$ac_compile" 3186case "(($ac_try" in 3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3188 *) ac_try_echo=$ac_try;; 3189esac 3190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3191$as_echo "$ac_try_echo"; } >&5 3192 (eval "$ac_compile") 2>&5 3193 ac_status=$? 3194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3195 test $ac_status = 0; }; then : 3196 for ac_file in conftest.o conftest.obj conftest.*; do 3197 test -f "$ac_file" || continue; 3198 case $ac_file in 3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3201 break;; 3202 esac 3203done 3204else 3205 $as_echo "$as_me: failed program was:" >&5 3206sed 's/^/| /' conftest.$ac_ext >&5 3207 3208{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3210as_fn_error $? "cannot compute suffix of object files: cannot compile 3211See \`config.log' for more details" "$LINENO" 5; } 3212fi 3213rm -f conftest.$ac_cv_objext conftest.$ac_ext 3214fi 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3216$as_echo "$ac_cv_objext" >&6; } 3217OBJEXT=$ac_cv_objext 3218ac_objext=$OBJEXT 3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3220$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3221if ${ac_cv_c_compiler_gnu+:} false; then : 3222 $as_echo_n "(cached) " >&6 3223else 3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3225/* end confdefs.h. */ 3226 3227int 3228main () 3229{ 3230#ifndef __GNUC__ 3231 choke me 3232#endif 3233 3234 ; 3235 return 0; 3236} 3237_ACEOF 3238if ac_fn_c_try_compile "$LINENO"; then : 3239 ac_compiler_gnu=yes 3240else 3241 ac_compiler_gnu=no 3242fi 3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3244ac_cv_c_compiler_gnu=$ac_compiler_gnu 3245 3246fi 3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3248$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3249if test $ac_compiler_gnu = yes; then 3250 GCC=yes 3251else 3252 GCC= 3253fi 3254ac_test_CFLAGS=${CFLAGS+set} 3255ac_save_CFLAGS=$CFLAGS 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3257$as_echo_n "checking whether $CC accepts -g... " >&6; } 3258if ${ac_cv_prog_cc_g+:} false; then : 3259 $as_echo_n "(cached) " >&6 3260else 3261 ac_save_c_werror_flag=$ac_c_werror_flag 3262 ac_c_werror_flag=yes 3263 ac_cv_prog_cc_g=no 3264 CFLAGS="-g" 3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3266/* end confdefs.h. */ 3267 3268int 3269main () 3270{ 3271 3272 ; 3273 return 0; 3274} 3275_ACEOF 3276if ac_fn_c_try_compile "$LINENO"; then : 3277 ac_cv_prog_cc_g=yes 3278else 3279 CFLAGS="" 3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3281/* end confdefs.h. */ 3282 3283int 3284main () 3285{ 3286 3287 ; 3288 return 0; 3289} 3290_ACEOF 3291if ac_fn_c_try_compile "$LINENO"; then : 3292 3293else 3294 ac_c_werror_flag=$ac_save_c_werror_flag 3295 CFLAGS="-g" 3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3297/* end confdefs.h. */ 3298 3299int 3300main () 3301{ 3302 3303 ; 3304 return 0; 3305} 3306_ACEOF 3307if ac_fn_c_try_compile "$LINENO"; then : 3308 ac_cv_prog_cc_g=yes 3309fi 3310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3311fi 3312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3313fi 3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3315 ac_c_werror_flag=$ac_save_c_werror_flag 3316fi 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3318$as_echo "$ac_cv_prog_cc_g" >&6; } 3319if test "$ac_test_CFLAGS" = set; then 3320 CFLAGS=$ac_save_CFLAGS 3321elif test $ac_cv_prog_cc_g = yes; then 3322 if test "$GCC" = yes; then 3323 CFLAGS="-g -O2" 3324 else 3325 CFLAGS="-g" 3326 fi 3327else 3328 if test "$GCC" = yes; then 3329 CFLAGS="-O2" 3330 else 3331 CFLAGS= 3332 fi 3333fi 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3335$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3336if ${ac_cv_prog_cc_c89+:} false; then : 3337 $as_echo_n "(cached) " >&6 3338else 3339 ac_cv_prog_cc_c89=no 3340ac_save_CC=$CC 3341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3342/* end confdefs.h. */ 3343#include <stdarg.h> 3344#include <stdio.h> 3345struct stat; 3346/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3347struct buf { int x; }; 3348FILE * (*rcsopen) (struct buf *, struct stat *, int); 3349static char *e (p, i) 3350 char **p; 3351 int i; 3352{ 3353 return p[i]; 3354} 3355static char *f (char * (*g) (char **, int), char **p, ...) 3356{ 3357 char *s; 3358 va_list v; 3359 va_start (v,p); 3360 s = g (p, va_arg (v,int)); 3361 va_end (v); 3362 return s; 3363} 3364 3365/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3366 function prototypes and stuff, but not '\xHH' hex character constants. 3367 These don't provoke an error unfortunately, instead are silently treated 3368 as 'x'. The following induces an error, until -std is added to get 3369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3370 array size at least. It's necessary to write '\x00'==0 to get something 3371 that's true only with -std. */ 3372int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3373 3374/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3375 inside strings and character constants. */ 3376#define FOO(x) 'x' 3377int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3378 3379int test (int i, double x); 3380struct s1 {int (*f) (int a);}; 3381struct s2 {int (*f) (double a);}; 3382int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3383int argc; 3384char **argv; 3385int 3386main () 3387{ 3388return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3389 ; 3390 return 0; 3391} 3392_ACEOF 3393for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3394 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3395do 3396 CC="$ac_save_CC $ac_arg" 3397 if ac_fn_c_try_compile "$LINENO"; then : 3398 ac_cv_prog_cc_c89=$ac_arg 3399fi 3400rm -f core conftest.err conftest.$ac_objext 3401 test "x$ac_cv_prog_cc_c89" != "xno" && break 3402done 3403rm -f conftest.$ac_ext 3404CC=$ac_save_CC 3405 3406fi 3407# AC_CACHE_VAL 3408case "x$ac_cv_prog_cc_c89" in 3409 x) 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3411$as_echo "none needed" >&6; } ;; 3412 xno) 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3414$as_echo "unsupported" >&6; } ;; 3415 *) 3416 CC="$CC $ac_cv_prog_cc_c89" 3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3418$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3419esac 3420if test "x$ac_cv_prog_cc_c89" != xno; then : 3421 3422fi 3423 3424ac_ext=c 3425ac_cpp='$CPP $CPPFLAGS' 3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3428ac_compiler_gnu=$ac_cv_c_compiler_gnu 3429 ac_ext=c 3430ac_cpp='$CPP $CPPFLAGS' 3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3433ac_compiler_gnu=$ac_cv_c_compiler_gnu 3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3435$as_echo_n "checking how to run the C preprocessor... " >&6; } 3436# On Suns, sometimes $CPP names a directory. 3437if test -n "$CPP" && test -d "$CPP"; then 3438 CPP= 3439fi 3440if test -z "$CPP"; then 3441 if ${ac_cv_prog_CPP+:} false; then : 3442 $as_echo_n "(cached) " >&6 3443else 3444 # Double quotes because CPP needs to be expanded 3445 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3446 do 3447 ac_preproc_ok=false 3448for ac_c_preproc_warn_flag in '' yes 3449do 3450 # Use a header file that comes with gcc, so configuring glibc 3451 # with a fresh cross-compiler works. 3452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3453 # <limits.h> exists even on freestanding compilers. 3454 # On the NeXT, cc -E runs the code through the compiler's parser, 3455 # not just through cpp. "Syntax error" is here to catch this case. 3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3457/* end confdefs.h. */ 3458#ifdef __STDC__ 3459# include <limits.h> 3460#else 3461# include <assert.h> 3462#endif 3463 Syntax error 3464_ACEOF 3465if ac_fn_c_try_cpp "$LINENO"; then : 3466 3467else 3468 # Broken: fails on valid input. 3469continue 3470fi 3471rm -f conftest.err conftest.i conftest.$ac_ext 3472 3473 # OK, works on sane cases. Now check whether nonexistent headers 3474 # can be detected and how. 3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3476/* end confdefs.h. */ 3477#include <ac_nonexistent.h> 3478_ACEOF 3479if ac_fn_c_try_cpp "$LINENO"; then : 3480 # Broken: success on invalid input. 3481continue 3482else 3483 # Passes both tests. 3484ac_preproc_ok=: 3485break 3486fi 3487rm -f conftest.err conftest.i conftest.$ac_ext 3488 3489done 3490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3491rm -f conftest.i conftest.err conftest.$ac_ext 3492if $ac_preproc_ok; then : 3493 break 3494fi 3495 3496 done 3497 ac_cv_prog_CPP=$CPP 3498 3499fi 3500 CPP=$ac_cv_prog_CPP 3501else 3502 ac_cv_prog_CPP=$CPP 3503fi 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3505$as_echo "$CPP" >&6; } 3506ac_preproc_ok=false 3507for ac_c_preproc_warn_flag in '' yes 3508do 3509 # Use a header file that comes with gcc, so configuring glibc 3510 # with a fresh cross-compiler works. 3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3512 # <limits.h> exists even on freestanding compilers. 3513 # On the NeXT, cc -E runs the code through the compiler's parser, 3514 # not just through cpp. "Syntax error" is here to catch this case. 3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3516/* end confdefs.h. */ 3517#ifdef __STDC__ 3518# include <limits.h> 3519#else 3520# include <assert.h> 3521#endif 3522 Syntax error 3523_ACEOF 3524if ac_fn_c_try_cpp "$LINENO"; then : 3525 3526else 3527 # Broken: fails on valid input. 3528continue 3529fi 3530rm -f conftest.err conftest.i conftest.$ac_ext 3531 3532 # OK, works on sane cases. Now check whether nonexistent headers 3533 # can be detected and how. 3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3535/* end confdefs.h. */ 3536#include <ac_nonexistent.h> 3537_ACEOF 3538if ac_fn_c_try_cpp "$LINENO"; then : 3539 # Broken: success on invalid input. 3540continue 3541else 3542 # Passes both tests. 3543ac_preproc_ok=: 3544break 3545fi 3546rm -f conftest.err conftest.i conftest.$ac_ext 3547 3548done 3549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3550rm -f conftest.i conftest.err conftest.$ac_ext 3551if $ac_preproc_ok; then : 3552 3553else 3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3556as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3557See \`config.log' for more details" "$LINENO" 5; } 3558fi 3559 3560ac_ext=c 3561ac_cpp='$CPP $CPPFLAGS' 3562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3564ac_compiler_gnu=$ac_cv_c_compiler_gnu 3565 3566 3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3568$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3569if ${ac_cv_path_GREP+:} false; then : 3570 $as_echo_n "(cached) " >&6 3571else 3572 if test -z "$GREP"; then 3573 ac_path_GREP_found=false 3574 # Loop through the user's path and test for each of PROGNAME-LIST 3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3576for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3577do 3578 IFS=$as_save_IFS 3579 test -z "$as_dir" && as_dir=. 3580 for ac_prog in grep ggrep; do 3581 for ac_exec_ext in '' $ac_executable_extensions; do 3582 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3583 as_fn_executable_p "$ac_path_GREP" || continue 3584# Check for GNU ac_path_GREP and select it if it is found. 3585 # Check for GNU $ac_path_GREP 3586case `"$ac_path_GREP" --version 2>&1` in 3587*GNU*) 3588 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3589*) 3590 ac_count=0 3591 $as_echo_n 0123456789 >"conftest.in" 3592 while : 3593 do 3594 cat "conftest.in" "conftest.in" >"conftest.tmp" 3595 mv "conftest.tmp" "conftest.in" 3596 cp "conftest.in" "conftest.nl" 3597 $as_echo 'GREP' >> "conftest.nl" 3598 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3600 as_fn_arith $ac_count + 1 && ac_count=$as_val 3601 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3602 # Best one so far, save it but keep looking for a better one 3603 ac_cv_path_GREP="$ac_path_GREP" 3604 ac_path_GREP_max=$ac_count 3605 fi 3606 # 10*(2^10) chars as input seems more than enough 3607 test $ac_count -gt 10 && break 3608 done 3609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3610esac 3611 3612 $ac_path_GREP_found && break 3 3613 done 3614 done 3615 done 3616IFS=$as_save_IFS 3617 if test -z "$ac_cv_path_GREP"; then 3618 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3619 fi 3620else 3621 ac_cv_path_GREP=$GREP 3622fi 3623 3624fi 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3626$as_echo "$ac_cv_path_GREP" >&6; } 3627 GREP="$ac_cv_path_GREP" 3628 3629 3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3631$as_echo_n "checking for egrep... " >&6; } 3632if ${ac_cv_path_EGREP+:} false; then : 3633 $as_echo_n "(cached) " >&6 3634else 3635 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3636 then ac_cv_path_EGREP="$GREP -E" 3637 else 3638 if test -z "$EGREP"; then 3639 ac_path_EGREP_found=false 3640 # Loop through the user's path and test for each of PROGNAME-LIST 3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3642for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3643do 3644 IFS=$as_save_IFS 3645 test -z "$as_dir" && as_dir=. 3646 for ac_prog in egrep; do 3647 for ac_exec_ext in '' $ac_executable_extensions; do 3648 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3649 as_fn_executable_p "$ac_path_EGREP" || continue 3650# Check for GNU ac_path_EGREP and select it if it is found. 3651 # Check for GNU $ac_path_EGREP 3652case `"$ac_path_EGREP" --version 2>&1` in 3653*GNU*) 3654 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3655*) 3656 ac_count=0 3657 $as_echo_n 0123456789 >"conftest.in" 3658 while : 3659 do 3660 cat "conftest.in" "conftest.in" >"conftest.tmp" 3661 mv "conftest.tmp" "conftest.in" 3662 cp "conftest.in" "conftest.nl" 3663 $as_echo 'EGREP' >> "conftest.nl" 3664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3666 as_fn_arith $ac_count + 1 && ac_count=$as_val 3667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3668 # Best one so far, save it but keep looking for a better one 3669 ac_cv_path_EGREP="$ac_path_EGREP" 3670 ac_path_EGREP_max=$ac_count 3671 fi 3672 # 10*(2^10) chars as input seems more than enough 3673 test $ac_count -gt 10 && break 3674 done 3675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3676esac 3677 3678 $ac_path_EGREP_found && break 3 3679 done 3680 done 3681 done 3682IFS=$as_save_IFS 3683 if test -z "$ac_cv_path_EGREP"; then 3684 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3685 fi 3686else 3687 ac_cv_path_EGREP=$EGREP 3688fi 3689 3690 fi 3691fi 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3693$as_echo "$ac_cv_path_EGREP" >&6; } 3694 EGREP="$ac_cv_path_EGREP" 3695 3696 3697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3698/* end confdefs.h. */ 3699 3700_ACEOF 3701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3702 $EGREP "" >/dev/null 2>&1; then : 3703 3704fi 3705rm -f conftest* 3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3707$as_echo_n "checking for fgrep... " >&6; } 3708if ${ac_cv_path_FGREP+:} false; then : 3709 $as_echo_n "(cached) " >&6 3710else 3711 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3712 then ac_cv_path_FGREP="$GREP -F" 3713 else 3714 if test -z "$FGREP"; then 3715 ac_path_FGREP_found=false 3716 # Loop through the user's path and test for each of PROGNAME-LIST 3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3718for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3719do 3720 IFS=$as_save_IFS 3721 test -z "$as_dir" && as_dir=. 3722 for ac_prog in fgrep; do 3723 for ac_exec_ext in '' $ac_executable_extensions; do 3724 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3725 as_fn_executable_p "$ac_path_FGREP" || continue 3726# Check for GNU ac_path_FGREP and select it if it is found. 3727 # Check for GNU $ac_path_FGREP 3728case `"$ac_path_FGREP" --version 2>&1` in 3729*GNU*) 3730 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3731*) 3732 ac_count=0 3733 $as_echo_n 0123456789 >"conftest.in" 3734 while : 3735 do 3736 cat "conftest.in" "conftest.in" >"conftest.tmp" 3737 mv "conftest.tmp" "conftest.in" 3738 cp "conftest.in" "conftest.nl" 3739 $as_echo 'FGREP' >> "conftest.nl" 3740 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3742 as_fn_arith $ac_count + 1 && ac_count=$as_val 3743 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3744 # Best one so far, save it but keep looking for a better one 3745 ac_cv_path_FGREP="$ac_path_FGREP" 3746 ac_path_FGREP_max=$ac_count 3747 fi 3748 # 10*(2^10) chars as input seems more than enough 3749 test $ac_count -gt 10 && break 3750 done 3751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3752esac 3753 3754 $ac_path_FGREP_found && break 3 3755 done 3756 done 3757 done 3758IFS=$as_save_IFS 3759 if test -z "$ac_cv_path_FGREP"; then 3760 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3761 fi 3762else 3763 ac_cv_path_FGREP=$FGREP 3764fi 3765 3766 fi 3767fi 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3769$as_echo "$ac_cv_path_FGREP" >&6; } 3770 FGREP="$ac_cv_path_FGREP" 3771 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3773$as_echo_n "checking for library containing strerror... " >&6; } 3774if ${ac_cv_search_strerror+:} false; then : 3775 $as_echo_n "(cached) " >&6 3776else 3777 ac_func_search_save_LIBS=$LIBS 3778cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3779/* end confdefs.h. */ 3780 3781/* Override any GCC internal prototype to avoid an error. 3782 Use char because int might match the return type of a GCC 3783 builtin and then its argument prototype would still apply. */ 3784#ifdef __cplusplus 3785extern "C" 3786#endif 3787char strerror (); 3788int 3789main () 3790{ 3791return strerror (); 3792 ; 3793 return 0; 3794} 3795_ACEOF 3796for ac_lib in '' cposix; do 3797 if test -z "$ac_lib"; then 3798 ac_res="none required" 3799 else 3800 ac_res=-l$ac_lib 3801 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3802 fi 3803 if ac_fn_c_try_link "$LINENO"; then : 3804 ac_cv_search_strerror=$ac_res 3805fi 3806rm -f core conftest.err conftest.$ac_objext \ 3807 conftest$ac_exeext 3808 if ${ac_cv_search_strerror+:} false; then : 3809 break 3810fi 3811done 3812if ${ac_cv_search_strerror+:} false; then : 3813 3814else 3815 ac_cv_search_strerror=no 3816fi 3817rm conftest.$ac_ext 3818LIBS=$ac_func_search_save_LIBS 3819fi 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3821$as_echo "$ac_cv_search_strerror" >&6; } 3822ac_res=$ac_cv_search_strerror 3823if test "$ac_res" != no; then : 3824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3825 3826fi 3827 for ac_prog in gawk mawk nawk awk 3828do 3829 # Extract the first word of "$ac_prog", so it can be a program name with args. 3830set dummy $ac_prog; ac_word=$2 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3832$as_echo_n "checking for $ac_word... " >&6; } 3833if ${ac_cv_prog_AWK+:} false; then : 3834 $as_echo_n "(cached) " >&6 3835else 3836 if test -n "$AWK"; then 3837 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3838else 3839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3840for as_dir in $PATH 3841do 3842 IFS=$as_save_IFS 3843 test -z "$as_dir" && as_dir=. 3844 for ac_exec_ext in '' $ac_executable_extensions; do 3845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3846 ac_cv_prog_AWK="$ac_prog" 3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3848 break 2 3849 fi 3850done 3851 done 3852IFS=$as_save_IFS 3853 3854fi 3855fi 3856AWK=$ac_cv_prog_AWK 3857if test -n "$AWK"; then 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3859$as_echo "$AWK" >&6; } 3860else 3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3862$as_echo "no" >&6; } 3863fi 3864 3865 3866 test -n "$AWK" && break 3867done 3868 3869# Extract the first word of "strip", so it can be a program name with args. 3870set dummy strip; ac_word=$2 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3872$as_echo_n "checking for $ac_word... " >&6; } 3873if ${ac_cv_prog_STRIP+:} false; then : 3874 $as_echo_n "(cached) " >&6 3875else 3876 if test -n "$STRIP"; then 3877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3878else 3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3880for as_dir in $PATH 3881do 3882 IFS=$as_save_IFS 3883 test -z "$as_dir" && as_dir=. 3884 for ac_exec_ext in '' $ac_executable_extensions; do 3885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3886 ac_cv_prog_STRIP="strip" 3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3888 break 2 3889 fi 3890done 3891 done 3892IFS=$as_save_IFS 3893 3894 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3895fi 3896fi 3897STRIP=$ac_cv_prog_STRIP 3898if test -n "$STRIP"; then 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3900$as_echo "$STRIP" >&6; } 3901else 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3903$as_echo "no" >&6; } 3904fi 3905 3906 3907 3908 3909 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3911$as_echo_n "checking for ANSI C header files... " >&6; } 3912if ${ac_cv_header_stdc+:} false; then : 3913 $as_echo_n "(cached) " >&6 3914else 3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3916/* end confdefs.h. */ 3917#include <stdlib.h> 3918#include <stdarg.h> 3919#include <string.h> 3920#include <float.h> 3921 3922int 3923main () 3924{ 3925 3926 ; 3927 return 0; 3928} 3929_ACEOF 3930if ac_fn_c_try_compile "$LINENO"; then : 3931 ac_cv_header_stdc=yes 3932else 3933 ac_cv_header_stdc=no 3934fi 3935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3936 3937if test $ac_cv_header_stdc = yes; then 3938 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940/* end confdefs.h. */ 3941#include <string.h> 3942 3943_ACEOF 3944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3945 $EGREP "memchr" >/dev/null 2>&1; then : 3946 3947else 3948 ac_cv_header_stdc=no 3949fi 3950rm -f conftest* 3951 3952fi 3953 3954if test $ac_cv_header_stdc = yes; then 3955 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3957/* end confdefs.h. */ 3958#include <stdlib.h> 3959 3960_ACEOF 3961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3962 $EGREP "free" >/dev/null 2>&1; then : 3963 3964else 3965 ac_cv_header_stdc=no 3966fi 3967rm -f conftest* 3968 3969fi 3970 3971if test $ac_cv_header_stdc = yes; then 3972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3973 if test "$cross_compiling" = yes; then : 3974 : 3975else 3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3977/* end confdefs.h. */ 3978#include <ctype.h> 3979#include <stdlib.h> 3980#if ((' ' & 0x0FF) == 0x020) 3981# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3982# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3983#else 3984# define ISLOWER(c) \ 3985 (('a' <= (c) && (c) <= 'i') \ 3986 || ('j' <= (c) && (c) <= 'r') \ 3987 || ('s' <= (c) && (c) <= 'z')) 3988# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3989#endif 3990 3991#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3992int 3993main () 3994{ 3995 int i; 3996 for (i = 0; i < 256; i++) 3997 if (XOR (islower (i), ISLOWER (i)) 3998 || toupper (i) != TOUPPER (i)) 3999 return 2; 4000 return 0; 4001} 4002_ACEOF 4003if ac_fn_c_try_run "$LINENO"; then : 4004 4005else 4006 ac_cv_header_stdc=no 4007fi 4008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4009 conftest.$ac_objext conftest.beam conftest.$ac_ext 4010fi 4011 4012fi 4013fi 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4015$as_echo "$ac_cv_header_stdc" >&6; } 4016if test $ac_cv_header_stdc = yes; then 4017 4018$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4019 4020fi 4021 4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4023$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4024if ${ac_cv_header_sys_wait_h+:} false; then : 4025 $as_echo_n "(cached) " >&6 4026else 4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028/* end confdefs.h. */ 4029#include <sys/types.h> 4030#include <sys/wait.h> 4031#ifndef WEXITSTATUS 4032# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4033#endif 4034#ifndef WIFEXITED 4035# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4036#endif 4037 4038int 4039main () 4040{ 4041 int s; 4042 wait (&s); 4043 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4044 ; 4045 return 0; 4046} 4047_ACEOF 4048if ac_fn_c_try_compile "$LINENO"; then : 4049 ac_cv_header_sys_wait_h=yes 4050else 4051 ac_cv_header_sys_wait_h=no 4052fi 4053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4054fi 4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4056$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4057if test $ac_cv_header_sys_wait_h = yes; then 4058 4059$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4060 4061fi 4062 4063 4064 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 4066$as_echo_n "checking --enable-fail-if-missing argument... " >&6; } 4067# Check whether --enable-fail_if_missing was given. 4068if test "${enable_fail_if_missing+set}" = set; then : 4069 enableval=$enable_fail_if_missing; fail_if_missing="yes" 4070else 4071 fail_if_missing="no" 4072fi 4073 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 4075$as_echo "$fail_if_missing" >&6; } 4076 4077if test -z "$CFLAGS"; then 4078 CFLAGS="-O" 4079 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 4080fi 4081if test "$GCC" = yes; then 4082 gccversion=`$CC -dumpversion` 4083 if test "x$gccversion" = "x"; then 4084 gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 4085 fi 4086 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 4087 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 4088 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 4089 else 4090 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 4091 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 4092 CFLAGS="$CFLAGS -fno-strength-reduce" 4093 fi 4094 fi 4095fi 4096 4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent clang version" >&5 4098$as_echo_n "checking for recent clang version... " >&6; } 4099CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed -n -e 's/^.*clang.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'` 4100if test x"$CLANG_VERSION_STRING" != x"" ; then 4101 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4102 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4103 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4104 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4106$as_echo "$CLANG_VERSION" >&6; } 4107 if test "$CLANG_VERSION" -ge 500002075 ; then 4108 CFLAGS=`echo "$CFLAGS" | sed -n -e 's/-fno-strength-reduce/ /p'` 4109 fi 4110else 4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4112$as_echo "no" >&6; } 4113fi 4114 4115if test "$cross_compiling" = yes; then 4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4117$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 4118fi 4119 4120test "$GCC" = yes && CPP_MM=M; 4121 4122if test -f ./toolcheck; then 4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 4124$as_echo "$as_me: checking for buggy tools..." >&6;} 4125 sh ./toolcheck 1>&6 4126fi 4127 4128OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 4129 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 4131$as_echo_n "checking for BeOS... " >&6; } 4132case `uname` in 4133 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 4134 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4135$as_echo "yes" >&6; };; 4136 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4137$as_echo "no" >&6; };; 4138esac 4139 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 4141$as_echo_n "checking for QNX... " >&6; } 4142case `uname` in 4143 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4144 test -z "$with_x" && with_x=no 4145 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4146$as_echo "yes" >&6; };; 4147 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4148$as_echo "no" >&6; };; 4149esac 4150 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4152$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4153if test "`(uname) 2>/dev/null`" = Darwin; then 4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4155$as_echo "yes" >&6; } 4156 4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4158$as_echo_n "checking --disable-darwin argument... " >&6; } 4159 # Check whether --enable-darwin was given. 4160if test "${enable_darwin+set}" = set; then : 4161 enableval=$enable_darwin; 4162else 4163 enable_darwin="yes" 4164fi 4165 4166 if test "$enable_darwin" = "yes"; then 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4168$as_echo "no" >&6; } 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4170$as_echo_n "checking if Darwin files are there... " >&6; } 4171 if test -f os_macosx.m; then 4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4173$as_echo "yes" >&6; } 4174 else 4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4176$as_echo "no, Darwin support disabled" >&6; } 4177 enable_darwin=no 4178 fi 4179 else 4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4181$as_echo "yes, Darwin support excluded" >&6; } 4182 fi 4183 4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4185$as_echo_n "checking --with-mac-arch argument... " >&6; } 4186 4187# Check whether --with-mac-arch was given. 4188if test "${with_mac_arch+set}" = set; then : 4189 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4190$as_echo "$MACARCH" >&6; } 4191else 4192 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4193$as_echo "defaulting to $MACARCH" >&6; } 4194fi 4195 4196 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4198$as_echo_n "checking --with-developer-dir argument... " >&6; } 4199 4200# Check whether --with-developer-dir was given. 4201if test "${with_developer_dir+set}" = set; then : 4202 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4203$as_echo "$DEVELOPER_DIR" >&6; } 4204else 4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4206$as_echo "not present" >&6; } 4207fi 4208 4209 4210 if test "x$DEVELOPER_DIR" = "x"; then 4211 # Extract the first word of "xcode-select", so it can be a program name with args. 4212set dummy xcode-select; ac_word=$2 4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4214$as_echo_n "checking for $ac_word... " >&6; } 4215if ${ac_cv_path_XCODE_SELECT+:} false; then : 4216 $as_echo_n "(cached) " >&6 4217else 4218 case $XCODE_SELECT in 4219 [\\/]* | ?:[\\/]*) 4220 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4221 ;; 4222 *) 4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4224for as_dir in $PATH 4225do 4226 IFS=$as_save_IFS 4227 test -z "$as_dir" && as_dir=. 4228 for ac_exec_ext in '' $ac_executable_extensions; do 4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4230 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4232 break 2 4233 fi 4234done 4235 done 4236IFS=$as_save_IFS 4237 4238 ;; 4239esac 4240fi 4241XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4242if test -n "$XCODE_SELECT"; then 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4244$as_echo "$XCODE_SELECT" >&6; } 4245else 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4247$as_echo "no" >&6; } 4248fi 4249 4250 4251 if test "x$XCODE_SELECT" != "x"; then 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4253$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4254 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4256$as_echo "$DEVELOPER_DIR" >&6; } 4257 else 4258 DEVELOPER_DIR=/Developer 4259 fi 4260 fi 4261 4262 if test "x$MACARCH" = "xboth"; then 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4264$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4265 save_cppflags="$CPPFLAGS" 4266 save_cflags="$CFLAGS" 4267 save_ldflags="$LDFLAGS" 4268 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4270/* end confdefs.h. */ 4271 4272int 4273main () 4274{ 4275 4276 ; 4277 return 0; 4278} 4279_ACEOF 4280if ac_fn_c_try_link "$LINENO"; then : 4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4282$as_echo "found" >&6; } 4283else 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4285$as_echo "not found" >&6; } 4286 CFLAGS="$save_cflags" 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4288$as_echo_n "checking if Intel architecture is supported... " >&6; } 4289 CPPFLAGS="$CPPFLAGS -arch i386" 4290 LDFLAGS="$save_ldflags -arch i386" 4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4292/* end confdefs.h. */ 4293 4294int 4295main () 4296{ 4297 4298 ; 4299 return 0; 4300} 4301_ACEOF 4302if ac_fn_c_try_link "$LINENO"; then : 4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4304$as_echo "yes" >&6; }; MACARCH="intel" 4305else 4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4307$as_echo "no" >&6; } 4308 MACARCH="ppc" 4309 CPPFLAGS="$save_cppflags -arch ppc" 4310 LDFLAGS="$save_ldflags -arch ppc" 4311fi 4312rm -f core conftest.err conftest.$ac_objext \ 4313 conftest$ac_exeext conftest.$ac_ext 4314fi 4315rm -f core conftest.err conftest.$ac_objext \ 4316 conftest$ac_exeext conftest.$ac_ext 4317 elif test "x$MACARCH" = "xintel"; then 4318 CPPFLAGS="$CPPFLAGS -arch intel" 4319 LDFLAGS="$LDFLAGS -arch intel" 4320 elif test "x$MACARCH" = "xppc"; then 4321 CPPFLAGS="$CPPFLAGS -arch ppc" 4322 LDFLAGS="$LDFLAGS -arch ppc" 4323 fi 4324 4325 if test "$enable_darwin" = "yes"; then 4326 MACOSX=yes 4327 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4328 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4329 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX" 4330 4331 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4332for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4333 inttypes.h stdint.h unistd.h 4334do : 4335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4336ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4337" 4338if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4339 cat >>confdefs.h <<_ACEOF 4340#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4341_ACEOF 4342 4343fi 4344 4345done 4346 4347 4348ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4349if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then : 4350 CARBON=yes 4351fi 4352 4353 4354 if test "x$CARBON" = "xyes"; then 4355 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2; then 4356 with_x=no 4357 fi 4358 fi 4359 fi 4360 4361 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4362 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4363 fi 4364 4365else 4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4367$as_echo "no" >&6; } 4368fi 4369 4370for ac_header in AvailabilityMacros.h 4371do : 4372 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 4373if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 4374 cat >>confdefs.h <<_ACEOF 4375#define HAVE_AVAILABILITYMACROS_H 1 4376_ACEOF 4377 4378fi 4379 4380done 4381 4382 4383 4384 4385 4386if test "$cross_compiling" = no; then 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4388$as_echo_n "checking --with-local-dir argument... " >&6; } 4389 have_local_include='' 4390 have_local_lib='' 4391 4392# Check whether --with-local-dir was given. 4393if test "${with_local_dir+set}" = set; then : 4394 withval=$with_local_dir; 4395 local_dir="$withval" 4396 case "$withval" in 4397 */*) ;; 4398 no) 4399 # avoid adding local dir to LDFLAGS and CPPFLAGS 4400 have_local_include=yes 4401 have_local_lib=yes 4402 ;; 4403 *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4404 esac 4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4406$as_echo "$local_dir" >&6; } 4407 4408else 4409 4410 local_dir=/usr/local 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4412$as_echo "Defaulting to $local_dir" >&6; } 4413 4414fi 4415 4416 if test "$GCC" = yes -a "$local_dir" != no; then 4417 echo 'void f(){}' > conftest.c 4418 have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4419 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4420 rm -f conftest.c conftest.o 4421 fi 4422 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4423 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4424 if test "$tt" = "$LDFLAGS"; then 4425 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4426 fi 4427 fi 4428 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4429 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4430 if test "$tt" = "$CPPFLAGS"; then 4431 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4432 fi 4433 fi 4434fi 4435 4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4437$as_echo_n "checking --with-vim-name argument... " >&6; } 4438 4439# Check whether --with-vim-name was given. 4440if test "${with_vim_name+set}" = set; then : 4441 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4442$as_echo "$VIMNAME" >&6; } 4443else 4444 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4445$as_echo "Defaulting to $VIMNAME" >&6; } 4446fi 4447 4448 4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4450$as_echo_n "checking --with-ex-name argument... " >&6; } 4451 4452# Check whether --with-ex-name was given. 4453if test "${with_ex_name+set}" = set; then : 4454 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4455$as_echo "$EXNAME" >&6; } 4456else 4457 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4458$as_echo "Defaulting to ex" >&6; } 4459fi 4460 4461 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4463$as_echo_n "checking --with-view-name argument... " >&6; } 4464 4465# Check whether --with-view-name was given. 4466if test "${with_view_name+set}" = set; then : 4467 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4468$as_echo "$VIEWNAME" >&6; } 4469else 4470 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4471$as_echo "Defaulting to view" >&6; } 4472fi 4473 4474 4475 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4477$as_echo_n "checking --with-global-runtime argument... " >&6; } 4478 4479# Check whether --with-global-runtime was given. 4480if test "${with_global_runtime+set}" = set; then : 4481 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4482$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4483#define RUNTIME_GLOBAL "$withval" 4484_ACEOF 4485 4486else 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4488$as_echo "no" >&6; } 4489fi 4490 4491 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4493$as_echo_n "checking --with-modified-by argument... " >&6; } 4494 4495# Check whether --with-modified-by was given. 4496if test "${with_modified_by+set}" = set; then : 4497 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4498$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4499#define MODIFIED_BY "$withval" 4500_ACEOF 4501 4502else 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4504$as_echo "no" >&6; } 4505fi 4506 4507 4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4509$as_echo_n "checking if character set is EBCDIC... " >&6; } 4510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4511/* end confdefs.h. */ 4512 4513int 4514main () 4515{ 4516 /* TryCompile function for CharSet. 4517 Treat any failure as ASCII for compatibility with existing art. 4518 Use compile-time rather than run-time tests for cross-compiler 4519 tolerance. */ 4520#if '0'!=240 4521make an error "Character set is not EBCDIC" 4522#endif 4523 ; 4524 return 0; 4525} 4526_ACEOF 4527if ac_fn_c_try_compile "$LINENO"; then : 4528 # TryCompile action if true 4529cf_cv_ebcdic=yes 4530else 4531 # TryCompile action if false 4532cf_cv_ebcdic=no 4533fi 4534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4535# end of TryCompile ]) 4536# end of CacheVal CvEbcdic 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4538$as_echo "$cf_cv_ebcdic" >&6; } 4539case "$cf_cv_ebcdic" in #(vi 4540 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4541 4542 line_break='"\\n"' 4543 ;; 4544 *) line_break='"\\012"';; 4545esac 4546 4547 4548if test "$cf_cv_ebcdic" = "yes"; then 4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4550$as_echo_n "checking for z/OS Unix... " >&6; } 4551case `uname` in 4552 OS/390) zOSUnix="yes"; 4553 if test "$CC" = "cc"; then 4554 ccm="$_CC_CCMODE" 4555 ccn="CC" 4556 else 4557 if test "$CC" = "c89"; then 4558 ccm="$_CC_C89MODE" 4559 ccn="C89" 4560 else 4561 ccm=1 4562 fi 4563 fi 4564 if test "$ccm" != "1"; then 4565 echo "" 4566 echo "------------------------------------------" 4567 echo " On z/OS Unix, the environment variable" 4568 echo " _CC_${ccn}MODE must be set to \"1\"!" 4569 echo " Do:" 4570 echo " export _CC_${ccn}MODE=1" 4571 echo " and then call configure again." 4572 echo "------------------------------------------" 4573 exit 1 4574 fi 4575 # Set CFLAGS for configure process. 4576 # This will be reset later for config.mk. 4577 # Use haltonmsg to force error for missing H files. 4578 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; 4579 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4581$as_echo "yes" >&6; } 4582 ;; 4583 *) zOSUnix="no"; 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4585$as_echo "no" >&6; } 4586 ;; 4587esac 4588fi 4589 4590if test "$zOSUnix" = "yes"; then 4591 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 4592else 4593 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 4594fi 4595 4596 4597 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 4599$as_echo_n "checking --disable-smack argument... " >&6; } 4600# Check whether --enable-smack was given. 4601if test "${enable_smack+set}" = set; then : 4602 enableval=$enable_smack; 4603else 4604 enable_smack="yes" 4605fi 4606 4607if test "$enable_smack" = "yes"; then 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4609$as_echo "no" >&6; } 4610 ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" 4611if test "x$ac_cv_header_linux_xattr_h" = xyes; then : 4612 true 4613else 4614 enable_smack="no" 4615fi 4616 4617 4618else 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4620$as_echo "yes" >&6; } 4621fi 4622if test "$enable_smack" = "yes"; then 4623 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 4624if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 4625 true 4626else 4627 enable_smack="no" 4628fi 4629 4630 4631fi 4632if test "$enable_smack" = "yes"; then 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 4634$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } 4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4636/* end confdefs.h. */ 4637#include <linux/xattr.h> 4638_ACEOF 4639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4640 $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then : 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4642$as_echo "yes" >&6; } 4643else 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4645$as_echo "no" >&6; }; enable_smack="no" 4646fi 4647rm -f conftest* 4648 4649fi 4650if test "$enable_smack" = "yes"; then 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 4652$as_echo_n "checking for setxattr in -lattr... " >&6; } 4653if ${ac_cv_lib_attr_setxattr+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 ac_check_lib_save_LIBS=$LIBS 4657LIBS="-lattr $LIBS" 4658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4659/* end confdefs.h. */ 4660 4661/* Override any GCC internal prototype to avoid an error. 4662 Use char because int might match the return type of a GCC 4663 builtin and then its argument prototype would still apply. */ 4664#ifdef __cplusplus 4665extern "C" 4666#endif 4667char setxattr (); 4668int 4669main () 4670{ 4671return setxattr (); 4672 ; 4673 return 0; 4674} 4675_ACEOF 4676if ac_fn_c_try_link "$LINENO"; then : 4677 ac_cv_lib_attr_setxattr=yes 4678else 4679 ac_cv_lib_attr_setxattr=no 4680fi 4681rm -f core conftest.err conftest.$ac_objext \ 4682 conftest$ac_exeext conftest.$ac_ext 4683LIBS=$ac_check_lib_save_LIBS 4684fi 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 4686$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 4687if test "x$ac_cv_lib_attr_setxattr" = xyes; then : 4688 LIBS="$LIBS -lattr" 4689 found_smack="yes" 4690 $as_echo "#define HAVE_SMACK 1" >>confdefs.h 4691 4692fi 4693 4694fi 4695 4696if test "x$found_smack" = "x"; then 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 4698$as_echo_n "checking --disable-selinux argument... " >&6; } 4699 # Check whether --enable-selinux was given. 4700if test "${enable_selinux+set}" = set; then : 4701 enableval=$enable_selinux; 4702else 4703 enable_selinux="yes" 4704fi 4705 4706 if test "$enable_selinux" = "yes"; then 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4708$as_echo "no" >&6; } 4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 4710$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 4711if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : 4712 $as_echo_n "(cached) " >&6 4713else 4714 ac_check_lib_save_LIBS=$LIBS 4715LIBS="-lselinux $LIBS" 4716cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4717/* end confdefs.h. */ 4718 4719/* Override any GCC internal prototype to avoid an error. 4720 Use char because int might match the return type of a GCC 4721 builtin and then its argument prototype would still apply. */ 4722#ifdef __cplusplus 4723extern "C" 4724#endif 4725char is_selinux_enabled (); 4726int 4727main () 4728{ 4729return is_selinux_enabled (); 4730 ; 4731 return 0; 4732} 4733_ACEOF 4734if ac_fn_c_try_link "$LINENO"; then : 4735 ac_cv_lib_selinux_is_selinux_enabled=yes 4736else 4737 ac_cv_lib_selinux_is_selinux_enabled=no 4738fi 4739rm -f core conftest.err conftest.$ac_objext \ 4740 conftest$ac_exeext conftest.$ac_ext 4741LIBS=$ac_check_lib_save_LIBS 4742fi 4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 4744$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 4745if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : 4746 LIBS="$LIBS -lselinux" 4747 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 4748 4749fi 4750 4751 else 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4753$as_echo "yes" >&6; } 4754 fi 4755fi 4756 4757 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 4759$as_echo_n "checking --with-features argument... " >&6; } 4760 4761# Check whether --with-features was given. 4762if test "${with_features+set}" = set; then : 4763 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 4764$as_echo "$features" >&6; } 4765else 4766 features="normal"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to normal" >&5 4767$as_echo "Defaulting to normal" >&6; } 4768fi 4769 4770 4771dovimdiff="" 4772dogvimdiff="" 4773case "$features" in 4774 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 4775 ;; 4776 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 4777 ;; 4778 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 4779 dovimdiff="installvimdiff"; 4780 dogvimdiff="installgvimdiff" ;; 4781 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 4782 dovimdiff="installvimdiff"; 4783 dogvimdiff="installgvimdiff" ;; 4784 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 4785 dovimdiff="installvimdiff"; 4786 dogvimdiff="installgvimdiff" ;; 4787 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 4788$as_echo "Sorry, $features is not supported" >&6; } ;; 4789esac 4790 4791 4792 4793 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 4795$as_echo_n "checking --with-compiledby argument... " >&6; } 4796 4797# Check whether --with-compiledby was given. 4798if test "${with_compiledby+set}" = set; then : 4799 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4800$as_echo "$withval" >&6; } 4801else 4802 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4803$as_echo "no" >&6; } 4804fi 4805 4806 4807 4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 4809$as_echo_n "checking --disable-xsmp argument... " >&6; } 4810# Check whether --enable-xsmp was given. 4811if test "${enable_xsmp+set}" = set; then : 4812 enableval=$enable_xsmp; 4813else 4814 enable_xsmp="yes" 4815fi 4816 4817 4818if test "$enable_xsmp" = "yes"; then 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4820$as_echo "no" >&6; } 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 4822$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 4823 # Check whether --enable-xsmp-interact was given. 4824if test "${enable_xsmp_interact+set}" = set; then : 4825 enableval=$enable_xsmp_interact; 4826else 4827 enable_xsmp_interact="yes" 4828fi 4829 4830 if test "$enable_xsmp_interact" = "yes"; then 4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4832$as_echo "no" >&6; } 4833 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 4834 4835 else 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4837$as_echo "yes" >&6; } 4838 fi 4839else 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4841$as_echo "yes" >&6; } 4842fi 4843 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 4845$as_echo_n "checking --enable-luainterp argument... " >&6; } 4846# Check whether --enable-luainterp was given. 4847if test "${enable_luainterp+set}" = set; then : 4848 enableval=$enable_luainterp; 4849else 4850 enable_luainterp="no" 4851fi 4852 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 4854$as_echo "$enable_luainterp" >&6; } 4855 4856if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 4857 4858 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 4860$as_echo_n "checking --with-lua-prefix argument... " >&6; } 4861 4862# Check whether --with-lua_prefix was given. 4863if test "${with_lua_prefix+set}" = set; then : 4864 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 4865$as_echo "$with_lua_prefix" >&6; } 4866else 4867 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4868$as_echo "no" >&6; } 4869fi 4870 4871 4872 if test "X$with_lua_prefix" != "X"; then 4873 vi_cv_path_lua_pfx="$with_lua_prefix" 4874 else 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 4876$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 4877 if test "X$LUA_PREFIX" != "X"; then 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 4879$as_echo "\"$LUA_PREFIX\"" >&6; } 4880 vi_cv_path_lua_pfx="$LUA_PREFIX" 4881 else 4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 4883$as_echo "not set, default to /usr" >&6; } 4884 vi_cv_path_lua_pfx="/usr" 4885 fi 4886 fi 4887 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 4889$as_echo_n "checking --with-luajit... " >&6; } 4890 4891# Check whether --with-luajit was given. 4892if test "${with_luajit+set}" = set; then : 4893 withval=$with_luajit; vi_cv_with_luajit="$withval" 4894else 4895 vi_cv_with_luajit="no" 4896fi 4897 4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 4899$as_echo "$vi_cv_with_luajit" >&6; } 4900 4901 LUA_INC= 4902 if test "X$vi_cv_path_lua_pfx" != "X"; then 4903 if test "x$vi_cv_with_luajit" != "xno"; then 4904 # Extract the first word of "luajit", so it can be a program name with args. 4905set dummy luajit; ac_word=$2 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4907$as_echo_n "checking for $ac_word... " >&6; } 4908if ${ac_cv_path_vi_cv_path_luajit+:} false; then : 4909 $as_echo_n "(cached) " >&6 4910else 4911 case $vi_cv_path_luajit in 4912 [\\/]* | ?:[\\/]*) 4913 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. 4914 ;; 4915 *) 4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4917for as_dir in $PATH 4918do 4919 IFS=$as_save_IFS 4920 test -z "$as_dir" && as_dir=. 4921 for ac_exec_ext in '' $ac_executable_extensions; do 4922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4923 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" 4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4925 break 2 4926 fi 4927done 4928 done 4929IFS=$as_save_IFS 4930 4931 ;; 4932esac 4933fi 4934vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit 4935if test -n "$vi_cv_path_luajit"; then 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 4937$as_echo "$vi_cv_path_luajit" >&6; } 4938else 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4940$as_echo "no" >&6; } 4941fi 4942 4943 4944 if test "X$vi_cv_path_luajit" != "X"; then 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 4946$as_echo_n "checking LuaJIT version... " >&6; } 4947if ${vi_cv_version_luajit+:} false; then : 4948 $as_echo_n "(cached) " >&6 4949else 4950 vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'` 4951fi 4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 4953$as_echo "$vi_cv_version_luajit" >&6; } 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 4955$as_echo_n "checking Lua version of LuaJIT... " >&6; } 4956if ${vi_cv_version_lua_luajit+:} false; then : 4957 $as_echo_n "(cached) " >&6 4958else 4959 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` 4960fi 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 4962$as_echo "$vi_cv_version_lua_luajit" >&6; } 4963 vi_cv_path_lua="$vi_cv_path_luajit" 4964 vi_cv_version_lua="$vi_cv_version_lua_luajit" 4965 fi 4966 else 4967 # Extract the first word of "lua", so it can be a program name with args. 4968set dummy lua; ac_word=$2 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4970$as_echo_n "checking for $ac_word... " >&6; } 4971if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then : 4972 $as_echo_n "(cached) " >&6 4973else 4974 case $vi_cv_path_plain_lua in 4975 [\\/]* | ?:[\\/]*) 4976 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. 4977 ;; 4978 *) 4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4980for as_dir in $PATH 4981do 4982 IFS=$as_save_IFS 4983 test -z "$as_dir" && as_dir=. 4984 for ac_exec_ext in '' $ac_executable_extensions; do 4985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4986 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" 4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4988 break 2 4989 fi 4990done 4991 done 4992IFS=$as_save_IFS 4993 4994 ;; 4995esac 4996fi 4997vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua 4998if test -n "$vi_cv_path_plain_lua"; then 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 5000$as_echo "$vi_cv_path_plain_lua" >&6; } 5001else 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5003$as_echo "no" >&6; } 5004fi 5005 5006 5007 if test "X$vi_cv_path_plain_lua" != "X"; then 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 5009$as_echo_n "checking Lua version... " >&6; } 5010if ${vi_cv_version_plain_lua+:} false; then : 5011 $as_echo_n "(cached) " >&6 5012else 5013 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` 5014fi 5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 5016$as_echo "$vi_cv_version_plain_lua" >&6; } 5017 fi 5018 vi_cv_path_lua="$vi_cv_path_plain_lua" 5019 vi_cv_version_lua="$vi_cv_version_plain_lua" 5020 fi 5021 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit" >&5 5023$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } 5024 if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5026$as_echo "yes" >&6; } 5027 LUA_INC=/luajit-$vi_cv_version_luajit 5028 fi 5029 fi 5030 if test "X$LUA_INC" = "X"; then 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 5032$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 5033 if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5035$as_echo "yes" >&6; } 5036 else 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5038$as_echo "no" >&6; } 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua" >&5 5040$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 5041 if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5043$as_echo "yes" >&6; } 5044 LUA_INC=/lua$vi_cv_version_lua 5045 else 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5047$as_echo "no" >&6; } 5048 vi_cv_path_lua_pfx= 5049 fi 5050 fi 5051 fi 5052 fi 5053 5054 if test "X$vi_cv_path_lua_pfx" != "X"; then 5055 if test "x$vi_cv_with_luajit" != "xno"; then 5056 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5057 if test "X$multiarch" != "X"; then 5058 lib_multiarch="lib/${multiarch}" 5059 else 5060 lib_multiarch="lib" 5061 fi 5062 if test "X$vi_cv_version_lua" = "X"; then 5063 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" 5064 else 5065 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" 5066 fi 5067 else 5068 if test "X$LUA_INC" != "X"; then 5069 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 5070 else 5071 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 5072 fi 5073 fi 5074 if test "$enable_luainterp" = "dynamic"; then 5075 lua_ok="yes" 5076 else 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 5078$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } 5079 libs_save=$LIBS 5080 LIBS="$LIBS $LUA_LIBS" 5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5082/* end confdefs.h. */ 5083 5084int 5085main () 5086{ 5087 5088 ; 5089 return 0; 5090} 5091_ACEOF 5092if ac_fn_c_try_link "$LINENO"; then : 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5094$as_echo "yes" >&6; }; lua_ok="yes" 5095else 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5097$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" 5098fi 5099rm -f core conftest.err conftest.$ac_objext \ 5100 conftest$ac_exeext conftest.$ac_ext 5101 LIBS=$libs_save 5102 fi 5103 if test "x$lua_ok" = "xyes"; then 5104 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 5105 LUA_SRC="if_lua.c" 5106 LUA_OBJ="objects/if_lua.o" 5107 LUA_PRO="if_lua.pro" 5108 $as_echo "#define FEAT_LUA 1" >>confdefs.h 5109 5110 fi 5111 if test "$enable_luainterp" = "dynamic"; then 5112 if test "x$vi_cv_with_luajit" != "xno"; then 5113 luajit="jit" 5114 fi 5115 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then 5116 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" 5117 else 5118 if test "x$MACOSX" = "xyes"; then 5119 ext="dylib" 5120 indexes="" 5121 else 5122 ext="so" 5123 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" 5124 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5125 if test "X$multiarch" != "X"; then 5126 lib_multiarch="lib/${multiarch}" 5127 fi 5128 fi 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 5130$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } 5131 for subdir in "${lib_multiarch}" lib64 lib; do 5132 if test -z "$subdir"; then 5133 continue 5134 fi 5135 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ 5136 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do 5137 for i in $indexes ""; do 5138 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then 5139 sover2="$i" 5140 break 3 5141 fi 5142 done 5143 done 5144 sover="" 5145 done 5146 if test "X$sover" = "X"; then 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5148$as_echo "no" >&6; } 5149 lua_ok="no" 5150 vi_cv_dll_name_lua="liblua${luajit}.${ext}" 5151 else 5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5153$as_echo "yes" >&6; } 5154 lua_ok="yes" 5155 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" 5156 fi 5157 fi 5158 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 5159 5160 LUA_LIBS="" 5161 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" 5162 fi 5163 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ 5164 test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ 5165 test "`(uname -m) 2>/dev/null`" = "x86_64"; then 5166 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" 5167 fi 5168 fi 5169 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then 5170 as_fn_error $? "could not configure lua" "$LINENO" 5 5171 fi 5172 5173 5174 5175 5176 5177fi 5178 5179 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 5181$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 5182# Check whether --enable-mzschemeinterp was given. 5183if test "${enable_mzschemeinterp+set}" = set; then : 5184 enableval=$enable_mzschemeinterp; 5185else 5186 enable_mzschemeinterp="no" 5187fi 5188 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 5190$as_echo "$enable_mzschemeinterp" >&6; } 5191 5192if test "$enable_mzschemeinterp" = "yes"; then 5193 5194 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 5196$as_echo_n "checking --with-plthome argument... " >&6; } 5197 5198# Check whether --with-plthome was given. 5199if test "${with_plthome+set}" = set; then : 5200 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 5201$as_echo "$with_plthome" >&6; } 5202else 5203 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 5204$as_echo "\"no\"" >&6; } 5205fi 5206 5207 5208 if test "X$with_plthome" != "X"; then 5209 vi_cv_path_mzscheme_pfx="$with_plthome" 5210 else 5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 5212$as_echo_n "checking PLTHOME environment var... " >&6; } 5213 if test "X$PLTHOME" != "X"; then 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 5215$as_echo "\"$PLTHOME\"" >&6; } 5216 vi_cv_path_mzscheme_pfx="$PLTHOME" 5217 else 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 5219$as_echo "not set" >&6; } 5220 # Extract the first word of "mzscheme", so it can be a program name with args. 5221set dummy mzscheme; ac_word=$2 5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5223$as_echo_n "checking for $ac_word... " >&6; } 5224if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then : 5225 $as_echo_n "(cached) " >&6 5226else 5227 case $vi_cv_path_mzscheme in 5228 [\\/]* | ?:[\\/]*) 5229 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 5230 ;; 5231 *) 5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5233for as_dir in $PATH 5234do 5235 IFS=$as_save_IFS 5236 test -z "$as_dir" && as_dir=. 5237 for ac_exec_ext in '' $ac_executable_extensions; do 5238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5239 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 5240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5241 break 2 5242 fi 5243done 5244 done 5245IFS=$as_save_IFS 5246 5247 ;; 5248esac 5249fi 5250vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 5251if test -n "$vi_cv_path_mzscheme"; then 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 5253$as_echo "$vi_cv_path_mzscheme" >&6; } 5254else 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5256$as_echo "no" >&6; } 5257fi 5258 5259 5260 5261 if test "X$vi_cv_path_mzscheme" != "X"; then 5262 lsout=`ls -l $vi_cv_path_mzscheme` 5263 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 5264 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 5265 fi 5266 fi 5267 5268 if test "X$vi_cv_path_mzscheme" != "X"; then 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 5270$as_echo_n "checking MzScheme install prefix... " >&6; } 5271if ${vi_cv_path_mzscheme_pfx+:} false; then : 5272 $as_echo_n "(cached) " >&6 5273else 5274 echo "(display (simplify-path \ 5275 (build-path (call-with-values \ 5276 (lambda () (split-path (find-system-path (quote exec-file)))) \ 5277 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 5278 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 5279 sed -e 's+/$++'` 5280fi 5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 5282$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 5283 rm -f mzdirs.scm 5284 fi 5285 fi 5286 fi 5287 5288 SCHEME_INC= 5289 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 5291$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 5292 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then 5293 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5295$as_echo "yes" >&6; } 5296 else 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5298$as_echo "no" >&6; } 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 5300$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 5301 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5303$as_echo "yes" >&6; } 5304 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 5305 else 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5307$as_echo "no" >&6; } 5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 5309$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } 5310 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5312$as_echo "yes" >&6; } 5313 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket 5314 else 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5316$as_echo "no" >&6; } 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 5318$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 5319 if test -f /usr/include/plt/scheme.h; then 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5321$as_echo "yes" >&6; } 5322 SCHEME_INC=/usr/include/plt 5323 else 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5325$as_echo "no" >&6; } 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 5327$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } 5328 if test -f /usr/include/racket/scheme.h; then 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5330$as_echo "yes" >&6; } 5331 SCHEME_INC=/usr/include/racket 5332 else 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5334$as_echo "no" >&6; } 5335 vi_cv_path_mzscheme_pfx= 5336 fi 5337 fi 5338 fi 5339 fi 5340 fi 5341 fi 5342 5343 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5344 if test "x$MACOSX" = "xyes"; then 5345 MZSCHEME_LIBS="-framework Racket" 5346 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5347 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then 5348 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a" 5349 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5350 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a"; then 5351 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a" 5352 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5353 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.a"; then 5354 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a" 5355 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"; then 5356 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a" 5357 else 5358 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then 5359 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m" 5360 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5361 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.so"; then 5362 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket3m" 5363 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5364 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.so"; then 5365 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket -lmzgc" 5366 else 5367 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc" 5368 fi 5369 if test "$GCC" = yes; then 5370 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib" 5371 elif test "`(uname) 2>/dev/null`" = SunOS && 5372 uname -r | grep '^5' >/dev/null; then 5373 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib" 5374 fi 5375 fi 5376 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 5378$as_echo_n "checking for racket collects directory... " >&6; } 5379 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then 5380 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ 5381 else 5382 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then 5383 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ 5384 else 5385 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then 5386 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ 5387 else 5388 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then 5389 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ 5390 fi 5391 fi 5392 fi 5393 fi 5394 if test "X$SCHEME_COLLECTS" != "X" ; then 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 5396$as_echo "${SCHEME_COLLECTS}" >&6; } 5397 else 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5399$as_echo "not found" >&6; } 5400 fi 5401 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 5403$as_echo_n "checking for mzscheme_base.c... " >&6; } 5404 if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 5405 MZSCHEME_EXTRA="mzscheme_base.c" 5406 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5407 MZSCHEME_MOD="++lib scheme/base" 5408 else 5409 if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then 5410 MZSCHEME_EXTRA="mzscheme_base.c" 5411 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5412 MZSCHEME_MOD="++lib scheme/base" 5413 else 5414 if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then 5415 MZSCHEME_EXTRA="mzscheme_base.c" 5416 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" 5417 MZSCHEME_MOD="" 5418 fi 5419 fi 5420 fi 5421 if test "X$MZSCHEME_EXTRA" != "X" ; then 5422 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 5423 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 5425$as_echo "needed" >&6; } 5426 else 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 5428$as_echo "not needed" >&6; } 5429 fi 5430 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 5432$as_echo_n "checking for ffi_type_void in -lffi... " >&6; } 5433if ${ac_cv_lib_ffi_ffi_type_void+:} false; then : 5434 $as_echo_n "(cached) " >&6 5435else 5436 ac_check_lib_save_LIBS=$LIBS 5437LIBS="-lffi $LIBS" 5438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5439/* end confdefs.h. */ 5440 5441/* Override any GCC internal prototype to avoid an error. 5442 Use char because int might match the return type of a GCC 5443 builtin and then its argument prototype would still apply. */ 5444#ifdef __cplusplus 5445extern "C" 5446#endif 5447char ffi_type_void (); 5448int 5449main () 5450{ 5451return ffi_type_void (); 5452 ; 5453 return 0; 5454} 5455_ACEOF 5456if ac_fn_c_try_link "$LINENO"; then : 5457 ac_cv_lib_ffi_ffi_type_void=yes 5458else 5459 ac_cv_lib_ffi_ffi_type_void=no 5460fi 5461rm -f core conftest.err conftest.$ac_objext \ 5462 conftest$ac_exeext conftest.$ac_ext 5463LIBS=$ac_check_lib_save_LIBS 5464fi 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 5466$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; } 5467if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then : 5468 MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" 5469fi 5470 5471 5472 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 5473 -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" 5474 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 5476$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; } 5477 cflags_save=$CFLAGS 5478 libs_save=$LIBS 5479 CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" 5480 LIBS="$LIBS $MZSCHEME_LIBS" 5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482/* end confdefs.h. */ 5483 5484int 5485main () 5486{ 5487 5488 ; 5489 return 0; 5490} 5491_ACEOF 5492if ac_fn_c_try_link "$LINENO"; then : 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5494$as_echo "yes" >&6; }; mzs_ok=yes 5495else 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 5497$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no 5498fi 5499rm -f core conftest.err conftest.$ac_objext \ 5500 conftest$ac_exeext conftest.$ac_ext 5501 CFLAGS=$cflags_save 5502 LIBS=$libs_save 5503 if test $mzs_ok = yes; then 5504 MZSCHEME_SRC="if_mzsch.c" 5505 MZSCHEME_OBJ="objects/if_mzsch.o" 5506 MZSCHEME_PRO="if_mzsch.pro" 5507 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 5508 5509 else 5510 MZSCHEME_CFLAGS= 5511 MZSCHEME_LIBS= 5512 MZSCHEME_EXTRA= 5513 MZSCHEME_MZC= 5514 fi 5515 fi 5516 5517 5518 5519 5520 5521 5522 5523fi 5524 5525 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 5527$as_echo_n "checking --enable-perlinterp argument... " >&6; } 5528# Check whether --enable-perlinterp was given. 5529if test "${enable_perlinterp+set}" = set; then : 5530 enableval=$enable_perlinterp; 5531else 5532 enable_perlinterp="no" 5533fi 5534 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 5536$as_echo "$enable_perlinterp" >&6; } 5537if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 5538 5539 # Extract the first word of "perl", so it can be a program name with args. 5540set dummy perl; ac_word=$2 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5542$as_echo_n "checking for $ac_word... " >&6; } 5543if ${ac_cv_path_vi_cv_path_perl+:} false; then : 5544 $as_echo_n "(cached) " >&6 5545else 5546 case $vi_cv_path_perl in 5547 [\\/]* | ?:[\\/]*) 5548 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 5549 ;; 5550 *) 5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5552for as_dir in $PATH 5553do 5554 IFS=$as_save_IFS 5555 test -z "$as_dir" && as_dir=. 5556 for ac_exec_ext in '' $ac_executable_extensions; do 5557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5558 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5560 break 2 5561 fi 5562done 5563 done 5564IFS=$as_save_IFS 5565 5566 ;; 5567esac 5568fi 5569vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 5570if test -n "$vi_cv_path_perl"; then 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 5572$as_echo "$vi_cv_path_perl" >&6; } 5573else 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5575$as_echo "no" >&6; } 5576fi 5577 5578 5579 if test "X$vi_cv_path_perl" != "X"; then 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 5581$as_echo_n "checking Perl version... " >&6; } 5582 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 5583 eval `$vi_cv_path_perl -V:usethreads` 5584 eval `$vi_cv_path_perl -V:libperl` 5585 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 5586 badthreads=no 5587 else 5588 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 5589 eval `$vi_cv_path_perl -V:use5005threads` 5590 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 5591 badthreads=no 5592 else 5593 badthreads=yes 5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 5595$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 5596 fi 5597 else 5598 badthreads=yes 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 5600$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 5601 fi 5602 fi 5603 if test $badthreads = no; then 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 5605$as_echo "OK" >&6; } 5606 eval `$vi_cv_path_perl -V:shrpenv` 5607 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 5608 shrpenv="" 5609 fi 5610 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 5611 5612 vi_cv_perl_extutils=unknown_perl_extutils_path 5613 for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do 5614 xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" 5615 if test -f "$xsubpp_path"; then 5616 vi_cv_perl_xsubpp="$xsubpp_path" 5617 fi 5618 done 5619 5620 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 5621 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ 5622 -e 's/-fdebug-prefix-map[^ ]*//g'` 5623 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 5624 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 5625 -e 's/-bE:perl.exp//' -e 's/-lc //'` 5626 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 5627 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 5628 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 5630$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 5631 cflags_save=$CFLAGS 5632 libs_save=$LIBS 5633 ldflags_save=$LDFLAGS 5634 CFLAGS="$CFLAGS $perlcppflags" 5635 LIBS="$LIBS $perllibs" 5636 perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` 5637 LDFLAGS="$perlldflags $LDFLAGS" 5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5639/* end confdefs.h. */ 5640 5641int 5642main () 5643{ 5644 5645 ; 5646 return 0; 5647} 5648_ACEOF 5649if ac_fn_c_try_link "$LINENO"; then : 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5651$as_echo "yes" >&6; }; perl_ok=yes 5652else 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 5654$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 5655fi 5656rm -f core conftest.err conftest.$ac_objext \ 5657 conftest$ac_exeext conftest.$ac_ext 5658 CFLAGS=$cflags_save 5659 LIBS=$libs_save 5660 LDFLAGS=$ldflags_save 5661 if test $perl_ok = yes; then 5662 if test "X$perlcppflags" != "X"; then 5663 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` 5664 fi 5665 if test "X$perlldflags" != "X"; then 5666 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 5667 LDFLAGS="$perlldflags $LDFLAGS" 5668 fi 5669 fi 5670 PERL_LIBS=$perllibs 5671 PERL_SRC="auto/if_perl.c if_perlsfio.c" 5672 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 5673 PERL_PRO="if_perl.pro if_perlsfio.pro" 5674 $as_echo "#define FEAT_PERL 1" >>confdefs.h 5675 5676 fi 5677 fi 5678 else 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 5680$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 5681 fi 5682 fi 5683 5684 if test "x$MACOSX" = "xyes"; then 5685 dir=/System/Library/Perl 5686 darwindir=$dir/darwin 5687 if test -d $darwindir; then 5688 PERL=/usr/bin/perl 5689 else 5690 dir=/System/Library/Perl/5.8.1 5691 darwindir=$dir/darwin-thread-multi-2level 5692 if test -d $darwindir; then 5693 PERL=/usr/bin/perl 5694 fi 5695 fi 5696 if test -n "$PERL"; then 5697 PERL_DIR="$dir" 5698 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 5699 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 5700 PERL_LIBS="-L$darwindir/CORE -lperl" 5701 fi 5702 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5703 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5704 fi 5705 if test "$enable_perlinterp" = "dynamic"; then 5706 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 5707 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 5708 5709 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 5710 fi 5711 fi 5712 5713 if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then 5714 as_fn_error $? "could not configure perl" "$LINENO" 5 5715 fi 5716fi 5717 5718 5719 5720 5721 5722 5723 5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 5725$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 5726# Check whether --enable-pythoninterp was given. 5727if test "${enable_pythoninterp+set}" = set; then : 5728 enableval=$enable_pythoninterp; 5729else 5730 enable_pythoninterp="no" 5731fi 5732 5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 5734$as_echo "$enable_pythoninterp" >&6; } 5735if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 5736 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5737 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 5738 fi 5739 5740 for ac_prog in python2 python 5741do 5742 # Extract the first word of "$ac_prog", so it can be a program name with args. 5743set dummy $ac_prog; ac_word=$2 5744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5745$as_echo_n "checking for $ac_word... " >&6; } 5746if ${ac_cv_path_vi_cv_path_python+:} false; then : 5747 $as_echo_n "(cached) " >&6 5748else 5749 case $vi_cv_path_python in 5750 [\\/]* | ?:[\\/]*) 5751 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 5752 ;; 5753 *) 5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5755for as_dir in $PATH 5756do 5757 IFS=$as_save_IFS 5758 test -z "$as_dir" && as_dir=. 5759 for ac_exec_ext in '' $ac_executable_extensions; do 5760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5761 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 5762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5763 break 2 5764 fi 5765done 5766 done 5767IFS=$as_save_IFS 5768 5769 ;; 5770esac 5771fi 5772vi_cv_path_python=$ac_cv_path_vi_cv_path_python 5773if test -n "$vi_cv_path_python"; then 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 5775$as_echo "$vi_cv_path_python" >&6; } 5776else 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5778$as_echo "no" >&6; } 5779fi 5780 5781 5782 test -n "$vi_cv_path_python" && break 5783done 5784 5785 if test "X$vi_cv_path_python" != "X"; then 5786 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 5788$as_echo_n "checking Python version... " >&6; } 5789if ${vi_cv_var_python_version+:} false; then : 5790 $as_echo_n "(cached) " >&6 5791else 5792 vi_cv_var_python_version=` 5793 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 5794 5795fi 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 5797$as_echo "$vi_cv_var_python_version" >&6; } 5798 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 5800$as_echo_n "checking Python is 2.3 or better... " >&6; } 5801 if ${vi_cv_path_python} -c \ 5802 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" 5803 then 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 5805$as_echo "yep" >&6; } 5806 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 5808$as_echo_n "checking Python's install prefix... " >&6; } 5809if ${vi_cv_path_python_pfx+:} false; then : 5810 $as_echo_n "(cached) " >&6 5811else 5812 vi_cv_path_python_pfx=` 5813 ${vi_cv_path_python} -c \ 5814 "import sys; print sys.prefix"` 5815fi 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 5817$as_echo "$vi_cv_path_python_pfx" >&6; } 5818 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 5820$as_echo_n "checking Python's execution prefix... " >&6; } 5821if ${vi_cv_path_python_epfx+:} false; then : 5822 $as_echo_n "(cached) " >&6 5823else 5824 vi_cv_path_python_epfx=` 5825 ${vi_cv_path_python} -c \ 5826 "import sys; print sys.exec_prefix"` 5827fi 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 5829$as_echo "$vi_cv_path_python_epfx" >&6; } 5830 5831 5832 if ${vi_cv_path_pythonpath+:} false; then : 5833 $as_echo_n "(cached) " >&6 5834else 5835 vi_cv_path_pythonpath=` 5836 unset PYTHONPATH; 5837 ${vi_cv_path_python} -c \ 5838 "import sys, string; print string.join(sys.path,':')"` 5839fi 5840 5841 5842 5843 5844# Check whether --with-python-config-dir was given. 5845if test "${with_python_config_dir+set}" = set; then : 5846 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" 5847fi 5848 5849 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 5851$as_echo_n "checking Python's configuration directory... " >&6; } 5852if ${vi_cv_path_python_conf+:} false; then : 5853 $as_echo_n "(cached) " >&6 5854else 5855 5856 vi_cv_path_python_conf= 5857 d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` 5858 if test -d "$d" && test -f "$d/config.c"; then 5859 vi_cv_path_python_conf="$d" 5860 else 5861 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 5862 for subdir in lib64 lib share; do 5863 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 5864 if test -d "$d" && test -f "$d/config.c"; then 5865 vi_cv_path_python_conf="$d" 5866 fi 5867 done 5868 done 5869 fi 5870 5871fi 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 5873$as_echo "$vi_cv_path_python_conf" >&6; } 5874 5875 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 5876 5877 if test "X$PYTHON_CONFDIR" = "X"; then 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 5879$as_echo "can't find it!" >&6; } 5880 else 5881 5882 if ${vi_cv_path_python_plibs+:} false; then : 5883 $as_echo_n "(cached) " >&6 5884else 5885 5886 pwd=`pwd` 5887 tmp_mkf="$pwd/config-PyMake$$" 5888 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 5889__: 5890 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 5891 @echo "python_LIBS='$(LIBS)'" 5892 @echo "python_SYSLIBS='$(SYSLIBS)'" 5893 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 5894 @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" 5895 @echo "python_INSTSONAME='$(INSTSONAME)'" 5896 @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" 5897 @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" 5898 @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" 5899eof 5900 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 5901 rm -f -- "${tmp_mkf}" 5902 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ 5903 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 5904 vi_cv_path_python_plibs="-framework Python" 5905 if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 5906 vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" 5907 fi 5908 else 5909 if test "${vi_cv_var_python_version}" = "1.4"; then 5910 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" 5911 else 5912 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 5913 fi 5914 if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 5915 python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` 5916 python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` 5917 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 5918 python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" 5919 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 5920 python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" 5921 fi 5922 python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" 5923 fi 5924 fi 5925 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 5926 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 5927 fi 5928 5929fi 5930 5931 if ${vi_cv_dll_name_python+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933else 5934 5935 if test "X$python_DLLLIBRARY" != "X"; then 5936 vi_cv_dll_name_python="$python_DLLLIBRARY" 5937 else 5938 vi_cv_dll_name_python="$python_INSTSONAME" 5939 fi 5940 5941fi 5942 5943 5944 PYTHON_LIBS="${vi_cv_path_python_plibs}" 5945 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 5946 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 5947 else 5948 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} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 5949 fi 5950 PYTHON_SRC="if_python.c" 5951 PYTHON_OBJ="objects/if_python.o" 5952 if test "${vi_cv_var_python_version}" = "1.4"; then 5953 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 5954 fi 5955 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 5956 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 5958$as_echo_n "checking if -pthread should be used... " >&6; } 5959 threadsafe_flag= 5960 thread_lib= 5961 if test "`(uname) 2>/dev/null`" != Darwin; then 5962 test "$GCC" = yes && threadsafe_flag="-pthread" 5963 if test "`(uname) 2>/dev/null`" = FreeBSD; then 5964 threadsafe_flag="-D_THREAD_SAFE" 5965 thread_lib="-pthread" 5966 fi 5967 if test "`(uname) 2>/dev/null`" = SunOS; then 5968 threadsafe_flag="-pthreads" 5969 fi 5970 fi 5971 libs_save_old=$LIBS 5972 if test -n "$threadsafe_flag"; then 5973 cflags_save=$CFLAGS 5974 CFLAGS="$CFLAGS $threadsafe_flag" 5975 LIBS="$LIBS $thread_lib" 5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5977/* end confdefs.h. */ 5978 5979int 5980main () 5981{ 5982 5983 ; 5984 return 0; 5985} 5986_ACEOF 5987if ac_fn_c_try_link "$LINENO"; then : 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5989$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 5990else 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5992$as_echo "no" >&6; }; LIBS=$libs_save_old 5993 5994fi 5995rm -f core conftest.err conftest.$ac_objext \ 5996 conftest$ac_exeext conftest.$ac_ext 5997 CFLAGS=$cflags_save 5998 else 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6000$as_echo "no" >&6; } 6001 fi 6002 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 6004$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 6005 cflags_save=$CFLAGS 6006 libs_save=$LIBS 6007 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6008 LIBS="$LIBS $PYTHON_LIBS" 6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6010/* end confdefs.h. */ 6011 6012int 6013main () 6014{ 6015 6016 ; 6017 return 0; 6018} 6019_ACEOF 6020if ac_fn_c_try_link "$LINENO"; then : 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6022$as_echo "yes" >&6; }; python_ok=yes 6023else 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 6025$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 6026fi 6027rm -f core conftest.err conftest.$ac_objext \ 6028 conftest$ac_exeext conftest.$ac_ext 6029 CFLAGS=$cflags_save 6030 LIBS=$libs_save 6031 if test $python_ok = yes; then 6032 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 6033 6034 else 6035 LIBS=$libs_save_old 6036 PYTHON_SRC= 6037 PYTHON_OBJ= 6038 PYTHON_LIBS= 6039 PYTHON_CFLAGS= 6040 fi 6041 fi 6042 else 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6044$as_echo "too old" >&6; } 6045 fi 6046 fi 6047 6048 if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then 6049 as_fn_error $? "could not configure python" "$LINENO" 5 6050 fi 6051fi 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 6062$as_echo_n "checking --enable-python3interp argument... " >&6; } 6063# Check whether --enable-python3interp was given. 6064if test "${enable_python3interp+set}" = set; then : 6065 enableval=$enable_python3interp; 6066else 6067 enable_python3interp="no" 6068fi 6069 6070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 6071$as_echo "$enable_python3interp" >&6; } 6072if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 6073 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6074 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6075 fi 6076 6077 for ac_prog in python3 python 6078do 6079 # Extract the first word of "$ac_prog", so it can be a program name with args. 6080set dummy $ac_prog; ac_word=$2 6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6082$as_echo_n "checking for $ac_word... " >&6; } 6083if ${ac_cv_path_vi_cv_path_python3+:} false; then : 6084 $as_echo_n "(cached) " >&6 6085else 6086 case $vi_cv_path_python3 in 6087 [\\/]* | ?:[\\/]*) 6088 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 6089 ;; 6090 *) 6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6092for as_dir in $PATH 6093do 6094 IFS=$as_save_IFS 6095 test -z "$as_dir" && as_dir=. 6096 for ac_exec_ext in '' $ac_executable_extensions; do 6097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6098 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6100 break 2 6101 fi 6102done 6103 done 6104IFS=$as_save_IFS 6105 6106 ;; 6107esac 6108fi 6109vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 6110if test -n "$vi_cv_path_python3"; then 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6112$as_echo "$vi_cv_path_python3" >&6; } 6113else 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6115$as_echo "no" >&6; } 6116fi 6117 6118 6119 test -n "$vi_cv_path_python3" && break 6120done 6121 6122 if test "X$vi_cv_path_python3" != "X"; then 6123 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6125$as_echo_n "checking Python version... " >&6; } 6126if ${vi_cv_var_python3_version+:} false; then : 6127 $as_echo_n "(cached) " >&6 6128else 6129 vi_cv_var_python3_version=` 6130 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 6131 6132fi 6133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 6134$as_echo "$vi_cv_var_python3_version" >&6; } 6135 6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 6137$as_echo_n "checking Python is 3.0 or better... " >&6; } 6138 if ${vi_cv_path_python3} -c \ 6139 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" 6140 then 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6142$as_echo "yep" >&6; } 6143 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 6145$as_echo_n "checking Python's abiflags... " >&6; } 6146if ${vi_cv_var_python3_abiflags+:} false; then : 6147 $as_echo_n "(cached) " >&6 6148else 6149 6150 vi_cv_var_python3_abiflags= 6151 if ${vi_cv_path_python3} -c \ 6152 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" 6153 then 6154 vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ 6155 "import sys; print(sys.abiflags)"` 6156 fi 6157fi 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 6159$as_echo "$vi_cv_var_python3_abiflags" >&6; } 6160 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6162$as_echo_n "checking Python's install prefix... " >&6; } 6163if ${vi_cv_path_python3_pfx+:} false; then : 6164 $as_echo_n "(cached) " >&6 6165else 6166 vi_cv_path_python3_pfx=` 6167 ${vi_cv_path_python3} -c \ 6168 "import sys; print(sys.prefix)"` 6169fi 6170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 6171$as_echo "$vi_cv_path_python3_pfx" >&6; } 6172 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6174$as_echo_n "checking Python's execution prefix... " >&6; } 6175if ${vi_cv_path_python3_epfx+:} false; then : 6176 $as_echo_n "(cached) " >&6 6177else 6178 vi_cv_path_python3_epfx=` 6179 ${vi_cv_path_python3} -c \ 6180 "import sys; print(sys.exec_prefix)"` 6181fi 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 6183$as_echo "$vi_cv_path_python3_epfx" >&6; } 6184 6185 6186 if ${vi_cv_path_python3path+:} false; then : 6187 $as_echo_n "(cached) " >&6 6188else 6189 vi_cv_path_python3path=` 6190 unset PYTHONPATH; 6191 ${vi_cv_path_python3} -c \ 6192 "import sys, string; print(':'.join(sys.path))"` 6193fi 6194 6195 6196 6197 6198# Check whether --with-python3-config-dir was given. 6199if test "${with_python3_config_dir+set}" = set; then : 6200 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}" 6201fi 6202 6203 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6205$as_echo_n "checking Python's configuration directory... " >&6; } 6206if ${vi_cv_path_python3_conf+:} false; then : 6207 $as_echo_n "(cached) " >&6 6208else 6209 6210 vi_cv_path_python3_conf= 6211 config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6212 d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` 6213 if test -d "$d" && test -f "$d/config.c"; then 6214 vi_cv_path_python3_conf="$d" 6215 else 6216 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 6217 for subdir in lib64 lib share; do 6218 d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" 6219 if test -d "$d" && test -f "$d/config.c"; then 6220 vi_cv_path_python3_conf="$d" 6221 fi 6222 done 6223 done 6224 fi 6225 6226fi 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 6228$as_echo "$vi_cv_path_python3_conf" >&6; } 6229 6230 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 6231 6232 if test "X$PYTHON3_CONFDIR" = "X"; then 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6234$as_echo "can't find it!" >&6; } 6235 else 6236 6237 if ${vi_cv_path_python3_plibs+:} false; then : 6238 $as_echo_n "(cached) " >&6 6239else 6240 6241 pwd=`pwd` 6242 tmp_mkf="$pwd/config-PyMake$$" 6243 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6244__: 6245 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 6246 @echo "python3_LIBS='$(LIBS)'" 6247 @echo "python3_SYSLIBS='$(SYSLIBS)'" 6248 @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" 6249 @echo "python3_INSTSONAME='$(INSTSONAME)'" 6250eof 6251 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6252 rm -f -- "${tmp_mkf}" 6253 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6254 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" 6255 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 6256 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 6257 6258fi 6259 6260 if ${vi_cv_dll_name_python3+:} false; then : 6261 $as_echo_n "(cached) " >&6 6262else 6263 6264 if test "X$python3_DLLLIBRARY" != "X"; then 6265 vi_cv_dll_name_python3="$python3_DLLLIBRARY" 6266 else 6267 vi_cv_dll_name_python3="$python3_INSTSONAME" 6268 fi 6269 6270fi 6271 6272 6273 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 6274 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 6275 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" 6276 else 6277 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -I${vi_cv_path_python3_epfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" 6278 fi 6279 PYTHON3_SRC="if_python3.c" 6280 PYTHON3_OBJ="objects/if_python3.o" 6281 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6283$as_echo_n "checking if -pthread should be used... " >&6; } 6284 threadsafe_flag= 6285 thread_lib= 6286 if test "`(uname) 2>/dev/null`" != Darwin; then 6287 test "$GCC" = yes && threadsafe_flag="-pthread" 6288 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6289 threadsafe_flag="-D_THREAD_SAFE" 6290 thread_lib="-pthread" 6291 fi 6292 if test "`(uname) 2>/dev/null`" = SunOS; then 6293 threadsafe_flag="-pthreads" 6294 fi 6295 fi 6296 libs_save_old=$LIBS 6297 if test -n "$threadsafe_flag"; then 6298 cflags_save=$CFLAGS 6299 CFLAGS="$CFLAGS $threadsafe_flag" 6300 LIBS="$LIBS $thread_lib" 6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6302/* end confdefs.h. */ 6303 6304int 6305main () 6306{ 6307 6308 ; 6309 return 0; 6310} 6311_ACEOF 6312if ac_fn_c_try_link "$LINENO"; then : 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6314$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 6315else 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6317$as_echo "no" >&6; }; LIBS=$libs_save_old 6318 6319fi 6320rm -f core conftest.err conftest.$ac_objext \ 6321 conftest$ac_exeext conftest.$ac_ext 6322 CFLAGS=$cflags_save 6323 else 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6325$as_echo "no" >&6; } 6326 fi 6327 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 6329$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 6330 cflags_save=$CFLAGS 6331 libs_save=$LIBS 6332 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6333 LIBS="$LIBS $PYTHON3_LIBS" 6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6335/* end confdefs.h. */ 6336 6337int 6338main () 6339{ 6340 6341 ; 6342 return 0; 6343} 6344_ACEOF 6345if ac_fn_c_try_link "$LINENO"; then : 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6347$as_echo "yes" >&6; }; python3_ok=yes 6348else 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 6350$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 6351fi 6352rm -f core conftest.err conftest.$ac_objext \ 6353 conftest$ac_exeext conftest.$ac_ext 6354 CFLAGS=$cflags_save 6355 LIBS=$libs_save 6356 if test "$python3_ok" = yes; then 6357 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 6358 6359 else 6360 LIBS=$libs_save_old 6361 PYTHON3_SRC= 6362 PYTHON3_OBJ= 6363 PYTHON3_LIBS= 6364 PYTHON3_CFLAGS= 6365 fi 6366 fi 6367 else 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6369$as_echo "too old" >&6; } 6370 fi 6371 fi 6372 if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then 6373 as_fn_error $? "could not configure python3" "$LINENO" 5 6374 fi 6375fi 6376 6377 6378 6379 6380 6381 6382 6383if test "$python_ok" = yes && test "$python3_ok" = yes; then 6384 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6385 6386 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6387 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 6389$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } 6390 cflags_save=$CFLAGS 6391 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6392 libs_save=$LIBS 6393 LIBS="-ldl $LIBS" 6394 if test "$cross_compiling" = yes; then : 6395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6397as_fn_error $? "cannot run test program while cross compiling 6398See \`config.log' for more details" "$LINENO" 5; } 6399else 6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6401/* end confdefs.h. */ 6402 6403 #include <dlfcn.h> 6404 /* If this program fails, then RTLD_GLOBAL is needed. 6405 * RTLD_GLOBAL will be used and then it is not possible to 6406 * have both python versions enabled in the same vim instance. 6407 * Only the first python version used will be switched on. 6408 */ 6409 6410 int no_rtl_global_needed_for(char *python_instsoname, char *prefix) 6411 { 6412 int needed = 0; 6413 void* pylib = dlopen(python_instsoname, RTLD_LAZY); 6414 if (pylib != 0) 6415 { 6416 void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); 6417 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6418 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6419 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6420 (*pfx)(prefix); 6421 (*init)(); 6422 needed = (*simple)("import termios") == -1; 6423 (*final)(); 6424 dlclose(pylib); 6425 } 6426 return !needed; 6427 } 6428 6429 int main(int argc, char** argv) 6430 { 6431 int not_needed = 0; 6432 if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) 6433 not_needed = 1; 6434 return !not_needed; 6435 } 6436_ACEOF 6437if ac_fn_c_try_run "$LINENO"; then : 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6439$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 6440 6441else 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6443$as_echo "no" >&6; } 6444fi 6445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6446 conftest.$ac_objext conftest.beam conftest.$ac_ext 6447fi 6448 6449 6450 CFLAGS=$cflags_save 6451 LIBS=$libs_save 6452 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 6454$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } 6455 cflags_save=$CFLAGS 6456 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6457 libs_save=$LIBS 6458 LIBS="-ldl $LIBS" 6459 if test "$cross_compiling" = yes; then : 6460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6462as_fn_error $? "cannot run test program while cross compiling 6463See \`config.log' for more details" "$LINENO" 5; } 6464else 6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6466/* end confdefs.h. */ 6467 6468 #include <dlfcn.h> 6469 #include <wchar.h> 6470 /* If this program fails, then RTLD_GLOBAL is needed. 6471 * RTLD_GLOBAL will be used and then it is not possible to 6472 * have both python versions enabled in the same vim instance. 6473 * Only the first python version used will be switched on. 6474 */ 6475 6476 int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) 6477 { 6478 int needed = 0; 6479 void* pylib = dlopen(python_instsoname, RTLD_LAZY); 6480 if (pylib != 0) 6481 { 6482 void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); 6483 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6484 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6485 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6486 (*pfx)(prefix); 6487 (*init)(); 6488 needed = (*simple)("import termios") == -1; 6489 (*final)(); 6490 dlclose(pylib); 6491 } 6492 return !needed; 6493 } 6494 6495 int main(int argc, char** argv) 6496 { 6497 int not_needed = 0; 6498 if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) 6499 not_needed = 1; 6500 return !not_needed; 6501 } 6502_ACEOF 6503if ac_fn_c_try_run "$LINENO"; then : 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6505$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h 6506 6507else 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6509$as_echo "no" >&6; } 6510fi 6511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6512 conftest.$ac_objext conftest.beam conftest.$ac_ext 6513fi 6514 6515 6516 CFLAGS=$cflags_save 6517 LIBS=$libs_save 6518 6519 PYTHON_SRC="if_python.c" 6520 PYTHON_OBJ="objects/if_python.o" 6521 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6522 PYTHON_LIBS= 6523 PYTHON3_SRC="if_python3.c" 6524 PYTHON3_OBJ="objects/if_python3.o" 6525 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6526 PYTHON3_LIBS= 6527elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 6528 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6529 6530 PYTHON_SRC="if_python.c" 6531 PYTHON_OBJ="objects/if_python.o" 6532 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6533 PYTHON_LIBS= 6534elif test "$python_ok" = yes; then 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 6536$as_echo_n "checking if -fPIE can be added for Python... " >&6; } 6537 cflags_save=$CFLAGS 6538 libs_save=$LIBS 6539 CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" 6540 LIBS="$LIBS $PYTHON_LIBS" 6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6542/* end confdefs.h. */ 6543 6544int 6545main () 6546{ 6547 6548 ; 6549 return 0; 6550} 6551_ACEOF 6552if ac_fn_c_try_link "$LINENO"; then : 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6554$as_echo "yes" >&6; }; fpie_ok=yes 6555else 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6557$as_echo "no" >&6; }; fpie_ok=no 6558fi 6559rm -f core conftest.err conftest.$ac_objext \ 6560 conftest$ac_exeext conftest.$ac_ext 6561 CFLAGS=$cflags_save 6562 LIBS=$libs_save 6563 if test $fpie_ok = yes; then 6564 PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" 6565 fi 6566elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 6567 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6568 6569 PYTHON3_SRC="if_python3.c" 6570 PYTHON3_OBJ="objects/if_python3.o" 6571 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6572 PYTHON3_LIBS= 6573elif test "$python3_ok" = yes; then 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 6575$as_echo_n "checking if -fPIE can be added for Python3... " >&6; } 6576 cflags_save=$CFLAGS 6577 libs_save=$LIBS 6578 CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" 6579 LIBS="$LIBS $PYTHON3_LIBS" 6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6581/* end confdefs.h. */ 6582 6583int 6584main () 6585{ 6586 6587 ; 6588 return 0; 6589} 6590_ACEOF 6591if ac_fn_c_try_link "$LINENO"; then : 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6593$as_echo "yes" >&6; }; fpie_ok=yes 6594else 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6596$as_echo "no" >&6; }; fpie_ok=no 6597fi 6598rm -f core conftest.err conftest.$ac_objext \ 6599 conftest$ac_exeext conftest.$ac_ext 6600 CFLAGS=$cflags_save 6601 LIBS=$libs_save 6602 if test $fpie_ok = yes; then 6603 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" 6604 fi 6605fi 6606 6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 6608$as_echo_n "checking --enable-tclinterp argument... " >&6; } 6609# Check whether --enable-tclinterp was given. 6610if test "${enable_tclinterp+set}" = set; then : 6611 enableval=$enable_tclinterp; 6612else 6613 enable_tclinterp="no" 6614fi 6615 6616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 6617$as_echo "$enable_tclinterp" >&6; } 6618 6619if test "$enable_tclinterp" = "yes"; then 6620 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 6622$as_echo_n "checking --with-tclsh argument... " >&6; } 6623 6624# Check whether --with-tclsh was given. 6625if test "${with_tclsh+set}" = set; then : 6626 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 6627$as_echo "$tclsh_name" >&6; } 6628else 6629 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6630$as_echo "no" >&6; } 6631fi 6632 6633 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6634set dummy $tclsh_name; ac_word=$2 6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6636$as_echo_n "checking for $ac_word... " >&6; } 6637if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6638 $as_echo_n "(cached) " >&6 6639else 6640 case $vi_cv_path_tcl in 6641 [\\/]* | ?:[\\/]*) 6642 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6643 ;; 6644 *) 6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6646for as_dir in $PATH 6647do 6648 IFS=$as_save_IFS 6649 test -z "$as_dir" && as_dir=. 6650 for ac_exec_ext in '' $ac_executable_extensions; do 6651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6652 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6654 break 2 6655 fi 6656done 6657 done 6658IFS=$as_save_IFS 6659 6660 ;; 6661esac 6662fi 6663vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6664if test -n "$vi_cv_path_tcl"; then 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6666$as_echo "$vi_cv_path_tcl" >&6; } 6667else 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6669$as_echo "no" >&6; } 6670fi 6671 6672 6673 6674 6675 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 6676 tclsh_name="tclsh8.4" 6677 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6678set dummy $tclsh_name; ac_word=$2 6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6680$as_echo_n "checking for $ac_word... " >&6; } 6681if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683else 6684 case $vi_cv_path_tcl in 6685 [\\/]* | ?:[\\/]*) 6686 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6687 ;; 6688 *) 6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6690for as_dir in $PATH 6691do 6692 IFS=$as_save_IFS 6693 test -z "$as_dir" && as_dir=. 6694 for ac_exec_ext in '' $ac_executable_extensions; do 6695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6696 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6698 break 2 6699 fi 6700done 6701 done 6702IFS=$as_save_IFS 6703 6704 ;; 6705esac 6706fi 6707vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6708if test -n "$vi_cv_path_tcl"; then 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6710$as_echo "$vi_cv_path_tcl" >&6; } 6711else 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6713$as_echo "no" >&6; } 6714fi 6715 6716 6717 fi 6718 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 6719 tclsh_name="tclsh8.2" 6720 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6721set dummy $tclsh_name; ac_word=$2 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6723$as_echo_n "checking for $ac_word... " >&6; } 6724if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6725 $as_echo_n "(cached) " >&6 6726else 6727 case $vi_cv_path_tcl in 6728 [\\/]* | ?:[\\/]*) 6729 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6730 ;; 6731 *) 6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6733for as_dir in $PATH 6734do 6735 IFS=$as_save_IFS 6736 test -z "$as_dir" && as_dir=. 6737 for ac_exec_ext in '' $ac_executable_extensions; do 6738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6739 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6741 break 2 6742 fi 6743done 6744 done 6745IFS=$as_save_IFS 6746 6747 ;; 6748esac 6749fi 6750vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6751if test -n "$vi_cv_path_tcl"; then 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6753$as_echo "$vi_cv_path_tcl" >&6; } 6754else 6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6756$as_echo "no" >&6; } 6757fi 6758 6759 6760 fi 6761 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 6762 tclsh_name="tclsh8.0" 6763 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6764set dummy $tclsh_name; ac_word=$2 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6766$as_echo_n "checking for $ac_word... " >&6; } 6767if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6768 $as_echo_n "(cached) " >&6 6769else 6770 case $vi_cv_path_tcl in 6771 [\\/]* | ?:[\\/]*) 6772 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6773 ;; 6774 *) 6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6776for as_dir in $PATH 6777do 6778 IFS=$as_save_IFS 6779 test -z "$as_dir" && as_dir=. 6780 for ac_exec_ext in '' $ac_executable_extensions; do 6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6782 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6784 break 2 6785 fi 6786done 6787 done 6788IFS=$as_save_IFS 6789 6790 ;; 6791esac 6792fi 6793vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6794if test -n "$vi_cv_path_tcl"; then 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6796$as_echo "$vi_cv_path_tcl" >&6; } 6797else 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6799$as_echo "no" >&6; } 6800fi 6801 6802 6803 fi 6804 if test "X$vi_cv_path_tcl" = "X"; then 6805 tclsh_name="tclsh" 6806 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6807set dummy $tclsh_name; ac_word=$2 6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6809$as_echo_n "checking for $ac_word... " >&6; } 6810if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6811 $as_echo_n "(cached) " >&6 6812else 6813 case $vi_cv_path_tcl in 6814 [\\/]* | ?:[\\/]*) 6815 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6816 ;; 6817 *) 6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6819for as_dir in $PATH 6820do 6821 IFS=$as_save_IFS 6822 test -z "$as_dir" && as_dir=. 6823 for ac_exec_ext in '' $ac_executable_extensions; do 6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6825 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6827 break 2 6828 fi 6829done 6830 done 6831IFS=$as_save_IFS 6832 6833 ;; 6834esac 6835fi 6836vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6837if test -n "$vi_cv_path_tcl"; then 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6839$as_echo "$vi_cv_path_tcl" >&6; } 6840else 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6842$as_echo "no" >&6; } 6843fi 6844 6845 6846 fi 6847 if test "X$vi_cv_path_tcl" != "X"; then 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 6849$as_echo_n "checking Tcl version... " >&6; } 6850 if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then 6851 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 6853$as_echo "$tclver - OK" >&6; }; 6854 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 -` 6855 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 6857$as_echo_n "checking for location of Tcl include... " >&6; } 6858 if test "x$MACOSX" != "xyes"; then 6859 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 6860 else 6861 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 6862 fi 6863 TCL_INC= 6864 for try in $tclinc; do 6865 if test -f "$try/tcl.h"; then 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 6867$as_echo "$try/tcl.h" >&6; } 6868 TCL_INC=$try 6869 break 6870 fi 6871 done 6872 if test -z "$TCL_INC"; then 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6874$as_echo "<not found>" >&6; } 6875 SKIP_TCL=YES 6876 fi 6877 if test -z "$SKIP_TCL"; then 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 6879$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 6880 if test "x$MACOSX" != "xyes"; then 6881 tclcnf=`echo $tclinc | sed s/include/lib/g` 6882 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 6883 else 6884 tclcnf="/System/Library/Frameworks/Tcl.framework" 6885 fi 6886 for try in $tclcnf; do 6887 if test -f "$try/tclConfig.sh"; then 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 6889$as_echo "$try/tclConfig.sh" >&6; } 6890 . "$try/tclConfig.sh" 6891 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 6892 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'` 6893 break 6894 fi 6895 done 6896 if test -z "$TCL_LIBS"; then 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6898$as_echo "<not found>" >&6; } 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 6900$as_echo_n "checking for Tcl library by myself... " >&6; } 6901 tcllib=`echo $tclinc | sed s/include/lib/g` 6902 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 6903 for ext in .so .a ; do 6904 for ver in "" $tclver ; do 6905 for try in $tcllib ; do 6906 trylib=tcl$ver$ext 6907 if test -f "$try/lib$trylib" ; then 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 6909$as_echo "$try/lib$trylib" >&6; } 6910 TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" 6911 if test "`(uname) 2>/dev/null`" = SunOS && 6912 uname -r | grep '^5' >/dev/null; then 6913 TCL_LIBS="$TCL_LIBS -R $try" 6914 fi 6915 break 3 6916 fi 6917 done 6918 done 6919 done 6920 if test -z "$TCL_LIBS"; then 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6922$as_echo "<not found>" >&6; } 6923 SKIP_TCL=YES 6924 fi 6925 fi 6926 if test -z "$SKIP_TCL"; then 6927 $as_echo "#define FEAT_TCL 1" >>confdefs.h 6928 6929 TCL_SRC=if_tcl.c 6930 TCL_OBJ=objects/if_tcl.o 6931 TCL_PRO=if_tcl.pro 6932 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 6933 fi 6934 fi 6935 else 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 6937$as_echo "too old; need Tcl version 8.0 or later" >&6; } 6938 fi 6939 fi 6940 if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then 6941 as_fn_error $? "could not configure Tcl" "$LINENO" 5 6942 fi 6943fi 6944 6945 6946 6947 6948 6949 6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 6951$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 6952# Check whether --enable-rubyinterp was given. 6953if test "${enable_rubyinterp+set}" = set; then : 6954 enableval=$enable_rubyinterp; 6955else 6956 enable_rubyinterp="no" 6957fi 6958 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 6960$as_echo "$enable_rubyinterp" >&6; } 6961if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then 6962 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6963 as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 6964 fi 6965 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 6967$as_echo_n "checking --with-ruby-command argument... " >&6; } 6968 6969 6970# Check whether --with-ruby-command was given. 6971if test "${with_ruby_command+set}" = set; then : 6972 withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 6973$as_echo "$RUBY_CMD" >&6; } 6974else 6975 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 6976$as_echo "defaulting to $RUBY_CMD" >&6; } 6977fi 6978 6979 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 6980set dummy $RUBY_CMD; ac_word=$2 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6982$as_echo_n "checking for $ac_word... " >&6; } 6983if ${ac_cv_path_vi_cv_path_ruby+:} false; then : 6984 $as_echo_n "(cached) " >&6 6985else 6986 case $vi_cv_path_ruby in 6987 [\\/]* | ?:[\\/]*) 6988 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 6989 ;; 6990 *) 6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6992for as_dir in $PATH 6993do 6994 IFS=$as_save_IFS 6995 test -z "$as_dir" && as_dir=. 6996 for ac_exec_ext in '' $ac_executable_extensions; do 6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6998 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7000 break 2 7001 fi 7002done 7003 done 7004IFS=$as_save_IFS 7005 7006 ;; 7007esac 7008fi 7009vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 7010if test -n "$vi_cv_path_ruby"; then 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 7012$as_echo "$vi_cv_path_ruby" >&6; } 7013else 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7015$as_echo "no" >&6; } 7016fi 7017 7018 7019 if test "X$vi_cv_path_ruby" != "X"; then 7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7021$as_echo_n "checking Ruby version... " >&6; } 7022 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7024$as_echo "OK" >&6; } 7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7026$as_echo_n "checking Ruby rbconfig... " >&6; } 7027 ruby_rbconfig="RbConfig" 7028 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 7029 ruby_rbconfig="Config" 7030 fi 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 7032$as_echo "$ruby_rbconfig" >&6; } 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 7034$as_echo_n "checking Ruby header files... " >&6; } 7035 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` 7036 if test "X$rubyhdrdir" != "X"; then 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 7038$as_echo "$rubyhdrdir" >&6; } 7039 RUBY_CFLAGS="-I$rubyhdrdir" 7040 rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` 7041 if test -d "$rubyarchdir"; then 7042 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7043 fi 7044 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7045 if test "X$rubyversion" = "X"; then 7046 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7047 fi 7048 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7049 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7050 if test "X$rubylibs" != "X"; then 7051 RUBY_LIBS="$rubylibs" 7052 fi 7053 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` 7054 librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` 7055 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` 7056 if test -f "$rubylibdir/$librubya"; then 7057 librubyarg="$librubyarg" 7058 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7059 elif test "$librubyarg" = "libruby.a"; then 7060 librubyarg="-lruby" 7061 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7062 fi 7063 7064 if test "X$librubyarg" != "X"; then 7065 RUBY_LIBS="$librubyarg $RUBY_LIBS" 7066 fi 7067 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"` 7068 if test "X$rubyldflags" != "X"; then 7069 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 7070 if test "X$rubyldflags" != "X"; then 7071 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then 7072 LDFLAGS="$rubyldflags $LDFLAGS" 7073 fi 7074 fi 7075 fi 7076 RUBY_SRC="if_ruby.c" 7077 RUBY_OBJ="objects/if_ruby.o" 7078 RUBY_PRO="if_ruby.pro" 7079 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 7080 7081 if test "$enable_rubyinterp" = "dynamic"; then 7082 libruby=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"` 7083 $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h 7084 7085 RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS" 7086 RUBY_LIBS= 7087 fi 7088 else 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7090$as_echo "not found; disabling Ruby" >&6; } 7091 fi 7092 else 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7094$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7095 fi 7096 fi 7097 7098 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7099 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7100 fi 7101fi 7102 7103 7104 7105 7106 7107 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 7109$as_echo_n "checking --enable-cscope argument... " >&6; } 7110# Check whether --enable-cscope was given. 7111if test "${enable_cscope+set}" = set; then : 7112 enableval=$enable_cscope; 7113else 7114 enable_cscope="no" 7115fi 7116 7117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 7118$as_echo "$enable_cscope" >&6; } 7119if test "$enable_cscope" = "yes"; then 7120 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 7121 7122fi 7123 7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5 7125$as_echo_n "checking --enable-workshop argument... " >&6; } 7126# Check whether --enable-workshop was given. 7127if test "${enable_workshop+set}" = set; then : 7128 enableval=$enable_workshop; 7129else 7130 enable_workshop="no" 7131fi 7132 7133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5 7134$as_echo "$enable_workshop" >&6; } 7135if test "$enable_workshop" = "yes"; then 7136 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h 7137 7138 WORKSHOP_SRC="workshop.c integration.c" 7139 7140 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 7141 7142 if test "${enable_gui-xxx}" = xxx; then 7143 enable_gui=motif 7144 fi 7145fi 7146 7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 7148$as_echo_n "checking --disable-netbeans argument... " >&6; } 7149# Check whether --enable-netbeans was given. 7150if test "${enable_netbeans+set}" = set; then : 7151 enableval=$enable_netbeans; 7152else 7153 enable_netbeans="yes" 7154fi 7155 7156if test "$enable_netbeans" = "yes"; then 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7158$as_echo "no" >&6; } 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7160$as_echo_n "checking for socket in -lsocket... " >&6; } 7161if ${ac_cv_lib_socket_socket+:} false; then : 7162 $as_echo_n "(cached) " >&6 7163else 7164 ac_check_lib_save_LIBS=$LIBS 7165LIBS="-lsocket $LIBS" 7166cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7167/* end confdefs.h. */ 7168 7169/* Override any GCC internal prototype to avoid an error. 7170 Use char because int might match the return type of a GCC 7171 builtin and then its argument prototype would still apply. */ 7172#ifdef __cplusplus 7173extern "C" 7174#endif 7175char socket (); 7176int 7177main () 7178{ 7179return socket (); 7180 ; 7181 return 0; 7182} 7183_ACEOF 7184if ac_fn_c_try_link "$LINENO"; then : 7185 ac_cv_lib_socket_socket=yes 7186else 7187 ac_cv_lib_socket_socket=no 7188fi 7189rm -f core conftest.err conftest.$ac_objext \ 7190 conftest$ac_exeext conftest.$ac_ext 7191LIBS=$ac_check_lib_save_LIBS 7192fi 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7194$as_echo "$ac_cv_lib_socket_socket" >&6; } 7195if test "x$ac_cv_lib_socket_socket" = xyes; then : 7196 cat >>confdefs.h <<_ACEOF 7197#define HAVE_LIBSOCKET 1 7198_ACEOF 7199 7200 LIBS="-lsocket $LIBS" 7201 7202fi 7203 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7205$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7206if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7207 $as_echo_n "(cached) " >&6 7208else 7209 ac_check_lib_save_LIBS=$LIBS 7210LIBS="-lnsl $LIBS" 7211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7212/* end confdefs.h. */ 7213 7214/* Override any GCC internal prototype to avoid an error. 7215 Use char because int might match the return type of a GCC 7216 builtin and then its argument prototype would still apply. */ 7217#ifdef __cplusplus 7218extern "C" 7219#endif 7220char gethostbyname (); 7221int 7222main () 7223{ 7224return gethostbyname (); 7225 ; 7226 return 0; 7227} 7228_ACEOF 7229if ac_fn_c_try_link "$LINENO"; then : 7230 ac_cv_lib_nsl_gethostbyname=yes 7231else 7232 ac_cv_lib_nsl_gethostbyname=no 7233fi 7234rm -f core conftest.err conftest.$ac_objext \ 7235 conftest$ac_exeext conftest.$ac_ext 7236LIBS=$ac_check_lib_save_LIBS 7237fi 7238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7239$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7240if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7241 cat >>confdefs.h <<_ACEOF 7242#define HAVE_LIBNSL 1 7243_ACEOF 7244 7245 LIBS="-lnsl $LIBS" 7246 7247fi 7248 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling netbeans integration is possible" >&5 7250$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; } 7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7252/* end confdefs.h. */ 7253 7254#include <stdio.h> 7255#include <stdlib.h> 7256#include <stdarg.h> 7257#include <fcntl.h> 7258#include <netdb.h> 7259#include <netinet/in.h> 7260#include <errno.h> 7261#include <sys/types.h> 7262#include <sys/socket.h> 7263 /* Check bitfields */ 7264 struct nbbuf { 7265 unsigned int initDone:1; 7266 ushort signmaplen; 7267 }; 7268 7269int 7270main () 7271{ 7272 7273 /* Check creating a socket. */ 7274 struct sockaddr_in server; 7275 (void)socket(AF_INET, SOCK_STREAM, 0); 7276 (void)htons(100); 7277 (void)gethostbyname("microsoft.com"); 7278 if (errno == ECONNREFUSED) 7279 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7280 7281 ; 7282 return 0; 7283} 7284_ACEOF 7285if ac_fn_c_try_link "$LINENO"; then : 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7287$as_echo "yes" >&6; } 7288else 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7290$as_echo "no" >&6; }; enable_netbeans="no" 7291fi 7292rm -f core conftest.err conftest.$ac_objext \ 7293 conftest$ac_exeext conftest.$ac_ext 7294else 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7296$as_echo "yes" >&6; } 7297fi 7298if test "$enable_netbeans" = "yes"; then 7299 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 7300 7301 NETBEANS_SRC="netbeans.c" 7302 7303 NETBEANS_OBJ="objects/netbeans.o" 7304 7305fi 7306 7307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-sniff argument" >&5 7308$as_echo_n "checking --enable-sniff argument... " >&6; } 7309# Check whether --enable-sniff was given. 7310if test "${enable_sniff+set}" = set; then : 7311 enableval=$enable_sniff; 7312else 7313 enable_sniff="no" 7314fi 7315 7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sniff" >&5 7317$as_echo "$enable_sniff" >&6; } 7318if test "$enable_sniff" = "yes"; then 7319 $as_echo "#define FEAT_SNIFF 1" >>confdefs.h 7320 7321 SNIFF_SRC="if_sniff.c" 7322 7323 SNIFF_OBJ="objects/if_sniff.o" 7324 7325fi 7326 7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 7328$as_echo_n "checking --enable-multibyte argument... " >&6; } 7329# Check whether --enable-multibyte was given. 7330if test "${enable_multibyte+set}" = set; then : 7331 enableval=$enable_multibyte; 7332else 7333 enable_multibyte="no" 7334fi 7335 7336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 7337$as_echo "$enable_multibyte" >&6; } 7338if test "$enable_multibyte" = "yes"; then 7339 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 7340 7341fi 7342 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 7344$as_echo_n "checking --enable-hangulinput argument... " >&6; } 7345# Check whether --enable-hangulinput was given. 7346if test "${enable_hangulinput+set}" = set; then : 7347 enableval=$enable_hangulinput; 7348else 7349 enable_hangulinput="no" 7350fi 7351 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 7353$as_echo "$enable_hangulinput" >&6; } 7354 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 7356$as_echo_n "checking --enable-xim argument... " >&6; } 7357# Check whether --enable-xim was given. 7358if test "${enable_xim+set}" = set; then : 7359 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 7360$as_echo "$enable_xim" >&6; } 7361else 7362 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 7363$as_echo "defaulting to auto" >&6; } 7364fi 7365 7366 7367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 7368$as_echo_n "checking --enable-fontset argument... " >&6; } 7369# Check whether --enable-fontset was given. 7370if test "${enable_fontset+set}" = set; then : 7371 enableval=$enable_fontset; 7372else 7373 enable_fontset="no" 7374fi 7375 7376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 7377$as_echo "$enable_fontset" >&6; } 7378 7379test -z "$with_x" && with_x=yes 7380test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 7381if test "$with_x" = no; then 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 7383$as_echo "defaulting to: don't HAVE_X11" >&6; } 7384else 7385 7386 # Extract the first word of "xmkmf", so it can be a program name with args. 7387set dummy xmkmf; ac_word=$2 7388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7389$as_echo_n "checking for $ac_word... " >&6; } 7390if ${ac_cv_path_xmkmfpath+:} false; then : 7391 $as_echo_n "(cached) " >&6 7392else 7393 case $xmkmfpath in 7394 [\\/]* | ?:[\\/]*) 7395 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 7396 ;; 7397 *) 7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7399for as_dir in $PATH 7400do 7401 IFS=$as_save_IFS 7402 test -z "$as_dir" && as_dir=. 7403 for ac_exec_ext in '' $ac_executable_extensions; do 7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7405 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7407 break 2 7408 fi 7409done 7410 done 7411IFS=$as_save_IFS 7412 7413 ;; 7414esac 7415fi 7416xmkmfpath=$ac_cv_path_xmkmfpath 7417if test -n "$xmkmfpath"; then 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 7419$as_echo "$xmkmfpath" >&6; } 7420else 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7422$as_echo "no" >&6; } 7423fi 7424 7425 7426 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 7428$as_echo_n "checking for X... " >&6; } 7429 7430 7431# Check whether --with-x was given. 7432if test "${with_x+set}" = set; then : 7433 withval=$with_x; 7434fi 7435 7436# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7437if test "x$with_x" = xno; then 7438 # The user explicitly disabled X. 7439 have_x=disabled 7440else 7441 case $x_includes,$x_libraries in #( 7442 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 7443 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 7444 $as_echo_n "(cached) " >&6 7445else 7446 # One or both of the vars are not set, and there is no cached value. 7447ac_x_includes=no ac_x_libraries=no 7448rm -f -r conftest.dir 7449if mkdir conftest.dir; then 7450 cd conftest.dir 7451 cat >Imakefile <<'_ACEOF' 7452incroot: 7453 @echo incroot='${INCROOT}' 7454usrlibdir: 7455 @echo usrlibdir='${USRLIBDIR}' 7456libdir: 7457 @echo libdir='${LIBDIR}' 7458_ACEOF 7459 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 7460 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7461 for ac_var in incroot usrlibdir libdir; do 7462 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 7463 done 7464 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7465 for ac_extension in a so sl dylib la dll; do 7466 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 7467 test -f "$ac_im_libdir/libX11.$ac_extension"; then 7468 ac_im_usrlibdir=$ac_im_libdir; break 7469 fi 7470 done 7471 # Screen out bogus values from the imake configuration. They are 7472 # bogus both because they are the default anyway, and because 7473 # using them would break gcc on systems where it needs fixed includes. 7474 case $ac_im_incroot in 7475 /usr/include) ac_x_includes= ;; 7476 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7477 esac 7478 case $ac_im_usrlibdir in 7479 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 7480 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7481 esac 7482 fi 7483 cd .. 7484 rm -f -r conftest.dir 7485fi 7486 7487# Standard set of common directories for X headers. 7488# Check X11 before X11Rn because it is often a symlink to the current release. 7489ac_x_header_dirs=' 7490/usr/X11/include 7491/usr/X11R7/include 7492/usr/X11R6/include 7493/usr/X11R5/include 7494/usr/X11R4/include 7495 7496/usr/include/X11 7497/usr/include/X11R7 7498/usr/include/X11R6 7499/usr/include/X11R5 7500/usr/include/X11R4 7501 7502/usr/local/X11/include 7503/usr/local/X11R7/include 7504/usr/local/X11R6/include 7505/usr/local/X11R5/include 7506/usr/local/X11R4/include 7507 7508/usr/local/include/X11 7509/usr/local/include/X11R7 7510/usr/local/include/X11R6 7511/usr/local/include/X11R5 7512/usr/local/include/X11R4 7513 7514/usr/X386/include 7515/usr/x386/include 7516/usr/XFree86/include/X11 7517 7518/usr/include 7519/usr/local/include 7520/usr/unsupported/include 7521/usr/athena/include 7522/usr/local/x11r5/include 7523/usr/lpp/Xamples/include 7524 7525/usr/openwin/include 7526/usr/openwin/share/include' 7527 7528if test "$ac_x_includes" = no; then 7529 # Guess where to find include files, by looking for Xlib.h. 7530 # First, try using that file with no special directory specified. 7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7532/* end confdefs.h. */ 7533#include <X11/Xlib.h> 7534_ACEOF 7535if ac_fn_c_try_cpp "$LINENO"; then : 7536 # We can compile using X headers with no special include directory. 7537ac_x_includes= 7538else 7539 for ac_dir in $ac_x_header_dirs; do 7540 if test -r "$ac_dir/X11/Xlib.h"; then 7541 ac_x_includes=$ac_dir 7542 break 7543 fi 7544done 7545fi 7546rm -f conftest.err conftest.i conftest.$ac_ext 7547fi # $ac_x_includes = no 7548 7549if test "$ac_x_libraries" = no; then 7550 # Check for the libraries. 7551 # See if we find them without any special options. 7552 # Don't add to $LIBS permanently. 7553 ac_save_LIBS=$LIBS 7554 LIBS="-lX11 $LIBS" 7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7556/* end confdefs.h. */ 7557#include <X11/Xlib.h> 7558int 7559main () 7560{ 7561XrmInitialize () 7562 ; 7563 return 0; 7564} 7565_ACEOF 7566if ac_fn_c_try_link "$LINENO"; then : 7567 LIBS=$ac_save_LIBS 7568# We can link X programs with no special library path. 7569ac_x_libraries= 7570else 7571 LIBS=$ac_save_LIBS 7572for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7573do 7574 # Don't even attempt the hair of trying to link an X program! 7575 for ac_extension in a so sl dylib la dll; do 7576 if test -r "$ac_dir/libX11.$ac_extension"; then 7577 ac_x_libraries=$ac_dir 7578 break 2 7579 fi 7580 done 7581done 7582fi 7583rm -f core conftest.err conftest.$ac_objext \ 7584 conftest$ac_exeext conftest.$ac_ext 7585fi # $ac_x_libraries = no 7586 7587case $ac_x_includes,$ac_x_libraries in #( 7588 no,* | *,no | *\'*) 7589 # Didn't find X, or a directory has "'" in its name. 7590 ac_cv_have_x="have_x=no";; #( 7591 *) 7592 # Record where we found X for the cache. 7593 ac_cv_have_x="have_x=yes\ 7594 ac_x_includes='$ac_x_includes'\ 7595 ac_x_libraries='$ac_x_libraries'" 7596esac 7597fi 7598;; #( 7599 *) have_x=yes;; 7600 esac 7601 eval "$ac_cv_have_x" 7602fi # $with_x != no 7603 7604if test "$have_x" != yes; then 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 7606$as_echo "$have_x" >&6; } 7607 no_x=yes 7608else 7609 # If each of the values was on the command line, it overrides each guess. 7610 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7611 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7612 # Update the cache value to reflect the command line values. 7613 ac_cv_have_x="have_x=yes\ 7614 ac_x_includes='$x_includes'\ 7615 ac_x_libraries='$x_libraries'" 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 7617$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 7618fi 7619 7620if test "$no_x" = yes; then 7621 # Not all programs may use this symbol, but it does not hurt to define it. 7622 7623$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 7624 7625 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 7626else 7627 if test -n "$x_includes"; then 7628 X_CFLAGS="$X_CFLAGS -I$x_includes" 7629 fi 7630 7631 # It would also be nice to do this for all -L options, not just this one. 7632 if test -n "$x_libraries"; then 7633 X_LIBS="$X_LIBS -L$x_libraries" 7634 # For Solaris; some versions of Sun CC require a space after -R and 7635 # others require no space. Words are not sufficient . . . . 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 7637$as_echo_n "checking whether -R must be followed by a space... " >&6; } 7638 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 7639 ac_xsave_c_werror_flag=$ac_c_werror_flag 7640 ac_c_werror_flag=yes 7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7642/* end confdefs.h. */ 7643 7644int 7645main () 7646{ 7647 7648 ; 7649 return 0; 7650} 7651_ACEOF 7652if ac_fn_c_try_link "$LINENO"; then : 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7654$as_echo "no" >&6; } 7655 X_LIBS="$X_LIBS -R$x_libraries" 7656else 7657 LIBS="$ac_xsave_LIBS -R $x_libraries" 7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7659/* end confdefs.h. */ 7660 7661int 7662main () 7663{ 7664 7665 ; 7666 return 0; 7667} 7668_ACEOF 7669if ac_fn_c_try_link "$LINENO"; then : 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7671$as_echo "yes" >&6; } 7672 X_LIBS="$X_LIBS -R $x_libraries" 7673else 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 7675$as_echo "neither works" >&6; } 7676fi 7677rm -f core conftest.err conftest.$ac_objext \ 7678 conftest$ac_exeext conftest.$ac_ext 7679fi 7680rm -f core conftest.err conftest.$ac_objext \ 7681 conftest$ac_exeext conftest.$ac_ext 7682 ac_c_werror_flag=$ac_xsave_c_werror_flag 7683 LIBS=$ac_xsave_LIBS 7684 fi 7685 7686 # Check for system-dependent libraries X programs must link with. 7687 # Do this before checking for the system-independent R6 libraries 7688 # (-lICE), since we may need -lsocket or whatever for X linking. 7689 7690 if test "$ISC" = yes; then 7691 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 7692 else 7693 # Martyn Johnson says this is needed for Ultrix, if the X 7694 # libraries were built with DECnet support. And Karl Berry says 7695 # the Alpha needs dnet_stub (dnet does not exist). 7696 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7698/* end confdefs.h. */ 7699 7700/* Override any GCC internal prototype to avoid an error. 7701 Use char because int might match the return type of a GCC 7702 builtin and then its argument prototype would still apply. */ 7703#ifdef __cplusplus 7704extern "C" 7705#endif 7706char XOpenDisplay (); 7707int 7708main () 7709{ 7710return XOpenDisplay (); 7711 ; 7712 return 0; 7713} 7714_ACEOF 7715if ac_fn_c_try_link "$LINENO"; then : 7716 7717else 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 7719$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 7720if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 7721 $as_echo_n "(cached) " >&6 7722else 7723 ac_check_lib_save_LIBS=$LIBS 7724LIBS="-ldnet $LIBS" 7725cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7726/* end confdefs.h. */ 7727 7728/* Override any GCC internal prototype to avoid an error. 7729 Use char because int might match the return type of a GCC 7730 builtin and then its argument prototype would still apply. */ 7731#ifdef __cplusplus 7732extern "C" 7733#endif 7734char dnet_ntoa (); 7735int 7736main () 7737{ 7738return dnet_ntoa (); 7739 ; 7740 return 0; 7741} 7742_ACEOF 7743if ac_fn_c_try_link "$LINENO"; then : 7744 ac_cv_lib_dnet_dnet_ntoa=yes 7745else 7746 ac_cv_lib_dnet_dnet_ntoa=no 7747fi 7748rm -f core conftest.err conftest.$ac_objext \ 7749 conftest$ac_exeext conftest.$ac_ext 7750LIBS=$ac_check_lib_save_LIBS 7751fi 7752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 7753$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 7754if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 7755 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 7756fi 7757 7758 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 7760$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 7761if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 7762 $as_echo_n "(cached) " >&6 7763else 7764 ac_check_lib_save_LIBS=$LIBS 7765LIBS="-ldnet_stub $LIBS" 7766cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7767/* end confdefs.h. */ 7768 7769/* Override any GCC internal prototype to avoid an error. 7770 Use char because int might match the return type of a GCC 7771 builtin and then its argument prototype would still apply. */ 7772#ifdef __cplusplus 7773extern "C" 7774#endif 7775char dnet_ntoa (); 7776int 7777main () 7778{ 7779return dnet_ntoa (); 7780 ; 7781 return 0; 7782} 7783_ACEOF 7784if ac_fn_c_try_link "$LINENO"; then : 7785 ac_cv_lib_dnet_stub_dnet_ntoa=yes 7786else 7787 ac_cv_lib_dnet_stub_dnet_ntoa=no 7788fi 7789rm -f core conftest.err conftest.$ac_objext \ 7790 conftest$ac_exeext conftest.$ac_ext 7791LIBS=$ac_check_lib_save_LIBS 7792fi 7793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 7794$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 7795if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 7796 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 7797fi 7798 7799 fi 7800fi 7801rm -f core conftest.err conftest.$ac_objext \ 7802 conftest$ac_exeext conftest.$ac_ext 7803 LIBS="$ac_xsave_LIBS" 7804 7805 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 7806 # to get the SysV transport functions. 7807 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 7808 # needs -lnsl. 7809 # The nsl library prevents programs from opening the X display 7810 # on Irix 5.2, according to T.E. Dickey. 7811 # The functions gethostbyname, getservbyname, and inet_addr are 7812 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 7813 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 7814if test "x$ac_cv_func_gethostbyname" = xyes; then : 7815 7816fi 7817 7818 if test $ac_cv_func_gethostbyname = no; then 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7820$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7821if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7822 $as_echo_n "(cached) " >&6 7823else 7824 ac_check_lib_save_LIBS=$LIBS 7825LIBS="-lnsl $LIBS" 7826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827/* end confdefs.h. */ 7828 7829/* Override any GCC internal prototype to avoid an error. 7830 Use char because int might match the return type of a GCC 7831 builtin and then its argument prototype would still apply. */ 7832#ifdef __cplusplus 7833extern "C" 7834#endif 7835char gethostbyname (); 7836int 7837main () 7838{ 7839return gethostbyname (); 7840 ; 7841 return 0; 7842} 7843_ACEOF 7844if ac_fn_c_try_link "$LINENO"; then : 7845 ac_cv_lib_nsl_gethostbyname=yes 7846else 7847 ac_cv_lib_nsl_gethostbyname=no 7848fi 7849rm -f core conftest.err conftest.$ac_objext \ 7850 conftest$ac_exeext conftest.$ac_ext 7851LIBS=$ac_check_lib_save_LIBS 7852fi 7853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7854$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7855if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7856 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 7857fi 7858 7859 if test $ac_cv_lib_nsl_gethostbyname = no; then 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 7861$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 7862if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 7863 $as_echo_n "(cached) " >&6 7864else 7865 ac_check_lib_save_LIBS=$LIBS 7866LIBS="-lbsd $LIBS" 7867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7868/* end confdefs.h. */ 7869 7870/* Override any GCC internal prototype to avoid an error. 7871 Use char because int might match the return type of a GCC 7872 builtin and then its argument prototype would still apply. */ 7873#ifdef __cplusplus 7874extern "C" 7875#endif 7876char gethostbyname (); 7877int 7878main () 7879{ 7880return gethostbyname (); 7881 ; 7882 return 0; 7883} 7884_ACEOF 7885if ac_fn_c_try_link "$LINENO"; then : 7886 ac_cv_lib_bsd_gethostbyname=yes 7887else 7888 ac_cv_lib_bsd_gethostbyname=no 7889fi 7890rm -f core conftest.err conftest.$ac_objext \ 7891 conftest$ac_exeext conftest.$ac_ext 7892LIBS=$ac_check_lib_save_LIBS 7893fi 7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 7895$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 7896if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 7897 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 7898fi 7899 7900 fi 7901 fi 7902 7903 # [email protected] says without -lsocket, 7904 # socket/setsockopt and other routines are undefined under SCO ODT 7905 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 7906 # on later versions), says Simon Leinen: it contains gethostby* 7907 # variants that don't use the name server (or something). -lsocket 7908 # must be given before -lnsl if both are needed. We assume that 7909 # if connect needs -lnsl, so does gethostbyname. 7910 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 7911if test "x$ac_cv_func_connect" = xyes; then : 7912 7913fi 7914 7915 if test $ac_cv_func_connect = no; then 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 7917$as_echo_n "checking for connect in -lsocket... " >&6; } 7918if ${ac_cv_lib_socket_connect+:} false; then : 7919 $as_echo_n "(cached) " >&6 7920else 7921 ac_check_lib_save_LIBS=$LIBS 7922LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 7923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7924/* end confdefs.h. */ 7925 7926/* Override any GCC internal prototype to avoid an error. 7927 Use char because int might match the return type of a GCC 7928 builtin and then its argument prototype would still apply. */ 7929#ifdef __cplusplus 7930extern "C" 7931#endif 7932char connect (); 7933int 7934main () 7935{ 7936return connect (); 7937 ; 7938 return 0; 7939} 7940_ACEOF 7941if ac_fn_c_try_link "$LINENO"; then : 7942 ac_cv_lib_socket_connect=yes 7943else 7944 ac_cv_lib_socket_connect=no 7945fi 7946rm -f core conftest.err conftest.$ac_objext \ 7947 conftest$ac_exeext conftest.$ac_ext 7948LIBS=$ac_check_lib_save_LIBS 7949fi 7950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 7951$as_echo "$ac_cv_lib_socket_connect" >&6; } 7952if test "x$ac_cv_lib_socket_connect" = xyes; then : 7953 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 7954fi 7955 7956 fi 7957 7958 # Guillermo Gomez says -lposix is necessary on A/UX. 7959 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 7960if test "x$ac_cv_func_remove" = xyes; then : 7961 7962fi 7963 7964 if test $ac_cv_func_remove = no; then 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 7966$as_echo_n "checking for remove in -lposix... " >&6; } 7967if ${ac_cv_lib_posix_remove+:} false; then : 7968 $as_echo_n "(cached) " >&6 7969else 7970 ac_check_lib_save_LIBS=$LIBS 7971LIBS="-lposix $LIBS" 7972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7973/* end confdefs.h. */ 7974 7975/* Override any GCC internal prototype to avoid an error. 7976 Use char because int might match the return type of a GCC 7977 builtin and then its argument prototype would still apply. */ 7978#ifdef __cplusplus 7979extern "C" 7980#endif 7981char remove (); 7982int 7983main () 7984{ 7985return remove (); 7986 ; 7987 return 0; 7988} 7989_ACEOF 7990if ac_fn_c_try_link "$LINENO"; then : 7991 ac_cv_lib_posix_remove=yes 7992else 7993 ac_cv_lib_posix_remove=no 7994fi 7995rm -f core conftest.err conftest.$ac_objext \ 7996 conftest$ac_exeext conftest.$ac_ext 7997LIBS=$ac_check_lib_save_LIBS 7998fi 7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8000$as_echo "$ac_cv_lib_posix_remove" >&6; } 8001if test "x$ac_cv_lib_posix_remove" = xyes; then : 8002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8003fi 8004 8005 fi 8006 8007 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8008 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8009if test "x$ac_cv_func_shmat" = xyes; then : 8010 8011fi 8012 8013 if test $ac_cv_func_shmat = no; then 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8015$as_echo_n "checking for shmat in -lipc... " >&6; } 8016if ${ac_cv_lib_ipc_shmat+:} false; then : 8017 $as_echo_n "(cached) " >&6 8018else 8019 ac_check_lib_save_LIBS=$LIBS 8020LIBS="-lipc $LIBS" 8021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8022/* end confdefs.h. */ 8023 8024/* Override any GCC internal prototype to avoid an error. 8025 Use char because int might match the return type of a GCC 8026 builtin and then its argument prototype would still apply. */ 8027#ifdef __cplusplus 8028extern "C" 8029#endif 8030char shmat (); 8031int 8032main () 8033{ 8034return shmat (); 8035 ; 8036 return 0; 8037} 8038_ACEOF 8039if ac_fn_c_try_link "$LINENO"; then : 8040 ac_cv_lib_ipc_shmat=yes 8041else 8042 ac_cv_lib_ipc_shmat=no 8043fi 8044rm -f core conftest.err conftest.$ac_objext \ 8045 conftest$ac_exeext conftest.$ac_ext 8046LIBS=$ac_check_lib_save_LIBS 8047fi 8048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8049$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8050if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8051 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8052fi 8053 8054 fi 8055 fi 8056 8057 # Check for libraries that X11R6 Xt/Xaw programs need. 8058 ac_save_LDFLAGS=$LDFLAGS 8059 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8060 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8061 # check for ICE first), but we must link in the order -lSM -lICE or 8062 # we get undefined symbols. So assume we have SM if we have ICE. 8063 # These have to be linked with before -lX11, unlike the other 8064 # libraries we check for below, so use a different variable. 8065 # John Interrante, Karl Berry 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8067$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8068if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8069 $as_echo_n "(cached) " >&6 8070else 8071 ac_check_lib_save_LIBS=$LIBS 8072LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8073cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8074/* end confdefs.h. */ 8075 8076/* Override any GCC internal prototype to avoid an error. 8077 Use char because int might match the return type of a GCC 8078 builtin and then its argument prototype would still apply. */ 8079#ifdef __cplusplus 8080extern "C" 8081#endif 8082char IceConnectionNumber (); 8083int 8084main () 8085{ 8086return IceConnectionNumber (); 8087 ; 8088 return 0; 8089} 8090_ACEOF 8091if ac_fn_c_try_link "$LINENO"; then : 8092 ac_cv_lib_ICE_IceConnectionNumber=yes 8093else 8094 ac_cv_lib_ICE_IceConnectionNumber=no 8095fi 8096rm -f core conftest.err conftest.$ac_objext \ 8097 conftest$ac_exeext conftest.$ac_ext 8098LIBS=$ac_check_lib_save_LIBS 8099fi 8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8101$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8102if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8103 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8104fi 8105 8106 LDFLAGS=$ac_save_LDFLAGS 8107 8108fi 8109 8110 8111 if test "$zOSUnix" = "yes"; then 8112 CFLAGS="$CFLAGS -W c,dll" 8113 LDFLAGS="$LDFLAGS -W l,dll" 8114 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 8115 fi 8116 8117 8118 if test -d "$x_includes" && test ! -d "$x_libraries"; then 8119 x_libraries=`echo "$x_includes" | sed s/include/lib/` 8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 8121$as_echo "Corrected X libraries to $x_libraries" >&6; } 8122 X_LIBS="$X_LIBS -L$x_libraries" 8123 if test "`(uname) 2>/dev/null`" = SunOS && 8124 uname -r | grep '^5' >/dev/null; then 8125 X_LIBS="$X_LIBS -R $x_libraries" 8126 fi 8127 fi 8128 8129 if test -d "$x_libraries" && test ! -d "$x_includes"; then 8130 x_includes=`echo "$x_libraries" | sed s/lib/include/` 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 8132$as_echo "Corrected X includes to $x_includes" >&6; } 8133 X_CFLAGS="$X_CFLAGS -I$x_includes" 8134 fi 8135 8136 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 8137 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 8138 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 8139 8140 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 8142$as_echo_n "checking if X11 header files can be found... " >&6; } 8143 cflags_save=$CFLAGS 8144 CFLAGS="$CFLAGS $X_CFLAGS" 8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8146/* end confdefs.h. */ 8147#include <X11/Xlib.h> 8148#include <X11/Intrinsic.h> 8149int 8150main () 8151{ 8152 8153 ; 8154 return 0; 8155} 8156_ACEOF 8157if ac_fn_c_try_compile "$LINENO"; then : 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8159$as_echo "yes" >&6; } 8160else 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8162$as_echo "no" >&6; }; no_x=yes 8163fi 8164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8165 CFLAGS=$cflags_save 8166 8167 if test "${no_x-no}" = yes; then 8168 with_x=no 8169 else 8170 $as_echo "#define HAVE_X11 1" >>confdefs.h 8171 8172 X_LIB="-lXt -lX11"; 8173 8174 8175 ac_save_LDFLAGS="$LDFLAGS" 8176 LDFLAGS="-L$x_libraries $LDFLAGS" 8177 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 8179$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 8180if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then : 8181 $as_echo_n "(cached) " >&6 8182else 8183 ac_check_lib_save_LIBS=$LIBS 8184LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 8185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8186/* end confdefs.h. */ 8187 8188/* Override any GCC internal prototype to avoid an error. 8189 Use char because int might match the return type of a GCC 8190 builtin and then its argument prototype would still apply. */ 8191#ifdef __cplusplus 8192extern "C" 8193#endif 8194char _XdmcpAuthDoIt (); 8195int 8196main () 8197{ 8198return _XdmcpAuthDoIt (); 8199 ; 8200 return 0; 8201} 8202_ACEOF 8203if ac_fn_c_try_link "$LINENO"; then : 8204 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 8205else 8206 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 8207fi 8208rm -f core conftest.err conftest.$ac_objext \ 8209 conftest$ac_exeext conftest.$ac_ext 8210LIBS=$ac_check_lib_save_LIBS 8211fi 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 8213$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 8214if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then : 8215 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 8216fi 8217 8218 8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 8220$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 8221if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then : 8222 $as_echo_n "(cached) " >&6 8223else 8224 ac_check_lib_save_LIBS=$LIBS 8225LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8227/* end confdefs.h. */ 8228 8229/* Override any GCC internal prototype to avoid an error. 8230 Use char because int might match the return type of a GCC 8231 builtin and then its argument prototype would still apply. */ 8232#ifdef __cplusplus 8233extern "C" 8234#endif 8235char IceOpenConnection (); 8236int 8237main () 8238{ 8239return IceOpenConnection (); 8240 ; 8241 return 0; 8242} 8243_ACEOF 8244if ac_fn_c_try_link "$LINENO"; then : 8245 ac_cv_lib_ICE_IceOpenConnection=yes 8246else 8247 ac_cv_lib_ICE_IceOpenConnection=no 8248fi 8249rm -f core conftest.err conftest.$ac_objext \ 8250 conftest$ac_exeext conftest.$ac_ext 8251LIBS=$ac_check_lib_save_LIBS 8252fi 8253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 8254$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 8255if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then : 8256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 8257fi 8258 8259 8260 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 8262$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 8263if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : 8264 $as_echo_n "(cached) " >&6 8265else 8266 ac_check_lib_save_LIBS=$LIBS 8267LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 8268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8269/* end confdefs.h. */ 8270 8271/* Override any GCC internal prototype to avoid an error. 8272 Use char because int might match the return type of a GCC 8273 builtin and then its argument prototype would still apply. */ 8274#ifdef __cplusplus 8275extern "C" 8276#endif 8277char XpmCreatePixmapFromData (); 8278int 8279main () 8280{ 8281return XpmCreatePixmapFromData (); 8282 ; 8283 return 0; 8284} 8285_ACEOF 8286if ac_fn_c_try_link "$LINENO"; then : 8287 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 8288else 8289 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 8290fi 8291rm -f core conftest.err conftest.$ac_objext \ 8292 conftest$ac_exeext conftest.$ac_ext 8293LIBS=$ac_check_lib_save_LIBS 8294fi 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 8296$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 8297if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : 8298 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 8299fi 8300 8301 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 8303$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 8304 cflags_save=$CFLAGS 8305 if test "$GCC" = yes; then 8306 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 8307 else 8308 CFLAGS="$CFLAGS $X_CFLAGS" 8309 fi 8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8311/* end confdefs.h. */ 8312#include <X11/Xlib.h> 8313int 8314main () 8315{ 8316 8317 ; 8318 return 0; 8319} 8320_ACEOF 8321if ac_fn_c_try_compile "$LINENO"; then : 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8323$as_echo "no" >&6; } 8324else 8325 CFLAGS="$CFLAGS -Wno-implicit-int" 8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8327/* end confdefs.h. */ 8328#include <X11/Xlib.h> 8329int 8330main () 8331{ 8332 8333 ; 8334 return 0; 8335} 8336_ACEOF 8337if ac_fn_c_try_compile "$LINENO"; then : 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8339$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 8340else 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 8342$as_echo "test failed" >&6; } 8343 8344fi 8345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8346 8347fi 8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8349 CFLAGS=$cflags_save 8350 8351 LDFLAGS="$ac_save_LDFLAGS" 8352 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 8354$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 8355 if ${ac_cv_small_wchar_t+:} false; then : 8356 $as_echo_n "(cached) " >&6 8357else 8358 if test "$cross_compiling" = yes; then : 8359 as_fn_error $? "failed to compile test program" "$LINENO" 5 8360else 8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8362/* end confdefs.h. */ 8363 8364#include <X11/Xlib.h> 8365#if STDC_HEADERS 8366# include <stdlib.h> 8367# include <stddef.h> 8368#endif 8369 main() 8370 { 8371 if (sizeof(wchar_t) <= 2) 8372 exit(1); 8373 exit(0); 8374 } 8375_ACEOF 8376if ac_fn_c_try_run "$LINENO"; then : 8377 ac_cv_small_wchar_t="no" 8378else 8379 ac_cv_small_wchar_t="yes" 8380fi 8381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8382 conftest.$ac_objext conftest.beam conftest.$ac_ext 8383fi 8384 8385fi 8386 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 8388$as_echo "$ac_cv_small_wchar_t" >&6; } 8389 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 8390 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 8391 8392 fi 8393 8394 fi 8395fi 8396 8397test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 8398 8399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 8400$as_echo_n "checking --enable-gui argument... " >&6; } 8401# Check whether --enable-gui was given. 8402if test "${enable_gui+set}" = set; then : 8403 enableval=$enable_gui; 8404else 8405 enable_gui="auto" 8406fi 8407 8408 8409enable_gui_canon=`echo "_$enable_gui" | \ 8410 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 8411 8412SKIP_GTK2=YES 8413SKIP_GNOME=YES 8414SKIP_MOTIF=YES 8415SKIP_ATHENA=YES 8416SKIP_NEXTAW=YES 8417SKIP_PHOTON=YES 8418SKIP_CARBON=YES 8419GUITYPE=NONE 8420 8421if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 8422 SKIP_PHOTON= 8423 case "$enable_gui_canon" in 8424 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8425$as_echo "no GUI support" >&6; } 8426 SKIP_PHOTON=YES ;; 8427 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8428$as_echo "yes - automatic GUI support" >&6; } ;; 8429 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 8430$as_echo "auto - automatic GUI support" >&6; } ;; 8431 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 8432$as_echo "Photon GUI support" >&6; } ;; 8433 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8434$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8435 SKIP_PHOTON=YES ;; 8436 esac 8437 8438elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then 8439 SKIP_CARBON= 8440 case "$enable_gui_canon" in 8441 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8442$as_echo "no GUI support" >&6; } 8443 SKIP_CARBON=YES ;; 8444 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8445$as_echo "yes - automatic GUI support" >&6; } ;; 8446 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 8447$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 8448 SKIP_CARBON=YES ;; 8449 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 8450$as_echo "Carbon GUI support" >&6; } ;; 8451 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8452$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8453 SKIP_CARBON=YES ;; 8454 esac 8455 8456else 8457 8458 case "$enable_gui_canon" in 8459 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8460$as_echo "no GUI support" >&6; } ;; 8461 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 8462$as_echo "yes/auto - automatic GUI support" >&6; } 8463 SKIP_GTK2= 8464 SKIP_GNOME= 8465 SKIP_MOTIF= 8466 SKIP_ATHENA= 8467 SKIP_NEXTAW= 8468 SKIP_CARBON=;; 8469 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 8470$as_echo "GTK+ 2.x GUI support" >&6; } 8471 SKIP_GTK2=;; 8472 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 8473$as_echo "GNOME 2.x GUI support" >&6; } 8474 SKIP_GNOME= 8475 SKIP_GTK2=;; 8476 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 8477$as_echo "Motif GUI support" >&6; } 8478 SKIP_MOTIF=;; 8479 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 8480$as_echo "Athena GUI support" >&6; } 8481 SKIP_ATHENA=;; 8482 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 8483$as_echo "neXtaw GUI support" >&6; } 8484 SKIP_NEXTAW=;; 8485 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8486$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 8487 esac 8488 8489fi 8490 8491if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 8492 -a "$enable_gui_canon" != "gnome2"; then 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 8494$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 8495 # Check whether --enable-gtk2-check was given. 8496if test "${enable_gtk2_check+set}" = set; then : 8497 enableval=$enable_gtk2_check; 8498else 8499 enable_gtk2_check="yes" 8500fi 8501 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 8503$as_echo "$enable_gtk2_check" >&6; } 8504 if test "x$enable_gtk2_check" = "xno"; then 8505 SKIP_GTK2=YES 8506 SKIP_GNOME=YES 8507 fi 8508fi 8509 8510if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 8512$as_echo_n "checking whether or not to look for GNOME... " >&6; } 8513 # Check whether --enable-gnome-check was given. 8514if test "${enable_gnome_check+set}" = set; then : 8515 enableval=$enable_gnome_check; 8516else 8517 enable_gnome_check="no" 8518fi 8519 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 8521$as_echo "$enable_gnome_check" >&6; } 8522 if test "x$enable_gnome_check" = "xno"; then 8523 SKIP_GNOME=YES 8524 fi 8525fi 8526 8527if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 8529$as_echo_n "checking whether or not to look for Motif... " >&6; } 8530 # Check whether --enable-motif-check was given. 8531if test "${enable_motif_check+set}" = set; then : 8532 enableval=$enable_motif_check; 8533else 8534 enable_motif_check="yes" 8535fi 8536 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 8538$as_echo "$enable_motif_check" >&6; } 8539 if test "x$enable_motif_check" = "xno"; then 8540 SKIP_MOTIF=YES 8541 fi 8542fi 8543 8544if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 8546$as_echo_n "checking whether or not to look for Athena... " >&6; } 8547 # Check whether --enable-athena-check was given. 8548if test "${enable_athena_check+set}" = set; then : 8549 enableval=$enable_athena_check; 8550else 8551 enable_athena_check="yes" 8552fi 8553 8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 8555$as_echo "$enable_athena_check" >&6; } 8556 if test "x$enable_athena_check" = "xno"; then 8557 SKIP_ATHENA=YES 8558 fi 8559fi 8560 8561if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 8563$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 8564 # Check whether --enable-nextaw-check was given. 8565if test "${enable_nextaw_check+set}" = set; then : 8566 enableval=$enable_nextaw_check; 8567else 8568 enable_nextaw_check="yes" 8569fi 8570 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 8572$as_echo "$enable_nextaw_check" >&6; }; 8573 if test "x$enable_nextaw_check" = "xno"; then 8574 SKIP_NEXTAW=YES 8575 fi 8576fi 8577 8578if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 8580$as_echo_n "checking whether or not to look for Carbon... " >&6; } 8581 # Check whether --enable-carbon-check was given. 8582if test "${enable_carbon_check+set}" = set; then : 8583 enableval=$enable_carbon_check; 8584else 8585 enable_carbon_check="yes" 8586fi 8587 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 8589$as_echo "$enable_carbon_check" >&6; }; 8590 if test "x$enable_carbon_check" = "xno"; then 8591 SKIP_CARBON=YES 8592 fi 8593fi 8594 8595 8596if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 8598$as_echo_n "checking for Carbon GUI... " >&6; } 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8600$as_echo "yes" >&6; }; 8601 GUITYPE=CARBONGUI 8602 if test "$VIMNAME" = "vim"; then 8603 VIMNAME=Vim 8604 fi 8605 8606 if test "x$MACARCH" = "xboth"; then 8607 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 8608 else 8609 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 8610 fi 8611 8612 if test x$prefix = xNONE; then 8613 prefix=/Applications 8614 fi 8615 8616 datadir='${prefix}/Vim.app/Contents/Resources' 8617 8618 SKIP_GTK2=YES; 8619 SKIP_GNOME=YES; 8620 SKIP_MOTIF=YES; 8621 SKIP_ATHENA=YES; 8622 SKIP_NEXTAW=YES; 8623 SKIP_PHOTON=YES; 8624 SKIP_CARBON=YES 8625fi 8626 8627 8628 8629 8630 8631 8632 8633 8634if test -z "$SKIP_GTK2"; then 8635 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 8637$as_echo_n "checking --disable-gtktest argument... " >&6; } 8638 # Check whether --enable-gtktest was given. 8639if test "${enable_gtktest+set}" = set; then : 8640 enableval=$enable_gtktest; 8641else 8642 enable_gtktest=yes 8643fi 8644 8645 if test "x$enable_gtktest" = "xyes" ; then 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 8647$as_echo "gtk test enabled" >&6; } 8648 else 8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 8650$as_echo "gtk test disabled" >&6; } 8651 fi 8652 8653 if test "X$PKG_CONFIG" = "X"; then 8654 # Extract the first word of "pkg-config", so it can be a program name with args. 8655set dummy pkg-config; ac_word=$2 8656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8657$as_echo_n "checking for $ac_word... " >&6; } 8658if ${ac_cv_path_PKG_CONFIG+:} false; then : 8659 $as_echo_n "(cached) " >&6 8660else 8661 case $PKG_CONFIG in 8662 [\\/]* | ?:[\\/]*) 8663 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8664 ;; 8665 *) 8666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8667for as_dir in $PATH 8668do 8669 IFS=$as_save_IFS 8670 test -z "$as_dir" && as_dir=. 8671 for ac_exec_ext in '' $ac_executable_extensions; do 8672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8673 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8675 break 2 8676 fi 8677done 8678 done 8679IFS=$as_save_IFS 8680 8681 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8682 ;; 8683esac 8684fi 8685PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8686if test -n "$PKG_CONFIG"; then 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 8688$as_echo "$PKG_CONFIG" >&6; } 8689else 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8691$as_echo "no" >&6; } 8692fi 8693 8694 8695 fi 8696 8697 if test "x$PKG_CONFIG" != "xno"; then 8698 8699 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 8700 { 8701 min_gtk_version=2.2.0 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 8703$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 8704 no_gtk="" 8705 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8706 && $PKG_CONFIG --exists gtk+-2.0; then 8707 { 8708 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 8709 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 8710 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 8711 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8712 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8713 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8714 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8715 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8716 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8717 } 8718 else 8719 no_gtk=yes 8720 fi 8721 8722 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 8723 { 8724 ac_save_CFLAGS="$CFLAGS" 8725 ac_save_LIBS="$LIBS" 8726 CFLAGS="$CFLAGS $GTK_CFLAGS" 8727 LIBS="$LIBS $GTK_LIBS" 8728 8729 rm -f conf.gtktest 8730 if test "$cross_compiling" = yes; then : 8731 echo $ac_n "cross compiling; assumed OK... $ac_c" 8732else 8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8734/* end confdefs.h. */ 8735 8736#include <gtk/gtk.h> 8737#include <stdio.h> 8738#if STDC_HEADERS 8739# include <stdlib.h> 8740# include <stddef.h> 8741#endif 8742 8743int 8744main () 8745{ 8746int major, minor, micro; 8747char *tmp_version; 8748 8749system ("touch conf.gtktest"); 8750 8751/* HP/UX 9 (%@#!) writes to sscanf strings */ 8752tmp_version = g_strdup("$min_gtk_version"); 8753if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 8754 printf("%s, bad version string\n", "$min_gtk_version"); 8755 exit(1); 8756 } 8757 8758if ((gtk_major_version > major) || 8759 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 8760 ((gtk_major_version == major) && (gtk_minor_version == minor) && 8761 (gtk_micro_version >= micro))) 8762{ 8763 return 0; 8764} 8765return 1; 8766} 8767 8768_ACEOF 8769if ac_fn_c_try_run "$LINENO"; then : 8770 8771else 8772 no_gtk=yes 8773fi 8774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8775 conftest.$ac_objext conftest.beam conftest.$ac_ext 8776fi 8777 8778 CFLAGS="$ac_save_CFLAGS" 8779 LIBS="$ac_save_LIBS" 8780 } 8781 fi 8782 if test "x$no_gtk" = x ; then 8783 if test "x$enable_gtktest" = "xyes"; then 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8785$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 8786 else 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8788$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 8789 fi 8790 GUI_LIB_LOC="$GTK_LIBDIR" 8791 GTK_LIBNAME="$GTK_LIBS" 8792 GUI_INC_LOC="$GTK_CFLAGS" 8793 else 8794 { 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8796$as_echo "no" >&6; } 8797 GTK_CFLAGS="" 8798 GTK_LIBS="" 8799 : 8800 } 8801 fi 8802 } 8803 else 8804 GTK_CFLAGS="" 8805 GTK_LIBS="" 8806 : 8807 fi 8808 8809 8810 rm -f conf.gtktest 8811 8812 if test "x$GTK_CFLAGS" != "x"; then 8813 SKIP_ATHENA=YES 8814 SKIP_NEXTAW=YES 8815 SKIP_MOTIF=YES 8816 GUITYPE=GTK 8817 8818 fi 8819 fi 8820 if test "x$GUITYPE" = "xGTK"; then 8821 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ 8822 || test "0$gtk_minor_version" -ge 2; then 8823 $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h 8824 8825 fi 8826 if test -z "$SKIP_GNOME"; then 8827 { 8828 8829 8830 8831 8832 8833 8834# Check whether --with-gnome-includes was given. 8835if test "${with_gnome_includes+set}" = set; then : 8836 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 8837 8838fi 8839 8840 8841 8842# Check whether --with-gnome-libs was given. 8843if test "${with_gnome_libs+set}" = set; then : 8844 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 8845 8846fi 8847 8848 8849 8850# Check whether --with-gnome was given. 8851if test "${with_gnome+set}" = set; then : 8852 withval=$with_gnome; if test x$withval = xyes; then 8853 want_gnome=yes 8854 have_gnome=yes 8855 else 8856 if test "x$withval" = xno; then 8857 want_gnome=no 8858 else 8859 want_gnome=yes 8860 LDFLAGS="$LDFLAGS -L$withval/lib" 8861 CFLAGS="$CFLAGS -I$withval/include" 8862 gnome_prefix=$withval/lib 8863 fi 8864 fi 8865else 8866 want_gnome=yes 8867fi 8868 8869 8870 if test "x$want_gnome" = xyes; then 8871 { 8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 8873$as_echo_n "checking for libgnomeui-2.0... " >&6; } 8874 if $PKG_CONFIG --exists libgnomeui-2.0; then 8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8876$as_echo "yes" >&6; } 8877 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 8878 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 8879 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 8880 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 8882$as_echo_n "checking for FreeBSD... " >&6; } 8883 if test "`(uname) 2>/dev/null`" = FreeBSD; then 8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8885$as_echo "yes" >&6; } 8886 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 8887 GNOME_LIBS="$GNOME_LIBS -pthread" 8888 else 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8890$as_echo "no" >&6; } 8891 fi 8892 have_gnome=yes 8893 else 8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8895$as_echo "not found" >&6; } 8896 if test "x" = xfail; then 8897 as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 8898 fi 8899 fi 8900 } 8901 fi 8902 8903 if test "x$have_gnome" = xyes ; then 8904 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 8905 8906 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 8907 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 8908 fi 8909 } 8910 fi 8911 fi 8912fi 8913 8914if test "x$GUITYPE" = "xGTK"; then 8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 8916$as_echo_n "checking version of Gdk-Pixbuf... " >&6; } 8917 gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` 8918 if test "x$gdk_pixbuf_version" != x ; then 8919 gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ 8920 sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` 8921 if test "x$gdk_pixbuf_version_minor" != x -a \ 8922 $gdk_pixbuf_version_minor -ge 32 ; then 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5 8924$as_echo "OK." >&6; } 8925 # Extract the first word of "glib-compile-resources", so it can be a program name with args. 8926set dummy glib-compile-resources; ac_word=$2 8927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8928$as_echo_n "checking for $ac_word... " >&6; } 8929if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then : 8930 $as_echo_n "(cached) " >&6 8931else 8932 case $GLIB_COMPILE_RESOURCES in 8933 [\\/]* | ?:[\\/]*) 8934 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. 8935 ;; 8936 *) 8937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8938for as_dir in $PATH 8939do 8940 IFS=$as_save_IFS 8941 test -z "$as_dir" && as_dir=. 8942 for ac_exec_ext in '' $ac_executable_extensions; do 8943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8944 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext" 8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8946 break 2 8947 fi 8948done 8949 done 8950IFS=$as_save_IFS 8951 8952 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" 8953 ;; 8954esac 8955fi 8956GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES 8957if test -n "$GLIB_COMPILE_RESOURCES"; then 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 8959$as_echo "$GLIB_COMPILE_RESOURCES" >&6; } 8960else 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8962$as_echo "no" >&6; } 8963fi 8964 8965 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 8967$as_echo_n "checking glib-compile-resources... " >&6; } 8968 if test "x$GLIB_COMPILE_RESOURCES" = xno ; then 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 8970$as_echo "cannot be found in PATH." >&6; } 8971 else 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5 8973$as_echo "usable." >&6; } 8974 $as_echo "#define USE_GRESOURCE 1" >>confdefs.h 8975 8976 GRESOURCE_HDR="auto/gui_gtk_gresources.h" 8977 GRESOURCE_SRC="auto/gui_gtk_gresources.c" 8978 GRESOURCE_OBJ="objects/gui_gtk_gresources.o" 8979 fi 8980 else 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 8982$as_echo "not usable." >&6; } 8983 fi 8984 else 8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 8986$as_echo "cannot obtain from pkg_config." >&6; } 8987 fi 8988fi 8989 8990 8991 8992 8993 8994 8995if test -z "$SKIP_MOTIF"; then 8996 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" 8997 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 8998 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 9000$as_echo_n "checking for location of Motif GUI includes... " >&6; } 9001 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 9002 GUI_INC_LOC= 9003 for try in $gui_includes; do 9004 if test -f "$try/Xm/Xm.h"; then 9005 GUI_INC_LOC=$try 9006 fi 9007 done 9008 if test -n "$GUI_INC_LOC"; then 9009 if test "$GUI_INC_LOC" = /usr/include; then 9010 GUI_INC_LOC= 9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9012$as_echo "in default path" >&6; } 9013 else 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 9015$as_echo "$GUI_INC_LOC" >&6; } 9016 fi 9017 else 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9019$as_echo "<not found>" >&6; } 9020 SKIP_MOTIF=YES 9021 fi 9022fi 9023 9024 9025if test -z "$SKIP_MOTIF"; then 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 9027$as_echo_n "checking --with-motif-lib argument... " >&6; } 9028 9029# Check whether --with-motif-lib was given. 9030if test "${with_motif_lib+set}" = set; then : 9031 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 9032fi 9033 9034 9035 if test -n "$MOTIF_LIBNAME"; then 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 9037$as_echo "$MOTIF_LIBNAME" >&6; } 9038 GUI_LIB_LOC= 9039 else 9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9041$as_echo "no" >&6; } 9042 9043 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 9044 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 9046$as_echo_n "checking for location of Motif GUI libs... " >&6; } 9047 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC" 9048 GUI_LIB_LOC= 9049 for try in $gui_libs; do 9050 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 9051 if test -f "$libtry"; then 9052 GUI_LIB_LOC=$try 9053 fi 9054 done 9055 done 9056 if test -n "$GUI_LIB_LOC"; then 9057 if test "$GUI_LIB_LOC" = /usr/lib \ 9058 -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ 9059 -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then 9060 GUI_LIB_LOC= 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9062$as_echo "in default path" >&6; } 9063 else 9064 if test -n "$GUI_LIB_LOC"; then 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 9066$as_echo "$GUI_LIB_LOC" >&6; } 9067 if test "`(uname) 2>/dev/null`" = SunOS && 9068 uname -r | grep '^5' >/dev/null; then 9069 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 9070 fi 9071 fi 9072 fi 9073 MOTIF_LIBNAME=-lXm 9074 else 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9076$as_echo "<not found>" >&6; } 9077 SKIP_MOTIF=YES 9078 fi 9079 fi 9080fi 9081 9082if test -z "$SKIP_MOTIF"; then 9083 SKIP_ATHENA=YES 9084 SKIP_NEXTAW=YES 9085 GUITYPE=MOTIF 9086 9087fi 9088 9089 9090GUI_X_LIBS= 9091 9092if test -z "$SKIP_ATHENA"; then 9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 9094$as_echo_n "checking if Athena header files can be found... " >&6; } 9095 cflags_save=$CFLAGS 9096 CFLAGS="$CFLAGS $X_CFLAGS" 9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9098/* end confdefs.h. */ 9099 9100#include <X11/Intrinsic.h> 9101#include <X11/Xaw/Paned.h> 9102int 9103main () 9104{ 9105 9106 ; 9107 return 0; 9108} 9109_ACEOF 9110if ac_fn_c_try_compile "$LINENO"; then : 9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9112$as_echo "yes" >&6; } 9113else 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9115$as_echo "no" >&6; }; SKIP_ATHENA=YES 9116fi 9117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9118 CFLAGS=$cflags_save 9119fi 9120 9121if test -z "$SKIP_ATHENA"; then 9122 GUITYPE=ATHENA 9123fi 9124 9125if test -z "$SKIP_NEXTAW"; then 9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 9127$as_echo_n "checking if neXtaw header files can be found... " >&6; } 9128 cflags_save=$CFLAGS 9129 CFLAGS="$CFLAGS $X_CFLAGS" 9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9131/* end confdefs.h. */ 9132 9133#include <X11/Intrinsic.h> 9134#include <X11/neXtaw/Paned.h> 9135int 9136main () 9137{ 9138 9139 ; 9140 return 0; 9141} 9142_ACEOF 9143if ac_fn_c_try_compile "$LINENO"; then : 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9145$as_echo "yes" >&6; } 9146else 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9148$as_echo "no" >&6; }; SKIP_NEXTAW=YES 9149fi 9150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9151 CFLAGS=$cflags_save 9152fi 9153 9154if test -z "$SKIP_NEXTAW"; then 9155 GUITYPE=NEXTAW 9156fi 9157 9158if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9159 if test -n "$GUI_INC_LOC"; then 9160 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 9161 fi 9162 if test -n "$GUI_LIB_LOC"; then 9163 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 9164 fi 9165 9166 ldflags_save=$LDFLAGS 9167 LDFLAGS="$X_LIBS $LDFLAGS" 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 9169$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 9170if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 9171 $as_echo_n "(cached) " >&6 9172else 9173 ac_check_lib_save_LIBS=$LIBS 9174LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9176/* end confdefs.h. */ 9177 9178/* Override any GCC internal prototype to avoid an error. 9179 Use char because int might match the return type of a GCC 9180 builtin and then its argument prototype would still apply. */ 9181#ifdef __cplusplus 9182extern "C" 9183#endif 9184char XShapeQueryExtension (); 9185int 9186main () 9187{ 9188return XShapeQueryExtension (); 9189 ; 9190 return 0; 9191} 9192_ACEOF 9193if ac_fn_c_try_link "$LINENO"; then : 9194 ac_cv_lib_Xext_XShapeQueryExtension=yes 9195else 9196 ac_cv_lib_Xext_XShapeQueryExtension=no 9197fi 9198rm -f core conftest.err conftest.$ac_objext \ 9199 conftest$ac_exeext conftest.$ac_ext 9200LIBS=$ac_check_lib_save_LIBS 9201fi 9202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 9203$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 9204if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 9205 GUI_X_LIBS="-lXext" 9206fi 9207 9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 9209$as_echo_n "checking for wslen in -lw... " >&6; } 9210if ${ac_cv_lib_w_wslen+:} false; then : 9211 $as_echo_n "(cached) " >&6 9212else 9213 ac_check_lib_save_LIBS=$LIBS 9214LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9215cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9216/* end confdefs.h. */ 9217 9218/* Override any GCC internal prototype to avoid an error. 9219 Use char because int might match the return type of a GCC 9220 builtin and then its argument prototype would still apply. */ 9221#ifdef __cplusplus 9222extern "C" 9223#endif 9224char wslen (); 9225int 9226main () 9227{ 9228return wslen (); 9229 ; 9230 return 0; 9231} 9232_ACEOF 9233if ac_fn_c_try_link "$LINENO"; then : 9234 ac_cv_lib_w_wslen=yes 9235else 9236 ac_cv_lib_w_wslen=no 9237fi 9238rm -f core conftest.err conftest.$ac_objext \ 9239 conftest$ac_exeext conftest.$ac_ext 9240LIBS=$ac_check_lib_save_LIBS 9241fi 9242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 9243$as_echo "$ac_cv_lib_w_wslen" >&6; } 9244if test "x$ac_cv_lib_w_wslen" = xyes; then : 9245 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 9246fi 9247 9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 9249$as_echo_n "checking for dlsym in -ldl... " >&6; } 9250if ${ac_cv_lib_dl_dlsym+:} false; then : 9251 $as_echo_n "(cached) " >&6 9252else 9253 ac_check_lib_save_LIBS=$LIBS 9254LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9256/* end confdefs.h. */ 9257 9258/* Override any GCC internal prototype to avoid an error. 9259 Use char because int might match the return type of a GCC 9260 builtin and then its argument prototype would still apply. */ 9261#ifdef __cplusplus 9262extern "C" 9263#endif 9264char dlsym (); 9265int 9266main () 9267{ 9268return dlsym (); 9269 ; 9270 return 0; 9271} 9272_ACEOF 9273if ac_fn_c_try_link "$LINENO"; then : 9274 ac_cv_lib_dl_dlsym=yes 9275else 9276 ac_cv_lib_dl_dlsym=no 9277fi 9278rm -f core conftest.err conftest.$ac_objext \ 9279 conftest$ac_exeext conftest.$ac_ext 9280LIBS=$ac_check_lib_save_LIBS 9281fi 9282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 9283$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 9284if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 9285 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 9286fi 9287 9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 9289$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 9290if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then : 9291 $as_echo_n "(cached) " >&6 9292else 9293 ac_check_lib_save_LIBS=$LIBS 9294LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9296/* end confdefs.h. */ 9297 9298/* Override any GCC internal prototype to avoid an error. 9299 Use char because int might match the return type of a GCC 9300 builtin and then its argument prototype would still apply. */ 9301#ifdef __cplusplus 9302extern "C" 9303#endif 9304char XmuCreateStippledPixmap (); 9305int 9306main () 9307{ 9308return XmuCreateStippledPixmap (); 9309 ; 9310 return 0; 9311} 9312_ACEOF 9313if ac_fn_c_try_link "$LINENO"; then : 9314 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 9315else 9316 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 9317fi 9318rm -f core conftest.err conftest.$ac_objext \ 9319 conftest$ac_exeext conftest.$ac_ext 9320LIBS=$ac_check_lib_save_LIBS 9321fi 9322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 9323$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 9324if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then : 9325 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 9326fi 9327 9328 if test -z "$SKIP_MOTIF"; then 9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 9330$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 9331if ${ac_cv_lib_Xp_XpEndJob+:} false; then : 9332 $as_echo_n "(cached) " >&6 9333else 9334 ac_check_lib_save_LIBS=$LIBS 9335LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9337/* end confdefs.h. */ 9338 9339/* Override any GCC internal prototype to avoid an error. 9340 Use char because int might match the return type of a GCC 9341 builtin and then its argument prototype would still apply. */ 9342#ifdef __cplusplus 9343extern "C" 9344#endif 9345char XpEndJob (); 9346int 9347main () 9348{ 9349return XpEndJob (); 9350 ; 9351 return 0; 9352} 9353_ACEOF 9354if ac_fn_c_try_link "$LINENO"; then : 9355 ac_cv_lib_Xp_XpEndJob=yes 9356else 9357 ac_cv_lib_Xp_XpEndJob=no 9358fi 9359rm -f core conftest.err conftest.$ac_objext \ 9360 conftest$ac_exeext conftest.$ac_ext 9361LIBS=$ac_check_lib_save_LIBS 9362fi 9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 9364$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 9365if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then : 9366 GUI_X_LIBS="-lXp $GUI_X_LIBS" 9367fi 9368 9369 fi 9370 LDFLAGS=$ldflags_save 9371 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 9373$as_echo_n "checking for extra X11 defines... " >&6; } 9374 NARROW_PROTO= 9375 rm -fr conftestdir 9376 if mkdir conftestdir; then 9377 cd conftestdir 9378 cat > Imakefile <<'EOF' 9379acfindx: 9380 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 9381EOF 9382 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9383 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9384 fi 9385 cd .. 9386 rm -fr conftestdir 9387 fi 9388 if test -z "$NARROW_PROTO"; then 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9390$as_echo "no" >&6; } 9391 else 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 9393$as_echo "$NARROW_PROTO" >&6; } 9394 fi 9395 9396fi 9397 9398if test "$enable_xsmp" = "yes"; then 9399 cppflags_save=$CPPFLAGS 9400 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9401 for ac_header in X11/SM/SMlib.h 9402do : 9403 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 9404if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : 9405 cat >>confdefs.h <<_ACEOF 9406#define HAVE_X11_SM_SMLIB_H 1 9407_ACEOF 9408 9409fi 9410 9411done 9412 9413 CPPFLAGS=$cppflags_save 9414fi 9415 9416 9417if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2"; then 9418 cppflags_save=$CPPFLAGS 9419 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9420 for ac_header in X11/xpm.h X11/Sunkeysym.h 9421do : 9422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9423ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9424if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9425 cat >>confdefs.h <<_ACEOF 9426#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9427_ACEOF 9428 9429fi 9430 9431done 9432 9433 9434 if test ! "$enable_xim" = "no"; then 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 9436$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9438/* end confdefs.h. */ 9439#include <X11/Xlib.h> 9440_ACEOF 9441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9442 $EGREP "XIMText" >/dev/null 2>&1; then : 9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9444$as_echo "yes" >&6; } 9445else 9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 9447$as_echo "no; xim has been disabled" >&6; }; enable_xim="no" 9448fi 9449rm -f conftest* 9450 9451 fi 9452 CPPFLAGS=$cppflags_save 9453 9454 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 9455 -a "x$GUITYPE" != "xNONE" ; then 9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 9457$as_echo "X GUI selected; xim has been enabled" >&6; } 9458 enable_xim="yes" 9459 fi 9460fi 9461 9462if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9463 cppflags_save=$CPPFLAGS 9464 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 9466$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9468/* end confdefs.h. */ 9469 9470#include <X11/Intrinsic.h> 9471#include <X11/Xmu/Editres.h> 9472int 9473main () 9474{ 9475int i; i = 0; 9476 ; 9477 return 0; 9478} 9479_ACEOF 9480if ac_fn_c_try_compile "$LINENO"; then : 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9482$as_echo "yes" >&6; } 9483 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 9484 9485else 9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9487$as_echo "no" >&6; } 9488fi 9489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9490 CPPFLAGS=$cppflags_save 9491fi 9492 9493if test -z "$SKIP_MOTIF"; then 9494 cppflags_save=$CPPFLAGS 9495 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9496 if test "$zOSUnix" = "yes"; then 9497 xmheader="Xm/Xm.h" 9498 else 9499 xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h 9500 Xm/UnhighlightT.h Xm/Notebook.h" 9501 fi 9502 for ac_header in $xmheader 9503do : 9504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9505ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9506if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9507 cat >>confdefs.h <<_ACEOF 9508#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9509_ACEOF 9510 9511fi 9512 9513done 9514 9515 9516 if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 9518$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9520/* end confdefs.h. */ 9521#include <Xm/XpmP.h> 9522int 9523main () 9524{ 9525XpmAttributes_21 attr; 9526 ; 9527 return 0; 9528} 9529_ACEOF 9530if ac_fn_c_try_compile "$LINENO"; then : 9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9532$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 9533 9534else 9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9536$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 9537 9538 9539fi 9540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9541 else 9542 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 9543 9544 fi 9545 CPPFLAGS=$cppflags_save 9546fi 9547 9548if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 9550$as_echo "no GUI selected; xim has been disabled" >&6; } 9551 enable_xim="no" 9552fi 9553if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 9555$as_echo "no GUI selected; fontset has been disabled" >&6; } 9556 enable_fontset="no" 9557fi 9558if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 9560$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 9561 enable_fontset="no" 9562fi 9563 9564if test -z "$SKIP_PHOTON"; then 9565 GUITYPE=PHOTONGUI 9566fi 9567 9568 9569 9570 9571 9572 9573if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 9574 as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 9575fi 9576 9577if test "$enable_xim" = "yes"; then 9578 $as_echo "#define FEAT_XIM 1" >>confdefs.h 9579 9580fi 9581if test "$enable_fontset" = "yes"; then 9582 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 9583 9584fi 9585 9586 9587 9588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 9589$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 9590case `uname` in 9591 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9592$as_echo "yes" >&6; } 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 9594$as_echo_n "checking for CYGWIN clipboard support... " >&6; } 9595 if test "x$with_x" = "xno" ; then 9596 OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9598$as_echo "yes" >&6; } 9599 $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h 9600 9601 else 9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 9603$as_echo "no - using X11" >&6; } 9604 fi ;; 9605 9606 *) CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9607$as_echo "no" >&6; };; 9608esac 9609 9610if test "$enable_hangulinput" = "yes"; then 9611 if test "x$GUITYPE" = "xNONE"; then 9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 9613$as_echo "no GUI selected; hangul input has been disabled" >&6; } 9614 enable_hangulinput=no 9615 else 9616 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 9617 9618 HANGULIN_SRC=hangulin.c 9619 9620 HANGULIN_OBJ=objects/hangulin.o 9621 9622 fi 9623fi 9624 9625 9626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 9627$as_echo_n "checking whether toupper is broken... " >&6; } 9628if ${vim_cv_toupper_broken+:} false; then : 9629 $as_echo_n "(cached) " >&6 9630else 9631 9632 if test "$cross_compiling" = yes; then : 9633 9634 as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 9635 9636else 9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9638/* end confdefs.h. */ 9639 9640#include "confdefs.h" 9641#include <ctype.h> 9642#if STDC_HEADERS 9643# include <stdlib.h> 9644# include <stddef.h> 9645#endif 9646main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 9647 9648_ACEOF 9649if ac_fn_c_try_run "$LINENO"; then : 9650 9651 vim_cv_toupper_broken=yes 9652 9653else 9654 9655 vim_cv_toupper_broken=no 9656 9657fi 9658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9659 conftest.$ac_objext conftest.beam conftest.$ac_ext 9660fi 9661 9662fi 9663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 9664$as_echo "$vim_cv_toupper_broken" >&6; } 9665 9666if test "x$vim_cv_toupper_broken" = "xyes" ; then 9667 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 9668 9669fi 9670 9671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 9672$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 9673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9674/* end confdefs.h. */ 9675#include <stdio.h> 9676int 9677main () 9678{ 9679printf("(" __DATE__ " " __TIME__ ")"); 9680 ; 9681 return 0; 9682} 9683_ACEOF 9684if ac_fn_c_try_compile "$LINENO"; then : 9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9686$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 9687 9688else 9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9690$as_echo "no" >&6; } 9691fi 9692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9693 9694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 9695$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 9696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9697/* end confdefs.h. */ 9698#include <stdio.h> 9699int 9700main () 9701{ 9702int x __attribute__((unused)); 9703 ; 9704 return 0; 9705} 9706_ACEOF 9707if ac_fn_c_try_compile "$LINENO"; then : 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9709$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 9710 9711else 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9713$as_echo "no" >&6; } 9714fi 9715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9716 9717ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 9718if test "x$ac_cv_header_elf_h" = xyes; then : 9719 HAS_ELF=1 9720fi 9721 9722 9723if test "$HAS_ELF" = 1; then 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 9725$as_echo_n "checking for main in -lelf... " >&6; } 9726if ${ac_cv_lib_elf_main+:} false; then : 9727 $as_echo_n "(cached) " >&6 9728else 9729 ac_check_lib_save_LIBS=$LIBS 9730LIBS="-lelf $LIBS" 9731cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9732/* end confdefs.h. */ 9733 9734 9735int 9736main () 9737{ 9738return main (); 9739 ; 9740 return 0; 9741} 9742_ACEOF 9743if ac_fn_c_try_link "$LINENO"; then : 9744 ac_cv_lib_elf_main=yes 9745else 9746 ac_cv_lib_elf_main=no 9747fi 9748rm -f core conftest.err conftest.$ac_objext \ 9749 conftest$ac_exeext conftest.$ac_ext 9750LIBS=$ac_check_lib_save_LIBS 9751fi 9752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 9753$as_echo "$ac_cv_lib_elf_main" >&6; } 9754if test "x$ac_cv_lib_elf_main" = xyes; then : 9755 cat >>confdefs.h <<_ACEOF 9756#define HAVE_LIBELF 1 9757_ACEOF 9758 9759 LIBS="-lelf $LIBS" 9760 9761fi 9762 9763fi 9764 9765ac_header_dirent=no 9766for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 9767 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 9768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 9769$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 9770if eval \${$as_ac_Header+:} false; then : 9771 $as_echo_n "(cached) " >&6 9772else 9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9774/* end confdefs.h. */ 9775#include <sys/types.h> 9776#include <$ac_hdr> 9777 9778int 9779main () 9780{ 9781if ((DIR *) 0) 9782return 0; 9783 ; 9784 return 0; 9785} 9786_ACEOF 9787if ac_fn_c_try_compile "$LINENO"; then : 9788 eval "$as_ac_Header=yes" 9789else 9790 eval "$as_ac_Header=no" 9791fi 9792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9793fi 9794eval ac_res=\$$as_ac_Header 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9796$as_echo "$ac_res" >&6; } 9797if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9798 cat >>confdefs.h <<_ACEOF 9799#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 9800_ACEOF 9801 9802ac_header_dirent=$ac_hdr; break 9803fi 9804 9805done 9806# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 9807if test $ac_header_dirent = dirent.h; then 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 9809$as_echo_n "checking for library containing opendir... " >&6; } 9810if ${ac_cv_search_opendir+:} false; then : 9811 $as_echo_n "(cached) " >&6 9812else 9813 ac_func_search_save_LIBS=$LIBS 9814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9815/* end confdefs.h. */ 9816 9817/* Override any GCC internal prototype to avoid an error. 9818 Use char because int might match the return type of a GCC 9819 builtin and then its argument prototype would still apply. */ 9820#ifdef __cplusplus 9821extern "C" 9822#endif 9823char opendir (); 9824int 9825main () 9826{ 9827return opendir (); 9828 ; 9829 return 0; 9830} 9831_ACEOF 9832for ac_lib in '' dir; do 9833 if test -z "$ac_lib"; then 9834 ac_res="none required" 9835 else 9836 ac_res=-l$ac_lib 9837 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9838 fi 9839 if ac_fn_c_try_link "$LINENO"; then : 9840 ac_cv_search_opendir=$ac_res 9841fi 9842rm -f core conftest.err conftest.$ac_objext \ 9843 conftest$ac_exeext 9844 if ${ac_cv_search_opendir+:} false; then : 9845 break 9846fi 9847done 9848if ${ac_cv_search_opendir+:} false; then : 9849 9850else 9851 ac_cv_search_opendir=no 9852fi 9853rm conftest.$ac_ext 9854LIBS=$ac_func_search_save_LIBS 9855fi 9856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 9857$as_echo "$ac_cv_search_opendir" >&6; } 9858ac_res=$ac_cv_search_opendir 9859if test "$ac_res" != no; then : 9860 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9861 9862fi 9863 9864else 9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 9866$as_echo_n "checking for library containing opendir... " >&6; } 9867if ${ac_cv_search_opendir+:} false; then : 9868 $as_echo_n "(cached) " >&6 9869else 9870 ac_func_search_save_LIBS=$LIBS 9871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9872/* end confdefs.h. */ 9873 9874/* Override any GCC internal prototype to avoid an error. 9875 Use char because int might match the return type of a GCC 9876 builtin and then its argument prototype would still apply. */ 9877#ifdef __cplusplus 9878extern "C" 9879#endif 9880char opendir (); 9881int 9882main () 9883{ 9884return opendir (); 9885 ; 9886 return 0; 9887} 9888_ACEOF 9889for ac_lib in '' x; do 9890 if test -z "$ac_lib"; then 9891 ac_res="none required" 9892 else 9893 ac_res=-l$ac_lib 9894 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9895 fi 9896 if ac_fn_c_try_link "$LINENO"; then : 9897 ac_cv_search_opendir=$ac_res 9898fi 9899rm -f core conftest.err conftest.$ac_objext \ 9900 conftest$ac_exeext 9901 if ${ac_cv_search_opendir+:} false; then : 9902 break 9903fi 9904done 9905if ${ac_cv_search_opendir+:} false; then : 9906 9907else 9908 ac_cv_search_opendir=no 9909fi 9910rm conftest.$ac_ext 9911LIBS=$ac_func_search_save_LIBS 9912fi 9913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 9914$as_echo "$ac_cv_search_opendir" >&6; } 9915ac_res=$ac_cv_search_opendir 9916if test "$ac_res" != no; then : 9917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9918 9919fi 9920 9921fi 9922 9923 9924if test $ac_cv_header_sys_wait_h = no; then 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 9926$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9928/* end confdefs.h. */ 9929#include <sys/wait.h> 9930int 9931main () 9932{ 9933union wait xx, yy; xx = yy 9934 ; 9935 return 0; 9936} 9937_ACEOF 9938if ac_fn_c_try_compile "$LINENO"; then : 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9940$as_echo "yes" >&6; } 9941 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 9942 9943 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 9944 9945else 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9947$as_echo "no" >&6; } 9948fi 9949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9950fi 9951 9952for ac_header in stdarg.h stdint.h stdlib.h string.h \ 9953 sys/select.h sys/utsname.h termcap.h fcntl.h \ 9954 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 9955 termio.h iconv.h inttypes.h langinfo.h math.h \ 9956 unistd.h stropts.h errno.h sys/resource.h \ 9957 sys/systeminfo.h locale.h sys/stream.h termios.h \ 9958 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 9959 utime.h sys/param.h libintl.h libgen.h \ 9960 util/debug.h util/msg18n.h frame.h sys/acl.h \ 9961 sys/access.h sys/sysinfo.h wchar.h wctype.h 9962do : 9963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9964ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9965if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9966 cat >>confdefs.h <<_ACEOF 9967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9968_ACEOF 9969 9970fi 9971 9972done 9973 9974 9975for ac_header in sys/ptem.h 9976do : 9977 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 9978# include <sys/stream.h> 9979#endif 9980" 9981if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 9982 cat >>confdefs.h <<_ACEOF 9983#define HAVE_SYS_PTEM_H 1 9984_ACEOF 9985 9986fi 9987 9988done 9989 9990 9991for ac_header in sys/sysctl.h 9992do : 9993 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 9994# include <sys/param.h> 9995#endif 9996" 9997if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 9998 cat >>confdefs.h <<_ACEOF 9999#define HAVE_SYS_SYSCTL_H 1 10000_ACEOF 10001 10002fi 10003 10004done 10005 10006 10007 10008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 10009$as_echo_n "checking for pthread_np.h... " >&6; } 10010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10011/* end confdefs.h. */ 10012 10013#include <pthread.h> 10014#include <pthread_np.h> 10015int 10016main () 10017{ 10018int i; i = 0; 10019 ; 10020 return 0; 10021} 10022_ACEOF 10023if ac_fn_c_try_compile "$LINENO"; then : 10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10025$as_echo "yes" >&6; } 10026 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 10027 10028else 10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10030$as_echo "no" >&6; } 10031fi 10032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10033 10034for ac_header in strings.h 10035do : 10036 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 10037if test "x$ac_cv_header_strings_h" = xyes; then : 10038 cat >>confdefs.h <<_ACEOF 10039#define HAVE_STRINGS_H 1 10040_ACEOF 10041 10042fi 10043 10044done 10045 10046if test "x$MACOSX" = "xyes"; then 10047 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10048 10049else 10050 10051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 10052$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 10053cppflags_save=$CPPFLAGS 10054CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10056/* end confdefs.h. */ 10057 10058#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 10059# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 10060 /* but don't do it on AIX 5.1 (Uribarri) */ 10061#endif 10062#ifdef HAVE_XM_XM_H 10063# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 10064#endif 10065#ifdef HAVE_STRING_H 10066# include <string.h> 10067#endif 10068#if defined(HAVE_STRINGS_H) 10069# include <strings.h> 10070#endif 10071 10072int 10073main () 10074{ 10075int i; i = 0; 10076 ; 10077 return 0; 10078} 10079_ACEOF 10080if ac_fn_c_try_compile "$LINENO"; then : 10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10082$as_echo "yes" >&6; } 10083else 10084 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10085 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10087$as_echo "no" >&6; } 10088fi 10089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10090CPPFLAGS=$cppflags_save 10091fi 10092 10093if test $ac_cv_c_compiler_gnu = yes; then 10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 10095$as_echo_n "checking whether $CC needs -traditional... " >&6; } 10096if ${ac_cv_prog_gcc_traditional+:} false; then : 10097 $as_echo_n "(cached) " >&6 10098else 10099 ac_pattern="Autoconf.*'x'" 10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10101/* end confdefs.h. */ 10102#include <sgtty.h> 10103Autoconf TIOCGETP 10104_ACEOF 10105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10106 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10107 ac_cv_prog_gcc_traditional=yes 10108else 10109 ac_cv_prog_gcc_traditional=no 10110fi 10111rm -f conftest* 10112 10113 10114 if test $ac_cv_prog_gcc_traditional = no; then 10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10116/* end confdefs.h. */ 10117#include <termio.h> 10118Autoconf TCGETA 10119_ACEOF 10120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10121 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10122 ac_cv_prog_gcc_traditional=yes 10123fi 10124rm -f conftest* 10125 10126 fi 10127fi 10128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 10129$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 10130 if test $ac_cv_prog_gcc_traditional = yes; then 10131 CC="$CC -traditional" 10132 fi 10133fi 10134 10135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 10136$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 10137if ${ac_cv_c_const+:} false; then : 10138 $as_echo_n "(cached) " >&6 10139else 10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10141/* end confdefs.h. */ 10142 10143int 10144main () 10145{ 10146 10147#ifndef __cplusplus 10148 /* Ultrix mips cc rejects this sort of thing. */ 10149 typedef int charset[2]; 10150 const charset cs = { 0, 0 }; 10151 /* SunOS 4.1.1 cc rejects this. */ 10152 char const *const *pcpcc; 10153 char **ppc; 10154 /* NEC SVR4.0.2 mips cc rejects this. */ 10155 struct point {int x, y;}; 10156 static struct point const zero = {0,0}; 10157 /* AIX XL C 1.02.0.0 rejects this. 10158 It does not let you subtract one const X* pointer from another in 10159 an arm of an if-expression whose if-part is not a constant 10160 expression */ 10161 const char *g = "string"; 10162 pcpcc = &g + (g ? g-g : 0); 10163 /* HPUX 7.0 cc rejects these. */ 10164 ++pcpcc; 10165 ppc = (char**) pcpcc; 10166 pcpcc = (char const *const *) ppc; 10167 { /* SCO 3.2v4 cc rejects this sort of thing. */ 10168 char tx; 10169 char *t = &tx; 10170 char const *s = 0 ? (char *) 0 : (char const *) 0; 10171 10172 *t++ = 0; 10173 if (s) return 0; 10174 } 10175 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 10176 int x[] = {25, 17}; 10177 const int *foo = &x[0]; 10178 ++foo; 10179 } 10180 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 10181 typedef const int *iptr; 10182 iptr p = 0; 10183 ++p; 10184 } 10185 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 10186 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 10187 struct s { int j; const int *ap[3]; } bx; 10188 struct s *b = &bx; b->j = 5; 10189 } 10190 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 10191 const int foo = 10; 10192 if (!foo) return 0; 10193 } 10194 return !cs[0] && !zero.x; 10195#endif 10196 10197 ; 10198 return 0; 10199} 10200_ACEOF 10201if ac_fn_c_try_compile "$LINENO"; then : 10202 ac_cv_c_const=yes 10203else 10204 ac_cv_c_const=no 10205fi 10206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10207fi 10208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 10209$as_echo "$ac_cv_c_const" >&6; } 10210if test $ac_cv_c_const = no; then 10211 10212$as_echo "#define const /**/" >>confdefs.h 10213 10214fi 10215 10216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 10217$as_echo_n "checking for working volatile... " >&6; } 10218if ${ac_cv_c_volatile+:} false; then : 10219 $as_echo_n "(cached) " >&6 10220else 10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10222/* end confdefs.h. */ 10223 10224int 10225main () 10226{ 10227 10228volatile int x; 10229int * volatile y = (int *) 0; 10230return !x && !y; 10231 ; 10232 return 0; 10233} 10234_ACEOF 10235if ac_fn_c_try_compile "$LINENO"; then : 10236 ac_cv_c_volatile=yes 10237else 10238 ac_cv_c_volatile=no 10239fi 10240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10241fi 10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 10243$as_echo "$ac_cv_c_volatile" >&6; } 10244if test $ac_cv_c_volatile = no; then 10245 10246$as_echo "#define volatile /**/" >>confdefs.h 10247 10248fi 10249 10250ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 10251if test "x$ac_cv_type_mode_t" = xyes; then : 10252 10253else 10254 10255cat >>confdefs.h <<_ACEOF 10256#define mode_t int 10257_ACEOF 10258 10259fi 10260 10261ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 10262if test "x$ac_cv_type_off_t" = xyes; then : 10263 10264else 10265 10266cat >>confdefs.h <<_ACEOF 10267#define off_t long int 10268_ACEOF 10269 10270fi 10271 10272ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10273if test "x$ac_cv_type_pid_t" = xyes; then : 10274 10275else 10276 10277cat >>confdefs.h <<_ACEOF 10278#define pid_t int 10279_ACEOF 10280 10281fi 10282 10283ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10284if test "x$ac_cv_type_size_t" = xyes; then : 10285 10286else 10287 10288cat >>confdefs.h <<_ACEOF 10289#define size_t unsigned int 10290_ACEOF 10291 10292fi 10293 10294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 10295$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 10296if ${ac_cv_type_uid_t+:} false; then : 10297 $as_echo_n "(cached) " >&6 10298else 10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10300/* end confdefs.h. */ 10301#include <sys/types.h> 10302 10303_ACEOF 10304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10305 $EGREP "uid_t" >/dev/null 2>&1; then : 10306 ac_cv_type_uid_t=yes 10307else 10308 ac_cv_type_uid_t=no 10309fi 10310rm -f conftest* 10311 10312fi 10313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 10314$as_echo "$ac_cv_type_uid_t" >&6; } 10315if test $ac_cv_type_uid_t = no; then 10316 10317$as_echo "#define uid_t int" >>confdefs.h 10318 10319 10320$as_echo "#define gid_t int" >>confdefs.h 10321 10322fi 10323 10324ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 10325case $ac_cv_c_uint32_t in #( 10326 no|yes) ;; #( 10327 *) 10328 10329$as_echo "#define _UINT32_T 1" >>confdefs.h 10330 10331 10332cat >>confdefs.h <<_ACEOF 10333#define uint32_t $ac_cv_c_uint32_t 10334_ACEOF 10335;; 10336 esac 10337 10338 10339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 10340$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 10341if ${ac_cv_header_time+:} false; then : 10342 $as_echo_n "(cached) " >&6 10343else 10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10345/* end confdefs.h. */ 10346#include <sys/types.h> 10347#include <sys/time.h> 10348#include <time.h> 10349 10350int 10351main () 10352{ 10353if ((struct tm *) 0) 10354return 0; 10355 ; 10356 return 0; 10357} 10358_ACEOF 10359if ac_fn_c_try_compile "$LINENO"; then : 10360 ac_cv_header_time=yes 10361else 10362 ac_cv_header_time=no 10363fi 10364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10365fi 10366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 10367$as_echo "$ac_cv_header_time" >&6; } 10368if test $ac_cv_header_time = yes; then 10369 10370$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 10371 10372fi 10373 10374ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 10375if test "x$ac_cv_type_ino_t" = xyes; then : 10376 10377else 10378 10379cat >>confdefs.h <<_ACEOF 10380#define ino_t long 10381_ACEOF 10382 10383fi 10384 10385ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 10386if test "x$ac_cv_type_dev_t" = xyes; then : 10387 10388else 10389 10390cat >>confdefs.h <<_ACEOF 10391#define dev_t unsigned 10392_ACEOF 10393 10394fi 10395 10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 10397$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 10398if ${ac_cv_c_bigendian+:} false; then : 10399 $as_echo_n "(cached) " >&6 10400else 10401 ac_cv_c_bigendian=unknown 10402 # See if we're dealing with a universal compiler. 10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10404/* end confdefs.h. */ 10405#ifndef __APPLE_CC__ 10406 not a universal capable compiler 10407 #endif 10408 typedef int dummy; 10409 10410_ACEOF 10411if ac_fn_c_try_compile "$LINENO"; then : 10412 10413 # Check for potential -arch flags. It is not universal unless 10414 # there are at least two -arch flags with different values. 10415 ac_arch= 10416 ac_prev= 10417 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 10418 if test -n "$ac_prev"; then 10419 case $ac_word in 10420 i?86 | x86_64 | ppc | ppc64) 10421 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 10422 ac_arch=$ac_word 10423 else 10424 ac_cv_c_bigendian=universal 10425 break 10426 fi 10427 ;; 10428 esac 10429 ac_prev= 10430 elif test "x$ac_word" = "x-arch"; then 10431 ac_prev=arch 10432 fi 10433 done 10434fi 10435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10436 if test $ac_cv_c_bigendian = unknown; then 10437 # See if sys/param.h defines the BYTE_ORDER macro. 10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10439/* end confdefs.h. */ 10440#include <sys/types.h> 10441 #include <sys/param.h> 10442 10443int 10444main () 10445{ 10446#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 10447 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 10448 && LITTLE_ENDIAN) 10449 bogus endian macros 10450 #endif 10451 10452 ; 10453 return 0; 10454} 10455_ACEOF 10456if ac_fn_c_try_compile "$LINENO"; then : 10457 # It does; now see whether it defined to BIG_ENDIAN or not. 10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10459/* end confdefs.h. */ 10460#include <sys/types.h> 10461 #include <sys/param.h> 10462 10463int 10464main () 10465{ 10466#if BYTE_ORDER != BIG_ENDIAN 10467 not big endian 10468 #endif 10469 10470 ; 10471 return 0; 10472} 10473_ACEOF 10474if ac_fn_c_try_compile "$LINENO"; then : 10475 ac_cv_c_bigendian=yes 10476else 10477 ac_cv_c_bigendian=no 10478fi 10479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10480fi 10481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10482 fi 10483 if test $ac_cv_c_bigendian = unknown; then 10484 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10486/* end confdefs.h. */ 10487#include <limits.h> 10488 10489int 10490main () 10491{ 10492#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 10493 bogus endian macros 10494 #endif 10495 10496 ; 10497 return 0; 10498} 10499_ACEOF 10500if ac_fn_c_try_compile "$LINENO"; then : 10501 # It does; now see whether it defined to _BIG_ENDIAN or not. 10502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10503/* end confdefs.h. */ 10504#include <limits.h> 10505 10506int 10507main () 10508{ 10509#ifndef _BIG_ENDIAN 10510 not big endian 10511 #endif 10512 10513 ; 10514 return 0; 10515} 10516_ACEOF 10517if ac_fn_c_try_compile "$LINENO"; then : 10518 ac_cv_c_bigendian=yes 10519else 10520 ac_cv_c_bigendian=no 10521fi 10522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10523fi 10524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10525 fi 10526 if test $ac_cv_c_bigendian = unknown; then 10527 # Compile a test program. 10528 if test "$cross_compiling" = yes; then : 10529 # Try to guess by grepping values from an object file. 10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10531/* end confdefs.h. */ 10532short int ascii_mm[] = 10533 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 10534 short int ascii_ii[] = 10535 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 10536 int use_ascii (int i) { 10537 return ascii_mm[i] + ascii_ii[i]; 10538 } 10539 short int ebcdic_ii[] = 10540 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 10541 short int ebcdic_mm[] = 10542 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 10543 int use_ebcdic (int i) { 10544 return ebcdic_mm[i] + ebcdic_ii[i]; 10545 } 10546 extern int foo; 10547 10548int 10549main () 10550{ 10551return use_ascii (foo) == use_ebcdic (foo); 10552 ; 10553 return 0; 10554} 10555_ACEOF 10556if ac_fn_c_try_compile "$LINENO"; then : 10557 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 10558 ac_cv_c_bigendian=yes 10559 fi 10560 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 10561 if test "$ac_cv_c_bigendian" = unknown; then 10562 ac_cv_c_bigendian=no 10563 else 10564 # finding both strings is unlikely to happen, but who knows? 10565 ac_cv_c_bigendian=unknown 10566 fi 10567 fi 10568fi 10569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10570else 10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10572/* end confdefs.h. */ 10573$ac_includes_default 10574int 10575main () 10576{ 10577 10578 /* Are we little or big endian? From Harbison&Steele. */ 10579 union 10580 { 10581 long int l; 10582 char c[sizeof (long int)]; 10583 } u; 10584 u.l = 1; 10585 return u.c[sizeof (long int) - 1] == 1; 10586 10587 ; 10588 return 0; 10589} 10590_ACEOF 10591if ac_fn_c_try_run "$LINENO"; then : 10592 ac_cv_c_bigendian=no 10593else 10594 ac_cv_c_bigendian=yes 10595fi 10596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10597 conftest.$ac_objext conftest.beam conftest.$ac_ext 10598fi 10599 10600 fi 10601fi 10602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 10603$as_echo "$ac_cv_c_bigendian" >&6; } 10604 case $ac_cv_c_bigendian in #( 10605 yes) 10606 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 10607;; #( 10608 no) 10609 ;; #( 10610 universal) 10611 10612$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 10613 10614 ;; #( 10615 *) 10616 as_fn_error $? "unknown endianness 10617 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 10618 esac 10619 10620 10621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 10622$as_echo_n "checking for rlim_t... " >&6; } 10623if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 10625$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 10626else 10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10628/* end confdefs.h. */ 10629 10630#include <sys/types.h> 10631#if STDC_HEADERS 10632# include <stdlib.h> 10633# include <stddef.h> 10634#endif 10635#ifdef HAVE_SYS_RESOURCE_H 10636# include <sys/resource.h> 10637#endif 10638 10639_ACEOF 10640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10641 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 10642 ac_cv_type_rlim_t=yes 10643else 10644 ac_cv_type_rlim_t=no 10645fi 10646rm -f conftest* 10647 10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 10649$as_echo "$ac_cv_type_rlim_t" >&6; } 10650fi 10651if test $ac_cv_type_rlim_t = no; then 10652 cat >> confdefs.h <<\EOF 10653#define rlim_t unsigned long 10654EOF 10655fi 10656 10657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 10658$as_echo_n "checking for stack_t... " >&6; } 10659if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 10661$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 10662else 10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10664/* end confdefs.h. */ 10665 10666#include <sys/types.h> 10667#if STDC_HEADERS 10668# include <stdlib.h> 10669# include <stddef.h> 10670#endif 10671#include <signal.h> 10672 10673_ACEOF 10674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10675 $EGREP "stack_t" >/dev/null 2>&1; then : 10676 ac_cv_type_stack_t=yes 10677else 10678 ac_cv_type_stack_t=no 10679fi 10680rm -f conftest* 10681 10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 10683$as_echo "$ac_cv_type_stack_t" >&6; } 10684fi 10685if test $ac_cv_type_stack_t = no; then 10686 cat >> confdefs.h <<\EOF 10687#define stack_t struct sigaltstack 10688EOF 10689fi 10690 10691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 10692$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 10693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10694/* end confdefs.h. */ 10695 10696#include <sys/types.h> 10697#if STDC_HEADERS 10698# include <stdlib.h> 10699# include <stddef.h> 10700#endif 10701#include <signal.h> 10702#include "confdefs.h" 10703 10704int 10705main () 10706{ 10707stack_t sigstk; sigstk.ss_base = 0; 10708 ; 10709 return 0; 10710} 10711_ACEOF 10712if ac_fn_c_try_compile "$LINENO"; then : 10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10714$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 10715 10716else 10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10718$as_echo "no" >&6; } 10719fi 10720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10721 10722olibs="$LIBS" 10723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 10724$as_echo_n "checking --with-tlib argument... " >&6; } 10725 10726# Check whether --with-tlib was given. 10727if test "${with_tlib+set}" = set; then : 10728 withval=$with_tlib; 10729fi 10730 10731if test -n "$with_tlib"; then 10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 10733$as_echo "$with_tlib" >&6; } 10734 LIBS="$LIBS -l$with_tlib" 10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 10736$as_echo_n "checking for linking with $with_tlib library... " >&6; } 10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10738/* end confdefs.h. */ 10739 10740int 10741main () 10742{ 10743 10744 ; 10745 return 0; 10746} 10747_ACEOF 10748if ac_fn_c_try_link "$LINENO"; then : 10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 10750$as_echo "OK" >&6; } 10751else 10752 as_fn_error $? "FAILED" "$LINENO" 5 10753fi 10754rm -f core conftest.err conftest.$ac_objext \ 10755 conftest$ac_exeext conftest.$ac_ext 10756 olibs="$LIBS" 10757else 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 10759$as_echo "empty: automatic terminal library selection" >&6; } 10760 case "`uname -s 2>/dev/null`" in 10761 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; 10762 *) tlibs="tinfo ncurses termlib termcap curses";; 10763 esac 10764 for libname in $tlibs; do 10765 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 10766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 10767$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 10768if eval \${$as_ac_Lib+:} false; then : 10769 $as_echo_n "(cached) " >&6 10770else 10771 ac_check_lib_save_LIBS=$LIBS 10772LIBS="-l${libname} $LIBS" 10773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10774/* end confdefs.h. */ 10775 10776/* Override any GCC internal prototype to avoid an error. 10777 Use char because int might match the return type of a GCC 10778 builtin and then its argument prototype would still apply. */ 10779#ifdef __cplusplus 10780extern "C" 10781#endif 10782char tgetent (); 10783int 10784main () 10785{ 10786return tgetent (); 10787 ; 10788 return 0; 10789} 10790_ACEOF 10791if ac_fn_c_try_link "$LINENO"; then : 10792 eval "$as_ac_Lib=yes" 10793else 10794 eval "$as_ac_Lib=no" 10795fi 10796rm -f core conftest.err conftest.$ac_objext \ 10797 conftest$ac_exeext conftest.$ac_ext 10798LIBS=$ac_check_lib_save_LIBS 10799fi 10800eval ac_res=\$$as_ac_Lib 10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10802$as_echo "$ac_res" >&6; } 10803if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10804 cat >>confdefs.h <<_ACEOF 10805#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 10806_ACEOF 10807 10808 LIBS="-l${libname} $LIBS" 10809 10810fi 10811 10812 if test "x$olibs" != "x$LIBS"; then 10813 if test "$cross_compiling" = yes; then : 10814 res="FAIL" 10815else 10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10817/* end confdefs.h. */ 10818 10819#ifdef HAVE_TERMCAP_H 10820# include <termcap.h> 10821#endif 10822#if STDC_HEADERS 10823# include <stdlib.h> 10824# include <stddef.h> 10825#endif 10826main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 10827_ACEOF 10828if ac_fn_c_try_run "$LINENO"; then : 10829 res="OK" 10830else 10831 res="FAIL" 10832fi 10833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10834 conftest.$ac_objext conftest.beam conftest.$ac_ext 10835fi 10836 10837 if test "$res" = "OK"; then 10838 break 10839 fi 10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 10841$as_echo "$libname library is not usable" >&6; } 10842 LIBS="$olibs" 10843 fi 10844 done 10845 if test "x$olibs" = "x$LIBS"; then 10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 10847$as_echo "no terminal library found" >&6; } 10848 fi 10849fi 10850 10851if test "x$olibs" = "x$LIBS"; then 10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 10853$as_echo_n "checking for tgetent()... " >&6; } 10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10855/* end confdefs.h. */ 10856 10857int 10858main () 10859{ 10860char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 10861 ; 10862 return 0; 10863} 10864_ACEOF 10865if ac_fn_c_try_link "$LINENO"; then : 10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10867$as_echo "yes" >&6; } 10868else 10869 as_fn_error $? "NOT FOUND! 10870 You need to install a terminal library; for example ncurses. 10871 Or specify the name of the library with --with-tlib." "$LINENO" 5 10872fi 10873rm -f core conftest.err conftest.$ac_objext \ 10874 conftest$ac_exeext conftest.$ac_ext 10875fi 10876 10877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 10878$as_echo_n "checking whether we talk terminfo... " >&6; } 10879if ${vim_cv_terminfo+:} false; then : 10880 $as_echo_n "(cached) " >&6 10881else 10882 10883 if test "$cross_compiling" = yes; then : 10884 10885 as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 10886 10887else 10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10889/* end confdefs.h. */ 10890 10891#include "confdefs.h" 10892#ifdef HAVE_TERMCAP_H 10893# include <termcap.h> 10894#endif 10895#ifdef HAVE_STRING_H 10896# include <string.h> 10897#endif 10898#if STDC_HEADERS 10899# include <stdlib.h> 10900# include <stddef.h> 10901#endif 10902main() 10903{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 10904 10905_ACEOF 10906if ac_fn_c_try_run "$LINENO"; then : 10907 10908 vim_cv_terminfo=no 10909 10910else 10911 10912 vim_cv_terminfo=yes 10913 10914fi 10915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10916 conftest.$ac_objext conftest.beam conftest.$ac_ext 10917fi 10918 10919 10920fi 10921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 10922$as_echo "$vim_cv_terminfo" >&6; } 10923 10924if test "x$vim_cv_terminfo" = "xyes" ; then 10925 $as_echo "#define TERMINFO 1" >>confdefs.h 10926 10927fi 10928 10929if test "x$olibs" != "x$LIBS"; then 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 10931$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 10932if ${vim_cv_tgent+:} false; then : 10933 $as_echo_n "(cached) " >&6 10934else 10935 10936 if test "$cross_compiling" = yes; then : 10937 10938 as_fn_error $? "failed to compile test program." "$LINENO" 5 10939 10940else 10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10942/* end confdefs.h. */ 10943 10944#include "confdefs.h" 10945#ifdef HAVE_TERMCAP_H 10946# include <termcap.h> 10947#endif 10948#if STDC_HEADERS 10949# include <stdlib.h> 10950# include <stddef.h> 10951#endif 10952main() 10953{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 10954 10955_ACEOF 10956if ac_fn_c_try_run "$LINENO"; then : 10957 10958 vim_cv_tgent=zero 10959 10960else 10961 10962 vim_cv_tgent=non-zero 10963 10964fi 10965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10966 conftest.$ac_objext conftest.beam conftest.$ac_ext 10967fi 10968 10969 10970fi 10971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5 10972$as_echo "$vim_cv_tgent" >&6; } 10973 10974 if test "x$vim_cv_tgent" = "xzero" ; then 10975 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 10976 10977 fi 10978fi 10979 10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 10981$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 10982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10983/* end confdefs.h. */ 10984 10985#ifdef HAVE_TERMCAP_H 10986# include <termcap.h> 10987#endif 10988 10989int 10990main () 10991{ 10992ospeed = 20000 10993 ; 10994 return 0; 10995} 10996_ACEOF 10997if ac_fn_c_try_link "$LINENO"; then : 10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10999$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 11000 11001else 11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11003$as_echo "no" >&6; } 11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 11005$as_echo_n "checking whether ospeed can be extern... " >&6; } 11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11007/* end confdefs.h. */ 11008 11009#ifdef HAVE_TERMCAP_H 11010# include <termcap.h> 11011#endif 11012extern short ospeed; 11013 11014int 11015main () 11016{ 11017ospeed = 20000 11018 ; 11019 return 0; 11020} 11021_ACEOF 11022if ac_fn_c_try_link "$LINENO"; then : 11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11024$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 11025 11026else 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11028$as_echo "no" >&6; } 11029fi 11030rm -f core conftest.err conftest.$ac_objext \ 11031 conftest$ac_exeext conftest.$ac_ext 11032 11033fi 11034rm -f core conftest.err conftest.$ac_objext \ 11035 conftest$ac_exeext conftest.$ac_ext 11036 11037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 11038$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 11039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11040/* end confdefs.h. */ 11041 11042#ifdef HAVE_TERMCAP_H 11043# include <termcap.h> 11044#endif 11045 11046int 11047main () 11048{ 11049if (UP == 0 && BC == 0) PC = 1 11050 ; 11051 return 0; 11052} 11053_ACEOF 11054if ac_fn_c_try_link "$LINENO"; then : 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11056$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 11057 11058else 11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11060$as_echo "no" >&6; } 11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 11062$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11064/* end confdefs.h. */ 11065 11066#ifdef HAVE_TERMCAP_H 11067# include <termcap.h> 11068#endif 11069extern char *UP, *BC, PC; 11070 11071int 11072main () 11073{ 11074if (UP == 0 && BC == 0) PC = 1 11075 ; 11076 return 0; 11077} 11078_ACEOF 11079if ac_fn_c_try_link "$LINENO"; then : 11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11081$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 11082 11083else 11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11085$as_echo "no" >&6; } 11086fi 11087rm -f core conftest.err conftest.$ac_objext \ 11088 conftest$ac_exeext conftest.$ac_ext 11089 11090fi 11091rm -f core conftest.err conftest.$ac_objext \ 11092 conftest$ac_exeext conftest.$ac_ext 11093 11094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 11095$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 11096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11097/* end confdefs.h. */ 11098 11099#ifdef HAVE_TERMCAP_H 11100# include <termcap.h> 11101#endif 11102 11103int 11104main () 11105{ 11106extern int xx(); tputs("test", 1, (outfuntype)xx) 11107 ; 11108 return 0; 11109} 11110_ACEOF 11111if ac_fn_c_try_compile "$LINENO"; then : 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11113$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 11114 11115else 11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11117$as_echo "no" >&6; } 11118fi 11119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11120 11121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 11122$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 11123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11124/* end confdefs.h. */ 11125 11126#include <sys/types.h> 11127#include <sys/time.h> 11128#include <sys/select.h> 11129int 11130main () 11131{ 11132 11133 ; 11134 return 0; 11135} 11136_ACEOF 11137if ac_fn_c_try_compile "$LINENO"; then : 11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11139$as_echo "yes" >&6; } 11140 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 11141 11142else 11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11144$as_echo "no" >&6; } 11145fi 11146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11147 11148 11149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 11150$as_echo_n "checking for /dev/ptc... " >&6; } 11151if test -r /dev/ptc; then 11152 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 11153 11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11155$as_echo "yes" >&6; } 11156else 11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11158$as_echo "no" >&6; } 11159fi 11160 11161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 11162$as_echo_n "checking for SVR4 ptys... " >&6; } 11163if test -c /dev/ptmx ; then 11164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11165/* end confdefs.h. */ 11166 11167int 11168main () 11169{ 11170ptsname(0);grantpt(0);unlockpt(0); 11171 ; 11172 return 0; 11173} 11174_ACEOF 11175if ac_fn_c_try_link "$LINENO"; then : 11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11177$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 11178 11179else 11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11181$as_echo "no" >&6; } 11182fi 11183rm -f core conftest.err conftest.$ac_objext \ 11184 conftest$ac_exeext conftest.$ac_ext 11185else 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11187$as_echo "no" >&6; } 11188fi 11189 11190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 11191$as_echo_n "checking for ptyranges... " >&6; } 11192if test -d /dev/ptym ; then 11193 pdir='/dev/ptym' 11194else 11195 pdir='/dev' 11196fi 11197cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11198/* end confdefs.h. */ 11199#ifdef M_UNIX 11200 yes; 11201#endif 11202 11203_ACEOF 11204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11205 $EGREP "yes" >/dev/null 2>&1; then : 11206 ptys=`echo /dev/ptyp??` 11207else 11208 ptys=`echo $pdir/pty??` 11209fi 11210rm -f conftest* 11211 11212if test "$ptys" != "$pdir/pty??" ; then 11213 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 11214 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 11215 cat >>confdefs.h <<_ACEOF 11216#define PTYRANGE0 "$p0" 11217_ACEOF 11218 11219 cat >>confdefs.h <<_ACEOF 11220#define PTYRANGE1 "$p1" 11221_ACEOF 11222 11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 11224$as_echo "$p0 / $p1" >&6; } 11225else 11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 11227$as_echo "don't know" >&6; } 11228fi 11229 11230rm -f conftest_grp 11231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 11232$as_echo_n "checking default tty permissions/group... " >&6; } 11233if ${vim_cv_tty_group+:} false; then : 11234 $as_echo_n "(cached) " >&6 11235else 11236 11237 if test "$cross_compiling" = yes; then : 11238 11239 as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 11240 11241else 11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11243/* end confdefs.h. */ 11244 11245#include "confdefs.h" 11246#include <sys/types.h> 11247#if STDC_HEADERS 11248# include <stdlib.h> 11249# include <stddef.h> 11250#endif 11251#ifdef HAVE_UNISTD_H 11252#include <unistd.h> 11253#endif 11254#include <sys/stat.h> 11255#include <stdio.h> 11256main() 11257{ 11258 struct stat sb; 11259 char *x,*ttyname(); 11260 int om, m; 11261 FILE *fp; 11262 11263 if (!(x = ttyname(0))) exit(1); 11264 if (stat(x, &sb)) exit(1); 11265 om = sb.st_mode; 11266 if (om & 002) exit(0); 11267 m = system("mesg y"); 11268 if (m == -1 || m == 127) exit(1); 11269 if (stat(x, &sb)) exit(1); 11270 m = sb.st_mode; 11271 if (chmod(x, om)) exit(1); 11272 if (m & 002) exit(0); 11273 if (sb.st_gid == getgid()) exit(1); 11274 if (!(fp=fopen("conftest_grp", "w"))) 11275 exit(1); 11276 fprintf(fp, "%d\n", sb.st_gid); 11277 fclose(fp); 11278 exit(0); 11279} 11280 11281_ACEOF 11282if ac_fn_c_try_run "$LINENO"; then : 11283 11284 if test -f conftest_grp; then 11285 vim_cv_tty_group=`cat conftest_grp` 11286 if test "x$vim_cv_tty_mode" = "x" ; then 11287 vim_cv_tty_mode=0620 11288 fi 11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 11290$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 11291 else 11292 vim_cv_tty_group=world 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 11294$as_echo "ptys are world accessible" >&6; } 11295 fi 11296 11297else 11298 11299 vim_cv_tty_group=world 11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 11301$as_echo "can't determine - assume ptys are world accessible" >&6; } 11302 11303fi 11304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11305 conftest.$ac_objext conftest.beam conftest.$ac_ext 11306fi 11307 11308 11309fi 11310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 11311$as_echo "$vim_cv_tty_group" >&6; } 11312rm -f conftest_grp 11313 11314if test "x$vim_cv_tty_group" != "xworld" ; then 11315 cat >>confdefs.h <<_ACEOF 11316#define PTYGROUP $vim_cv_tty_group 11317_ACEOF 11318 11319 if test "x$vim_cv_tty_mode" = "x" ; then 11320 as_fn_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 (probably 0620)" "$LINENO" 5 11321 else 11322 $as_echo "#define PTYMODE 0620" >>confdefs.h 11323 11324 fi 11325fi 11326 11327 11328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 11329$as_echo_n "checking return type of signal handlers... " >&6; } 11330if ${ac_cv_type_signal+:} false; then : 11331 $as_echo_n "(cached) " >&6 11332else 11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11334/* end confdefs.h. */ 11335#include <sys/types.h> 11336#include <signal.h> 11337 11338int 11339main () 11340{ 11341return *(signal (0, 0)) (0) == 1; 11342 ; 11343 return 0; 11344} 11345_ACEOF 11346if ac_fn_c_try_compile "$LINENO"; then : 11347 ac_cv_type_signal=int 11348else 11349 ac_cv_type_signal=void 11350fi 11351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11352fi 11353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 11354$as_echo "$ac_cv_type_signal" >&6; } 11355 11356cat >>confdefs.h <<_ACEOF 11357#define RETSIGTYPE $ac_cv_type_signal 11358_ACEOF 11359 11360 11361 11362if test $ac_cv_type_signal = void; then 11363 $as_echo "#define SIGRETURN return" >>confdefs.h 11364 11365else 11366 $as_echo "#define SIGRETURN return 0" >>confdefs.h 11367 11368fi 11369 11370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 11371$as_echo_n "checking for struct sigcontext... " >&6; } 11372cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11373/* end confdefs.h. */ 11374 11375#include <signal.h> 11376test_sig() 11377{ 11378 struct sigcontext *scont; 11379 scont = (struct sigcontext *)0; 11380 return 1; 11381} 11382int 11383main () 11384{ 11385 11386 ; 11387 return 0; 11388} 11389_ACEOF 11390if ac_fn_c_try_compile "$LINENO"; then : 11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11392$as_echo "yes" >&6; } 11393 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 11394 11395else 11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11397$as_echo "no" >&6; } 11398fi 11399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11400 11401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 11402$as_echo_n "checking getcwd implementation is broken... " >&6; } 11403if ${vim_cv_getcwd_broken+:} false; then : 11404 $as_echo_n "(cached) " >&6 11405else 11406 11407 if test "$cross_compiling" = yes; then : 11408 11409 as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 11410 11411else 11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11413/* end confdefs.h. */ 11414 11415#include "confdefs.h" 11416#ifdef HAVE_UNISTD_H 11417#include <unistd.h> 11418#endif 11419char *dagger[] = { "IFS=pwd", 0 }; 11420main() 11421{ 11422 char buffer[500]; 11423 extern char **environ; 11424 environ = dagger; 11425 return getcwd(buffer, 500) ? 0 : 1; 11426} 11427 11428_ACEOF 11429if ac_fn_c_try_run "$LINENO"; then : 11430 11431 vim_cv_getcwd_broken=no 11432 11433else 11434 11435 vim_cv_getcwd_broken=yes 11436 11437fi 11438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11439 conftest.$ac_objext conftest.beam conftest.$ac_ext 11440fi 11441 11442 11443fi 11444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 11445$as_echo "$vim_cv_getcwd_broken" >&6; } 11446 11447if test "x$vim_cv_getcwd_broken" = "xyes" ; then 11448 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 11449 11450fi 11451 11452for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \ 11453 getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ 11454 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 11455 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 11456 sigvec strcasecmp strerror strftime stricmp strncasecmp \ 11457 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 11458 usleep utime utimes 11459do : 11460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11461ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11462if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11463 cat >>confdefs.h <<_ACEOF 11464#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11465_ACEOF 11466 11467fi 11468done 11469 11470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 11471$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 11472if ${ac_cv_sys_largefile_source+:} false; then : 11473 $as_echo_n "(cached) " >&6 11474else 11475 while :; do 11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11477/* end confdefs.h. */ 11478#include <sys/types.h> /* for off_t */ 11479 #include <stdio.h> 11480int 11481main () 11482{ 11483int (*fp) (FILE *, off_t, int) = fseeko; 11484 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 11485 ; 11486 return 0; 11487} 11488_ACEOF 11489if ac_fn_c_try_link "$LINENO"; then : 11490 ac_cv_sys_largefile_source=no; break 11491fi 11492rm -f core conftest.err conftest.$ac_objext \ 11493 conftest$ac_exeext conftest.$ac_ext 11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11495/* end confdefs.h. */ 11496#define _LARGEFILE_SOURCE 1 11497#include <sys/types.h> /* for off_t */ 11498 #include <stdio.h> 11499int 11500main () 11501{ 11502int (*fp) (FILE *, off_t, int) = fseeko; 11503 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 11504 ; 11505 return 0; 11506} 11507_ACEOF 11508if ac_fn_c_try_link "$LINENO"; then : 11509 ac_cv_sys_largefile_source=1; break 11510fi 11511rm -f core conftest.err conftest.$ac_objext \ 11512 conftest$ac_exeext conftest.$ac_ext 11513 ac_cv_sys_largefile_source=unknown 11514 break 11515done 11516fi 11517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 11518$as_echo "$ac_cv_sys_largefile_source" >&6; } 11519case $ac_cv_sys_largefile_source in #( 11520 no | unknown) ;; 11521 *) 11522cat >>confdefs.h <<_ACEOF 11523#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 11524_ACEOF 11525;; 11526esac 11527rm -rf conftest* 11528 11529# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 11530# in glibc 2.1.3, but that breaks too many other things. 11531# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 11532if test $ac_cv_sys_largefile_source != unknown; then 11533 11534$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 11535 11536fi 11537 11538 11539# Check whether --enable-largefile was given. 11540if test "${enable_largefile+set}" = set; then : 11541 enableval=$enable_largefile; 11542fi 11543 11544if test "$enable_largefile" != no; then 11545 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 11547$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 11548if ${ac_cv_sys_largefile_CC+:} false; then : 11549 $as_echo_n "(cached) " >&6 11550else 11551 ac_cv_sys_largefile_CC=no 11552 if test "$GCC" != yes; then 11553 ac_save_CC=$CC 11554 while :; do 11555 # IRIX 6.2 and later do not support large files by default, 11556 # so use the C compiler's -n32 option if that helps. 11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11558/* end confdefs.h. */ 11559#include <sys/types.h> 11560 /* Check that off_t can represent 2**63 - 1 correctly. 11561 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11562 since some C++ compilers masquerading as C compilers 11563 incorrectly reject 9223372036854775807. */ 11564#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 11565 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11566 && LARGE_OFF_T % 2147483647 == 1) 11567 ? 1 : -1]; 11568int 11569main () 11570{ 11571 11572 ; 11573 return 0; 11574} 11575_ACEOF 11576 if ac_fn_c_try_compile "$LINENO"; then : 11577 break 11578fi 11579rm -f core conftest.err conftest.$ac_objext 11580 CC="$CC -n32" 11581 if ac_fn_c_try_compile "$LINENO"; then : 11582 ac_cv_sys_largefile_CC=' -n32'; break 11583fi 11584rm -f core conftest.err conftest.$ac_objext 11585 break 11586 done 11587 CC=$ac_save_CC 11588 rm -f conftest.$ac_ext 11589 fi 11590fi 11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11592$as_echo "$ac_cv_sys_largefile_CC" >&6; } 11593 if test "$ac_cv_sys_largefile_CC" != no; then 11594 CC=$CC$ac_cv_sys_largefile_CC 11595 fi 11596 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 11598$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 11599if ${ac_cv_sys_file_offset_bits+:} false; then : 11600 $as_echo_n "(cached) " >&6 11601else 11602 while :; do 11603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11604/* end confdefs.h. */ 11605#include <sys/types.h> 11606 /* Check that off_t can represent 2**63 - 1 correctly. 11607 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11608 since some C++ compilers masquerading as C compilers 11609 incorrectly reject 9223372036854775807. */ 11610#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 11611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11612 && LARGE_OFF_T % 2147483647 == 1) 11613 ? 1 : -1]; 11614int 11615main () 11616{ 11617 11618 ; 11619 return 0; 11620} 11621_ACEOF 11622if ac_fn_c_try_compile "$LINENO"; then : 11623 ac_cv_sys_file_offset_bits=no; break 11624fi 11625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11627/* end confdefs.h. */ 11628#define _FILE_OFFSET_BITS 64 11629#include <sys/types.h> 11630 /* Check that off_t can represent 2**63 - 1 correctly. 11631 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11632 since some C++ compilers masquerading as C compilers 11633 incorrectly reject 9223372036854775807. */ 11634#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 11635 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11636 && LARGE_OFF_T % 2147483647 == 1) 11637 ? 1 : -1]; 11638int 11639main () 11640{ 11641 11642 ; 11643 return 0; 11644} 11645_ACEOF 11646if ac_fn_c_try_compile "$LINENO"; then : 11647 ac_cv_sys_file_offset_bits=64; break 11648fi 11649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11650 ac_cv_sys_file_offset_bits=unknown 11651 break 11652done 11653fi 11654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 11655$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 11656case $ac_cv_sys_file_offset_bits in #( 11657 no | unknown) ;; 11658 *) 11659cat >>confdefs.h <<_ACEOF 11660#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 11661_ACEOF 11662;; 11663esac 11664rm -rf conftest* 11665 if test $ac_cv_sys_file_offset_bits = unknown; then 11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 11667$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 11668if ${ac_cv_sys_large_files+:} false; then : 11669 $as_echo_n "(cached) " >&6 11670else 11671 while :; do 11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11673/* end confdefs.h. */ 11674#include <sys/types.h> 11675 /* Check that off_t can represent 2**63 - 1 correctly. 11676 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11677 since some C++ compilers masquerading as C compilers 11678 incorrectly reject 9223372036854775807. */ 11679#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 11680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11681 && LARGE_OFF_T % 2147483647 == 1) 11682 ? 1 : -1]; 11683int 11684main () 11685{ 11686 11687 ; 11688 return 0; 11689} 11690_ACEOF 11691if ac_fn_c_try_compile "$LINENO"; then : 11692 ac_cv_sys_large_files=no; break 11693fi 11694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11696/* end confdefs.h. */ 11697#define _LARGE_FILES 1 11698#include <sys/types.h> 11699 /* Check that off_t can represent 2**63 - 1 correctly. 11700 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11701 since some C++ compilers masquerading as C compilers 11702 incorrectly reject 9223372036854775807. */ 11703#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 11704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11705 && LARGE_OFF_T % 2147483647 == 1) 11706 ? 1 : -1]; 11707int 11708main () 11709{ 11710 11711 ; 11712 return 0; 11713} 11714_ACEOF 11715if ac_fn_c_try_compile "$LINENO"; then : 11716 ac_cv_sys_large_files=1; break 11717fi 11718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11719 ac_cv_sys_large_files=unknown 11720 break 11721done 11722fi 11723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 11724$as_echo "$ac_cv_sys_large_files" >&6; } 11725case $ac_cv_sys_large_files in #( 11726 no | unknown) ;; 11727 *) 11728cat >>confdefs.h <<_ACEOF 11729#define _LARGE_FILES $ac_cv_sys_large_files 11730_ACEOF 11731;; 11732esac 11733rm -rf conftest* 11734 fi 11735 11736 11737fi 11738 11739 11740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 11741$as_echo_n "checking for st_blksize... " >&6; } 11742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11743/* end confdefs.h. */ 11744#include <sys/types.h> 11745#include <sys/stat.h> 11746int 11747main () 11748{ 11749 struct stat st; 11750 int n; 11751 11752 stat("/", &st); 11753 n = (int)st.st_blksize; 11754 ; 11755 return 0; 11756} 11757_ACEOF 11758if ac_fn_c_try_compile "$LINENO"; then : 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11760$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 11761 11762else 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11764$as_echo "no" >&6; } 11765fi 11766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11767 11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 11769$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 11770if ${vim_cv_stat_ignores_slash+:} false; then : 11771 $as_echo_n "(cached) " >&6 11772else 11773 11774 if test "$cross_compiling" = yes; then : 11775 11776 as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 11777 11778else 11779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11780/* end confdefs.h. */ 11781 11782#include "confdefs.h" 11783#if STDC_HEADERS 11784# include <stdlib.h> 11785# include <stddef.h> 11786#endif 11787#include <sys/types.h> 11788#include <sys/stat.h> 11789main() {struct stat st; exit(stat("configure/", &st) != 0); } 11790 11791_ACEOF 11792if ac_fn_c_try_run "$LINENO"; then : 11793 11794 vim_cv_stat_ignores_slash=yes 11795 11796else 11797 11798 vim_cv_stat_ignores_slash=no 11799 11800fi 11801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11802 conftest.$ac_objext conftest.beam conftest.$ac_ext 11803fi 11804 11805 11806fi 11807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 11808$as_echo "$vim_cv_stat_ignores_slash" >&6; } 11809 11810if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 11811 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 11812 11813fi 11814 11815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 11816$as_echo_n "checking for iconv_open()... " >&6; } 11817save_LIBS="$LIBS" 11818LIBS="$LIBS -liconv" 11819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11820/* end confdefs.h. */ 11821 11822#ifdef HAVE_ICONV_H 11823# include <iconv.h> 11824#endif 11825 11826int 11827main () 11828{ 11829iconv_open("fr", "to"); 11830 ; 11831 return 0; 11832} 11833_ACEOF 11834if ac_fn_c_try_link "$LINENO"; then : 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 11836$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 11837 11838else 11839 LIBS="$save_LIBS" 11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11841/* end confdefs.h. */ 11842 11843#ifdef HAVE_ICONV_H 11844# include <iconv.h> 11845#endif 11846 11847int 11848main () 11849{ 11850iconv_open("fr", "to"); 11851 ; 11852 return 0; 11853} 11854_ACEOF 11855if ac_fn_c_try_link "$LINENO"; then : 11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11857$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 11858 11859else 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11861$as_echo "no" >&6; } 11862fi 11863rm -f core conftest.err conftest.$ac_objext \ 11864 conftest$ac_exeext conftest.$ac_ext 11865fi 11866rm -f core conftest.err conftest.$ac_objext \ 11867 conftest$ac_exeext conftest.$ac_ext 11868 11869 11870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 11871$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 11872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11873/* end confdefs.h. */ 11874 11875#ifdef HAVE_LANGINFO_H 11876# include <langinfo.h> 11877#endif 11878 11879int 11880main () 11881{ 11882char *cs = nl_langinfo(CODESET); 11883 ; 11884 return 0; 11885} 11886_ACEOF 11887if ac_fn_c_try_link "$LINENO"; then : 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11889$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 11890 11891else 11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11893$as_echo "no" >&6; } 11894fi 11895rm -f core conftest.err conftest.$ac_objext \ 11896 conftest$ac_exeext conftest.$ac_ext 11897 11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 11899$as_echo_n "checking for strtod in -lm... " >&6; } 11900if ${ac_cv_lib_m_strtod+:} false; then : 11901 $as_echo_n "(cached) " >&6 11902else 11903 ac_check_lib_save_LIBS=$LIBS 11904LIBS="-lm $LIBS" 11905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11906/* end confdefs.h. */ 11907 11908/* Override any GCC internal prototype to avoid an error. 11909 Use char because int might match the return type of a GCC 11910 builtin and then its argument prototype would still apply. */ 11911#ifdef __cplusplus 11912extern "C" 11913#endif 11914char strtod (); 11915int 11916main () 11917{ 11918return strtod (); 11919 ; 11920 return 0; 11921} 11922_ACEOF 11923if ac_fn_c_try_link "$LINENO"; then : 11924 ac_cv_lib_m_strtod=yes 11925else 11926 ac_cv_lib_m_strtod=no 11927fi 11928rm -f core conftest.err conftest.$ac_objext \ 11929 conftest$ac_exeext conftest.$ac_ext 11930LIBS=$ac_check_lib_save_LIBS 11931fi 11932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 11933$as_echo "$ac_cv_lib_m_strtod" >&6; } 11934if test "x$ac_cv_lib_m_strtod" = xyes; then : 11935 cat >>confdefs.h <<_ACEOF 11936#define HAVE_LIBM 1 11937_ACEOF 11938 11939 LIBS="-lm $LIBS" 11940 11941fi 11942 11943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 11944$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 11945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11946/* end confdefs.h. */ 11947 11948#ifdef HAVE_MATH_H 11949# include <math.h> 11950#endif 11951#if STDC_HEADERS 11952# include <stdlib.h> 11953# include <stddef.h> 11954#endif 11955 11956int 11957main () 11958{ 11959char *s; double d; 11960 d = strtod("1.1", &s); 11961 d = fabs(1.11); 11962 d = ceil(1.11); 11963 d = floor(1.11); 11964 d = log10(1.11); 11965 d = pow(1.11, 2.22); 11966 d = sqrt(1.11); 11967 d = sin(1.11); 11968 d = cos(1.11); 11969 d = atan(1.11); 11970 11971 ; 11972 return 0; 11973} 11974_ACEOF 11975if ac_fn_c_try_link "$LINENO"; then : 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11977$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 11978 11979else 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11981$as_echo "no" >&6; } 11982fi 11983rm -f core conftest.err conftest.$ac_objext \ 11984 conftest$ac_exeext conftest.$ac_ext 11985 11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 11987$as_echo_n "checking --disable-acl argument... " >&6; } 11988# Check whether --enable-acl was given. 11989if test "${enable_acl+set}" = set; then : 11990 enableval=$enable_acl; 11991else 11992 enable_acl="yes" 11993fi 11994 11995if test "$enable_acl" = "yes"; then 11996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11997$as_echo "no" >&6; } 11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 11999$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 12000if ${ac_cv_lib_posix1e_acl_get_file+:} false; then : 12001 $as_echo_n "(cached) " >&6 12002else 12003 ac_check_lib_save_LIBS=$LIBS 12004LIBS="-lposix1e $LIBS" 12005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12006/* end confdefs.h. */ 12007 12008/* Override any GCC internal prototype to avoid an error. 12009 Use char because int might match the return type of a GCC 12010 builtin and then its argument prototype would still apply. */ 12011#ifdef __cplusplus 12012extern "C" 12013#endif 12014char acl_get_file (); 12015int 12016main () 12017{ 12018return acl_get_file (); 12019 ; 12020 return 0; 12021} 12022_ACEOF 12023if ac_fn_c_try_link "$LINENO"; then : 12024 ac_cv_lib_posix1e_acl_get_file=yes 12025else 12026 ac_cv_lib_posix1e_acl_get_file=no 12027fi 12028rm -f core conftest.err conftest.$ac_objext \ 12029 conftest$ac_exeext conftest.$ac_ext 12030LIBS=$ac_check_lib_save_LIBS 12031fi 12032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 12033$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 12034if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then : 12035 LIBS="$LIBS -lposix1e" 12036else 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 12038$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 12039if ${ac_cv_lib_acl_acl_get_file+:} false; then : 12040 $as_echo_n "(cached) " >&6 12041else 12042 ac_check_lib_save_LIBS=$LIBS 12043LIBS="-lacl $LIBS" 12044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12045/* end confdefs.h. */ 12046 12047/* Override any GCC internal prototype to avoid an error. 12048 Use char because int might match the return type of a GCC 12049 builtin and then its argument prototype would still apply. */ 12050#ifdef __cplusplus 12051extern "C" 12052#endif 12053char acl_get_file (); 12054int 12055main () 12056{ 12057return acl_get_file (); 12058 ; 12059 return 0; 12060} 12061_ACEOF 12062if ac_fn_c_try_link "$LINENO"; then : 12063 ac_cv_lib_acl_acl_get_file=yes 12064else 12065 ac_cv_lib_acl_acl_get_file=no 12066fi 12067rm -f core conftest.err conftest.$ac_objext \ 12068 conftest$ac_exeext conftest.$ac_ext 12069LIBS=$ac_check_lib_save_LIBS 12070fi 12071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 12072$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 12073if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 12074 LIBS="$LIBS -lacl" 12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 12076$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 12077if ${ac_cv_lib_attr_fgetxattr+:} false; then : 12078 $as_echo_n "(cached) " >&6 12079else 12080 ac_check_lib_save_LIBS=$LIBS 12081LIBS="-lattr $LIBS" 12082cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12083/* end confdefs.h. */ 12084 12085/* Override any GCC internal prototype to avoid an error. 12086 Use char because int might match the return type of a GCC 12087 builtin and then its argument prototype would still apply. */ 12088#ifdef __cplusplus 12089extern "C" 12090#endif 12091char fgetxattr (); 12092int 12093main () 12094{ 12095return fgetxattr (); 12096 ; 12097 return 0; 12098} 12099_ACEOF 12100if ac_fn_c_try_link "$LINENO"; then : 12101 ac_cv_lib_attr_fgetxattr=yes 12102else 12103 ac_cv_lib_attr_fgetxattr=no 12104fi 12105rm -f core conftest.err conftest.$ac_objext \ 12106 conftest$ac_exeext conftest.$ac_ext 12107LIBS=$ac_check_lib_save_LIBS 12108fi 12109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 12110$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 12111if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then : 12112 LIBS="$LIBS -lattr" 12113fi 12114 12115fi 12116 12117fi 12118 12119 12120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 12121$as_echo_n "checking for POSIX ACL support... " >&6; } 12122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12123/* end confdefs.h. */ 12124 12125#include <sys/types.h> 12126#ifdef HAVE_SYS_ACL_H 12127# include <sys/acl.h> 12128#endif 12129acl_t acl; 12130int 12131main () 12132{ 12133acl = acl_get_file("foo", ACL_TYPE_ACCESS); 12134 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 12135 acl_free(acl); 12136 ; 12137 return 0; 12138} 12139_ACEOF 12140if ac_fn_c_try_link "$LINENO"; then : 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12142$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 12143 12144else 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12146$as_echo "no" >&6; } 12147fi 12148rm -f core conftest.err conftest.$ac_objext \ 12149 conftest$ac_exeext conftest.$ac_ext 12150 12151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 12152$as_echo_n "checking for acl_get in -lsec... " >&6; } 12153if ${ac_cv_lib_sec_acl_get+:} false; then : 12154 $as_echo_n "(cached) " >&6 12155else 12156 ac_check_lib_save_LIBS=$LIBS 12157LIBS="-lsec $LIBS" 12158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12159/* end confdefs.h. */ 12160 12161/* Override any GCC internal prototype to avoid an error. 12162 Use char because int might match the return type of a GCC 12163 builtin and then its argument prototype would still apply. */ 12164#ifdef __cplusplus 12165extern "C" 12166#endif 12167char acl_get (); 12168int 12169main () 12170{ 12171return acl_get (); 12172 ; 12173 return 0; 12174} 12175_ACEOF 12176if ac_fn_c_try_link "$LINENO"; then : 12177 ac_cv_lib_sec_acl_get=yes 12178else 12179 ac_cv_lib_sec_acl_get=no 12180fi 12181rm -f core conftest.err conftest.$ac_objext \ 12182 conftest$ac_exeext conftest.$ac_ext 12183LIBS=$ac_check_lib_save_LIBS 12184fi 12185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 12186$as_echo "$ac_cv_lib_sec_acl_get" >&6; } 12187if test "x$ac_cv_lib_sec_acl_get" = xyes; then : 12188 LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h 12189 12190else 12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 12192$as_echo_n "checking for Solaris ACL support... " >&6; } 12193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12194/* end confdefs.h. */ 12195 12196#ifdef HAVE_SYS_ACL_H 12197# include <sys/acl.h> 12198#endif 12199int 12200main () 12201{ 12202acl("foo", GETACLCNT, 0, NULL); 12203 12204 ; 12205 return 0; 12206} 12207_ACEOF 12208if ac_fn_c_try_link "$LINENO"; then : 12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12210$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 12211 12212else 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12214$as_echo "no" >&6; } 12215fi 12216rm -f core conftest.err conftest.$ac_objext \ 12217 conftest$ac_exeext conftest.$ac_ext 12218fi 12219 12220 12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 12222$as_echo_n "checking for AIX ACL support... " >&6; } 12223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12224/* end confdefs.h. */ 12225 12226#if STDC_HEADERS 12227# include <stdlib.h> 12228# include <stddef.h> 12229#endif 12230#ifdef HAVE_SYS_ACL_H 12231# include <sys/acl.h> 12232#endif 12233#ifdef HAVE_SYS_ACCESS_H 12234# include <sys/access.h> 12235#endif 12236#define _ALL_SOURCE 12237 12238#include <sys/stat.h> 12239 12240int aclsize; 12241struct acl *aclent; 12242int 12243main () 12244{ 12245aclsize = sizeof(struct acl); 12246 aclent = (void *)malloc(aclsize); 12247 statacl("foo", STX_NORMAL, aclent, aclsize); 12248 12249 ; 12250 return 0; 12251} 12252_ACEOF 12253if ac_fn_c_try_link "$LINENO"; then : 12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12255$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 12256 12257else 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12259$as_echo "no" >&6; } 12260fi 12261rm -f core conftest.err conftest.$ac_objext \ 12262 conftest$ac_exeext conftest.$ac_ext 12263else 12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12265$as_echo "yes" >&6; } 12266fi 12267 12268if test "x$GTK_CFLAGS" != "x"; then 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 12270$as_echo_n "checking for pango_shape_full... " >&6; } 12271 ac_save_CFLAGS="$CFLAGS" 12272 ac_save_LIBS="$LIBS" 12273 CFLAGS="$CFLAGS $GTK_CFLAGS" 12274 LIBS="$LIBS $GTK_LIBS" 12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12276/* end confdefs.h. */ 12277#include <gtk/gtk.h> 12278int 12279main () 12280{ 12281 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); 12282 ; 12283 return 0; 12284} 12285_ACEOF 12286if ac_fn_c_try_link "$LINENO"; then : 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12288$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h 12289 12290else 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12292$as_echo "no" >&6; } 12293fi 12294rm -f core conftest.err conftest.$ac_objext \ 12295 conftest$ac_exeext conftest.$ac_ext 12296 CFLAGS="$ac_save_CFLAGS" 12297 LIBS="$ac_save_LIBS" 12298fi 12299 12300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 12301$as_echo_n "checking --disable-gpm argument... " >&6; } 12302# Check whether --enable-gpm was given. 12303if test "${enable_gpm+set}" = set; then : 12304 enableval=$enable_gpm; 12305else 12306 enable_gpm="yes" 12307fi 12308 12309 12310if test "$enable_gpm" = "yes"; then 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12312$as_echo "no" >&6; } 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 12314$as_echo_n "checking for gpm... " >&6; } 12315if ${vi_cv_have_gpm+:} false; then : 12316 $as_echo_n "(cached) " >&6 12317else 12318 olibs="$LIBS" ; LIBS="-lgpm" 12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12320/* end confdefs.h. */ 12321#include <gpm.h> 12322 #include <linux/keyboard.h> 12323int 12324main () 12325{ 12326Gpm_GetLibVersion(NULL); 12327 ; 12328 return 0; 12329} 12330_ACEOF 12331if ac_fn_c_try_link "$LINENO"; then : 12332 vi_cv_have_gpm=yes 12333else 12334 vi_cv_have_gpm=no 12335fi 12336rm -f core conftest.err conftest.$ac_objext \ 12337 conftest$ac_exeext conftest.$ac_ext 12338 LIBS="$olibs" 12339 12340fi 12341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 12342$as_echo "$vi_cv_have_gpm" >&6; } 12343 if test $vi_cv_have_gpm = yes; then 12344 LIBS="$LIBS -lgpm" 12345 $as_echo "#define HAVE_GPM 1" >>confdefs.h 12346 12347 fi 12348else 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12350$as_echo "yes" >&6; } 12351fi 12352 12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 12354$as_echo_n "checking --disable-sysmouse argument... " >&6; } 12355# Check whether --enable-sysmouse was given. 12356if test "${enable_sysmouse+set}" = set; then : 12357 enableval=$enable_sysmouse; 12358else 12359 enable_sysmouse="yes" 12360fi 12361 12362 12363if test "$enable_sysmouse" = "yes"; then 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12365$as_echo "no" >&6; } 12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 12367$as_echo_n "checking for sysmouse... " >&6; } 12368if ${vi_cv_have_sysmouse+:} false; then : 12369 $as_echo_n "(cached) " >&6 12370else 12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12372/* end confdefs.h. */ 12373#include <sys/consio.h> 12374 #include <signal.h> 12375 #include <sys/fbio.h> 12376int 12377main () 12378{ 12379struct mouse_info mouse; 12380 mouse.operation = MOUSE_MODE; 12381 mouse.operation = MOUSE_SHOW; 12382 mouse.u.mode.mode = 0; 12383 mouse.u.mode.signal = SIGUSR2; 12384 ; 12385 return 0; 12386} 12387_ACEOF 12388if ac_fn_c_try_link "$LINENO"; then : 12389 vi_cv_have_sysmouse=yes 12390else 12391 vi_cv_have_sysmouse=no 12392fi 12393rm -f core conftest.err conftest.$ac_objext \ 12394 conftest$ac_exeext conftest.$ac_ext 12395 12396fi 12397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 12398$as_echo "$vi_cv_have_sysmouse" >&6; } 12399 if test $vi_cv_have_sysmouse = yes; then 12400 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 12401 12402 fi 12403else 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12405$as_echo "yes" >&6; } 12406fi 12407 12408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 12409$as_echo_n "checking for FD_CLOEXEC... " >&6; } 12410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12411/* end confdefs.h. */ 12412#if HAVE_FCNTL_H 12413# include <fcntl.h> 12414#endif 12415int 12416main () 12417{ 12418 int flag = FD_CLOEXEC; 12419 ; 12420 return 0; 12421} 12422_ACEOF 12423if ac_fn_c_try_compile "$LINENO"; then : 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12425$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 12426 12427else 12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 12429$as_echo "not usable" >&6; } 12430fi 12431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12432 12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 12434$as_echo_n "checking for rename... " >&6; } 12435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12436/* end confdefs.h. */ 12437#include <stdio.h> 12438int 12439main () 12440{ 12441rename("this", "that") 12442 ; 12443 return 0; 12444} 12445_ACEOF 12446if ac_fn_c_try_link "$LINENO"; then : 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12448$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 12449 12450else 12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12452$as_echo "no" >&6; } 12453fi 12454rm -f core conftest.err conftest.$ac_objext \ 12455 conftest$ac_exeext conftest.$ac_ext 12456 12457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 12458$as_echo_n "checking for sysctl... " >&6; } 12459cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12460/* end confdefs.h. */ 12461#include <sys/types.h> 12462#include <sys/sysctl.h> 12463int 12464main () 12465{ 12466 int mib[2], r; 12467 size_t len; 12468 12469 mib[0] = CTL_HW; 12470 mib[1] = HW_USERMEM; 12471 len = sizeof(r); 12472 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 12473 12474 ; 12475 return 0; 12476} 12477_ACEOF 12478if ac_fn_c_try_compile "$LINENO"; then : 12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12480$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 12481 12482else 12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 12484$as_echo "not usable" >&6; } 12485fi 12486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12487 12488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 12489$as_echo_n "checking for sysinfo... " >&6; } 12490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12491/* end confdefs.h. */ 12492#include <sys/types.h> 12493#include <sys/sysinfo.h> 12494int 12495main () 12496{ 12497 struct sysinfo sinfo; 12498 int t; 12499 12500 (void)sysinfo(&sinfo); 12501 t = sinfo.totalram; 12502 12503 ; 12504 return 0; 12505} 12506_ACEOF 12507if ac_fn_c_try_compile "$LINENO"; then : 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12509$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 12510 12511else 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 12513$as_echo "not usable" >&6; } 12514fi 12515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12516 12517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 12518$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 12519cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12520/* end confdefs.h. */ 12521#include <sys/types.h> 12522#include <sys/sysinfo.h> 12523int 12524main () 12525{ 12526 struct sysinfo sinfo; 12527 sinfo.mem_unit = 1; 12528 12529 ; 12530 return 0; 12531} 12532_ACEOF 12533if ac_fn_c_try_compile "$LINENO"; then : 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12535$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 12536 12537else 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12539$as_echo "no" >&6; } 12540fi 12541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12542 12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 12544$as_echo_n "checking for sysconf... " >&6; } 12545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12546/* end confdefs.h. */ 12547#include <unistd.h> 12548int 12549main () 12550{ 12551 (void)sysconf(_SC_PAGESIZE); 12552 (void)sysconf(_SC_PHYS_PAGES); 12553 12554 ; 12555 return 0; 12556} 12557_ACEOF 12558if ac_fn_c_try_compile "$LINENO"; then : 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12560$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 12561 12562else 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 12564$as_echo "not usable" >&6; } 12565fi 12566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12567 12568# The cast to long int works around a bug in the HP C Compiler 12569# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12570# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12571# This bug is HP SR number 8606223364. 12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 12573$as_echo_n "checking size of int... " >&6; } 12574if ${ac_cv_sizeof_int+:} false; then : 12575 $as_echo_n "(cached) " >&6 12576else 12577 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 12578 12579else 12580 if test "$ac_cv_type_int" = yes; then 12581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12583as_fn_error 77 "cannot compute sizeof (int) 12584See \`config.log' for more details" "$LINENO" 5; } 12585 else 12586 ac_cv_sizeof_int=0 12587 fi 12588fi 12589 12590fi 12591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 12592$as_echo "$ac_cv_sizeof_int" >&6; } 12593 12594 12595 12596cat >>confdefs.h <<_ACEOF 12597#define SIZEOF_INT $ac_cv_sizeof_int 12598_ACEOF 12599 12600 12601# The cast to long int works around a bug in the HP C Compiler 12602# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12603# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12604# This bug is HP SR number 8606223364. 12605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 12606$as_echo_n "checking size of long... " >&6; } 12607if ${ac_cv_sizeof_long+:} false; then : 12608 $as_echo_n "(cached) " >&6 12609else 12610 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 12611 12612else 12613 if test "$ac_cv_type_long" = yes; then 12614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12616as_fn_error 77 "cannot compute sizeof (long) 12617See \`config.log' for more details" "$LINENO" 5; } 12618 else 12619 ac_cv_sizeof_long=0 12620 fi 12621fi 12622 12623fi 12624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 12625$as_echo "$ac_cv_sizeof_long" >&6; } 12626 12627 12628 12629cat >>confdefs.h <<_ACEOF 12630#define SIZEOF_LONG $ac_cv_sizeof_long 12631_ACEOF 12632 12633 12634# The cast to long int works around a bug in the HP C Compiler 12635# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12636# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12637# This bug is HP SR number 8606223364. 12638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 12639$as_echo_n "checking size of time_t... " >&6; } 12640if ${ac_cv_sizeof_time_t+:} false; then : 12641 $as_echo_n "(cached) " >&6 12642else 12643 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 12644 12645else 12646 if test "$ac_cv_type_time_t" = yes; then 12647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12649as_fn_error 77 "cannot compute sizeof (time_t) 12650See \`config.log' for more details" "$LINENO" 5; } 12651 else 12652 ac_cv_sizeof_time_t=0 12653 fi 12654fi 12655 12656fi 12657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 12658$as_echo "$ac_cv_sizeof_time_t" >&6; } 12659 12660 12661 12662cat >>confdefs.h <<_ACEOF 12663#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 12664_ACEOF 12665 12666 12667# The cast to long int works around a bug in the HP C Compiler 12668# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12669# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12670# This bug is HP SR number 8606223364. 12671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 12672$as_echo_n "checking size of off_t... " >&6; } 12673if ${ac_cv_sizeof_off_t+:} false; then : 12674 $as_echo_n "(cached) " >&6 12675else 12676 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 12677 12678else 12679 if test "$ac_cv_type_off_t" = yes; then 12680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12682as_fn_error 77 "cannot compute sizeof (off_t) 12683See \`config.log' for more details" "$LINENO" 5; } 12684 else 12685 ac_cv_sizeof_off_t=0 12686 fi 12687fi 12688 12689fi 12690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 12691$as_echo "$ac_cv_sizeof_off_t" >&6; } 12692 12693 12694 12695cat >>confdefs.h <<_ACEOF 12696#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 12697_ACEOF 12698 12699 12700 12701cat >>confdefs.h <<_ACEOF 12702#define VIM_SIZEOF_INT $ac_cv_sizeof_int 12703_ACEOF 12704 12705cat >>confdefs.h <<_ACEOF 12706#define VIM_SIZEOF_LONG $ac_cv_sizeof_long 12707_ACEOF 12708 12709 12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 12711$as_echo_n "checking uint32_t is 32 bits... " >&6; } 12712if test "$cross_compiling" = yes; then : 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5 12714$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;} 12715else 12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12717/* end confdefs.h. */ 12718 12719#ifdef HAVE_STDINT_H 12720# include <stdint.h> 12721#endif 12722#ifdef HAVE_INTTYPES_H 12723# include <inttypes.h> 12724#endif 12725main() { 12726 uint32_t nr1 = (uint32_t)-1; 12727 uint32_t nr2 = (uint32_t)0xffffffffUL; 12728 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 12729 exit(0); 12730} 12731_ACEOF 12732if ac_fn_c_try_run "$LINENO"; then : 12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12734$as_echo "ok" >&6; } 12735else 12736 as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 12737fi 12738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12739 conftest.$ac_objext conftest.beam conftest.$ac_ext 12740fi 12741 12742 12743 12744bcopy_test_prog=' 12745#include "confdefs.h" 12746#ifdef HAVE_STRING_H 12747# include <string.h> 12748#endif 12749#if STDC_HEADERS 12750# include <stdlib.h> 12751# include <stddef.h> 12752#endif 12753main() { 12754 char buf[10]; 12755 strcpy(buf, "abcdefghi"); 12756 mch_memmove(buf, buf + 2, 3); 12757 if (strncmp(buf, "ababcf", 6)) 12758 exit(1); 12759 strcpy(buf, "abcdefghi"); 12760 mch_memmove(buf + 2, buf, 3); 12761 if (strncmp(buf, "cdedef", 6)) 12762 exit(1); 12763 exit(0); /* libc version works properly. */ 12764}' 12765 12766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 12767$as_echo_n "checking whether memmove handles overlaps... " >&6; } 12768if ${vim_cv_memmove_handles_overlap+:} false; then : 12769 $as_echo_n "(cached) " >&6 12770else 12771 12772 if test "$cross_compiling" = yes; then : 12773 12774 as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 12775 12776else 12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12778/* end confdefs.h. */ 12779#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 12780_ACEOF 12781if ac_fn_c_try_run "$LINENO"; then : 12782 12783 vim_cv_memmove_handles_overlap=yes 12784 12785else 12786 12787 vim_cv_memmove_handles_overlap=no 12788 12789fi 12790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12791 conftest.$ac_objext conftest.beam conftest.$ac_ext 12792fi 12793 12794 12795fi 12796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 12797$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 12798 12799if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 12800 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 12801 12802else 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 12804$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 12805if ${vim_cv_bcopy_handles_overlap+:} false; then : 12806 $as_echo_n "(cached) " >&6 12807else 12808 12809 if test "$cross_compiling" = yes; then : 12810 12811 as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 12812 12813else 12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12815/* end confdefs.h. */ 12816#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 12817_ACEOF 12818if ac_fn_c_try_run "$LINENO"; then : 12819 12820 vim_cv_bcopy_handles_overlap=yes 12821 12822else 12823 12824 vim_cv_bcopy_handles_overlap=no 12825 12826fi 12827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12828 conftest.$ac_objext conftest.beam conftest.$ac_ext 12829fi 12830 12831 12832fi 12833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 12834$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 12835 12836 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 12837 $as_echo "#define USEBCOPY 1" >>confdefs.h 12838 12839 else 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 12841$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 12842if ${vim_cv_memcpy_handles_overlap+:} false; then : 12843 $as_echo_n "(cached) " >&6 12844else 12845 12846 if test "$cross_compiling" = yes; then : 12847 12848 as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 12849 12850else 12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12852/* end confdefs.h. */ 12853#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 12854_ACEOF 12855if ac_fn_c_try_run "$LINENO"; then : 12856 12857 vim_cv_memcpy_handles_overlap=yes 12858 12859else 12860 12861 vim_cv_memcpy_handles_overlap=no 12862 12863fi 12864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12865 conftest.$ac_objext conftest.beam conftest.$ac_ext 12866fi 12867 12868 12869fi 12870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 12871$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 12872 12873 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 12874 $as_echo "#define USEMEMCPY 1" >>confdefs.h 12875 12876 fi 12877 fi 12878fi 12879 12880 12881if test "x$with_x" = "xyes"; then 12882 cflags_save=$CFLAGS 12883 libs_save=$LIBS 12884 LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" 12885 CFLAGS="$CFLAGS $X_CFLAGS" 12886 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 12888$as_echo_n "checking whether X_LOCALE needed... " >&6; } 12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12890/* end confdefs.h. */ 12891#include <X11/Xlocale.h> 12892int 12893main () 12894{ 12895 12896 ; 12897 return 0; 12898} 12899_ACEOF 12900if ac_fn_c_try_compile "$LINENO"; then : 12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12902/* end confdefs.h. */ 12903 12904/* Override any GCC internal prototype to avoid an error. 12905 Use char because int might match the return type of a GCC 12906 builtin and then its argument prototype would still apply. */ 12907#ifdef __cplusplus 12908extern "C" 12909#endif 12910char _Xsetlocale (); 12911int 12912main () 12913{ 12914return _Xsetlocale (); 12915 ; 12916 return 0; 12917} 12918_ACEOF 12919if ac_fn_c_try_link "$LINENO"; then : 12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12921$as_echo "yes" >&6; } 12922 $as_echo "#define X_LOCALE 1" >>confdefs.h 12923 12924else 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12926$as_echo "no" >&6; } 12927fi 12928rm -f core conftest.err conftest.$ac_objext \ 12929 conftest$ac_exeext conftest.$ac_ext 12930else 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12932$as_echo "no" >&6; } 12933fi 12934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12935 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 12937$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; } 12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12939/* end confdefs.h. */ 12940 12941/* Override any GCC internal prototype to avoid an error. 12942 Use char because int might match the return type of a GCC 12943 builtin and then its argument prototype would still apply. */ 12944#ifdef __cplusplus 12945extern "C" 12946#endif 12947char Xutf8SetWMProperties (); 12948int 12949main () 12950{ 12951return Xutf8SetWMProperties (); 12952 ; 12953 return 0; 12954} 12955_ACEOF 12956if ac_fn_c_try_link "$LINENO"; then : 12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12958$as_echo "yes" >&6; } 12959 $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h 12960 12961else 12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12963$as_echo "no" >&6; } 12964fi 12965rm -f core conftest.err conftest.$ac_objext \ 12966 conftest$ac_exeext conftest.$ac_ext 12967 12968 CFLAGS=$cflags_save 12969 LIBS=$libs_save 12970fi 12971 12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 12973$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 12974if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then : 12975 $as_echo_n "(cached) " >&6 12976else 12977 ac_check_lib_save_LIBS=$LIBS 12978LIBS="-lxpg4 $LIBS" 12979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12980/* end confdefs.h. */ 12981 12982/* Override any GCC internal prototype to avoid an error. 12983 Use char because int might match the return type of a GCC 12984 builtin and then its argument prototype would still apply. */ 12985#ifdef __cplusplus 12986extern "C" 12987#endif 12988char _xpg4_setrunelocale (); 12989int 12990main () 12991{ 12992return _xpg4_setrunelocale (); 12993 ; 12994 return 0; 12995} 12996_ACEOF 12997if ac_fn_c_try_link "$LINENO"; then : 12998 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 12999else 13000 ac_cv_lib_xpg4__xpg4_setrunelocale=no 13001fi 13002rm -f core conftest.err conftest.$ac_objext \ 13003 conftest$ac_exeext conftest.$ac_ext 13004LIBS=$ac_check_lib_save_LIBS 13005fi 13006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 13007$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 13008if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then : 13009 LIBS="$LIBS -lxpg4" 13010fi 13011 13012 13013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 13014$as_echo_n "checking how to create tags... " >&6; } 13015test -f tags && mv tags tags.save 13016if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13017 TAGPRG="ctags -I INIT+ --fields=+S" 13018elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13019 TAGPRG="exctags -I INIT+ --fields=+S" 13020elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13021 TAGPRG="exuberant-ctags -I INIT+ --fields=+S" 13022else 13023 TAGPRG="ctags" 13024 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 13025 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 13026 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 13027 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 13028 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 13029 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 13030 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 13031fi 13032test -f tags.save && mv tags.save tags 13033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 13034$as_echo "$TAGPRG" >&6; } 13035 13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 13037$as_echo_n "checking how to run man with a section nr... " >&6; } 13038MANDEF="man" 13039(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 13040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 13041$as_echo "$MANDEF" >&6; } 13042if test "$MANDEF" = "man -s"; then 13043 $as_echo "#define USEMAN_S 1" >>confdefs.h 13044 13045fi 13046 13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 13048$as_echo_n "checking --disable-nls argument... " >&6; } 13049# Check whether --enable-nls was given. 13050if test "${enable_nls+set}" = set; then : 13051 enableval=$enable_nls; 13052else 13053 enable_nls="yes" 13054fi 13055 13056 13057if test "$enable_nls" = "yes"; then 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13059$as_echo "no" >&6; } 13060 13061 INSTALL_LANGS=install-languages 13062 13063 INSTALL_TOOL_LANGS=install-tool-languages 13064 13065 13066 # Extract the first word of "msgfmt", so it can be a program name with args. 13067set dummy msgfmt; ac_word=$2 13068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13069$as_echo_n "checking for $ac_word... " >&6; } 13070if ${ac_cv_prog_MSGFMT+:} false; then : 13071 $as_echo_n "(cached) " >&6 13072else 13073 if test -n "$MSGFMT"; then 13074 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 13075else 13076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13077for as_dir in $PATH 13078do 13079 IFS=$as_save_IFS 13080 test -z "$as_dir" && as_dir=. 13081 for ac_exec_ext in '' $ac_executable_extensions; do 13082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13083 ac_cv_prog_MSGFMT="msgfmt" 13084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13085 break 2 13086 fi 13087done 13088 done 13089IFS=$as_save_IFS 13090 13091fi 13092fi 13093MSGFMT=$ac_cv_prog_MSGFMT 13094if test -n "$MSGFMT"; then 13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 13096$as_echo "$MSGFMT" >&6; } 13097else 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13099$as_echo "no" >&6; } 13100fi 13101 13102 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 13104$as_echo_n "checking for NLS... " >&6; } 13105 if test -f po/Makefile; then 13106 have_gettext="no" 13107 if test -n "$MSGFMT"; then 13108 olibs=$LIBS 13109 LIBS="" 13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13111/* end confdefs.h. */ 13112#include <libintl.h> 13113int 13114main () 13115{ 13116gettext("Test"); 13117 ; 13118 return 0; 13119} 13120_ACEOF 13121if ac_fn_c_try_link "$LINENO"; then : 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 13123$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs 13124else 13125 LIBS="-lintl" 13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13127/* end confdefs.h. */ 13128#include <libintl.h> 13129int 13130main () 13131{ 13132gettext("Test"); 13133 ; 13134 return 0; 13135} 13136_ACEOF 13137if ac_fn_c_try_link "$LINENO"; then : 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 13139$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; 13140 LIBS="$olibs -lintl" 13141else 13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 13143$as_echo "gettext() doesn't work" >&6; }; 13144 LIBS=$olibs 13145fi 13146rm -f core conftest.err conftest.$ac_objext \ 13147 conftest$ac_exeext conftest.$ac_ext 13148fi 13149rm -f core conftest.err conftest.$ac_objext \ 13150 conftest$ac_exeext conftest.$ac_ext 13151 else 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 13153$as_echo "msgfmt not found - disabled" >&6; }; 13154 fi 13155 if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then 13156 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13157 13158 MAKEMO=yes 13159 13160 for ac_func in bind_textdomain_codeset 13161do : 13162 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 13163if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 13164 cat >>confdefs.h <<_ACEOF 13165#define HAVE_BIND_TEXTDOMAIN_CODESET 1 13166_ACEOF 13167 13168fi 13169done 13170 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 13172$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13174/* end confdefs.h. */ 13175#include <libintl.h> 13176 extern int _nl_msg_cat_cntr; 13177int 13178main () 13179{ 13180++_nl_msg_cat_cntr; 13181 ; 13182 return 0; 13183} 13184_ACEOF 13185if ac_fn_c_try_link "$LINENO"; then : 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13187$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 13188 13189else 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13191$as_echo "no" >&6; } 13192fi 13193rm -f core conftest.err conftest.$ac_objext \ 13194 conftest$ac_exeext conftest.$ac_ext 13195 fi 13196 else 13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 13198$as_echo "no \"po/Makefile\" - disabled" >&6; }; 13199 fi 13200else 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13202$as_echo "yes" >&6; } 13203fi 13204 13205ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 13206if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13207 DLL=dlfcn.h 13208else 13209 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 13210if test "x$ac_cv_header_dl_h" = xyes; then : 13211 DLL=dl.h 13212fi 13213 13214 13215fi 13216 13217 13218if test x${DLL} = xdlfcn.h; then 13219 13220$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 13221 13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 13223$as_echo_n "checking for dlopen()... " >&6; } 13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13225/* end confdefs.h. */ 13226 13227int 13228main () 13229{ 13230 13231 extern void* dlopen(); 13232 dlopen(); 13233 13234 ; 13235 return 0; 13236} 13237_ACEOF 13238if ac_fn_c_try_link "$LINENO"; then : 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13240$as_echo "yes" >&6; }; 13241 13242$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13243 13244else 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13246$as_echo "no" >&6; }; 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 13248$as_echo_n "checking for dlopen() in -ldl... " >&6; } 13249 olibs=$LIBS 13250 LIBS="$LIBS -ldl" 13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13252/* end confdefs.h. */ 13253 13254int 13255main () 13256{ 13257 13258 extern void* dlopen(); 13259 dlopen(); 13260 13261 ; 13262 return 0; 13263} 13264_ACEOF 13265if ac_fn_c_try_link "$LINENO"; then : 13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13267$as_echo "yes" >&6; }; 13268 13269$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13270 13271else 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13273$as_echo "no" >&6; }; 13274 LIBS=$olibs 13275fi 13276rm -f core conftest.err conftest.$ac_objext \ 13277 conftest$ac_exeext conftest.$ac_ext 13278fi 13279rm -f core conftest.err conftest.$ac_objext \ 13280 conftest$ac_exeext conftest.$ac_ext 13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 13282$as_echo_n "checking for dlsym()... " >&6; } 13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13284/* end confdefs.h. */ 13285 13286int 13287main () 13288{ 13289 13290 extern void* dlsym(); 13291 dlsym(); 13292 13293 ; 13294 return 0; 13295} 13296_ACEOF 13297if ac_fn_c_try_link "$LINENO"; then : 13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13299$as_echo "yes" >&6; }; 13300 13301$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 13302 13303else 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13305$as_echo "no" >&6; }; 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 13307$as_echo_n "checking for dlsym() in -ldl... " >&6; } 13308 olibs=$LIBS 13309 LIBS="$LIBS -ldl" 13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13311/* end confdefs.h. */ 13312 13313int 13314main () 13315{ 13316 13317 extern void* dlsym(); 13318 dlsym(); 13319 13320 ; 13321 return 0; 13322} 13323_ACEOF 13324if ac_fn_c_try_link "$LINENO"; then : 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13326$as_echo "yes" >&6; }; 13327 13328$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 13329 13330else 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13332$as_echo "no" >&6; }; 13333 LIBS=$olibs 13334fi 13335rm -f core conftest.err conftest.$ac_objext \ 13336 conftest$ac_exeext conftest.$ac_ext 13337fi 13338rm -f core conftest.err conftest.$ac_objext \ 13339 conftest$ac_exeext conftest.$ac_ext 13340elif test x${DLL} = xdl.h; then 13341 13342$as_echo "#define HAVE_DL_H 1" >>confdefs.h 13343 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 13345$as_echo_n "checking for shl_load()... " >&6; } 13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13347/* end confdefs.h. */ 13348 13349int 13350main () 13351{ 13352 13353 extern void* shl_load(); 13354 shl_load(); 13355 13356 ; 13357 return 0; 13358} 13359_ACEOF 13360if ac_fn_c_try_link "$LINENO"; then : 13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13362$as_echo "yes" >&6; }; 13363 13364$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 13365 13366else 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13368$as_echo "no" >&6; }; 13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 13370$as_echo_n "checking for shl_load() in -ldld... " >&6; } 13371 olibs=$LIBS 13372 LIBS="$LIBS -ldld" 13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13374/* end confdefs.h. */ 13375 13376int 13377main () 13378{ 13379 13380 extern void* shl_load(); 13381 shl_load(); 13382 13383 ; 13384 return 0; 13385} 13386_ACEOF 13387if ac_fn_c_try_link "$LINENO"; then : 13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13389$as_echo "yes" >&6; }; 13390 13391$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 13392 13393else 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13395$as_echo "no" >&6; }; 13396 LIBS=$olibs 13397fi 13398rm -f core conftest.err conftest.$ac_objext \ 13399 conftest$ac_exeext conftest.$ac_ext 13400fi 13401rm -f core conftest.err conftest.$ac_objext \ 13402 conftest$ac_exeext conftest.$ac_ext 13403fi 13404for ac_header in setjmp.h 13405do : 13406 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 13407if test "x$ac_cv_header_setjmp_h" = xyes; then : 13408 cat >>confdefs.h <<_ACEOF 13409#define HAVE_SETJMP_H 1 13410_ACEOF 13411 13412fi 13413 13414done 13415 13416 13417if test "x$MACOSX" = "xyes" -a -n "$PERL"; then 13418 if echo $LIBS | grep -e '-ldl' >/dev/null; then 13419 LIBS=`echo $LIBS | sed s/-ldl//` 13420 PERL_LIBS="$PERL_LIBS -ldl" 13421 fi 13422fi 13423 13424if test "x$MACOSX" = "xyes"; then 13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5 13426$as_echo_n "checking whether we need -framework Cocoa... " >&6; } 13427 if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then 13428 LIBS=$"$LIBS -framework Cocoa" 13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13430$as_echo "yes" >&6; } 13431 else 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13433$as_echo "no" >&6; } 13434 fi 13435 if test "x$features" = "xtiny"; then 13436 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` 13437 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` 13438 fi 13439fi 13440if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 13441 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 13442fi 13443 13444DEPEND_CFLAGS_FILTER= 13445if test "$GCC" = yes; then 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 13447$as_echo_n "checking for GCC 3 or later... " >&6; } 13448 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 13449 if test "$gccmajor" -gt "2"; then 13450 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13452$as_echo "yes" >&6; } 13453 else 13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13455$as_echo "no" >&6; } 13456 fi 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 13458$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 13459 if test "$gccmajor" -gt "3"; then 13460 CFLAGS=`echo "$CFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'` 13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13462$as_echo "yes" >&6; } 13463 else 13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13465$as_echo "no" >&6; } 13466 fi 13467fi 13468 13469 13470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 13471$as_echo_n "checking linker --as-needed support... " >&6; } 13472LINK_AS_NEEDED= 13473# Check if linker supports --as-needed and --no-as-needed options 13474if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then 13475 LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'` 13476 LINK_AS_NEEDED=yes 13477fi 13478if test "$LINK_AS_NEEDED" = yes; then 13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13480$as_echo "yes" >&6; } 13481else 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13483$as_echo "no" >&6; } 13484fi 13485 13486 13487# IBM z/OS reset CFLAGS for config.mk 13488if test "$zOSUnix" = "yes"; then 13489 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 13490fi 13491 13492ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 13493 13494cat >confcache <<\_ACEOF 13495# This file is a shell script that caches the results of configure 13496# tests run on this system so they can be shared between configure 13497# scripts and configure runs, see configure's option --config-cache. 13498# It is not useful on other systems. If it contains results you don't 13499# want to keep, you may remove or edit it. 13500# 13501# config.status only pays attention to the cache file if you give it 13502# the --recheck option to rerun configure. 13503# 13504# `ac_cv_env_foo' variables (set or unset) will be overridden when 13505# loading this file, other *unset* `ac_cv_foo' will be assigned the 13506# following values. 13507 13508_ACEOF 13509 13510# The following way of writing the cache mishandles newlines in values, 13511# but we know of no workaround that is simple, portable, and efficient. 13512# So, we kill variables containing newlines. 13513# Ultrix sh set writes to stderr and can't be redirected directly, 13514# and sets the high bit in the cache file unless we assign to the vars. 13515( 13516 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13517 eval ac_val=\$$ac_var 13518 case $ac_val in #( 13519 *${as_nl}*) 13520 case $ac_var in #( 13521 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13522$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13523 esac 13524 case $ac_var in #( 13525 _ | IFS | as_nl) ;; #( 13526 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13527 *) { eval $ac_var=; unset $ac_var;} ;; 13528 esac ;; 13529 esac 13530 done 13531 13532 (set) 2>&1 | 13533 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13534 *${as_nl}ac_space=\ *) 13535 # `set' does not quote correctly, so add quotes: double-quote 13536 # substitution turns \\\\ into \\, and sed turns \\ into \. 13537 sed -n \ 13538 "s/'/'\\\\''/g; 13539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13540 ;; #( 13541 *) 13542 # `set' quotes correctly as required by POSIX, so do not add quotes. 13543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13544 ;; 13545 esac | 13546 sort 13547) | 13548 sed ' 13549 /^ac_cv_env_/b end 13550 t clear 13551 :clear 13552 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13553 t end 13554 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13555 :end' >>confcache 13556if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13557 if test -w "$cache_file"; then 13558 if test "x$cache_file" != "x/dev/null"; then 13559 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13560$as_echo "$as_me: updating cache $cache_file" >&6;} 13561 if test ! -f "$cache_file" || test -h "$cache_file"; then 13562 cat confcache >"$cache_file" 13563 else 13564 case $cache_file in #( 13565 */* | ?:*) 13566 mv -f confcache "$cache_file"$$ && 13567 mv -f "$cache_file"$$ "$cache_file" ;; #( 13568 *) 13569 mv -f confcache "$cache_file" ;; 13570 esac 13571 fi 13572 fi 13573 else 13574 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13575$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13576 fi 13577fi 13578rm -f confcache 13579 13580test "x$prefix" = xNONE && prefix=$ac_default_prefix 13581# Let make expand exec_prefix. 13582test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13583 13584DEFS=-DHAVE_CONFIG_H 13585 13586ac_libobjs= 13587ac_ltlibobjs= 13588U= 13589for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13590 # 1. Remove the extension, and $U if already installed. 13591 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13592 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13593 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13594 # will be set to the directory where LIBOBJS objects are built. 13595 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13596 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13597done 13598LIBOBJS=$ac_libobjs 13599 13600LTLIBOBJS=$ac_ltlibobjs 13601 13602 13603 13604 13605: "${CONFIG_STATUS=./config.status}" 13606ac_write_fail=0 13607ac_clean_files_save=$ac_clean_files 13608ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13609{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13610$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13611as_write_fail=0 13612cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13613#! $SHELL 13614# Generated by $as_me. 13615# Run this file to recreate the current configuration. 13616# Compiler output produced by configure, useful for debugging 13617# configure, is in config.log if it exists. 13618 13619debug=false 13620ac_cs_recheck=false 13621ac_cs_silent=false 13622 13623SHELL=\${CONFIG_SHELL-$SHELL} 13624export SHELL 13625_ASEOF 13626cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13627## -------------------- ## 13628## M4sh Initialization. ## 13629## -------------------- ## 13630 13631# Be more Bourne compatible 13632DUALCASE=1; export DUALCASE # for MKS sh 13633if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13634 emulate sh 13635 NULLCMD=: 13636 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13637 # is contrary to our usage. Disable this feature. 13638 alias -g '${1+"$@"}'='"$@"' 13639 setopt NO_GLOB_SUBST 13640else 13641 case `(set -o) 2>/dev/null` in #( 13642 *posix*) : 13643 set -o posix ;; #( 13644 *) : 13645 ;; 13646esac 13647fi 13648 13649 13650as_nl=' 13651' 13652export as_nl 13653# Printing a long string crashes Solaris 7 /usr/bin/printf. 13654as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13655as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13656as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13657# Prefer a ksh shell builtin over an external printf program on Solaris, 13658# but without wasting forks for bash or zsh. 13659if test -z "$BASH_VERSION$ZSH_VERSION" \ 13660 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13661 as_echo='print -r --' 13662 as_echo_n='print -rn --' 13663elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13664 as_echo='printf %s\n' 13665 as_echo_n='printf %s' 13666else 13667 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13668 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13669 as_echo_n='/usr/ucb/echo -n' 13670 else 13671 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13672 as_echo_n_body='eval 13673 arg=$1; 13674 case $arg in #( 13675 *"$as_nl"*) 13676 expr "X$arg" : "X\\(.*\\)$as_nl"; 13677 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13678 esac; 13679 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13680 ' 13681 export as_echo_n_body 13682 as_echo_n='sh -c $as_echo_n_body as_echo' 13683 fi 13684 export as_echo_body 13685 as_echo='sh -c $as_echo_body as_echo' 13686fi 13687 13688# The user is always right. 13689if test "${PATH_SEPARATOR+set}" != set; then 13690 PATH_SEPARATOR=: 13691 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13692 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13693 PATH_SEPARATOR=';' 13694 } 13695fi 13696 13697 13698# IFS 13699# We need space, tab and new line, in precisely that order. Quoting is 13700# there to prevent editors from complaining about space-tab. 13701# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13702# splitting by setting IFS to empty value.) 13703IFS=" "" $as_nl" 13704 13705# Find who we are. Look in the path if we contain no directory separator. 13706as_myself= 13707case $0 in #(( 13708 *[\\/]* ) as_myself=$0 ;; 13709 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13710for as_dir in $PATH 13711do 13712 IFS=$as_save_IFS 13713 test -z "$as_dir" && as_dir=. 13714 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13715 done 13716IFS=$as_save_IFS 13717 13718 ;; 13719esac 13720# We did not find ourselves, most probably we were run as `sh COMMAND' 13721# in which case we are not to be found in the path. 13722if test "x$as_myself" = x; then 13723 as_myself=$0 13724fi 13725if test ! -f "$as_myself"; then 13726 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13727 exit 1 13728fi 13729 13730# Unset variables that we do not need and which cause bugs (e.g. in 13731# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13732# suppresses any "Segmentation fault" message there. '((' could 13733# trigger a bug in pdksh 5.2.14. 13734for as_var in BASH_ENV ENV MAIL MAILPATH 13735do eval test x\${$as_var+set} = xset \ 13736 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13737done 13738PS1='$ ' 13739PS2='> ' 13740PS4='+ ' 13741 13742# NLS nuisances. 13743LC_ALL=C 13744export LC_ALL 13745LANGUAGE=C 13746export LANGUAGE 13747 13748# CDPATH. 13749(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13750 13751 13752# as_fn_error STATUS ERROR [LINENO LOG_FD] 13753# ---------------------------------------- 13754# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13755# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13756# script with STATUS, using 1 if that was 0. 13757as_fn_error () 13758{ 13759 as_status=$1; test $as_status -eq 0 && as_status=1 13760 if test "$4"; then 13761 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13762 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13763 fi 13764 $as_echo "$as_me: error: $2" >&2 13765 as_fn_exit $as_status 13766} # as_fn_error 13767 13768 13769# as_fn_set_status STATUS 13770# ----------------------- 13771# Set $? to STATUS, without forking. 13772as_fn_set_status () 13773{ 13774 return $1 13775} # as_fn_set_status 13776 13777# as_fn_exit STATUS 13778# ----------------- 13779# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13780as_fn_exit () 13781{ 13782 set +e 13783 as_fn_set_status $1 13784 exit $1 13785} # as_fn_exit 13786 13787# as_fn_unset VAR 13788# --------------- 13789# Portably unset VAR. 13790as_fn_unset () 13791{ 13792 { eval $1=; unset $1;} 13793} 13794as_unset=as_fn_unset 13795# as_fn_append VAR VALUE 13796# ---------------------- 13797# Append the text in VALUE to the end of the definition contained in VAR. Take 13798# advantage of any shell optimizations that allow amortized linear growth over 13799# repeated appends, instead of the typical quadratic growth present in naive 13800# implementations. 13801if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13802 eval 'as_fn_append () 13803 { 13804 eval $1+=\$2 13805 }' 13806else 13807 as_fn_append () 13808 { 13809 eval $1=\$$1\$2 13810 } 13811fi # as_fn_append 13812 13813# as_fn_arith ARG... 13814# ------------------ 13815# Perform arithmetic evaluation on the ARGs, and store the result in the 13816# global $as_val. Take advantage of shells that can avoid forks. The arguments 13817# must be portable across $(()) and expr. 13818if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13819 eval 'as_fn_arith () 13820 { 13821 as_val=$(( $* )) 13822 }' 13823else 13824 as_fn_arith () 13825 { 13826 as_val=`expr "$@" || test $? -eq 1` 13827 } 13828fi # as_fn_arith 13829 13830 13831if expr a : '\(a\)' >/dev/null 2>&1 && 13832 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13833 as_expr=expr 13834else 13835 as_expr=false 13836fi 13837 13838if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13839 as_basename=basename 13840else 13841 as_basename=false 13842fi 13843 13844if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13845 as_dirname=dirname 13846else 13847 as_dirname=false 13848fi 13849 13850as_me=`$as_basename -- "$0" || 13851$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13852 X"$0" : 'X\(//\)$' \| \ 13853 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13854$as_echo X/"$0" | 13855 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13856 s//\1/ 13857 q 13858 } 13859 /^X\/\(\/\/\)$/{ 13860 s//\1/ 13861 q 13862 } 13863 /^X\/\(\/\).*/{ 13864 s//\1/ 13865 q 13866 } 13867 s/.*/./; q'` 13868 13869# Avoid depending upon Character Ranges. 13870as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13871as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13872as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13873as_cr_digits='0123456789' 13874as_cr_alnum=$as_cr_Letters$as_cr_digits 13875 13876ECHO_C= ECHO_N= ECHO_T= 13877case `echo -n x` in #((((( 13878-n*) 13879 case `echo 'xy\c'` in 13880 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13881 xy) ECHO_C='\c';; 13882 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13883 ECHO_T=' ';; 13884 esac;; 13885*) 13886 ECHO_N='-n';; 13887esac 13888 13889rm -f conf$$ conf$$.exe conf$$.file 13890if test -d conf$$.dir; then 13891 rm -f conf$$.dir/conf$$.file 13892else 13893 rm -f conf$$.dir 13894 mkdir conf$$.dir 2>/dev/null 13895fi 13896if (echo >conf$$.file) 2>/dev/null; then 13897 if ln -s conf$$.file conf$$ 2>/dev/null; then 13898 as_ln_s='ln -s' 13899 # ... but there are two gotchas: 13900 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13901 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13902 # In both cases, we have to default to `cp -pR'. 13903 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13904 as_ln_s='cp -pR' 13905 elif ln conf$$.file conf$$ 2>/dev/null; then 13906 as_ln_s=ln 13907 else 13908 as_ln_s='cp -pR' 13909 fi 13910else 13911 as_ln_s='cp -pR' 13912fi 13913rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13914rmdir conf$$.dir 2>/dev/null 13915 13916 13917# as_fn_mkdir_p 13918# ------------- 13919# Create "$as_dir" as a directory, including parents if necessary. 13920as_fn_mkdir_p () 13921{ 13922 13923 case $as_dir in #( 13924 -*) as_dir=./$as_dir;; 13925 esac 13926 test -d "$as_dir" || eval $as_mkdir_p || { 13927 as_dirs= 13928 while :; do 13929 case $as_dir in #( 13930 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13931 *) as_qdir=$as_dir;; 13932 esac 13933 as_dirs="'$as_qdir' $as_dirs" 13934 as_dir=`$as_dirname -- "$as_dir" || 13935$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13936 X"$as_dir" : 'X\(//\)[^/]' \| \ 13937 X"$as_dir" : 'X\(//\)$' \| \ 13938 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13939$as_echo X"$as_dir" | 13940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13941 s//\1/ 13942 q 13943 } 13944 /^X\(\/\/\)[^/].*/{ 13945 s//\1/ 13946 q 13947 } 13948 /^X\(\/\/\)$/{ 13949 s//\1/ 13950 q 13951 } 13952 /^X\(\/\).*/{ 13953 s//\1/ 13954 q 13955 } 13956 s/.*/./; q'` 13957 test -d "$as_dir" && break 13958 done 13959 test -z "$as_dirs" || eval "mkdir $as_dirs" 13960 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13961 13962 13963} # as_fn_mkdir_p 13964if mkdir -p . 2>/dev/null; then 13965 as_mkdir_p='mkdir -p "$as_dir"' 13966else 13967 test -d ./-p && rmdir ./-p 13968 as_mkdir_p=false 13969fi 13970 13971 13972# as_fn_executable_p FILE 13973# ----------------------- 13974# Test if FILE is an executable regular file. 13975as_fn_executable_p () 13976{ 13977 test -f "$1" && test -x "$1" 13978} # as_fn_executable_p 13979as_test_x='test -x' 13980as_executable_p=as_fn_executable_p 13981 13982# Sed expression to map a string onto a valid CPP name. 13983as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13984 13985# Sed expression to map a string onto a valid variable name. 13986as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13987 13988 13989exec 6>&1 13990## ----------------------------------- ## 13991## Main body of $CONFIG_STATUS script. ## 13992## ----------------------------------- ## 13993_ASEOF 13994test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13995 13996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13997# Save the log message, to keep $0 and so on meaningful, and to 13998# report actual input values of CONFIG_FILES etc. instead of their 13999# values after options handling. 14000ac_log=" 14001This file was extended by $as_me, which was 14002generated by GNU Autoconf 2.69. Invocation command line was 14003 14004 CONFIG_FILES = $CONFIG_FILES 14005 CONFIG_HEADERS = $CONFIG_HEADERS 14006 CONFIG_LINKS = $CONFIG_LINKS 14007 CONFIG_COMMANDS = $CONFIG_COMMANDS 14008 $ $0 $@ 14009 14010on `(hostname || uname -n) 2>/dev/null | sed 1q` 14011" 14012 14013_ACEOF 14014 14015case $ac_config_files in *" 14016"*) set x $ac_config_files; shift; ac_config_files=$*;; 14017esac 14018 14019case $ac_config_headers in *" 14020"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14021esac 14022 14023 14024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14025# Files that config.status was made for. 14026config_files="$ac_config_files" 14027config_headers="$ac_config_headers" 14028 14029_ACEOF 14030 14031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14032ac_cs_usage="\ 14033\`$as_me' instantiates files and other configuration actions 14034from templates according to the current configuration. Unless the files 14035and actions are specified as TAGs, all are instantiated by default. 14036 14037Usage: $0 [OPTION]... [TAG]... 14038 14039 -h, --help print this help, then exit 14040 -V, --version print version number and configuration settings, then exit 14041 --config print configuration, then exit 14042 -q, --quiet, --silent 14043 do not print progress messages 14044 -d, --debug don't remove temporary files 14045 --recheck update $as_me by reconfiguring in the same conditions 14046 --file=FILE[:TEMPLATE] 14047 instantiate the configuration file FILE 14048 --header=FILE[:TEMPLATE] 14049 instantiate the configuration header FILE 14050 14051Configuration files: 14052$config_files 14053 14054Configuration headers: 14055$config_headers 14056 14057Report bugs to the package provider." 14058 14059_ACEOF 14060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14061ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14062ac_cs_version="\\ 14063config.status 14064configured by $0, generated by GNU Autoconf 2.69, 14065 with options \\"\$ac_cs_config\\" 14066 14067Copyright (C) 2012 Free Software Foundation, Inc. 14068This config.status script is free software; the Free Software Foundation 14069gives unlimited permission to copy, distribute and modify it." 14070 14071ac_pwd='$ac_pwd' 14072srcdir='$srcdir' 14073AWK='$AWK' 14074test -n "\$AWK" || AWK=awk 14075_ACEOF 14076 14077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14078# The default lists apply if the user does not specify any file. 14079ac_need_defaults=: 14080while test $# != 0 14081do 14082 case $1 in 14083 --*=?*) 14084 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14085 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14086 ac_shift=: 14087 ;; 14088 --*=) 14089 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14090 ac_optarg= 14091 ac_shift=: 14092 ;; 14093 *) 14094 ac_option=$1 14095 ac_optarg=$2 14096 ac_shift=shift 14097 ;; 14098 esac 14099 14100 case $ac_option in 14101 # Handling of the options. 14102 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14103 ac_cs_recheck=: ;; 14104 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14105 $as_echo "$ac_cs_version"; exit ;; 14106 --config | --confi | --conf | --con | --co | --c ) 14107 $as_echo "$ac_cs_config"; exit ;; 14108 --debug | --debu | --deb | --de | --d | -d ) 14109 debug=: ;; 14110 --file | --fil | --fi | --f ) 14111 $ac_shift 14112 case $ac_optarg in 14113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14114 '') as_fn_error $? "missing file argument" ;; 14115 esac 14116 as_fn_append CONFIG_FILES " '$ac_optarg'" 14117 ac_need_defaults=false;; 14118 --header | --heade | --head | --hea ) 14119 $ac_shift 14120 case $ac_optarg in 14121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14122 esac 14123 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14124 ac_need_defaults=false;; 14125 --he | --h) 14126 # Conflict between --help and --header 14127 as_fn_error $? "ambiguous option: \`$1' 14128Try \`$0 --help' for more information.";; 14129 --help | --hel | -h ) 14130 $as_echo "$ac_cs_usage"; exit ;; 14131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14132 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14133 ac_cs_silent=: ;; 14134 14135 # This is an error. 14136 -*) as_fn_error $? "unrecognized option: \`$1' 14137Try \`$0 --help' for more information." ;; 14138 14139 *) as_fn_append ac_config_targets " $1" 14140 ac_need_defaults=false ;; 14141 14142 esac 14143 shift 14144done 14145 14146ac_configure_extra_args= 14147 14148if $ac_cs_silent; then 14149 exec 6>/dev/null 14150 ac_configure_extra_args="$ac_configure_extra_args --silent" 14151fi 14152 14153_ACEOF 14154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14155if \$ac_cs_recheck; then 14156 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14157 shift 14158 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14159 CONFIG_SHELL='$SHELL' 14160 export CONFIG_SHELL 14161 exec "\$@" 14162fi 14163 14164_ACEOF 14165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14166exec 5>>auto/config.log 14167{ 14168 echo 14169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14170## Running $as_me. ## 14171_ASBOX 14172 $as_echo "$ac_log" 14173} >&5 14174 14175_ACEOF 14176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14177_ACEOF 14178 14179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14180 14181# Handling of arguments. 14182for ac_config_target in $ac_config_targets 14183do 14184 case $ac_config_target in 14185 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 14186 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 14187 14188 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14189 esac 14190done 14191 14192 14193# If the user did not use the arguments to specify the items to instantiate, 14194# then the envvar interface is used. Set only those that are not. 14195# We use the long form for the default assignment because of an extremely 14196# bizarre bug on SunOS 4.1.3. 14197if $ac_need_defaults; then 14198 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14199 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14200fi 14201 14202# Have a temporary directory for convenience. Make it in the build tree 14203# simply because there is no reason against having it here, and in addition, 14204# creating and moving files from /tmp can sometimes cause problems. 14205# Hook for its removal unless debugging. 14206# Note that there is a small window in which the directory will not be cleaned: 14207# after its creation but before its name has been assigned to `$tmp'. 14208$debug || 14209{ 14210 tmp= ac_tmp= 14211 trap 'exit_status=$? 14212 : "${ac_tmp:=$tmp}" 14213 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14214' 0 14215 trap 'as_fn_exit 1' 1 2 13 15 14216} 14217# Create a (secure) tmp directory for tmp files. 14218 14219{ 14220 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14221 test -d "$tmp" 14222} || 14223{ 14224 tmp=./conf$$-$RANDOM 14225 (umask 077 && mkdir "$tmp") 14226} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14227ac_tmp=$tmp 14228 14229# Set up the scripts for CONFIG_FILES section. 14230# No need to generate them if there are no CONFIG_FILES. 14231# This happens for instance with `./config.status config.h'. 14232if test -n "$CONFIG_FILES"; then 14233 14234 14235ac_cr=`echo X | tr X '\015'` 14236# On cygwin, bash can eat \r inside `` if the user requested igncr. 14237# But we know of no other shell where ac_cr would be empty at this 14238# point, so we can use a bashism as a fallback. 14239if test "x$ac_cr" = x; then 14240 eval ac_cr=\$\'\\r\' 14241fi 14242ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14243if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14244 ac_cs_awk_cr='\\r' 14245else 14246 ac_cs_awk_cr=$ac_cr 14247fi 14248 14249echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14250_ACEOF 14251 14252 14253{ 14254 echo "cat >conf$$subs.awk <<_ACEOF" && 14255 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14256 echo "_ACEOF" 14257} >conf$$subs.sh || 14258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14259ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14260ac_delim='%!_!# ' 14261for ac_last_try in false false false false false :; do 14262 . ./conf$$subs.sh || 14263 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14264 14265 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14266 if test $ac_delim_n = $ac_delim_num; then 14267 break 14268 elif $ac_last_try; then 14269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14270 else 14271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14272 fi 14273done 14274rm -f conf$$subs.sh 14275 14276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14277cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14278_ACEOF 14279sed -n ' 14280h 14281s/^/S["/; s/!.*/"]=/ 14282p 14283g 14284s/^[^!]*!// 14285:repl 14286t repl 14287s/'"$ac_delim"'$// 14288t delim 14289:nl 14290h 14291s/\(.\{148\}\)..*/\1/ 14292t more1 14293s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14294p 14295n 14296b repl 14297:more1 14298s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14299p 14300g 14301s/.\{148\}// 14302t nl 14303:delim 14304h 14305s/\(.\{148\}\)..*/\1/ 14306t more2 14307s/["\\]/\\&/g; s/^/"/; s/$/"/ 14308p 14309b 14310:more2 14311s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14312p 14313g 14314s/.\{148\}// 14315t delim 14316' <conf$$subs.awk | sed ' 14317/^[^""]/{ 14318 N 14319 s/\n// 14320} 14321' >>$CONFIG_STATUS || ac_write_fail=1 14322rm -f conf$$subs.awk 14323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14324_ACAWK 14325cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14326 for (key in S) S_is_set[key] = 1 14327 FS = "" 14328 14329} 14330{ 14331 line = $ 0 14332 nfields = split(line, field, "@") 14333 substed = 0 14334 len = length(field[1]) 14335 for (i = 2; i < nfields; i++) { 14336 key = field[i] 14337 keylen = length(key) 14338 if (S_is_set[key]) { 14339 value = S[key] 14340 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14341 len += length(value) + length(field[++i]) 14342 substed = 1 14343 } else 14344 len += 1 + keylen 14345 } 14346 14347 print line 14348} 14349 14350_ACAWK 14351_ACEOF 14352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14353if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14354 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14355else 14356 cat 14357fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14358 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14359_ACEOF 14360 14361# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14362# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14363# trailing colons and then remove the whole line if VPATH becomes empty 14364# (actually we leave an empty line to preserve line numbers). 14365if test "x$srcdir" = x.; then 14366 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14367h 14368s/// 14369s/^/:/ 14370s/[ ]*$/:/ 14371s/:\$(srcdir):/:/g 14372s/:\${srcdir}:/:/g 14373s/:@srcdir@:/:/g 14374s/^:*// 14375s/:*$// 14376x 14377s/\(=[ ]*\).*/\1/ 14378G 14379s/\n// 14380s/^[^=]*=[ ]*$// 14381}' 14382fi 14383 14384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14385fi # test -n "$CONFIG_FILES" 14386 14387# Set up the scripts for CONFIG_HEADERS section. 14388# No need to generate them if there are no CONFIG_HEADERS. 14389# This happens for instance with `./config.status Makefile'. 14390if test -n "$CONFIG_HEADERS"; then 14391cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14392BEGIN { 14393_ACEOF 14394 14395# Transform confdefs.h into an awk script `defines.awk', embedded as 14396# here-document in config.status, that substitutes the proper values into 14397# config.h.in to produce config.h. 14398 14399# Create a delimiter string that does not exist in confdefs.h, to ease 14400# handling of long lines. 14401ac_delim='%!_!# ' 14402for ac_last_try in false false :; do 14403 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14404 if test -z "$ac_tt"; then 14405 break 14406 elif $ac_last_try; then 14407 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14408 else 14409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14410 fi 14411done 14412 14413# For the awk script, D is an array of macro values keyed by name, 14414# likewise P contains macro parameters if any. Preserve backslash 14415# newline sequences. 14416 14417ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14418sed -n ' 14419s/.\{148\}/&'"$ac_delim"'/g 14420t rset 14421:rset 14422s/^[ ]*#[ ]*define[ ][ ]*/ / 14423t def 14424d 14425:def 14426s/\\$// 14427t bsnl 14428s/["\\]/\\&/g 14429s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14430D["\1"]=" \3"/p 14431s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14432d 14433:bsnl 14434s/["\\]/\\&/g 14435s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14436D["\1"]=" \3\\\\\\n"\\/p 14437t cont 14438s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14439t cont 14440d 14441:cont 14442n 14443s/.\{148\}/&'"$ac_delim"'/g 14444t clear 14445:clear 14446s/\\$// 14447t bsnlc 14448s/["\\]/\\&/g; s/^/"/; s/$/"/p 14449d 14450:bsnlc 14451s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14452b cont 14453' <confdefs.h | sed ' 14454s/'"$ac_delim"'/"\\\ 14455"/g' >>$CONFIG_STATUS || ac_write_fail=1 14456 14457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14458 for (key in D) D_is_set[key] = 1 14459 FS = "" 14460} 14461/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14462 line = \$ 0 14463 split(line, arg, " ") 14464 if (arg[1] == "#") { 14465 defundef = arg[2] 14466 mac1 = arg[3] 14467 } else { 14468 defundef = substr(arg[1], 2) 14469 mac1 = arg[2] 14470 } 14471 split(mac1, mac2, "(") #) 14472 macro = mac2[1] 14473 prefix = substr(line, 1, index(line, defundef) - 1) 14474 if (D_is_set[macro]) { 14475 # Preserve the white space surrounding the "#". 14476 print prefix "define", macro P[macro] D[macro] 14477 next 14478 } else { 14479 # Replace #undef with comments. This is necessary, for example, 14480 # in the case of _POSIX_SOURCE, which is predefined and required 14481 # on some systems where configure will not decide to define it. 14482 if (defundef == "undef") { 14483 print "/*", prefix defundef, macro, "*/" 14484 next 14485 } 14486 } 14487} 14488{ print } 14489_ACAWK 14490_ACEOF 14491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14492 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14493fi # test -n "$CONFIG_HEADERS" 14494 14495 14496eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 14497shift 14498for ac_tag 14499do 14500 case $ac_tag in 14501 :[FHLC]) ac_mode=$ac_tag; continue;; 14502 esac 14503 case $ac_mode$ac_tag in 14504 :[FHL]*:*);; 14505 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14506 :[FH]-) ac_tag=-:-;; 14507 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14508 esac 14509 ac_save_IFS=$IFS 14510 IFS=: 14511 set x $ac_tag 14512 IFS=$ac_save_IFS 14513 shift 14514 ac_file=$1 14515 shift 14516 14517 case $ac_mode in 14518 :L) ac_source=$1;; 14519 :[FH]) 14520 ac_file_inputs= 14521 for ac_f 14522 do 14523 case $ac_f in 14524 -) ac_f="$ac_tmp/stdin";; 14525 *) # Look for the file first in the build tree, then in the source tree 14526 # (if the path is not absolute). The absolute path cannot be DOS-style, 14527 # because $ac_f cannot contain `:'. 14528 test -f "$ac_f" || 14529 case $ac_f in 14530 [\\/$]*) false;; 14531 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14532 esac || 14533 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14534 esac 14535 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14536 as_fn_append ac_file_inputs " '$ac_f'" 14537 done 14538 14539 # Let's still pretend it is `configure' which instantiates (i.e., don't 14540 # use $as_me), people would be surprised to read: 14541 # /* config.h. Generated by config.status. */ 14542 configure_input='Generated from '` 14543 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14544 `' by configure.' 14545 if test x"$ac_file" != x-; then 14546 configure_input="$ac_file. $configure_input" 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14548$as_echo "$as_me: creating $ac_file" >&6;} 14549 fi 14550 # Neutralize special characters interpreted by sed in replacement strings. 14551 case $configure_input in #( 14552 *\&* | *\|* | *\\* ) 14553 ac_sed_conf_input=`$as_echo "$configure_input" | 14554 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14555 *) ac_sed_conf_input=$configure_input;; 14556 esac 14557 14558 case $ac_tag in 14559 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14561 esac 14562 ;; 14563 esac 14564 14565 ac_dir=`$as_dirname -- "$ac_file" || 14566$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14567 X"$ac_file" : 'X\(//\)[^/]' \| \ 14568 X"$ac_file" : 'X\(//\)$' \| \ 14569 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14570$as_echo X"$ac_file" | 14571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14572 s//\1/ 14573 q 14574 } 14575 /^X\(\/\/\)[^/].*/{ 14576 s//\1/ 14577 q 14578 } 14579 /^X\(\/\/\)$/{ 14580 s//\1/ 14581 q 14582 } 14583 /^X\(\/\).*/{ 14584 s//\1/ 14585 q 14586 } 14587 s/.*/./; q'` 14588 as_dir="$ac_dir"; as_fn_mkdir_p 14589 ac_builddir=. 14590 14591case "$ac_dir" in 14592.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14593*) 14594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14595 # A ".." for each directory in $ac_dir_suffix. 14596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14597 case $ac_top_builddir_sub in 14598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14600 esac ;; 14601esac 14602ac_abs_top_builddir=$ac_pwd 14603ac_abs_builddir=$ac_pwd$ac_dir_suffix 14604# for backward compatibility: 14605ac_top_builddir=$ac_top_build_prefix 14606 14607case $srcdir in 14608 .) # We are building in place. 14609 ac_srcdir=. 14610 ac_top_srcdir=$ac_top_builddir_sub 14611 ac_abs_top_srcdir=$ac_pwd ;; 14612 [\\/]* | ?:[\\/]* ) # Absolute name. 14613 ac_srcdir=$srcdir$ac_dir_suffix; 14614 ac_top_srcdir=$srcdir 14615 ac_abs_top_srcdir=$srcdir ;; 14616 *) # Relative name. 14617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14618 ac_top_srcdir=$ac_top_build_prefix$srcdir 14619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14620esac 14621ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14622 14623 14624 case $ac_mode in 14625 :F) 14626 # 14627 # CONFIG_FILE 14628 # 14629 14630_ACEOF 14631 14632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14633# If the template does not know about datarootdir, expand it. 14634# FIXME: This hack should be removed a few years after 2.60. 14635ac_datarootdir_hack=; ac_datarootdir_seen= 14636ac_sed_dataroot=' 14637/datarootdir/ { 14638 p 14639 q 14640} 14641/@datadir@/p 14642/@docdir@/p 14643/@infodir@/p 14644/@localedir@/p 14645/@mandir@/p' 14646case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14647*datarootdir*) ac_datarootdir_seen=yes;; 14648*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14650$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14651_ACEOF 14652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14653 ac_datarootdir_hack=' 14654 s&@datadir@&$datadir&g 14655 s&@docdir@&$docdir&g 14656 s&@infodir@&$infodir&g 14657 s&@localedir@&$localedir&g 14658 s&@mandir@&$mandir&g 14659 s&\\\${datarootdir}&$datarootdir&g' ;; 14660esac 14661_ACEOF 14662 14663# Neutralize VPATH when `$srcdir' = `.'. 14664# Shell code in configure.ac might set extrasub. 14665# FIXME: do we really want to maintain this feature? 14666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14667ac_sed_extra="$ac_vpsub 14668$extrasub 14669_ACEOF 14670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14671:t 14672/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14673s|@configure_input@|$ac_sed_conf_input|;t t 14674s&@top_builddir@&$ac_top_builddir_sub&;t t 14675s&@top_build_prefix@&$ac_top_build_prefix&;t t 14676s&@srcdir@&$ac_srcdir&;t t 14677s&@abs_srcdir@&$ac_abs_srcdir&;t t 14678s&@top_srcdir@&$ac_top_srcdir&;t t 14679s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14680s&@builddir@&$ac_builddir&;t t 14681s&@abs_builddir@&$ac_abs_builddir&;t t 14682s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14683$ac_datarootdir_hack 14684" 14685eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14686 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14687 14688test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14689 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14690 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14691 "$ac_tmp/out"`; test -z "$ac_out"; } && 14692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14693which seems to be undefined. Please make sure it is defined" >&5 14694$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14695which seems to be undefined. Please make sure it is defined" >&2;} 14696 14697 rm -f "$ac_tmp/stdin" 14698 case $ac_file in 14699 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14700 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14701 esac \ 14702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14703 ;; 14704 :H) 14705 # 14706 # CONFIG_HEADER 14707 # 14708 if test x"$ac_file" != x-; then 14709 { 14710 $as_echo "/* $configure_input */" \ 14711 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14712 } >"$ac_tmp/config.h" \ 14713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14714 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14715 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14716$as_echo "$as_me: $ac_file is unchanged" >&6;} 14717 else 14718 rm -f "$ac_file" 14719 mv "$ac_tmp/config.h" "$ac_file" \ 14720 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14721 fi 14722 else 14723 $as_echo "/* $configure_input */" \ 14724 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14725 || as_fn_error $? "could not create -" "$LINENO" 5 14726 fi 14727 ;; 14728 14729 14730 esac 14731 14732done # for ac_tag 14733 14734 14735as_fn_exit 0 14736_ACEOF 14737ac_clean_files=$ac_clean_files_save 14738 14739test $ac_write_fail = 0 || 14740 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14741 14742 14743# configure is writing to config.log, and then calls config.status. 14744# config.status does its own redirection, appending to config.log. 14745# Unfortunately, on DOS this fails, as config.log is still kept open 14746# by configure, so config.status won't be able to write to it; its 14747# output is simply discarded. So we exec the FD to /dev/null, 14748# effectively closing config.log, so it can be properly (re)opened and 14749# appended to by config.status. When coming back to configure, we 14750# need to make the FD available again. 14751if test "$no_create" != yes; then 14752 ac_cs_success=: 14753 ac_config_status_args= 14754 test "$silent" = yes && 14755 ac_config_status_args="$ac_config_status_args --quiet" 14756 exec 5>/dev/null 14757 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14758 exec 5>>auto/config.log 14759 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14760 # would make configure fail if this is the last instruction. 14761 $ac_cs_success || as_fn_exit 1 14762fi 14763if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14765$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14766fi 14767 14768 14769