1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 8# Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error ERROR [LINENO LOG_FD] 360# --------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with status $?, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$?; test $as_status -eq 0 && as_status=1 367 if test "$3"; then 368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 370 fi 371 $as_echo "$as_me: error: $1" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529test -n "$DJDIR" || exec 7<&0 </dev/null 530exec 6>&1 531 532# Name of the host. 533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 534# so uname gets run too. 535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 536 537# 538# Initializations. 539# 540ac_default_prefix=/usr/local 541ac_clean_files= 542ac_config_libobj_dir=. 543LIBOBJS= 544cross_compiling=no 545subdirs= 546MFLAGS= 547MAKEFLAGS= 548 549# Identity of this package. 550PACKAGE_NAME= 551PACKAGE_TARNAME= 552PACKAGE_VERSION= 553PACKAGE_STRING= 554PACKAGE_BUGREPORT= 555PACKAGE_URL= 556 557ac_unique_file="vim.h" 558# Factoring default headers for most tests. 559ac_includes_default="\ 560#include <stdio.h> 561#ifdef HAVE_SYS_TYPES_H 562# include <sys/types.h> 563#endif 564#ifdef HAVE_SYS_STAT_H 565# include <sys/stat.h> 566#endif 567#ifdef STDC_HEADERS 568# include <stdlib.h> 569# include <stddef.h> 570#else 571# ifdef HAVE_STDLIB_H 572# include <stdlib.h> 573# endif 574#endif 575#ifdef HAVE_STRING_H 576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 577# include <memory.h> 578# endif 579# include <string.h> 580#endif 581#ifdef HAVE_STRINGS_H 582# include <strings.h> 583#endif 584#ifdef HAVE_INTTYPES_H 585# include <inttypes.h> 586#endif 587#ifdef HAVE_STDINT_H 588# include <stdint.h> 589#endif 590#ifdef HAVE_UNISTD_H 591# include <unistd.h> 592#endif" 593 594ac_subst_vars='LTLIBOBJS 595LIBOBJS 596DEPEND_CFLAGS_FILTER 597MAKEMO 598MSGFMT 599INSTALL_TOOL_LANGS 600INSTALL_LANGS 601TAGPRG 602HANGULIN_OBJ 603HANGULIN_SRC 604GUI_X_LIBS 605GUITYPE 606GUI_LIB_LOC 607GUI_INC_LOC 608NARROW_PROTO 609MOTIF_LIBNAME 610GNOME_INCLUDEDIR 611GNOME_LIBDIR 612GNOME_LIBS 613GTK_LIBNAME 614GTK_LIBS 615GTK_CFLAGS 616PKG_CONFIG 617X_LIB 618X_EXTRA_LIBS 619X_LIBS 620X_PRE_LIBS 621X_CFLAGS 622XMKMF 623xmkmfpath 624SNIFF_OBJ 625SNIFF_SRC 626NETBEANS_OBJ 627NETBEANS_SRC 628WORKSHOP_OBJ 629WORKSHOP_SRC 630RUBY_LIBS 631RUBY_CFLAGS 632RUBY_PRO 633RUBY_OBJ 634RUBY_SRC 635vi_cv_path_ruby 636TCL_LIBS 637TCL_CFLAGS 638TCL_PRO 639TCL_OBJ 640TCL_SRC 641vi_cv_path_tcl 642PYTHON3_OBJ 643PYTHON3_SRC 644PYTHON3_CFLAGS 645PYTHON3_LIBS 646PYTHON3_CONFDIR 647vi_cv_path_python3 648PYTHON_OBJ 649PYTHON_SRC 650PYTHON_CFLAGS 651PYTHON_GETPATH_CFLAGS 652PYTHON_LIBS 653PYTHON_CONFDIR 654vi_cv_path_python 655PERL_LIBS 656PERL_CFLAGS 657PERL_PRO 658PERL_OBJ 659PERL_SRC 660shrpenv 661vi_cv_perllib 662vi_cv_path_perl 663MZSCHEME_MZC 664MZSCHEME_EXTRA 665MZSCHEME_CFLAGS 666MZSCHEME_LIBS 667MZSCHEME_PRO 668MZSCHEME_OBJ 669MZSCHEME_SRC 670vi_cv_path_mzscheme 671LUA_CFLAGS 672LUA_LIBS 673LUA_PRO 674LUA_OBJ 675LUA_SRC 676vi_cv_path_lua 677compiledby 678dogvimdiff 679dovimdiff 680QUOTESED 681line_break 682VIEWNAME 683EXNAME 684VIMNAME 685OS_EXTRA_OBJ 686OS_EXTRA_SRC 687XCODE_SELECT 688CPP_MM 689STRIP 690AWK 691EGREP 692GREP 693CPP 694OBJEXT 695EXEEXT 696ac_ct_CC 697CPPFLAGS 698LDFLAGS 699CFLAGS 700CC 701SET_MAKE 702target_alias 703host_alias 704build_alias 705LIBS 706ECHO_T 707ECHO_N 708ECHO_C 709DEFS 710mandir 711localedir 712libdir 713psdir 714pdfdir 715dvidir 716htmldir 717infodir 718docdir 719oldincludedir 720includedir 721localstatedir 722sharedstatedir 723sysconfdir 724datadir 725datarootdir 726libexecdir 727sbindir 728bindir 729program_transform_name 730prefix 731exec_prefix 732PACKAGE_URL 733PACKAGE_BUGREPORT 734PACKAGE_STRING 735PACKAGE_VERSION 736PACKAGE_TARNAME 737PACKAGE_NAME 738PATH_SEPARATOR 739SHELL' 740ac_subst_files='' 741ac_user_opts=' 742enable_option_checking 743enable_darwin 744with_mac_arch 745with_developer_dir 746with_local_dir 747with_vim_name 748with_ex_name 749with_view_name 750with_global_runtime 751with_modified_by 752enable_selinux 753with_features 754with_compiledby 755enable_xsmp 756enable_xsmp_interact 757enable_luainterp 758with_lua_prefix 759enable_mzschemeinterp 760with_plthome 761enable_perlinterp 762enable_pythoninterp 763with_python_config_dir 764enable_python3interp 765with_python3_config_dir 766enable_tclinterp 767with_tclsh 768enable_rubyinterp 769with_ruby_command 770enable_cscope 771enable_workshop 772enable_netbeans 773enable_sniff 774enable_multibyte 775enable_hangulinput 776enable_xim 777enable_fontset 778with_x 779enable_gui 780enable_gtk2_check 781enable_gnome_check 782enable_motif_check 783enable_athena_check 784enable_nextaw_check 785enable_carbon_check 786enable_gtktest 787with_gnome_includes 788with_gnome_libs 789with_gnome 790with_motif_lib 791with_tlib 792enable_largefile 793enable_acl 794enable_gpm 795enable_sysmouse 796enable_nls 797' 798 ac_precious_vars='build_alias 799host_alias 800target_alias 801CC 802CFLAGS 803LDFLAGS 804LIBS 805CPPFLAGS 806CPP 807XMKMF' 808 809 810# Initialize some variables set by options. 811ac_init_help= 812ac_init_version=false 813ac_unrecognized_opts= 814ac_unrecognized_sep= 815# The variables have the same names as the options, with 816# dashes changed to underlines. 817cache_file=/dev/null 818exec_prefix=NONE 819no_create= 820no_recursion= 821prefix=NONE 822program_prefix=NONE 823program_suffix=NONE 824program_transform_name=s,x,x, 825silent= 826site= 827srcdir= 828verbose= 829x_includes=NONE 830x_libraries=NONE 831 832# Installation directory options. 833# These are left unexpanded so users can "make install exec_prefix=/foo" 834# and all the variables that are supposed to be based on exec_prefix 835# by default will actually change. 836# Use braces instead of parens because sh, perl, etc. also accept them. 837# (The list follows the same order as the GNU Coding Standards.) 838bindir='${exec_prefix}/bin' 839sbindir='${exec_prefix}/sbin' 840libexecdir='${exec_prefix}/libexec' 841datarootdir='${prefix}/share' 842datadir='${datarootdir}' 843sysconfdir='${prefix}/etc' 844sharedstatedir='${prefix}/com' 845localstatedir='${prefix}/var' 846includedir='${prefix}/include' 847oldincludedir='/usr/include' 848docdir='${datarootdir}/doc/${PACKAGE}' 849infodir='${datarootdir}/info' 850htmldir='${docdir}' 851dvidir='${docdir}' 852pdfdir='${docdir}' 853psdir='${docdir}' 854libdir='${exec_prefix}/lib' 855localedir='${datarootdir}/locale' 856mandir='${datarootdir}/man' 857 858ac_prev= 859ac_dashdash= 860for ac_option 861do 862 # If the previous option needs an argument, assign it. 863 if test -n "$ac_prev"; then 864 eval $ac_prev=\$ac_option 865 ac_prev= 866 continue 867 fi 868 869 case $ac_option in 870 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 871 *) ac_optarg=yes ;; 872 esac 873 874 # Accept the important Cygnus configure options, so we can diagnose typos. 875 876 case $ac_dashdash$ac_option in 877 --) 878 ac_dashdash=yes ;; 879 880 -bindir | --bindir | --bindi | --bind | --bin | --bi) 881 ac_prev=bindir ;; 882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 883 bindir=$ac_optarg ;; 884 885 -build | --build | --buil | --bui | --bu) 886 ac_prev=build_alias ;; 887 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 888 build_alias=$ac_optarg ;; 889 890 -cache-file | --cache-file | --cache-fil | --cache-fi \ 891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 892 ac_prev=cache_file ;; 893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 895 cache_file=$ac_optarg ;; 896 897 --config-cache | -C) 898 cache_file=config.cache ;; 899 900 -datadir | --datadir | --datadi | --datad) 901 ac_prev=datadir ;; 902 -datadir=* | --datadir=* | --datadi=* | --datad=*) 903 datadir=$ac_optarg ;; 904 905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 906 | --dataroo | --dataro | --datar) 907 ac_prev=datarootdir ;; 908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 910 datarootdir=$ac_optarg ;; 911 912 -disable-* | --disable-*) 913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 914 # Reject names that are not valid shell variable names. 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 916 as_fn_error "invalid feature name: $ac_useropt" 917 ac_useropt_orig=$ac_useropt 918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 919 case $ac_user_opts in 920 *" 921"enable_$ac_useropt" 922"*) ;; 923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 924 ac_unrecognized_sep=', ';; 925 esac 926 eval enable_$ac_useropt=no ;; 927 928 -docdir | --docdir | --docdi | --doc | --do) 929 ac_prev=docdir ;; 930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 931 docdir=$ac_optarg ;; 932 933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 934 ac_prev=dvidir ;; 935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 936 dvidir=$ac_optarg ;; 937 938 -enable-* | --enable-*) 939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 940 # Reject names that are not valid shell variable names. 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 942 as_fn_error "invalid feature name: $ac_useropt" 943 ac_useropt_orig=$ac_useropt 944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 945 case $ac_user_opts in 946 *" 947"enable_$ac_useropt" 948"*) ;; 949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 950 ac_unrecognized_sep=', ';; 951 esac 952 eval enable_$ac_useropt=\$ac_optarg ;; 953 954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 956 | --exec | --exe | --ex) 957 ac_prev=exec_prefix ;; 958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 960 | --exec=* | --exe=* | --ex=*) 961 exec_prefix=$ac_optarg ;; 962 963 -gas | --gas | --ga | --g) 964 # Obsolete; use --with-gas. 965 with_gas=yes ;; 966 967 -help | --help | --hel | --he | -h) 968 ac_init_help=long ;; 969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 970 ac_init_help=recursive ;; 971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 972 ac_init_help=short ;; 973 974 -host | --host | --hos | --ho) 975 ac_prev=host_alias ;; 976 -host=* | --host=* | --hos=* | --ho=*) 977 host_alias=$ac_optarg ;; 978 979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 980 ac_prev=htmldir ;; 981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 982 | --ht=*) 983 htmldir=$ac_optarg ;; 984 985 -includedir | --includedir | --includedi | --included | --include \ 986 | --includ | --inclu | --incl | --inc) 987 ac_prev=includedir ;; 988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 989 | --includ=* | --inclu=* | --incl=* | --inc=*) 990 includedir=$ac_optarg ;; 991 992 -infodir | --infodir | --infodi | --infod | --info | --inf) 993 ac_prev=infodir ;; 994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 995 infodir=$ac_optarg ;; 996 997 -libdir | --libdir | --libdi | --libd) 998 ac_prev=libdir ;; 999 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1000 libdir=$ac_optarg ;; 1001 1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1003 | --libexe | --libex | --libe) 1004 ac_prev=libexecdir ;; 1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1006 | --libexe=* | --libex=* | --libe=*) 1007 libexecdir=$ac_optarg ;; 1008 1009 -localedir | --localedir | --localedi | --localed | --locale) 1010 ac_prev=localedir ;; 1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1012 localedir=$ac_optarg ;; 1013 1014 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1015 | --localstate | --localstat | --localsta | --localst | --locals) 1016 ac_prev=localstatedir ;; 1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1019 localstatedir=$ac_optarg ;; 1020 1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1022 ac_prev=mandir ;; 1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1024 mandir=$ac_optarg ;; 1025 1026 -nfp | --nfp | --nf) 1027 # Obsolete; use --without-fp. 1028 with_fp=no ;; 1029 1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1031 | --no-cr | --no-c | -n) 1032 no_create=yes ;; 1033 1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1036 no_recursion=yes ;; 1037 1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1040 | --oldin | --oldi | --old | --ol | --o) 1041 ac_prev=oldincludedir ;; 1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1045 oldincludedir=$ac_optarg ;; 1046 1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1048 ac_prev=prefix ;; 1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1050 prefix=$ac_optarg ;; 1051 1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1053 | --program-pre | --program-pr | --program-p) 1054 ac_prev=program_prefix ;; 1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1057 program_prefix=$ac_optarg ;; 1058 1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1060 | --program-suf | --program-su | --program-s) 1061 ac_prev=program_suffix ;; 1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1064 program_suffix=$ac_optarg ;; 1065 1066 -program-transform-name | --program-transform-name \ 1067 | --program-transform-nam | --program-transform-na \ 1068 | --program-transform-n | --program-transform- \ 1069 | --program-transform | --program-transfor \ 1070 | --program-transfo | --program-transf \ 1071 | --program-trans | --program-tran \ 1072 | --progr-tra | --program-tr | --program-t) 1073 ac_prev=program_transform_name ;; 1074 -program-transform-name=* | --program-transform-name=* \ 1075 | --program-transform-nam=* | --program-transform-na=* \ 1076 | --program-transform-n=* | --program-transform-=* \ 1077 | --program-transform=* | --program-transfor=* \ 1078 | --program-transfo=* | --program-transf=* \ 1079 | --program-trans=* | --program-tran=* \ 1080 | --progr-tra=* | --program-tr=* | --program-t=*) 1081 program_transform_name=$ac_optarg ;; 1082 1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1084 ac_prev=pdfdir ;; 1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1086 pdfdir=$ac_optarg ;; 1087 1088 -psdir | --psdir | --psdi | --psd | --ps) 1089 ac_prev=psdir ;; 1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1091 psdir=$ac_optarg ;; 1092 1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1094 | -silent | --silent | --silen | --sile | --sil) 1095 silent=yes ;; 1096 1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1098 ac_prev=sbindir ;; 1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1100 | --sbi=* | --sb=*) 1101 sbindir=$ac_optarg ;; 1102 1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1105 | --sharedst | --shareds | --shared | --share | --shar \ 1106 | --sha | --sh) 1107 ac_prev=sharedstatedir ;; 1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1111 | --sha=* | --sh=*) 1112 sharedstatedir=$ac_optarg ;; 1113 1114 -site | --site | --sit) 1115 ac_prev=site ;; 1116 -site=* | --site=* | --sit=*) 1117 site=$ac_optarg ;; 1118 1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1120 ac_prev=srcdir ;; 1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1122 srcdir=$ac_optarg ;; 1123 1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1125 | --syscon | --sysco | --sysc | --sys | --sy) 1126 ac_prev=sysconfdir ;; 1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1129 sysconfdir=$ac_optarg ;; 1130 1131 -target | --target | --targe | --targ | --tar | --ta | --t) 1132 ac_prev=target_alias ;; 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1134 target_alias=$ac_optarg ;; 1135 1136 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1137 verbose=yes ;; 1138 1139 -version | --version | --versio | --versi | --vers | -V) 1140 ac_init_version=: ;; 1141 1142 -with-* | --with-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error "invalid package name: $ac_useropt" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=\$ac_optarg ;; 1157 1158 -without-* | --without-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error "invalid package name: $ac_useropt" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"with_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=no ;; 1173 1174 --x) 1175 # Obsolete; use --with-x. 1176 with_x=yes ;; 1177 1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1179 | --x-incl | --x-inc | --x-in | --x-i) 1180 ac_prev=x_includes ;; 1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1183 x_includes=$ac_optarg ;; 1184 1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1187 ac_prev=x_libraries ;; 1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1190 x_libraries=$ac_optarg ;; 1191 1192 -*) as_fn_error "unrecognized option: \`$ac_option' 1193Try \`$0 --help' for more information." 1194 ;; 1195 1196 *=*) 1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1198 # Reject names that are not valid shell variable names. 1199 case $ac_envvar in #( 1200 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1202 esac 1203 eval $ac_envvar=\$ac_optarg 1204 export $ac_envvar ;; 1205 1206 *) 1207 # FIXME: should be removed in autoconf 3.0. 1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1211 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1212 ;; 1213 1214 esac 1215done 1216 1217if test -n "$ac_prev"; then 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219 as_fn_error "missing argument to $ac_option" 1220fi 1221 1222if test -n "$ac_unrecognized_opts"; then 1223 case $enable_option_checking in 1224 no) ;; 1225 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1227 esac 1228fi 1229 1230# Check all directory arguments for consistency. 1231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232 datadir sysconfdir sharedstatedir localstatedir includedir \ 1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234 libdir localedir mandir 1235do 1236 eval ac_val=\$$ac_var 1237 # Remove trailing slashes. 1238 case $ac_val in 1239 */ ) 1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241 eval $ac_var=\$ac_val;; 1242 esac 1243 # Be sure to have absolute directory names. 1244 case $ac_val in 1245 [\\/$]* | ?:[\\/]* ) continue;; 1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247 esac 1248 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1249done 1250 1251# There might be people who depend on the old broken behavior: `$host' 1252# used to hold the argument of --host etc. 1253# FIXME: To remove some day. 1254build=$build_alias 1255host=$host_alias 1256target=$target_alias 1257 1258# FIXME: To remove some day. 1259if test "x$host_alias" != x; then 1260 if test "x$build_alias" = x; then 1261 cross_compiling=maybe 1262 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1263 If a cross compiler is detected then cross compile mode will be used." >&2 1264 elif test "x$build_alias" != "x$host_alias"; then 1265 cross_compiling=yes 1266 fi 1267fi 1268 1269ac_tool_prefix= 1270test -n "$host_alias" && ac_tool_prefix=$host_alias- 1271 1272test "$silent" = yes && exec 6>/dev/null 1273 1274 1275ac_pwd=`pwd` && test -n "$ac_pwd" && 1276ac_ls_di=`ls -di .` && 1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1278 as_fn_error "working directory cannot be determined" 1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1280 as_fn_error "pwd does not report name of working directory" 1281 1282 1283# Find the source files, if location was not specified. 1284if test -z "$srcdir"; then 1285 ac_srcdir_defaulted=yes 1286 # Try the directory containing this script, then the parent directory. 1287 ac_confdir=`$as_dirname -- "$as_myself" || 1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1289 X"$as_myself" : 'X\(//\)[^/]' \| \ 1290 X"$as_myself" : 'X\(//\)$' \| \ 1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1292$as_echo X"$as_myself" | 1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)[^/].*/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\/\)$/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\).*/{ 1306 s//\1/ 1307 q 1308 } 1309 s/.*/./; q'` 1310 srcdir=$ac_confdir 1311 if test ! -r "$srcdir/$ac_unique_file"; then 1312 srcdir=.. 1313 fi 1314else 1315 ac_srcdir_defaulted=no 1316fi 1317if test ! -r "$srcdir/$ac_unique_file"; then 1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1319 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1320fi 1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1322ac_abs_confdir=`( 1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1324 pwd)` 1325# When building in place, set srcdir=. 1326if test "$ac_abs_confdir" = "$ac_pwd"; then 1327 srcdir=. 1328fi 1329# Remove unnecessary trailing slashes from srcdir. 1330# Double slashes in file names in object file debugging info 1331# mess up M-x gdb in Emacs. 1332case $srcdir in 1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1334esac 1335for ac_var in $ac_precious_vars; do 1336 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_env_${ac_var}_value=\$${ac_var} 1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1339 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1340done 1341 1342# 1343# Report the --help message. 1344# 1345if test "$ac_init_help" = "long"; then 1346 # Omit some internal or obsolete options to make the list less imposing. 1347 # This message is too long to be a string in the A/UX 3.1 sh. 1348 cat <<_ACEOF 1349\`configure' configures this package to adapt to many kinds of systems. 1350 1351Usage: $0 [OPTION]... [VAR=VALUE]... 1352 1353To assign environment variables (e.g., CC, CFLAGS...), specify them as 1354VAR=VALUE. See below for descriptions of some of the useful variables. 1355 1356Defaults for the options are specified in brackets. 1357 1358Configuration: 1359 -h, --help display this help and exit 1360 --help=short display options specific to this package 1361 --help=recursive display the short help of all the included packages 1362 -V, --version display version information and exit 1363 -q, --quiet, --silent do not print \`checking...' messages 1364 --cache-file=FILE cache test results in FILE [disabled] 1365 -C, --config-cache alias for \`--cache-file=config.cache' 1366 -n, --no-create do not create output files 1367 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1368 1369Installation directories: 1370 --prefix=PREFIX install architecture-independent files in PREFIX 1371 [$ac_default_prefix] 1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1373 [PREFIX] 1374 1375By default, \`make install' will install all the files in 1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1377an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1378for instance \`--prefix=\$HOME'. 1379 1380For better control, use the options below. 1381 1382Fine tuning of the installation directories: 1383 --bindir=DIR user executables [EPREFIX/bin] 1384 --sbindir=DIR system admin executables [EPREFIX/sbin] 1385 --libexecdir=DIR program executables [EPREFIX/libexec] 1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1389 --libdir=DIR object code libraries [EPREFIX/lib] 1390 --includedir=DIR C header files [PREFIX/include] 1391 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1394 --infodir=DIR info documentation [DATAROOTDIR/info] 1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1396 --mandir=DIR man documentation [DATAROOTDIR/man] 1397 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1398 --htmldir=DIR html documentation [DOCDIR] 1399 --dvidir=DIR dvi documentation [DOCDIR] 1400 --pdfdir=DIR pdf documentation [DOCDIR] 1401 --psdir=DIR ps documentation [DOCDIR] 1402_ACEOF 1403 1404 cat <<\_ACEOF 1405 1406X features: 1407 --x-includes=DIR X include files are in DIR 1408 --x-libraries=DIR X library files are in DIR 1409_ACEOF 1410fi 1411 1412if test -n "$ac_init_help"; then 1413 1414 cat <<\_ACEOF 1415 1416Optional Features: 1417 --disable-option-checking ignore unrecognized --enable/--with options 1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1420 --disable-darwin Disable Darwin (Mac OS X) support. 1421 --disable-selinux Don't check for SELinux support. 1422 --disable-xsmp Disable XSMP session management 1423 --disable-xsmp-interact Disable XSMP interaction 1424 --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic 1425 --enable-mzschemeinterp Include MzScheme interpreter. 1426 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic 1427 --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic 1428 --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic 1429 --enable-tclinterp Include Tcl interpreter. 1430 --enable-rubyinterp Include Ruby interpreter. 1431 --enable-cscope Include cscope interface. 1432 --enable-workshop Include Sun Visual Workshop support. 1433 --disable-netbeans Disable NetBeans integration support. 1434 --enable-sniff Include Sniff interface. 1435 --enable-multibyte Include multibyte editing support. 1436 --enable-hangulinput Include Hangul input support. 1437 --enable-xim Include XIM input support. 1438 --enable-fontset Include X fontset output support. 1439 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/motif/athena/neXtaw/photon/carbon 1440 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1441 --enable-gnome-check If GTK GUI, check for GNOME default=no 1442 --enable-motif-check If auto-select GUI, check for Motif default=yes 1443 --enable-athena-check If auto-select GUI, check for Athena default=yes 1444 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1445 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 1446 --disable-gtktest Do not try to compile and run a test GTK program 1447 --disable-largefile omit support for large files 1448 --disable-acl Don't check for ACL support. 1449 --disable-gpm Don't use gpm (Linux mouse daemon). 1450 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1451 --disable-nls Don't support NLS (gettext()). 1452 1453Optional Packages: 1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1456 --with-mac-arch=ARCH current, intel, ppc or both 1457 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1458 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1459 --without-local-dir do not search /usr/local for local libraries. 1460 --with-vim-name=NAME what to call the Vim executable 1461 --with-ex-name=NAME what to call the Ex executable 1462 --with-view-name=NAME what to call the View executable 1463 --with-global-runtime=DIR global runtime directory in 'runtimepath' 1464 --with-modified-by=NAME name of who modified a release version 1465 --with-features=TYPE tiny, small, normal, big or huge (default: normal) 1466 --with-compiledby=NAME name to show in :version message 1467 --with-lua-prefix=PFX Prefix where Lua is installed. 1468 --with-plthome=PLTHOME Use PLTHOME. 1469 --with-python-config-dir=PATH Python's config directory 1470 --with-python3-config-dir=PATH Python's config directory 1471 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1472 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1473 --with-x use the X Window System 1474 --with-gnome-includes=DIR Specify location of GNOME headers 1475 --with-gnome-libs=DIR Specify location of GNOME libs 1476 --with-gnome Specify prefix for GNOME files 1477 --with-motif-lib=STRING Library for Motif 1478 --with-tlib=library terminal library to be used 1479 1480Some influential environment variables: 1481 CC C compiler command 1482 CFLAGS C compiler flags 1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1484 nonstandard directory <lib dir> 1485 LIBS libraries to pass to the linker, e.g. -l<library> 1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1487 you have headers in a nonstandard directory <include dir> 1488 CPP C preprocessor 1489 XMKMF Path to xmkmf, Makefile generator for X Window System 1490 1491Use these variables to override the choices made by `configure' or to help 1492it to find libraries and programs with nonstandard names/locations. 1493 1494Report bugs to the package provider. 1495_ACEOF 1496ac_status=$? 1497fi 1498 1499if test "$ac_init_help" = "recursive"; then 1500 # If there are subdirs, report their specific --help. 1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1502 test -d "$ac_dir" || 1503 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1504 continue 1505 ac_builddir=. 1506 1507case "$ac_dir" in 1508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1509*) 1510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1511 # A ".." for each directory in $ac_dir_suffix. 1512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1513 case $ac_top_builddir_sub in 1514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1516 esac ;; 1517esac 1518ac_abs_top_builddir=$ac_pwd 1519ac_abs_builddir=$ac_pwd$ac_dir_suffix 1520# for backward compatibility: 1521ac_top_builddir=$ac_top_build_prefix 1522 1523case $srcdir in 1524 .) # We are building in place. 1525 ac_srcdir=. 1526 ac_top_srcdir=$ac_top_builddir_sub 1527 ac_abs_top_srcdir=$ac_pwd ;; 1528 [\\/]* | ?:[\\/]* ) # Absolute name. 1529 ac_srcdir=$srcdir$ac_dir_suffix; 1530 ac_top_srcdir=$srcdir 1531 ac_abs_top_srcdir=$srcdir ;; 1532 *) # Relative name. 1533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1534 ac_top_srcdir=$ac_top_build_prefix$srcdir 1535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1536esac 1537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1538 1539 cd "$ac_dir" || { ac_status=$?; continue; } 1540 # Check for guested configure. 1541 if test -f "$ac_srcdir/configure.gnu"; then 1542 echo && 1543 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1544 elif test -f "$ac_srcdir/configure"; then 1545 echo && 1546 $SHELL "$ac_srcdir/configure" --help=recursive 1547 else 1548 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1549 fi || ac_status=$? 1550 cd "$ac_pwd" || { ac_status=$?; break; } 1551 done 1552fi 1553 1554test -n "$ac_init_help" && exit $ac_status 1555if $ac_init_version; then 1556 cat <<\_ACEOF 1557configure 1558generated by GNU Autoconf 2.65 1559 1560Copyright (C) 2009 Free Software Foundation, Inc. 1561This configure script is free software; the Free Software Foundation 1562gives unlimited permission to copy, distribute and modify it. 1563_ACEOF 1564 exit 1565fi 1566 1567## ------------------------ ## 1568## Autoconf initialization. ## 1569## ------------------------ ## 1570 1571# ac_fn_c_try_compile LINENO 1572# -------------------------- 1573# Try to compile conftest.$ac_ext, and return whether this succeeded. 1574ac_fn_c_try_compile () 1575{ 1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1577 rm -f conftest.$ac_objext 1578 if { { ac_try="$ac_compile" 1579case "(($ac_try" in 1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1581 *) ac_try_echo=$ac_try;; 1582esac 1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1584$as_echo "$ac_try_echo"; } >&5 1585 (eval "$ac_compile") 2>conftest.err 1586 ac_status=$? 1587 if test -s conftest.err; then 1588 grep -v '^ *+' conftest.err >conftest.er1 1589 cat conftest.er1 >&5 1590 mv -f conftest.er1 conftest.err 1591 fi 1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1593 test $ac_status = 0; } && { 1594 test -z "$ac_c_werror_flag" || 1595 test ! -s conftest.err 1596 } && test -s conftest.$ac_objext; then : 1597 ac_retval=0 1598else 1599 $as_echo "$as_me: failed program was:" >&5 1600sed 's/^/| /' conftest.$ac_ext >&5 1601 1602 ac_retval=1 1603fi 1604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1605 as_fn_set_status $ac_retval 1606 1607} # ac_fn_c_try_compile 1608 1609# ac_fn_c_try_cpp LINENO 1610# ---------------------- 1611# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1612ac_fn_c_try_cpp () 1613{ 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1615 if { { ac_try="$ac_cpp conftest.$ac_ext" 1616case "(($ac_try" in 1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1618 *) ac_try_echo=$ac_try;; 1619esac 1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1621$as_echo "$ac_try_echo"; } >&5 1622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1623 ac_status=$? 1624 if test -s conftest.err; then 1625 grep -v '^ *+' conftest.err >conftest.er1 1626 cat conftest.er1 >&5 1627 mv -f conftest.er1 conftest.err 1628 fi 1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1630 test $ac_status = 0; } >/dev/null && { 1631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1632 test ! -s conftest.err 1633 }; then : 1634 ac_retval=0 1635else 1636 $as_echo "$as_me: failed program was:" >&5 1637sed 's/^/| /' conftest.$ac_ext >&5 1638 1639 ac_retval=1 1640fi 1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1642 as_fn_set_status $ac_retval 1643 1644} # ac_fn_c_try_cpp 1645 1646# ac_fn_c_try_link LINENO 1647# ----------------------- 1648# Try to link conftest.$ac_ext, and return whether this succeeded. 1649ac_fn_c_try_link () 1650{ 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 rm -f conftest.$ac_objext conftest$ac_exeext 1653 if { { ac_try="$ac_link" 1654case "(($ac_try" in 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1656 *) ac_try_echo=$ac_try;; 1657esac 1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1659$as_echo "$ac_try_echo"; } >&5 1660 (eval "$ac_link") 2>conftest.err 1661 ac_status=$? 1662 if test -s conftest.err; then 1663 grep -v '^ *+' conftest.err >conftest.er1 1664 cat conftest.er1 >&5 1665 mv -f conftest.er1 conftest.err 1666 fi 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; } && { 1669 test -z "$ac_c_werror_flag" || 1670 test ! -s conftest.err 1671 } && test -s conftest$ac_exeext && { 1672 test "$cross_compiling" = yes || 1673 $as_test_x conftest$ac_exeext 1674 }; then : 1675 ac_retval=0 1676else 1677 $as_echo "$as_me: failed program was:" >&5 1678sed 's/^/| /' conftest.$ac_ext >&5 1679 1680 ac_retval=1 1681fi 1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1684 # interfere with the next link command; also delete a directory that is 1685 # left behind by Apple's compiler. We do this before executing the actions. 1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1688 as_fn_set_status $ac_retval 1689 1690} # ac_fn_c_try_link 1691 1692# ac_fn_c_try_run LINENO 1693# ---------------------- 1694# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1695# that executables *can* be run. 1696ac_fn_c_try_run () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 if { { ac_try="$ac_link" 1700case "(($ac_try" in 1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1702 *) ac_try_echo=$ac_try;; 1703esac 1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1705$as_echo "$ac_try_echo"; } >&5 1706 (eval "$ac_link") 2>&5 1707 ac_status=$? 1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1710 { { case "(($ac_try" in 1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1712 *) ac_try_echo=$ac_try;; 1713esac 1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1715$as_echo "$ac_try_echo"; } >&5 1716 (eval "$ac_try") 2>&5 1717 ac_status=$? 1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1719 test $ac_status = 0; }; }; then : 1720 ac_retval=0 1721else 1722 $as_echo "$as_me: program exited with status $ac_status" >&5 1723 $as_echo "$as_me: failed program was:" >&5 1724sed 's/^/| /' conftest.$ac_ext >&5 1725 1726 ac_retval=$ac_status 1727fi 1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_run 1733 1734# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1735# ------------------------------------------------------- 1736# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1737# the include files in INCLUDES and setting the cache variable VAR 1738# accordingly. 1739ac_fn_c_check_header_mongrel () 1740{ 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1744$as_echo_n "checking for $2... " >&6; } 1745if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1746 $as_echo_n "(cached) " >&6 1747fi 1748eval ac_res=\$$3 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1750$as_echo "$ac_res" >&6; } 1751else 1752 # Is the header compilable? 1753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1754$as_echo_n "checking $2 usability... " >&6; } 1755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1756/* end confdefs.h. */ 1757$4 1758#include <$2> 1759_ACEOF 1760if ac_fn_c_try_compile "$LINENO"; then : 1761 ac_header_compiler=yes 1762else 1763 ac_header_compiler=no 1764fi 1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1767$as_echo "$ac_header_compiler" >&6; } 1768 1769# Is the header present? 1770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1771$as_echo_n "checking $2 presence... " >&6; } 1772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1773/* end confdefs.h. */ 1774#include <$2> 1775_ACEOF 1776if ac_fn_c_try_cpp "$LINENO"; then : 1777 ac_header_preproc=yes 1778else 1779 ac_header_preproc=no 1780fi 1781rm -f conftest.err conftest.$ac_ext 1782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1783$as_echo "$ac_header_preproc" >&6; } 1784 1785# So? What about this header? 1786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1787 yes:no: ) 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1789$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1791$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1792 ;; 1793 no:yes:* ) 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1795$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1797$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1799$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1801$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1803$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1804 ;; 1805esac 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807$as_echo_n "checking for $2... " >&6; } 1808if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1809 $as_echo_n "(cached) " >&6 1810else 1811 eval "$3=\$ac_header_compiler" 1812fi 1813eval ac_res=\$$3 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1815$as_echo "$ac_res" >&6; } 1816fi 1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1818 1819} # ac_fn_c_check_header_mongrel 1820 1821# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1822# ------------------------------------------------------- 1823# Tests whether HEADER exists and can be compiled using the include files in 1824# INCLUDES, setting the cache variable VAR accordingly. 1825ac_fn_c_check_header_compile () 1826{ 1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1829$as_echo_n "checking for $2... " >&6; } 1830if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1831 $as_echo_n "(cached) " >&6 1832else 1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1834/* end confdefs.h. */ 1835$4 1836#include <$2> 1837_ACEOF 1838if ac_fn_c_try_compile "$LINENO"; then : 1839 eval "$3=yes" 1840else 1841 eval "$3=no" 1842fi 1843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1844fi 1845eval ac_res=\$$3 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1847$as_echo "$ac_res" >&6; } 1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1849 1850} # ac_fn_c_check_header_compile 1851 1852# ac_fn_c_check_func LINENO FUNC VAR 1853# ---------------------------------- 1854# Tests whether FUNC exists, setting the cache variable VAR accordingly 1855ac_fn_c_check_func () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1859$as_echo_n "checking for $2... " >&6; } 1860if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1861 $as_echo_n "(cached) " >&6 1862else 1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1864/* end confdefs.h. */ 1865/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1867#define $2 innocuous_$2 1868 1869/* System header to define __stub macros and hopefully few prototypes, 1870 which can conflict with char $2 (); below. 1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1872 <limits.h> exists even on freestanding compilers. */ 1873 1874#ifdef __STDC__ 1875# include <limits.h> 1876#else 1877# include <assert.h> 1878#endif 1879 1880#undef $2 1881 1882/* Override any GCC internal prototype to avoid an error. 1883 Use char because int might match the return type of a GCC 1884 builtin and then its argument prototype would still apply. */ 1885#ifdef __cplusplus 1886extern "C" 1887#endif 1888char $2 (); 1889/* The GNU C library defines this for functions which it implements 1890 to always fail with ENOSYS. Some functions are actually named 1891 something starting with __ and the normal name is an alias. */ 1892#if defined __stub_$2 || defined __stub___$2 1893choke me 1894#endif 1895 1896int 1897main () 1898{ 1899return $2 (); 1900 ; 1901 return 0; 1902} 1903_ACEOF 1904if ac_fn_c_try_link "$LINENO"; then : 1905 eval "$3=yes" 1906else 1907 eval "$3=no" 1908fi 1909rm -f core conftest.err conftest.$ac_objext \ 1910 conftest$ac_exeext conftest.$ac_ext 1911fi 1912eval ac_res=\$$3 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1914$as_echo "$ac_res" >&6; } 1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1916 1917} # ac_fn_c_check_func 1918 1919# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1920# ------------------------------------------- 1921# Tests whether TYPE exists after having included INCLUDES, setting cache 1922# variable VAR accordingly. 1923ac_fn_c_check_type () 1924{ 1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1927$as_echo_n "checking for $2... " >&6; } 1928if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1929 $as_echo_n "(cached) " >&6 1930else 1931 eval "$3=no" 1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1933/* end confdefs.h. */ 1934$4 1935int 1936main () 1937{ 1938if (sizeof ($2)) 1939 return 0; 1940 ; 1941 return 0; 1942} 1943_ACEOF 1944if ac_fn_c_try_compile "$LINENO"; then : 1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1946/* end confdefs.h. */ 1947$4 1948int 1949main () 1950{ 1951if (sizeof (($2))) 1952 return 0; 1953 ; 1954 return 0; 1955} 1956_ACEOF 1957if ac_fn_c_try_compile "$LINENO"; then : 1958 1959else 1960 eval "$3=yes" 1961fi 1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1963fi 1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1965fi 1966eval ac_res=\$$3 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1968$as_echo "$ac_res" >&6; } 1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1970 1971} # ac_fn_c_check_type 1972 1973# ac_fn_c_find_uintX_t LINENO BITS VAR 1974# ------------------------------------ 1975# Finds an unsigned integer type with width BITS, setting cache variable VAR 1976# accordingly. 1977ac_fn_c_find_uintX_t () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1981$as_echo_n "checking for uint$2_t... " >&6; } 1982if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1983 $as_echo_n "(cached) " >&6 1984else 1985 eval "$3=no" 1986 # Order is important - never check a type that is potentially smaller 1987 # than half of the expected target width. 1988 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1989 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1991/* end confdefs.h. */ 1992$ac_includes_default 1993int 1994main () 1995{ 1996static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1997test_array [0] = 0 1998 1999 ; 2000 return 0; 2001} 2002_ACEOF 2003if ac_fn_c_try_compile "$LINENO"; then : 2004 case $ac_type in #( 2005 uint$2_t) : 2006 eval "$3=yes" ;; #( 2007 *) : 2008 eval "$3=\$ac_type" ;; 2009esac 2010fi 2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2012 eval as_val=\$$3 2013 if test "x$as_val" = x""no; then : 2014 2015else 2016 break 2017fi 2018 done 2019fi 2020eval ac_res=\$$3 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2022$as_echo "$ac_res" >&6; } 2023 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2024 2025} # ac_fn_c_find_uintX_t 2026 2027# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2028# -------------------------------------------- 2029# Tries to find the compile-time value of EXPR in a program that includes 2030# INCLUDES, setting VAR accordingly. Returns whether the value could be 2031# computed 2032ac_fn_c_compute_int () 2033{ 2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2035 if test "$cross_compiling" = yes; then 2036 # Depending upon the size, compute the lo and hi bounds. 2037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2038/* end confdefs.h. */ 2039$4 2040int 2041main () 2042{ 2043static int test_array [1 - 2 * !(($2) >= 0)]; 2044test_array [0] = 0 2045 2046 ; 2047 return 0; 2048} 2049_ACEOF 2050if ac_fn_c_try_compile "$LINENO"; then : 2051 ac_lo=0 ac_mid=0 2052 while :; do 2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2054/* end confdefs.h. */ 2055$4 2056int 2057main () 2058{ 2059static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2060test_array [0] = 0 2061 2062 ; 2063 return 0; 2064} 2065_ACEOF 2066if ac_fn_c_try_compile "$LINENO"; then : 2067 ac_hi=$ac_mid; break 2068else 2069 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2070 if test $ac_lo -le $ac_mid; then 2071 ac_lo= ac_hi= 2072 break 2073 fi 2074 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2075fi 2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2077 done 2078else 2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2080/* end confdefs.h. */ 2081$4 2082int 2083main () 2084{ 2085static int test_array [1 - 2 * !(($2) < 0)]; 2086test_array [0] = 0 2087 2088 ; 2089 return 0; 2090} 2091_ACEOF 2092if ac_fn_c_try_compile "$LINENO"; then : 2093 ac_hi=-1 ac_mid=-1 2094 while :; do 2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2096/* end confdefs.h. */ 2097$4 2098int 2099main () 2100{ 2101static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2102test_array [0] = 0 2103 2104 ; 2105 return 0; 2106} 2107_ACEOF 2108if ac_fn_c_try_compile "$LINENO"; then : 2109 ac_lo=$ac_mid; break 2110else 2111 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2112 if test $ac_mid -le $ac_hi; then 2113 ac_lo= ac_hi= 2114 break 2115 fi 2116 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2117fi 2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2119 done 2120else 2121 ac_lo= ac_hi= 2122fi 2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2124fi 2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2126# Binary search between lo and hi bounds. 2127while test "x$ac_lo" != "x$ac_hi"; do 2128 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2130/* end confdefs.h. */ 2131$4 2132int 2133main () 2134{ 2135static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2136test_array [0] = 0 2137 2138 ; 2139 return 0; 2140} 2141_ACEOF 2142if ac_fn_c_try_compile "$LINENO"; then : 2143 ac_hi=$ac_mid 2144else 2145 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2146fi 2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2148done 2149case $ac_lo in #(( 2150?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2151'') ac_retval=1 ;; 2152esac 2153 else 2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2155/* end confdefs.h. */ 2156$4 2157static long int longval () { return $2; } 2158static unsigned long int ulongval () { return $2; } 2159#include <stdio.h> 2160#include <stdlib.h> 2161int 2162main () 2163{ 2164 2165 FILE *f = fopen ("conftest.val", "w"); 2166 if (! f) 2167 return 1; 2168 if (($2) < 0) 2169 { 2170 long int i = longval (); 2171 if (i != ($2)) 2172 return 1; 2173 fprintf (f, "%ld", i); 2174 } 2175 else 2176 { 2177 unsigned long int i = ulongval (); 2178 if (i != ($2)) 2179 return 1; 2180 fprintf (f, "%lu", i); 2181 } 2182 /* Do not output a trailing newline, as this causes \r\n confusion 2183 on some platforms. */ 2184 return ferror (f) || fclose (f) != 0; 2185 2186 ; 2187 return 0; 2188} 2189_ACEOF 2190if ac_fn_c_try_run "$LINENO"; then : 2191 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2192else 2193 ac_retval=1 2194fi 2195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2196 conftest.$ac_objext conftest.beam conftest.$ac_ext 2197rm -f conftest.val 2198 2199 fi 2200 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2201 as_fn_set_status $ac_retval 2202 2203} # ac_fn_c_compute_int 2204cat >auto/config.log <<_ACEOF 2205This file contains any messages produced by compilers while 2206running configure, to aid debugging if configure makes a mistake. 2207 2208It was created by $as_me, which was 2209generated by GNU Autoconf 2.65. Invocation command line was 2210 2211 $ $0 $@ 2212 2213_ACEOF 2214exec 5>>auto/config.log 2215{ 2216cat <<_ASUNAME 2217## --------- ## 2218## Platform. ## 2219## --------- ## 2220 2221hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2222uname -m = `(uname -m) 2>/dev/null || echo unknown` 2223uname -r = `(uname -r) 2>/dev/null || echo unknown` 2224uname -s = `(uname -s) 2>/dev/null || echo unknown` 2225uname -v = `(uname -v) 2>/dev/null || echo unknown` 2226 2227/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2228/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2229 2230/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2231/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2232/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2233/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2234/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2235/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2236/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2237 2238_ASUNAME 2239 2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2241for as_dir in $PATH 2242do 2243 IFS=$as_save_IFS 2244 test -z "$as_dir" && as_dir=. 2245 $as_echo "PATH: $as_dir" 2246 done 2247IFS=$as_save_IFS 2248 2249} >&5 2250 2251cat >&5 <<_ACEOF 2252 2253 2254## ----------- ## 2255## Core tests. ## 2256## ----------- ## 2257 2258_ACEOF 2259 2260 2261# Keep a trace of the command line. 2262# Strip out --no-create and --no-recursion so they do not pile up. 2263# Strip out --silent because we don't want to record it for future runs. 2264# Also quote any args containing shell meta-characters. 2265# Make two passes to allow for proper duplicate-argument suppression. 2266ac_configure_args= 2267ac_configure_args0= 2268ac_configure_args1= 2269ac_must_keep_next=false 2270for ac_pass in 1 2 2271do 2272 for ac_arg 2273 do 2274 case $ac_arg in 2275 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2277 | -silent | --silent | --silen | --sile | --sil) 2278 continue ;; 2279 *\'*) 2280 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2281 esac 2282 case $ac_pass in 2283 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2284 2) 2285 as_fn_append ac_configure_args1 " '$ac_arg'" 2286 if test $ac_must_keep_next = true; then 2287 ac_must_keep_next=false # Got value, back to normal. 2288 else 2289 case $ac_arg in 2290 *=* | --config-cache | -C | -disable-* | --disable-* \ 2291 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2292 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2293 | -with-* | --with-* | -without-* | --without-* | --x) 2294 case "$ac_configure_args0 " in 2295 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2296 esac 2297 ;; 2298 -* ) ac_must_keep_next=true ;; 2299 esac 2300 fi 2301 as_fn_append ac_configure_args " '$ac_arg'" 2302 ;; 2303 esac 2304 done 2305done 2306{ ac_configure_args0=; unset ac_configure_args0;} 2307{ ac_configure_args1=; unset ac_configure_args1;} 2308 2309# When interrupted or exit'd, cleanup temporary files, and complete 2310# config.log. We remove comments because anyway the quotes in there 2311# would cause problems or look ugly. 2312# WARNING: Use '\'' to represent an apostrophe within the trap. 2313# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2314trap 'exit_status=$? 2315 # Save into config.log some information that might help in debugging. 2316 { 2317 echo 2318 2319 cat <<\_ASBOX 2320## ---------------- ## 2321## Cache variables. ## 2322## ---------------- ## 2323_ASBOX 2324 echo 2325 # The following way of writing the cache mishandles newlines in values, 2326( 2327 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2328 eval ac_val=\$$ac_var 2329 case $ac_val in #( 2330 *${as_nl}*) 2331 case $ac_var in #( 2332 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2333$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2334 esac 2335 case $ac_var in #( 2336 _ | IFS | as_nl) ;; #( 2337 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2338 *) { eval $ac_var=; unset $ac_var;} ;; 2339 esac ;; 2340 esac 2341 done 2342 (set) 2>&1 | 2343 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2344 *${as_nl}ac_space=\ *) 2345 sed -n \ 2346 "s/'\''/'\''\\\\'\'''\''/g; 2347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2348 ;; #( 2349 *) 2350 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2351 ;; 2352 esac | 2353 sort 2354) 2355 echo 2356 2357 cat <<\_ASBOX 2358## ----------------- ## 2359## Output variables. ## 2360## ----------------- ## 2361_ASBOX 2362 echo 2363 for ac_var in $ac_subst_vars 2364 do 2365 eval ac_val=\$$ac_var 2366 case $ac_val in 2367 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2368 esac 2369 $as_echo "$ac_var='\''$ac_val'\''" 2370 done | sort 2371 echo 2372 2373 if test -n "$ac_subst_files"; then 2374 cat <<\_ASBOX 2375## ------------------- ## 2376## File substitutions. ## 2377## ------------------- ## 2378_ASBOX 2379 echo 2380 for ac_var in $ac_subst_files 2381 do 2382 eval ac_val=\$$ac_var 2383 case $ac_val in 2384 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2385 esac 2386 $as_echo "$ac_var='\''$ac_val'\''" 2387 done | sort 2388 echo 2389 fi 2390 2391 if test -s confdefs.h; then 2392 cat <<\_ASBOX 2393## ----------- ## 2394## confdefs.h. ## 2395## ----------- ## 2396_ASBOX 2397 echo 2398 cat confdefs.h 2399 echo 2400 fi 2401 test "$ac_signal" != 0 && 2402 $as_echo "$as_me: caught signal $ac_signal" 2403 $as_echo "$as_me: exit $exit_status" 2404 } >&5 2405 rm -f core *.core core.conftest.* && 2406 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2407 exit $exit_status 2408' 0 2409for ac_signal in 1 2 13 15; do 2410 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2411done 2412ac_signal=0 2413 2414# confdefs.h avoids OS command line length limits that DEFS can exceed. 2415rm -f -r conftest* confdefs.h 2416 2417$as_echo "/* confdefs.h */" > confdefs.h 2418 2419# Predefined preprocessor variables. 2420 2421cat >>confdefs.h <<_ACEOF 2422#define PACKAGE_NAME "$PACKAGE_NAME" 2423_ACEOF 2424 2425cat >>confdefs.h <<_ACEOF 2426#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2427_ACEOF 2428 2429cat >>confdefs.h <<_ACEOF 2430#define PACKAGE_VERSION "$PACKAGE_VERSION" 2431_ACEOF 2432 2433cat >>confdefs.h <<_ACEOF 2434#define PACKAGE_STRING "$PACKAGE_STRING" 2435_ACEOF 2436 2437cat >>confdefs.h <<_ACEOF 2438#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2439_ACEOF 2440 2441cat >>confdefs.h <<_ACEOF 2442#define PACKAGE_URL "$PACKAGE_URL" 2443_ACEOF 2444 2445 2446# Let the site file select an alternate cache file if it wants to. 2447# Prefer an explicitly selected file to automatically selected ones. 2448ac_site_file1=NONE 2449ac_site_file2=NONE 2450if test -n "$CONFIG_SITE"; then 2451 ac_site_file1=$CONFIG_SITE 2452elif test "x$prefix" != xNONE; then 2453 ac_site_file1=$prefix/share/config.site 2454 ac_site_file2=$prefix/etc/config.site 2455else 2456 ac_site_file1=$ac_default_prefix/share/config.site 2457 ac_site_file2=$ac_default_prefix/etc/config.site 2458fi 2459for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2460do 2461 test "x$ac_site_file" = xNONE && continue 2462 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2464$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2465 sed 's/^/| /' "$ac_site_file" >&5 2466 . "$ac_site_file" 2467 fi 2468done 2469 2470if test -r "$cache_file"; then 2471 # Some versions of bash will fail to source /dev/null (special files 2472 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2473 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2475$as_echo "$as_me: loading cache $cache_file" >&6;} 2476 case $cache_file in 2477 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2478 *) . "./$cache_file";; 2479 esac 2480 fi 2481else 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2483$as_echo "$as_me: creating cache $cache_file" >&6;} 2484 >$cache_file 2485fi 2486 2487# Check that the precious variables saved in the cache have kept the same 2488# value. 2489ac_cache_corrupted=false 2490for ac_var in $ac_precious_vars; do 2491 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2492 eval ac_new_set=\$ac_env_${ac_var}_set 2493 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2494 eval ac_new_val=\$ac_env_${ac_var}_value 2495 case $ac_old_set,$ac_new_set in 2496 set,) 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2498$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2499 ac_cache_corrupted=: ;; 2500 ,set) 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2502$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2503 ac_cache_corrupted=: ;; 2504 ,);; 2505 *) 2506 if test "x$ac_old_val" != "x$ac_new_val"; then 2507 # differences in whitespace do not lead to failure. 2508 ac_old_val_w=`echo x $ac_old_val` 2509 ac_new_val_w=`echo x $ac_new_val` 2510 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2512$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2513 ac_cache_corrupted=: 2514 else 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2516$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2517 eval $ac_var=\$ac_old_val 2518 fi 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2520$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2522$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2523 fi;; 2524 esac 2525 # Pass precious variables to config.status. 2526 if test "$ac_new_set" = set; then 2527 case $ac_new_val in 2528 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2529 *) ac_arg=$ac_var=$ac_new_val ;; 2530 esac 2531 case " $ac_configure_args " in 2532 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2533 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2534 esac 2535 fi 2536done 2537if $ac_cache_corrupted; then 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2541$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2542 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2543fi 2544## -------------------- ## 2545## Main body of script. ## 2546## -------------------- ## 2547 2548ac_ext=c 2549ac_cpp='$CPP $CPPFLAGS' 2550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2552ac_compiler_gnu=$ac_cv_c_compiler_gnu 2553 2554 2555ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2556 2557 2558$as_echo "#define UNIX 1" >>confdefs.h 2559 2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2561$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2562set x ${MAKE-make} 2563ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2564if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2565 $as_echo_n "(cached) " >&6 2566else 2567 cat >conftest.make <<\_ACEOF 2568SHELL = /bin/sh 2569all: 2570 @echo '@@@%%%=$(MAKE)=@@@%%%' 2571_ACEOF 2572# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2573case `${MAKE-make} -f conftest.make 2>/dev/null` in 2574 *@@@%%%=?*=@@@%%%*) 2575 eval ac_cv_prog_make_${ac_make}_set=yes;; 2576 *) 2577 eval ac_cv_prog_make_${ac_make}_set=no;; 2578esac 2579rm -f conftest.make 2580fi 2581if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2583$as_echo "yes" >&6; } 2584 SET_MAKE= 2585else 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2587$as_echo "no" >&6; } 2588 SET_MAKE="MAKE=${MAKE-make}" 2589fi 2590 2591 2592ac_ext=c 2593ac_cpp='$CPP $CPPFLAGS' 2594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2596ac_compiler_gnu=$ac_cv_c_compiler_gnu 2597if test -n "$ac_tool_prefix"; then 2598 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2599set dummy ${ac_tool_prefix}gcc; ac_word=$2 2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2601$as_echo_n "checking for $ac_word... " >&6; } 2602if test "${ac_cv_prog_CC+set}" = set; then : 2603 $as_echo_n "(cached) " >&6 2604else 2605 if test -n "$CC"; then 2606 ac_cv_prog_CC="$CC" # Let the user override the test. 2607else 2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2609for as_dir in $PATH 2610do 2611 IFS=$as_save_IFS 2612 test -z "$as_dir" && as_dir=. 2613 for ac_exec_ext in '' $ac_executable_extensions; do 2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2615 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2617 break 2 2618 fi 2619done 2620 done 2621IFS=$as_save_IFS 2622 2623fi 2624fi 2625CC=$ac_cv_prog_CC 2626if test -n "$CC"; then 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2628$as_echo "$CC" >&6; } 2629else 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2631$as_echo "no" >&6; } 2632fi 2633 2634 2635fi 2636if test -z "$ac_cv_prog_CC"; then 2637 ac_ct_CC=$CC 2638 # Extract the first word of "gcc", so it can be a program name with args. 2639set dummy gcc; ac_word=$2 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2641$as_echo_n "checking for $ac_word... " >&6; } 2642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2643 $as_echo_n "(cached) " >&6 2644else 2645 if test -n "$ac_ct_CC"; then 2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2647else 2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2649for as_dir in $PATH 2650do 2651 IFS=$as_save_IFS 2652 test -z "$as_dir" && as_dir=. 2653 for ac_exec_ext in '' $ac_executable_extensions; do 2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2655 ac_cv_prog_ac_ct_CC="gcc" 2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2657 break 2 2658 fi 2659done 2660 done 2661IFS=$as_save_IFS 2662 2663fi 2664fi 2665ac_ct_CC=$ac_cv_prog_ac_ct_CC 2666if test -n "$ac_ct_CC"; then 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2668$as_echo "$ac_ct_CC" >&6; } 2669else 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2671$as_echo "no" >&6; } 2672fi 2673 2674 if test "x$ac_ct_CC" = x; then 2675 CC="" 2676 else 2677 case $cross_compiling:$ac_tool_warned in 2678yes:) 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2681ac_tool_warned=yes ;; 2682esac 2683 CC=$ac_ct_CC 2684 fi 2685else 2686 CC="$ac_cv_prog_CC" 2687fi 2688 2689if test -z "$CC"; then 2690 if test -n "$ac_tool_prefix"; then 2691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2692set dummy ${ac_tool_prefix}cc; ac_word=$2 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2694$as_echo_n "checking for $ac_word... " >&6; } 2695if test "${ac_cv_prog_CC+set}" = set; then : 2696 $as_echo_n "(cached) " >&6 2697else 2698 if test -n "$CC"; then 2699 ac_cv_prog_CC="$CC" # Let the user override the test. 2700else 2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2702for as_dir in $PATH 2703do 2704 IFS=$as_save_IFS 2705 test -z "$as_dir" && as_dir=. 2706 for ac_exec_ext in '' $ac_executable_extensions; do 2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2708 ac_cv_prog_CC="${ac_tool_prefix}cc" 2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2710 break 2 2711 fi 2712done 2713 done 2714IFS=$as_save_IFS 2715 2716fi 2717fi 2718CC=$ac_cv_prog_CC 2719if test -n "$CC"; then 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2721$as_echo "$CC" >&6; } 2722else 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2724$as_echo "no" >&6; } 2725fi 2726 2727 2728 fi 2729fi 2730if test -z "$CC"; then 2731 # Extract the first word of "cc", so it can be a program name with args. 2732set dummy cc; ac_word=$2 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2734$as_echo_n "checking for $ac_word... " >&6; } 2735if test "${ac_cv_prog_CC+set}" = set; then : 2736 $as_echo_n "(cached) " >&6 2737else 2738 if test -n "$CC"; then 2739 ac_cv_prog_CC="$CC" # Let the user override the test. 2740else 2741 ac_prog_rejected=no 2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2743for as_dir in $PATH 2744do 2745 IFS=$as_save_IFS 2746 test -z "$as_dir" && as_dir=. 2747 for ac_exec_ext in '' $ac_executable_extensions; do 2748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2750 ac_prog_rejected=yes 2751 continue 2752 fi 2753 ac_cv_prog_CC="cc" 2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2755 break 2 2756 fi 2757done 2758 done 2759IFS=$as_save_IFS 2760 2761if test $ac_prog_rejected = yes; then 2762 # We found a bogon in the path, so make sure we never use it. 2763 set dummy $ac_cv_prog_CC 2764 shift 2765 if test $# != 0; then 2766 # We chose a different compiler from the bogus one. 2767 # However, it has the same basename, so the bogon will be chosen 2768 # first if we set CC to just the basename; use the full file name. 2769 shift 2770 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2771 fi 2772fi 2773fi 2774fi 2775CC=$ac_cv_prog_CC 2776if test -n "$CC"; then 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2778$as_echo "$CC" >&6; } 2779else 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2781$as_echo "no" >&6; } 2782fi 2783 2784 2785fi 2786if test -z "$CC"; then 2787 if test -n "$ac_tool_prefix"; then 2788 for ac_prog in cl.exe 2789 do 2790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2791set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2793$as_echo_n "checking for $ac_word... " >&6; } 2794if test "${ac_cv_prog_CC+set}" = set; then : 2795 $as_echo_n "(cached) " >&6 2796else 2797 if test -n "$CC"; then 2798 ac_cv_prog_CC="$CC" # Let the user override the test. 2799else 2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2801for as_dir in $PATH 2802do 2803 IFS=$as_save_IFS 2804 test -z "$as_dir" && as_dir=. 2805 for ac_exec_ext in '' $ac_executable_extensions; do 2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2807 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2809 break 2 2810 fi 2811done 2812 done 2813IFS=$as_save_IFS 2814 2815fi 2816fi 2817CC=$ac_cv_prog_CC 2818if test -n "$CC"; then 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2820$as_echo "$CC" >&6; } 2821else 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2823$as_echo "no" >&6; } 2824fi 2825 2826 2827 test -n "$CC" && break 2828 done 2829fi 2830if test -z "$CC"; then 2831 ac_ct_CC=$CC 2832 for ac_prog in cl.exe 2833do 2834 # Extract the first word of "$ac_prog", so it can be a program name with args. 2835set dummy $ac_prog; ac_word=$2 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2837$as_echo_n "checking for $ac_word... " >&6; } 2838if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2839 $as_echo_n "(cached) " >&6 2840else 2841 if test -n "$ac_ct_CC"; then 2842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2843else 2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2845for as_dir in $PATH 2846do 2847 IFS=$as_save_IFS 2848 test -z "$as_dir" && as_dir=. 2849 for ac_exec_ext in '' $ac_executable_extensions; do 2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2851 ac_cv_prog_ac_ct_CC="$ac_prog" 2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2853 break 2 2854 fi 2855done 2856 done 2857IFS=$as_save_IFS 2858 2859fi 2860fi 2861ac_ct_CC=$ac_cv_prog_ac_ct_CC 2862if test -n "$ac_ct_CC"; then 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2864$as_echo "$ac_ct_CC" >&6; } 2865else 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2867$as_echo "no" >&6; } 2868fi 2869 2870 2871 test -n "$ac_ct_CC" && break 2872done 2873 2874 if test "x$ac_ct_CC" = x; then 2875 CC="" 2876 else 2877 case $cross_compiling:$ac_tool_warned in 2878yes:) 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2881ac_tool_warned=yes ;; 2882esac 2883 CC=$ac_ct_CC 2884 fi 2885fi 2886 2887fi 2888 2889 2890test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2892as_fn_error "no acceptable C compiler found in \$PATH 2893See \`config.log' for more details." "$LINENO" 5; } 2894 2895# Provide some information about the compiler. 2896$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2897set X $ac_compile 2898ac_compiler=$2 2899for ac_option in --version -v -V -qversion; do 2900 { { ac_try="$ac_compiler $ac_option >&5" 2901case "(($ac_try" in 2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2903 *) ac_try_echo=$ac_try;; 2904esac 2905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2906$as_echo "$ac_try_echo"; } >&5 2907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2908 ac_status=$? 2909 if test -s conftest.err; then 2910 sed '10a\ 2911... rest of stderr output deleted ... 2912 10q' conftest.err >conftest.er1 2913 cat conftest.er1 >&5 2914 fi 2915 rm -f conftest.er1 conftest.err 2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2917 test $ac_status = 0; } 2918done 2919 2920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2921/* end confdefs.h. */ 2922 2923int 2924main () 2925{ 2926 2927 ; 2928 return 0; 2929} 2930_ACEOF 2931ac_clean_files_save=$ac_clean_files 2932ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2933# Try to create an executable without -o first, disregard a.out. 2934# It will help us diagnose broken compilers, and finding out an intuition 2935# of exeext. 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2937$as_echo_n "checking whether the C compiler works... " >&6; } 2938ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2939 2940# The possible output files: 2941ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2942 2943ac_rmfiles= 2944for ac_file in $ac_files 2945do 2946 case $ac_file in 2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2948 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2949 esac 2950done 2951rm -f $ac_rmfiles 2952 2953if { { ac_try="$ac_link_default" 2954case "(($ac_try" in 2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2956 *) ac_try_echo=$ac_try;; 2957esac 2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2959$as_echo "$ac_try_echo"; } >&5 2960 (eval "$ac_link_default") 2>&5 2961 ac_status=$? 2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2963 test $ac_status = 0; }; then : 2964 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2965# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2966# in a Makefile. We should not override ac_cv_exeext if it was cached, 2967# so that the user can short-circuit this test for compilers unknown to 2968# Autoconf. 2969for ac_file in $ac_files '' 2970do 2971 test -f "$ac_file" || continue 2972 case $ac_file in 2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2974 ;; 2975 [ab].out ) 2976 # We found the default executable, but exeext='' is most 2977 # certainly right. 2978 break;; 2979 *.* ) 2980 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2981 then :; else 2982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2983 fi 2984 # We set ac_cv_exeext here because the later test for it is not 2985 # safe: cross compilers may not add the suffix if given an `-o' 2986 # argument, so we may need to know it at that point already. 2987 # Even if this section looks crufty: it has the advantage of 2988 # actually working. 2989 break;; 2990 * ) 2991 break;; 2992 esac 2993done 2994test "$ac_cv_exeext" = no && ac_cv_exeext= 2995 2996else 2997 ac_file='' 2998fi 2999if test -z "$ac_file"; then : 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3001$as_echo "no" >&6; } 3002$as_echo "$as_me: failed program was:" >&5 3003sed 's/^/| /' conftest.$ac_ext >&5 3004 3005{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3007{ as_fn_set_status 77 3008as_fn_error "C compiler cannot create executables 3009See \`config.log' for more details." "$LINENO" 5; }; } 3010else 3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3012$as_echo "yes" >&6; } 3013fi 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3015$as_echo_n "checking for C compiler default output file name... " >&6; } 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3017$as_echo "$ac_file" >&6; } 3018ac_exeext=$ac_cv_exeext 3019 3020rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3021ac_clean_files=$ac_clean_files_save 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3023$as_echo_n "checking for suffix of executables... " >&6; } 3024if { { ac_try="$ac_link" 3025case "(($ac_try" in 3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3027 *) ac_try_echo=$ac_try;; 3028esac 3029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3030$as_echo "$ac_try_echo"; } >&5 3031 (eval "$ac_link") 2>&5 3032 ac_status=$? 3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3034 test $ac_status = 0; }; then : 3035 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3036# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3037# work properly (i.e., refer to `conftest.exe'), while it won't with 3038# `rm'. 3039for ac_file in conftest.exe conftest conftest.*; do 3040 test -f "$ac_file" || continue 3041 case $ac_file in 3042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3043 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3044 break;; 3045 * ) break;; 3046 esac 3047done 3048else 3049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3051as_fn_error "cannot compute suffix of executables: cannot compile and link 3052See \`config.log' for more details." "$LINENO" 5; } 3053fi 3054rm -f conftest conftest$ac_cv_exeext 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3056$as_echo "$ac_cv_exeext" >&6; } 3057 3058rm -f conftest.$ac_ext 3059EXEEXT=$ac_cv_exeext 3060ac_exeext=$EXEEXT 3061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3062/* end confdefs.h. */ 3063#include <stdio.h> 3064int 3065main () 3066{ 3067FILE *f = fopen ("conftest.out", "w"); 3068 return ferror (f) || fclose (f) != 0; 3069 3070 ; 3071 return 0; 3072} 3073_ACEOF 3074ac_clean_files="$ac_clean_files conftest.out" 3075# Check that the compiler produces executables we can run. If not, either 3076# the compiler is broken, or we cross compile. 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3078$as_echo_n "checking whether we are cross compiling... " >&6; } 3079if test "$cross_compiling" != yes; then 3080 { { ac_try="$ac_link" 3081case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084esac 3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3086$as_echo "$ac_try_echo"; } >&5 3087 (eval "$ac_link") 2>&5 3088 ac_status=$? 3089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3090 test $ac_status = 0; } 3091 if { ac_try='./conftest$ac_cv_exeext' 3092 { { case "(($ac_try" in 3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *) ac_try_echo=$ac_try;; 3095esac 3096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3097$as_echo "$ac_try_echo"; } >&5 3098 (eval "$ac_try") 2>&5 3099 ac_status=$? 3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3101 test $ac_status = 0; }; }; then 3102 cross_compiling=no 3103 else 3104 if test "$cross_compiling" = maybe; then 3105 cross_compiling=yes 3106 else 3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3109as_fn_error "cannot run C compiled programs. 3110If you meant to cross compile, use \`--host'. 3111See \`config.log' for more details." "$LINENO" 5; } 3112 fi 3113 fi 3114fi 3115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3116$as_echo "$cross_compiling" >&6; } 3117 3118rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3119ac_clean_files=$ac_clean_files_save 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3121$as_echo_n "checking for suffix of object files... " >&6; } 3122if test "${ac_cv_objext+set}" = set; then : 3123 $as_echo_n "(cached) " >&6 3124else 3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3126/* end confdefs.h. */ 3127 3128int 3129main () 3130{ 3131 3132 ; 3133 return 0; 3134} 3135_ACEOF 3136rm -f conftest.o conftest.obj 3137if { { ac_try="$ac_compile" 3138case "(($ac_try" in 3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3140 *) ac_try_echo=$ac_try;; 3141esac 3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3143$as_echo "$ac_try_echo"; } >&5 3144 (eval "$ac_compile") 2>&5 3145 ac_status=$? 3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3147 test $ac_status = 0; }; then : 3148 for ac_file in conftest.o conftest.obj conftest.*; do 3149 test -f "$ac_file" || continue; 3150 case $ac_file in 3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3152 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3153 break;; 3154 esac 3155done 3156else 3157 $as_echo "$as_me: failed program was:" >&5 3158sed 's/^/| /' conftest.$ac_ext >&5 3159 3160{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3162as_fn_error "cannot compute suffix of object files: cannot compile 3163See \`config.log' for more details." "$LINENO" 5; } 3164fi 3165rm -f conftest.$ac_cv_objext conftest.$ac_ext 3166fi 3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3168$as_echo "$ac_cv_objext" >&6; } 3169OBJEXT=$ac_cv_objext 3170ac_objext=$OBJEXT 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3172$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3173if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3174 $as_echo_n "(cached) " >&6 3175else 3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3177/* end confdefs.h. */ 3178 3179int 3180main () 3181{ 3182#ifndef __GNUC__ 3183 choke me 3184#endif 3185 3186 ; 3187 return 0; 3188} 3189_ACEOF 3190if ac_fn_c_try_compile "$LINENO"; then : 3191 ac_compiler_gnu=yes 3192else 3193 ac_compiler_gnu=no 3194fi 3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3196ac_cv_c_compiler_gnu=$ac_compiler_gnu 3197 3198fi 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3200$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3201if test $ac_compiler_gnu = yes; then 3202 GCC=yes 3203else 3204 GCC= 3205fi 3206ac_test_CFLAGS=${CFLAGS+set} 3207ac_save_CFLAGS=$CFLAGS 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3209$as_echo_n "checking whether $CC accepts -g... " >&6; } 3210if test "${ac_cv_prog_cc_g+set}" = set; then : 3211 $as_echo_n "(cached) " >&6 3212else 3213 ac_save_c_werror_flag=$ac_c_werror_flag 3214 ac_c_werror_flag=yes 3215 ac_cv_prog_cc_g=no 3216 CFLAGS="-g" 3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3218/* end confdefs.h. */ 3219 3220int 3221main () 3222{ 3223 3224 ; 3225 return 0; 3226} 3227_ACEOF 3228if ac_fn_c_try_compile "$LINENO"; then : 3229 ac_cv_prog_cc_g=yes 3230else 3231 CFLAGS="" 3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3233/* end confdefs.h. */ 3234 3235int 3236main () 3237{ 3238 3239 ; 3240 return 0; 3241} 3242_ACEOF 3243if ac_fn_c_try_compile "$LINENO"; then : 3244 3245else 3246 ac_c_werror_flag=$ac_save_c_werror_flag 3247 CFLAGS="-g" 3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3249/* end confdefs.h. */ 3250 3251int 3252main () 3253{ 3254 3255 ; 3256 return 0; 3257} 3258_ACEOF 3259if ac_fn_c_try_compile "$LINENO"; then : 3260 ac_cv_prog_cc_g=yes 3261fi 3262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3263fi 3264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3265fi 3266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3267 ac_c_werror_flag=$ac_save_c_werror_flag 3268fi 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3270$as_echo "$ac_cv_prog_cc_g" >&6; } 3271if test "$ac_test_CFLAGS" = set; then 3272 CFLAGS=$ac_save_CFLAGS 3273elif test $ac_cv_prog_cc_g = yes; then 3274 if test "$GCC" = yes; then 3275 CFLAGS="-g -O2" 3276 else 3277 CFLAGS="-g" 3278 fi 3279else 3280 if test "$GCC" = yes; then 3281 CFLAGS="-O2" 3282 else 3283 CFLAGS= 3284 fi 3285fi 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3287$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3288if test "${ac_cv_prog_cc_c89+set}" = set; then : 3289 $as_echo_n "(cached) " >&6 3290else 3291 ac_cv_prog_cc_c89=no 3292ac_save_CC=$CC 3293cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3294/* end confdefs.h. */ 3295#include <stdarg.h> 3296#include <stdio.h> 3297#include <sys/types.h> 3298#include <sys/stat.h> 3299/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3300struct buf { int x; }; 3301FILE * (*rcsopen) (struct buf *, struct stat *, int); 3302static char *e (p, i) 3303 char **p; 3304 int i; 3305{ 3306 return p[i]; 3307} 3308static char *f (char * (*g) (char **, int), char **p, ...) 3309{ 3310 char *s; 3311 va_list v; 3312 va_start (v,p); 3313 s = g (p, va_arg (v,int)); 3314 va_end (v); 3315 return s; 3316} 3317 3318/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3319 function prototypes and stuff, but not '\xHH' hex character constants. 3320 These don't provoke an error unfortunately, instead are silently treated 3321 as 'x'. The following induces an error, until -std is added to get 3322 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3323 array size at least. It's necessary to write '\x00'==0 to get something 3324 that's true only with -std. */ 3325int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3326 3327/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3328 inside strings and character constants. */ 3329#define FOO(x) 'x' 3330int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3331 3332int test (int i, double x); 3333struct s1 {int (*f) (int a);}; 3334struct s2 {int (*f) (double a);}; 3335int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3336int argc; 3337char **argv; 3338int 3339main () 3340{ 3341return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3342 ; 3343 return 0; 3344} 3345_ACEOF 3346for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3347 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3348do 3349 CC="$ac_save_CC $ac_arg" 3350 if ac_fn_c_try_compile "$LINENO"; then : 3351 ac_cv_prog_cc_c89=$ac_arg 3352fi 3353rm -f core conftest.err conftest.$ac_objext 3354 test "x$ac_cv_prog_cc_c89" != "xno" && break 3355done 3356rm -f conftest.$ac_ext 3357CC=$ac_save_CC 3358 3359fi 3360# AC_CACHE_VAL 3361case "x$ac_cv_prog_cc_c89" in 3362 x) 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3364$as_echo "none needed" >&6; } ;; 3365 xno) 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3367$as_echo "unsupported" >&6; } ;; 3368 *) 3369 CC="$CC $ac_cv_prog_cc_c89" 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3371$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3372esac 3373if test "x$ac_cv_prog_cc_c89" != xno; then : 3374 3375fi 3376 3377ac_ext=c 3378ac_cpp='$CPP $CPPFLAGS' 3379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3381ac_compiler_gnu=$ac_cv_c_compiler_gnu 3382 ac_ext=c 3383ac_cpp='$CPP $CPPFLAGS' 3384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3386ac_compiler_gnu=$ac_cv_c_compiler_gnu 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3388$as_echo_n "checking how to run the C preprocessor... " >&6; } 3389# On Suns, sometimes $CPP names a directory. 3390if test -n "$CPP" && test -d "$CPP"; then 3391 CPP= 3392fi 3393if test -z "$CPP"; then 3394 if test "${ac_cv_prog_CPP+set}" = set; then : 3395 $as_echo_n "(cached) " >&6 3396else 3397 # Double quotes because CPP needs to be expanded 3398 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3399 do 3400 ac_preproc_ok=false 3401for ac_c_preproc_warn_flag in '' yes 3402do 3403 # Use a header file that comes with gcc, so configuring glibc 3404 # with a fresh cross-compiler works. 3405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3406 # <limits.h> exists even on freestanding compilers. 3407 # On the NeXT, cc -E runs the code through the compiler's parser, 3408 # not just through cpp. "Syntax error" is here to catch this case. 3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3410/* end confdefs.h. */ 3411#ifdef __STDC__ 3412# include <limits.h> 3413#else 3414# include <assert.h> 3415#endif 3416 Syntax error 3417_ACEOF 3418if ac_fn_c_try_cpp "$LINENO"; then : 3419 3420else 3421 # Broken: fails on valid input. 3422continue 3423fi 3424rm -f conftest.err conftest.$ac_ext 3425 3426 # OK, works on sane cases. Now check whether nonexistent headers 3427 # can be detected and how. 3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430#include <ac_nonexistent.h> 3431_ACEOF 3432if ac_fn_c_try_cpp "$LINENO"; then : 3433 # Broken: success on invalid input. 3434continue 3435else 3436 # Passes both tests. 3437ac_preproc_ok=: 3438break 3439fi 3440rm -f conftest.err conftest.$ac_ext 3441 3442done 3443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3444rm -f conftest.err conftest.$ac_ext 3445if $ac_preproc_ok; then : 3446 break 3447fi 3448 3449 done 3450 ac_cv_prog_CPP=$CPP 3451 3452fi 3453 CPP=$ac_cv_prog_CPP 3454else 3455 ac_cv_prog_CPP=$CPP 3456fi 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3458$as_echo "$CPP" >&6; } 3459ac_preproc_ok=false 3460for ac_c_preproc_warn_flag in '' yes 3461do 3462 # Use a header file that comes with gcc, so configuring glibc 3463 # with a fresh cross-compiler works. 3464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3465 # <limits.h> exists even on freestanding compilers. 3466 # On the NeXT, cc -E runs the code through the compiler's parser, 3467 # not just through cpp. "Syntax error" is here to catch this case. 3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3469/* end confdefs.h. */ 3470#ifdef __STDC__ 3471# include <limits.h> 3472#else 3473# include <assert.h> 3474#endif 3475 Syntax error 3476_ACEOF 3477if ac_fn_c_try_cpp "$LINENO"; then : 3478 3479else 3480 # Broken: fails on valid input. 3481continue 3482fi 3483rm -f conftest.err conftest.$ac_ext 3484 3485 # OK, works on sane cases. Now check whether nonexistent headers 3486 # can be detected and how. 3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3488/* end confdefs.h. */ 3489#include <ac_nonexistent.h> 3490_ACEOF 3491if ac_fn_c_try_cpp "$LINENO"; then : 3492 # Broken: success on invalid input. 3493continue 3494else 3495 # Passes both tests. 3496ac_preproc_ok=: 3497break 3498fi 3499rm -f conftest.err conftest.$ac_ext 3500 3501done 3502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3503rm -f conftest.err conftest.$ac_ext 3504if $ac_preproc_ok; then : 3505 3506else 3507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3509as_fn_error "C preprocessor \"$CPP\" fails sanity check 3510See \`config.log' for more details." "$LINENO" 5; } 3511fi 3512 3513ac_ext=c 3514ac_cpp='$CPP $CPPFLAGS' 3515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3517ac_compiler_gnu=$ac_cv_c_compiler_gnu 3518 3519 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3521$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3522if test "${ac_cv_path_GREP+set}" = set; then : 3523 $as_echo_n "(cached) " >&6 3524else 3525 if test -z "$GREP"; then 3526 ac_path_GREP_found=false 3527 # Loop through the user's path and test for each of PROGNAME-LIST 3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3529for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3530do 3531 IFS=$as_save_IFS 3532 test -z "$as_dir" && as_dir=. 3533 for ac_prog in grep ggrep; do 3534 for ac_exec_ext in '' $ac_executable_extensions; do 3535 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3536 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3537# Check for GNU ac_path_GREP and select it if it is found. 3538 # Check for GNU $ac_path_GREP 3539case `"$ac_path_GREP" --version 2>&1` in 3540*GNU*) 3541 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3542*) 3543 ac_count=0 3544 $as_echo_n 0123456789 >"conftest.in" 3545 while : 3546 do 3547 cat "conftest.in" "conftest.in" >"conftest.tmp" 3548 mv "conftest.tmp" "conftest.in" 3549 cp "conftest.in" "conftest.nl" 3550 $as_echo 'GREP' >> "conftest.nl" 3551 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3553 as_fn_arith $ac_count + 1 && ac_count=$as_val 3554 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3555 # Best one so far, save it but keep looking for a better one 3556 ac_cv_path_GREP="$ac_path_GREP" 3557 ac_path_GREP_max=$ac_count 3558 fi 3559 # 10*(2^10) chars as input seems more than enough 3560 test $ac_count -gt 10 && break 3561 done 3562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3563esac 3564 3565 $ac_path_GREP_found && break 3 3566 done 3567 done 3568 done 3569IFS=$as_save_IFS 3570 if test -z "$ac_cv_path_GREP"; then 3571 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3572 fi 3573else 3574 ac_cv_path_GREP=$GREP 3575fi 3576 3577fi 3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3579$as_echo "$ac_cv_path_GREP" >&6; } 3580 GREP="$ac_cv_path_GREP" 3581 3582 3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3584$as_echo_n "checking for egrep... " >&6; } 3585if test "${ac_cv_path_EGREP+set}" = set; then : 3586 $as_echo_n "(cached) " >&6 3587else 3588 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3589 then ac_cv_path_EGREP="$GREP -E" 3590 else 3591 if test -z "$EGREP"; then 3592 ac_path_EGREP_found=false 3593 # Loop through the user's path and test for each of PROGNAME-LIST 3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3595for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3596do 3597 IFS=$as_save_IFS 3598 test -z "$as_dir" && as_dir=. 3599 for ac_prog in egrep; do 3600 for ac_exec_ext in '' $ac_executable_extensions; do 3601 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3602 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3603# Check for GNU ac_path_EGREP and select it if it is found. 3604 # Check for GNU $ac_path_EGREP 3605case `"$ac_path_EGREP" --version 2>&1` in 3606*GNU*) 3607 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3608*) 3609 ac_count=0 3610 $as_echo_n 0123456789 >"conftest.in" 3611 while : 3612 do 3613 cat "conftest.in" "conftest.in" >"conftest.tmp" 3614 mv "conftest.tmp" "conftest.in" 3615 cp "conftest.in" "conftest.nl" 3616 $as_echo 'EGREP' >> "conftest.nl" 3617 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3619 as_fn_arith $ac_count + 1 && ac_count=$as_val 3620 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3621 # Best one so far, save it but keep looking for a better one 3622 ac_cv_path_EGREP="$ac_path_EGREP" 3623 ac_path_EGREP_max=$ac_count 3624 fi 3625 # 10*(2^10) chars as input seems more than enough 3626 test $ac_count -gt 10 && break 3627 done 3628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3629esac 3630 3631 $ac_path_EGREP_found && break 3 3632 done 3633 done 3634 done 3635IFS=$as_save_IFS 3636 if test -z "$ac_cv_path_EGREP"; then 3637 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3638 fi 3639else 3640 ac_cv_path_EGREP=$EGREP 3641fi 3642 3643 fi 3644fi 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3646$as_echo "$ac_cv_path_EGREP" >&6; } 3647 EGREP="$ac_cv_path_EGREP" 3648 3649 3650cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3651/* end confdefs.h. */ 3652 3653_ACEOF 3654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3655 $EGREP "" >/dev/null 2>&1; then : 3656 3657fi 3658rm -f conftest* 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3660$as_echo_n "checking for library containing strerror... " >&6; } 3661if test "${ac_cv_search_strerror+set}" = set; then : 3662 $as_echo_n "(cached) " >&6 3663else 3664 ac_func_search_save_LIBS=$LIBS 3665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3666/* end confdefs.h. */ 3667 3668/* Override any GCC internal prototype to avoid an error. 3669 Use char because int might match the return type of a GCC 3670 builtin and then its argument prototype would still apply. */ 3671#ifdef __cplusplus 3672extern "C" 3673#endif 3674char strerror (); 3675int 3676main () 3677{ 3678return strerror (); 3679 ; 3680 return 0; 3681} 3682_ACEOF 3683for ac_lib in '' cposix; do 3684 if test -z "$ac_lib"; then 3685 ac_res="none required" 3686 else 3687 ac_res=-l$ac_lib 3688 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3689 fi 3690 if ac_fn_c_try_link "$LINENO"; then : 3691 ac_cv_search_strerror=$ac_res 3692fi 3693rm -f core conftest.err conftest.$ac_objext \ 3694 conftest$ac_exeext 3695 if test "${ac_cv_search_strerror+set}" = set; then : 3696 break 3697fi 3698done 3699if test "${ac_cv_search_strerror+set}" = set; then : 3700 3701else 3702 ac_cv_search_strerror=no 3703fi 3704rm conftest.$ac_ext 3705LIBS=$ac_func_search_save_LIBS 3706fi 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3708$as_echo "$ac_cv_search_strerror" >&6; } 3709ac_res=$ac_cv_search_strerror 3710if test "$ac_res" != no; then : 3711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3712 3713fi 3714 for ac_prog in gawk mawk nawk awk 3715do 3716 # Extract the first word of "$ac_prog", so it can be a program name with args. 3717set dummy $ac_prog; ac_word=$2 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3719$as_echo_n "checking for $ac_word... " >&6; } 3720if test "${ac_cv_prog_AWK+set}" = set; then : 3721 $as_echo_n "(cached) " >&6 3722else 3723 if test -n "$AWK"; then 3724 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3725else 3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3727for as_dir in $PATH 3728do 3729 IFS=$as_save_IFS 3730 test -z "$as_dir" && as_dir=. 3731 for ac_exec_ext in '' $ac_executable_extensions; do 3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3733 ac_cv_prog_AWK="$ac_prog" 3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3735 break 2 3736 fi 3737done 3738 done 3739IFS=$as_save_IFS 3740 3741fi 3742fi 3743AWK=$ac_cv_prog_AWK 3744if test -n "$AWK"; then 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3746$as_echo "$AWK" >&6; } 3747else 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3749$as_echo "no" >&6; } 3750fi 3751 3752 3753 test -n "$AWK" && break 3754done 3755 3756# Extract the first word of "strip", so it can be a program name with args. 3757set dummy strip; ac_word=$2 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3759$as_echo_n "checking for $ac_word... " >&6; } 3760if test "${ac_cv_prog_STRIP+set}" = set; then : 3761 $as_echo_n "(cached) " >&6 3762else 3763 if test -n "$STRIP"; then 3764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3765else 3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3767for as_dir in $PATH 3768do 3769 IFS=$as_save_IFS 3770 test -z "$as_dir" && as_dir=. 3771 for ac_exec_ext in '' $ac_executable_extensions; do 3772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3773 ac_cv_prog_STRIP="strip" 3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3775 break 2 3776 fi 3777done 3778 done 3779IFS=$as_save_IFS 3780 3781 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3782fi 3783fi 3784STRIP=$ac_cv_prog_STRIP 3785if test -n "$STRIP"; then 3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3787$as_echo "$STRIP" >&6; } 3788else 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3790$as_echo "no" >&6; } 3791fi 3792 3793 3794 3795 3796 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3798$as_echo_n "checking for ANSI C header files... " >&6; } 3799if test "${ac_cv_header_stdc+set}" = set; then : 3800 $as_echo_n "(cached) " >&6 3801else 3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804#include <stdlib.h> 3805#include <stdarg.h> 3806#include <string.h> 3807#include <float.h> 3808 3809int 3810main () 3811{ 3812 3813 ; 3814 return 0; 3815} 3816_ACEOF 3817if ac_fn_c_try_compile "$LINENO"; then : 3818 ac_cv_header_stdc=yes 3819else 3820 ac_cv_header_stdc=no 3821fi 3822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3823 3824if test $ac_cv_header_stdc = yes; then 3825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3827/* end confdefs.h. */ 3828#include <string.h> 3829 3830_ACEOF 3831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3832 $EGREP "memchr" >/dev/null 2>&1; then : 3833 3834else 3835 ac_cv_header_stdc=no 3836fi 3837rm -f conftest* 3838 3839fi 3840 3841if test $ac_cv_header_stdc = yes; then 3842 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845#include <stdlib.h> 3846 3847_ACEOF 3848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3849 $EGREP "free" >/dev/null 2>&1; then : 3850 3851else 3852 ac_cv_header_stdc=no 3853fi 3854rm -f conftest* 3855 3856fi 3857 3858if test $ac_cv_header_stdc = yes; then 3859 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3860 if test "$cross_compiling" = yes; then : 3861 : 3862else 3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3864/* end confdefs.h. */ 3865#include <ctype.h> 3866#include <stdlib.h> 3867#if ((' ' & 0x0FF) == 0x020) 3868# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3869# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3870#else 3871# define ISLOWER(c) \ 3872 (('a' <= (c) && (c) <= 'i') \ 3873 || ('j' <= (c) && (c) <= 'r') \ 3874 || ('s' <= (c) && (c) <= 'z')) 3875# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3876#endif 3877 3878#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3879int 3880main () 3881{ 3882 int i; 3883 for (i = 0; i < 256; i++) 3884 if (XOR (islower (i), ISLOWER (i)) 3885 || toupper (i) != TOUPPER (i)) 3886 return 2; 3887 return 0; 3888} 3889_ACEOF 3890if ac_fn_c_try_run "$LINENO"; then : 3891 3892else 3893 ac_cv_header_stdc=no 3894fi 3895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3896 conftest.$ac_objext conftest.beam conftest.$ac_ext 3897fi 3898 3899fi 3900fi 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3902$as_echo "$ac_cv_header_stdc" >&6; } 3903if test $ac_cv_header_stdc = yes; then 3904 3905$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3906 3907fi 3908 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 3910$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 3911if test "${ac_cv_header_sys_wait_h+set}" = set; then : 3912 $as_echo_n "(cached) " >&6 3913else 3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3915/* end confdefs.h. */ 3916#include <sys/types.h> 3917#include <sys/wait.h> 3918#ifndef WEXITSTATUS 3919# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 3920#endif 3921#ifndef WIFEXITED 3922# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 3923#endif 3924 3925int 3926main () 3927{ 3928 int s; 3929 wait (&s); 3930 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3931 ; 3932 return 0; 3933} 3934_ACEOF 3935if ac_fn_c_try_compile "$LINENO"; then : 3936 ac_cv_header_sys_wait_h=yes 3937else 3938 ac_cv_header_sys_wait_h=no 3939fi 3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3941fi 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 3943$as_echo "$ac_cv_header_sys_wait_h" >&6; } 3944if test $ac_cv_header_sys_wait_h = yes; then 3945 3946$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 3947 3948fi 3949 3950 3951if test -z "$CFLAGS"; then 3952 CFLAGS="-O" 3953 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 3954fi 3955if test "$GCC" = yes; then 3956 gccversion=`"$CC" -dumpversion` 3957 if test "x$gccversion" = "x"; then 3958 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 3959 fi 3960 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 3961 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 3962 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 3963 else 3964 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 3965 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 3966 CFLAGS="$CFLAGS -fno-strength-reduce" 3967 fi 3968 fi 3969fi 3970 3971if test "$cross_compiling" = yes; then 3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 3973$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 3974fi 3975 3976test "$GCC" = yes && CPP_MM=M; 3977 3978if test -f ./toolcheck; then 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 3980$as_echo "$as_me: checking for buggy tools..." >&6;} 3981 sh ./toolcheck 1>&6 3982fi 3983 3984OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 3985 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 3987$as_echo_n "checking for BeOS... " >&6; } 3988case `uname` in 3989 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 3990 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3991$as_echo "yes" >&6; };; 3992 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3993$as_echo "no" >&6; };; 3994esac 3995 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 3997$as_echo_n "checking for QNX... " >&6; } 3998case `uname` in 3999 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4000 test -z "$with_x" && with_x=no 4001 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4002$as_echo "yes" >&6; };; 4003 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4004$as_echo "no" >&6; };; 4005esac 4006 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4008$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4009if test "`(uname) 2>/dev/null`" = Darwin; then 4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4011$as_echo "yes" >&6; } 4012 4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4014$as_echo_n "checking --disable-darwin argument... " >&6; } 4015 # Check whether --enable-darwin was given. 4016if test "${enable_darwin+set}" = set; then : 4017 enableval=$enable_darwin; 4018else 4019 enable_darwin="yes" 4020fi 4021 4022 if test "$enable_darwin" = "yes"; then 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4024$as_echo "no" >&6; } 4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4026$as_echo_n "checking if Darwin files are there... " >&6; } 4027 if test -f os_macosx.m; then 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4029$as_echo "yes" >&6; } 4030 else 4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4032$as_echo "no, Darwin support disabled" >&6; } 4033 enable_darwin=no 4034 fi 4035 else 4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4037$as_echo "yes, Darwin support excluded" >&6; } 4038 fi 4039 4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4041$as_echo_n "checking --with-mac-arch argument... " >&6; } 4042 4043# Check whether --with-mac-arch was given. 4044if test "${with_mac_arch+set}" = set; then : 4045 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4046$as_echo "$MACARCH" >&6; } 4047else 4048 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4049$as_echo "defaulting to $MACARCH" >&6; } 4050fi 4051 4052 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4054$as_echo_n "checking --with-developer-dir argument... " >&6; } 4055 4056# Check whether --with-developer-dir was given. 4057if test "${with_developer_dir+set}" = set; then : 4058 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4059$as_echo "$DEVELOPER_DIR" >&6; } 4060else 4061 DEVELOPER_DIR=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4062$as_echo "not present" >&6; } 4063fi 4064 4065 4066 if test "x$DEVELOPER_DIR" = "x"; then 4067 # Extract the first word of "xcode-select", so it can be a program name with args. 4068set dummy xcode-select; ac_word=$2 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4070$as_echo_n "checking for $ac_word... " >&6; } 4071if test "${ac_cv_path_XCODE_SELECT+set}" = set; then : 4072 $as_echo_n "(cached) " >&6 4073else 4074 case $XCODE_SELECT in 4075 [\\/]* | ?:[\\/]*) 4076 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4077 ;; 4078 *) 4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4080for as_dir in $PATH 4081do 4082 IFS=$as_save_IFS 4083 test -z "$as_dir" && as_dir=. 4084 for ac_exec_ext in '' $ac_executable_extensions; do 4085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4086 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4088 break 2 4089 fi 4090done 4091 done 4092IFS=$as_save_IFS 4093 4094 ;; 4095esac 4096fi 4097XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4098if test -n "$XCODE_SELECT"; then 4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4100$as_echo "$XCODE_SELECT" >&6; } 4101else 4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4103$as_echo "no" >&6; } 4104fi 4105 4106 4107 if test "x$XCODE_SELECT" != "x"; then 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4109$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4110 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4112$as_echo "$DEVELOPER_DIR" >&6; } 4113 else 4114 DEVELOPER_DIR=/Developer 4115 fi 4116 fi 4117 4118 if test "x$MACARCH" = "xboth"; then 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4120$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4121 save_cppflags="$CPPFLAGS" 4122 save_cflags="$CFLAGS" 4123 save_ldflags="$LDFLAGS" 4124 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4126/* end confdefs.h. */ 4127 4128int 4129main () 4130{ 4131 4132 ; 4133 return 0; 4134} 4135_ACEOF 4136if ac_fn_c_try_link "$LINENO"; then : 4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4138$as_echo "found" >&6; } 4139else 4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4141$as_echo "not found" >&6; } 4142 CFLAGS="$save_cflags" 4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4144$as_echo_n "checking if Intel architecture is supported... " >&6; } 4145 CPPFLAGS="$CPPFLAGS -arch i386" 4146 LDFLAGS="$save_ldflags -arch i386" 4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4148/* end confdefs.h. */ 4149 4150int 4151main () 4152{ 4153 4154 ; 4155 return 0; 4156} 4157_ACEOF 4158if ac_fn_c_try_link "$LINENO"; then : 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4160$as_echo "yes" >&6; }; MACARCH="intel" 4161else 4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4163$as_echo "no" >&6; } 4164 MACARCH="ppc" 4165 CPPFLAGS="$save_cppflags -arch ppc" 4166 LDFLAGS="$save_ldflags -arch ppc" 4167fi 4168rm -f core conftest.err conftest.$ac_objext \ 4169 conftest$ac_exeext conftest.$ac_ext 4170fi 4171rm -f core conftest.err conftest.$ac_objext \ 4172 conftest$ac_exeext conftest.$ac_ext 4173 elif test "x$MACARCH" = "xintel"; then 4174 CPPFLAGS="$CPPFLAGS -arch intel" 4175 LDFLAGS="$LDFLAGS -arch intel" 4176 elif test "x$MACARCH" = "xppc"; then 4177 CPPFLAGS="$CPPFLAGS -arch ppc" 4178 LDFLAGS="$LDFLAGS -arch ppc" 4179 fi 4180 4181 if test "$enable_darwin" = "yes"; then 4182 MACOSX=yes 4183 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4184 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4185 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" 4186 4187 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4188for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4189 inttypes.h stdint.h unistd.h 4190do : 4191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4192ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4193" 4194eval as_val=\$$as_ac_Header 4195 if test "x$as_val" = x""yes; then : 4196 cat >>confdefs.h <<_ACEOF 4197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4198_ACEOF 4199 4200fi 4201 4202done 4203 4204 4205ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4206if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then : 4207 CARBON=yes 4208fi 4209 4210 4211 if test "x$CARBON" = "xyes"; then 4212 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2; then 4213 with_x=no 4214 fi 4215 fi 4216 fi 4217 4218 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4219 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4220 fi 4221 4222else 4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4224$as_echo "no" >&6; } 4225fi 4226 4227 4228 4229 4230if test "$cross_compiling" = no; then 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4232$as_echo_n "checking --with-local-dir argument... " >&6; } 4233 have_local_include='' 4234 have_local_lib='' 4235 4236# Check whether --with-local-dir was given. 4237if test "${with_local_dir+set}" = set; then : 4238 withval=$with_local_dir; 4239 local_dir="$withval" 4240 case "$withval" in 4241 */*) ;; 4242 no) 4243 # avoid adding local dir to LDFLAGS and CPPFLAGS 4244 have_local_include=yes 4245 have_local_lib=yes 4246 ;; 4247 *) as_fn_error "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4248 esac 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4250$as_echo "$local_dir" >&6; } 4251 4252else 4253 4254 local_dir=/usr/local 4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4256$as_echo "Defaulting to $local_dir" >&6; } 4257 4258fi 4259 4260 if test "$GCC" = yes -a "$local_dir" != no; then 4261 echo 'void f(){}' > conftest.c 4262 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4263 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4264 rm -f conftest.c conftest.o 4265 fi 4266 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4267 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4268 if test "$tt" = "$LDFLAGS"; then 4269 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4270 fi 4271 fi 4272 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4273 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4274 if test "$tt" = "$CPPFLAGS"; then 4275 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4276 fi 4277 fi 4278fi 4279 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4281$as_echo_n "checking --with-vim-name argument... " >&6; } 4282 4283# Check whether --with-vim-name was given. 4284if test "${with_vim_name+set}" = set; then : 4285 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4286$as_echo "$VIMNAME" >&6; } 4287else 4288 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4289$as_echo "Defaulting to $VIMNAME" >&6; } 4290fi 4291 4292 4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4294$as_echo_n "checking --with-ex-name argument... " >&6; } 4295 4296# Check whether --with-ex-name was given. 4297if test "${with_ex_name+set}" = set; then : 4298 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4299$as_echo "$EXNAME" >&6; } 4300else 4301 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4302$as_echo "Defaulting to ex" >&6; } 4303fi 4304 4305 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4307$as_echo_n "checking --with-view-name argument... " >&6; } 4308 4309# Check whether --with-view-name was given. 4310if test "${with_view_name+set}" = set; then : 4311 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4312$as_echo "$VIEWNAME" >&6; } 4313else 4314 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4315$as_echo "Defaulting to view" >&6; } 4316fi 4317 4318 4319 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4321$as_echo_n "checking --with-global-runtime argument... " >&6; } 4322 4323# Check whether --with-global-runtime was given. 4324if test "${with_global_runtime+set}" = set; then : 4325 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4326$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4327#define RUNTIME_GLOBAL "$withval" 4328_ACEOF 4329 4330else 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4332$as_echo "no" >&6; } 4333fi 4334 4335 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4337$as_echo_n "checking --with-modified-by argument... " >&6; } 4338 4339# Check whether --with-modified-by was given. 4340if test "${with_modified_by+set}" = set; then : 4341 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4342$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4343#define MODIFIED_BY "$withval" 4344_ACEOF 4345 4346else 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4348$as_echo "no" >&6; } 4349fi 4350 4351 4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4353$as_echo_n "checking if character set is EBCDIC... " >&6; } 4354cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4355/* end confdefs.h. */ 4356 4357int 4358main () 4359{ 4360 /* TryCompile function for CharSet. 4361 Treat any failure as ASCII for compatibility with existing art. 4362 Use compile-time rather than run-time tests for cross-compiler 4363 tolerance. */ 4364#if '0'!=240 4365make an error "Character set is not EBCDIC" 4366#endif 4367 ; 4368 return 0; 4369} 4370_ACEOF 4371if ac_fn_c_try_compile "$LINENO"; then : 4372 # TryCompile action if true 4373cf_cv_ebcdic=yes 4374else 4375 # TryCompile action if false 4376cf_cv_ebcdic=no 4377fi 4378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4379# end of TryCompile ]) 4380# end of CacheVal CvEbcdic 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4382$as_echo "$cf_cv_ebcdic" >&6; } 4383case "$cf_cv_ebcdic" in #(vi 4384 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4385 4386 line_break='"\\n"' 4387 ;; 4388 *) line_break='"\\012"';; 4389esac 4390 4391 4392if test "$cf_cv_ebcdic" = "yes"; then 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4394$as_echo_n "checking for z/OS Unix... " >&6; } 4395case `uname` in 4396 OS/390) zOSUnix="yes"; 4397 if test "$CC" = "cc"; then 4398 ccm="$_CC_CCMODE" 4399 ccn="CC" 4400 else 4401 if test "$CC" = "c89"; then 4402 ccm="$_CC_C89MODE" 4403 ccn="C89" 4404 else 4405 ccm=1 4406 fi 4407 fi 4408 if test "$ccm" != "1"; then 4409 echo "" 4410 echo "------------------------------------------" 4411 echo " On z/OS Unix, the environment variable" 4412 echo " __CC_${ccn}MODE must be set to \"1\"!" 4413 echo " Do:" 4414 echo " export _CC_${ccn}MODE=1" 4415 echo " and then call configure again." 4416 echo "------------------------------------------" 4417 exit 1 4418 fi 4419 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float\\(IEEE\\)"; 4420 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4422$as_echo "yes" >&6; } 4423 ;; 4424 *) zOSUnix="no"; 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4426$as_echo "no" >&6; } 4427 ;; 4428esac 4429fi 4430 4431if test "$zOSUnix" = "yes"; then 4432 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 4433else 4434 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 4435fi 4436 4437 4438 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 4440$as_echo_n "checking --disable-selinux argument... " >&6; } 4441# Check whether --enable-selinux was given. 4442if test "${enable_selinux+set}" = set; then : 4443 enableval=$enable_selinux; 4444else 4445 enable_selinux="yes" 4446fi 4447 4448if test "$enable_selinux" = "yes"; then 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4450$as_echo "no" >&6; } 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 4452$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 4453if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 ac_check_lib_save_LIBS=$LIBS 4457LIBS="-lselinux $LIBS" 4458cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4459/* end confdefs.h. */ 4460 4461/* Override any GCC internal prototype to avoid an error. 4462 Use char because int might match the return type of a GCC 4463 builtin and then its argument prototype would still apply. */ 4464#ifdef __cplusplus 4465extern "C" 4466#endif 4467char is_selinux_enabled (); 4468int 4469main () 4470{ 4471return is_selinux_enabled (); 4472 ; 4473 return 0; 4474} 4475_ACEOF 4476if ac_fn_c_try_link "$LINENO"; then : 4477 ac_cv_lib_selinux_is_selinux_enabled=yes 4478else 4479 ac_cv_lib_selinux_is_selinux_enabled=no 4480fi 4481rm -f core conftest.err conftest.$ac_objext \ 4482 conftest$ac_exeext conftest.$ac_ext 4483LIBS=$ac_check_lib_save_LIBS 4484fi 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 4486$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 4487if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : 4488 LIBS="$LIBS -lselinux" 4489 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 4490 4491fi 4492 4493else 4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4495$as_echo "yes" >&6; } 4496fi 4497 4498 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 4500$as_echo_n "checking --with-features argument... " >&6; } 4501 4502# Check whether --with-features was given. 4503if test "${with_features+set}" = set; then : 4504 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 4505$as_echo "$features" >&6; } 4506else 4507 features="normal"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to normal" >&5 4508$as_echo "Defaulting to normal" >&6; } 4509fi 4510 4511 4512dovimdiff="" 4513dogvimdiff="" 4514case "$features" in 4515 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 4516 ;; 4517 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 4518 ;; 4519 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 4520 dovimdiff="installvimdiff"; 4521 dogvimdiff="installgvimdiff" ;; 4522 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 4523 dovimdiff="installvimdiff"; 4524 dogvimdiff="installgvimdiff" ;; 4525 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 4526 dovimdiff="installvimdiff"; 4527 dogvimdiff="installgvimdiff" ;; 4528 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 4529$as_echo "Sorry, $features is not supported" >&6; } ;; 4530esac 4531 4532 4533 4534 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 4536$as_echo_n "checking --with-compiledby argument... " >&6; } 4537 4538# Check whether --with-compiledby was given. 4539if test "${with_compiledby+set}" = set; then : 4540 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4541$as_echo "$withval" >&6; } 4542else 4543 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4544$as_echo "no" >&6; } 4545fi 4546 4547 4548 4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 4550$as_echo_n "checking --disable-xsmp argument... " >&6; } 4551# Check whether --enable-xsmp was given. 4552if test "${enable_xsmp+set}" = set; then : 4553 enableval=$enable_xsmp; 4554else 4555 enable_xsmp="yes" 4556fi 4557 4558 4559if test "$enable_xsmp" = "yes"; then 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4561$as_echo "no" >&6; } 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 4563$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 4564 # Check whether --enable-xsmp-interact was given. 4565if test "${enable_xsmp_interact+set}" = set; then : 4566 enableval=$enable_xsmp_interact; 4567else 4568 enable_xsmp_interact="yes" 4569fi 4570 4571 if test "$enable_xsmp_interact" = "yes"; then 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4573$as_echo "no" >&6; } 4574 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 4575 4576 else 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4578$as_echo "yes" >&6; } 4579 fi 4580else 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4582$as_echo "yes" >&6; } 4583fi 4584 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 4586$as_echo_n "checking --enable-luainterp argument... " >&6; } 4587# Check whether --enable-luainterp was given. 4588if test "${enable_luainterp+set}" = set; then : 4589 enableval=$enable_luainterp; 4590else 4591 enable_luainterp="no" 4592fi 4593 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 4595$as_echo "$enable_luainterp" >&6; } 4596 4597if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 4598 4599 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 4601$as_echo_n "checking --with-lua-prefix argument... " >&6; } 4602 4603# Check whether --with-lua_prefix was given. 4604if test "${with_lua_prefix+set}" = set; then : 4605 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 4606$as_echo "$with_lua_prefix" >&6; } 4607else 4608 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4609$as_echo "no" >&6; } 4610fi 4611 4612 4613 if test "X$with_lua_prefix" != "X"; then 4614 vi_cv_path_lua_pfx="$with_lua_prefix" 4615 else 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 4617$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 4618 if test "X$LUA_PREFIX" != "X"; then 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 4620$as_echo "\"$LUA_PREFIX\"" >&6; } 4621 vi_cv_path_lua_pfx="$LUA_PREFIX" 4622 else 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 4624$as_echo "not set, default to /usr" >&6; } 4625 vi_cv_path_lua_pfx="/usr" 4626 fi 4627 fi 4628 4629 LUA_INC= 4630 if test "X$vi_cv_path_lua_pfx" != "X"; then 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 4632$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 4633 if test -f $vi_cv_path_lua_pfx/include/lua.h; then 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4635$as_echo "yes" >&6; } 4636 else 4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4638$as_echo "no" >&6; } 4639 # Extract the first word of "lua", so it can be a program name with args. 4640set dummy lua; ac_word=$2 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4642$as_echo_n "checking for $ac_word... " >&6; } 4643if test "${ac_cv_path_vi_cv_path_lua+set}" = set; then : 4644 $as_echo_n "(cached) " >&6 4645else 4646 case $vi_cv_path_lua in 4647 [\\/]* | ?:[\\/]*) 4648 ac_cv_path_vi_cv_path_lua="$vi_cv_path_lua" # Let the user override the test with a path. 4649 ;; 4650 *) 4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4652for as_dir in $PATH 4653do 4654 IFS=$as_save_IFS 4655 test -z "$as_dir" && as_dir=. 4656 for ac_exec_ext in '' $ac_executable_extensions; do 4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4658 ac_cv_path_vi_cv_path_lua="$as_dir/$ac_word$ac_exec_ext" 4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4660 break 2 4661 fi 4662done 4663 done 4664IFS=$as_save_IFS 4665 4666 ;; 4667esac 4668fi 4669vi_cv_path_lua=$ac_cv_path_vi_cv_path_lua 4670if test -n "$vi_cv_path_lua"; then 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_lua" >&5 4672$as_echo "$vi_cv_path_lua" >&6; } 4673else 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4675$as_echo "no" >&6; } 4676fi 4677 4678 4679 if test "X$vi_cv_path_lua" != "X"; then 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 4681$as_echo_n "checking Lua version... " >&6; } 4682if test "${vi_cv_version_lua+set}" = set; then : 4683 $as_echo_n "(cached) " >&6 4684else 4685 vi_cv_version_lua=`${vi_cv_path_lua} -e "print(_VERSION)" | sed 's/.* //'` 4686fi 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua" >&5 4688$as_echo "$vi_cv_version_lua" >&6; } 4689 { $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 4690$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 4691 if test -f $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h; then 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4693$as_echo "yes" >&6; } 4694 LUA_INC=/lua$vi_cv_version_lua 4695 else 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4697$as_echo "no" >&6; } 4698 vi_cv_path_lua_pfx= 4699 fi 4700 fi 4701 fi 4702 fi 4703 4704 if test "X$vi_cv_path_lua_pfx" != "X"; then 4705 if test "X$vi_cv_version_lua" != "X"; then 4706 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 4707 else 4708 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 4709 fi 4710 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 4711 LUA_SRC="if_lua.c" 4712 LUA_OBJ="objects/if_lua.o" 4713 LUA_PRO="if_lua.pro" 4714 $as_echo "#define FEAT_LUA 1" >>confdefs.h 4715 4716 if test "$enable_luainterp" = "dynamic"; then 4717 for i in 0 1 2 3 4 5 6 7 8 9; do 4718 if test -f "${vi_cv_path_lua_pfx}/lib/liblua${vi_cv_version_lua}.so.$i"; then 4719 LUA_SONAME=".$i" 4720 break 4721 fi 4722 done 4723 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 4724 4725 LUA_LIBS="" 4726 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua${vi_cv_version_lua}.so$LUA_SONAME\\\" $LUA_CFLAGS" 4727 fi 4728 fi 4729 4730 4731 4732 4733 4734fi 4735 4736 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 4738$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 4739# Check whether --enable-mzschemeinterp was given. 4740if test "${enable_mzschemeinterp+set}" = set; then : 4741 enableval=$enable_mzschemeinterp; 4742else 4743 enable_mzschemeinterp="no" 4744fi 4745 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 4747$as_echo "$enable_mzschemeinterp" >&6; } 4748 4749if test "$enable_mzschemeinterp" = "yes"; then 4750 4751 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 4753$as_echo_n "checking --with-plthome argument... " >&6; } 4754 4755# Check whether --with-plthome was given. 4756if test "${with_plthome+set}" = set; then : 4757 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 4758$as_echo "$with_plthome" >&6; } 4759else 4760 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 4761$as_echo "\"no\"" >&6; } 4762fi 4763 4764 4765 if test "X$with_plthome" != "X"; then 4766 vi_cv_path_mzscheme_pfx="$with_plthome" 4767 else 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 4769$as_echo_n "checking PLTHOME environment var... " >&6; } 4770 if test "X$PLTHOME" != "X"; then 4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 4772$as_echo "\"$PLTHOME\"" >&6; } 4773 vi_cv_path_mzscheme_pfx="$PLTHOME" 4774 else 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 4776$as_echo "not set" >&6; } 4777 # Extract the first word of "mzscheme", so it can be a program name with args. 4778set dummy mzscheme; ac_word=$2 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4780$as_echo_n "checking for $ac_word... " >&6; } 4781if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then : 4782 $as_echo_n "(cached) " >&6 4783else 4784 case $vi_cv_path_mzscheme in 4785 [\\/]* | ?:[\\/]*) 4786 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 4787 ;; 4788 *) 4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4790for as_dir in $PATH 4791do 4792 IFS=$as_save_IFS 4793 test -z "$as_dir" && as_dir=. 4794 for ac_exec_ext in '' $ac_executable_extensions; do 4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4796 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4798 break 2 4799 fi 4800done 4801 done 4802IFS=$as_save_IFS 4803 4804 ;; 4805esac 4806fi 4807vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 4808if test -n "$vi_cv_path_mzscheme"; then 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 4810$as_echo "$vi_cv_path_mzscheme" >&6; } 4811else 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4813$as_echo "no" >&6; } 4814fi 4815 4816 4817 4818 if test "X$vi_cv_path_mzscheme" != "X"; then 4819 lsout=`ls -l $vi_cv_path_mzscheme` 4820 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 4821 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 4822 fi 4823 fi 4824 4825 if test "X$vi_cv_path_mzscheme" != "X"; then 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 4827$as_echo_n "checking MzScheme install prefix... " >&6; } 4828if test "${vi_cv_path_mzscheme_pfx+set}" = set; then : 4829 $as_echo_n "(cached) " >&6 4830else 4831 echo "(display (simplify-path \ 4832 (build-path (call-with-values \ 4833 (lambda () (split-path (find-system-path (quote exec-file)))) \ 4834 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 4835 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 4836 sed -e 's+/$++'` 4837fi 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 4839$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 4840 rm -f mzdirs.scm 4841 fi 4842 fi 4843 fi 4844 4845 SCHEME_INC= 4846 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 4848$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 4849 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then 4850 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4852$as_echo "yes" >&6; } 4853 else 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4855$as_echo "no" >&6; } 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 4857$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 4858 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4860$as_echo "yes" >&6; } 4861 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 4862 else 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4864$as_echo "no" >&6; } 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 4866$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 4867 if test -f /usr/include/plt/scheme.h; then 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4869$as_echo "yes" >&6; } 4870 SCHEME_INC=/usr/include/plt 4871 else 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4873$as_echo "no" >&6; } 4874 vi_cv_path_mzscheme_pfx= 4875 fi 4876 fi 4877 fi 4878 fi 4879 4880 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 4881 if test "x$MACOSX" = "xyes"; then 4882 MZSCHEME_LIBS="-framework PLT_MzScheme" 4883 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then 4884 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a" 4885 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 4886 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then 4887 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a" 4888 else 4889 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then 4890 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m" 4891 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 4892 else 4893 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc" 4894 fi 4895 if test "$GCC" = yes; then 4896 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib" 4897 elif test "`(uname) 2>/dev/null`" = SunOS && 4898 uname -r | grep '^5' >/dev/null; then 4899 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib" 4900 fi 4901 fi 4902 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then 4903 SCHEME_COLLECTS=lib/plt/ 4904 fi 4905 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 4906 MZSCHEME_EXTRA="mzscheme_base.c" 4907 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 4908 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 4909 fi 4910 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 4911 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'" 4912 MZSCHEME_SRC="if_mzsch.c" 4913 MZSCHEME_OBJ="objects/if_mzsch.o" 4914 MZSCHEME_PRO="if_mzsch.pro" 4915 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 4916 4917 fi 4918 4919 4920 4921 4922 4923 4924 4925fi 4926 4927 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 4929$as_echo_n "checking --enable-perlinterp argument... " >&6; } 4930# Check whether --enable-perlinterp was given. 4931if test "${enable_perlinterp+set}" = set; then : 4932 enableval=$enable_perlinterp; 4933else 4934 enable_perlinterp="no" 4935fi 4936 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 4938$as_echo "$enable_perlinterp" >&6; } 4939if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 4940 4941 # Extract the first word of "perl", so it can be a program name with args. 4942set dummy perl; ac_word=$2 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4944$as_echo_n "checking for $ac_word... " >&6; } 4945if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then : 4946 $as_echo_n "(cached) " >&6 4947else 4948 case $vi_cv_path_perl in 4949 [\\/]* | ?:[\\/]*) 4950 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 4951 ;; 4952 *) 4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4954for as_dir in $PATH 4955do 4956 IFS=$as_save_IFS 4957 test -z "$as_dir" && as_dir=. 4958 for ac_exec_ext in '' $ac_executable_extensions; do 4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4960 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4962 break 2 4963 fi 4964done 4965 done 4966IFS=$as_save_IFS 4967 4968 ;; 4969esac 4970fi 4971vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 4972if test -n "$vi_cv_path_perl"; then 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 4974$as_echo "$vi_cv_path_perl" >&6; } 4975else 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4977$as_echo "no" >&6; } 4978fi 4979 4980 4981 if test "X$vi_cv_path_perl" != "X"; then 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 4983$as_echo_n "checking Perl version... " >&6; } 4984 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 4985 eval `$vi_cv_path_perl -V:usethreads` 4986 eval `$vi_cv_path_perl -V:libperl` 4987 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 4988 badthreads=no 4989 else 4990 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 4991 eval `$vi_cv_path_perl -V:use5005threads` 4992 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 4993 badthreads=no 4994 else 4995 badthreads=yes 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 4997$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 4998 fi 4999 else 5000 badthreads=yes 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 5002$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 5003 fi 5004 fi 5005 if test $badthreads = no; then 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 5007$as_echo "OK" >&6; } 5008 eval `$vi_cv_path_perl -V:shrpenv` 5009 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 5010 shrpenv="" 5011 fi 5012 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 5013 5014 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 5015 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` 5016 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 5017 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 5018 -e 's/-bE:perl.exp//' -e 's/-lc //'` 5019 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 5020 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 5021 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 5023$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 5024 cflags_save=$CFLAGS 5025 libs_save=$LIBS 5026 ldflags_save=$LDFLAGS 5027 CFLAGS="$CFLAGS $perlcppflags" 5028 LIBS="$LIBS $perllibs" 5029 LDFLAGS="$perlldflags $LDFLAGS" 5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5031/* end confdefs.h. */ 5032 5033int 5034main () 5035{ 5036 5037 ; 5038 return 0; 5039} 5040_ACEOF 5041if ac_fn_c_try_link "$LINENO"; then : 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5043$as_echo "yes" >&6; }; perl_ok=yes 5044else 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 5046$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 5047fi 5048rm -f core conftest.err conftest.$ac_objext \ 5049 conftest$ac_exeext conftest.$ac_ext 5050 CFLAGS=$cflags_save 5051 LIBS=$libs_save 5052 LDFLAGS=$ldflags_save 5053 if test $perl_ok = yes; then 5054 if test "X$perlcppflags" != "X"; then 5055 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` 5056 fi 5057 if test "X$perlldflags" != "X"; then 5058 LDFLAGS="$perlldflags $LDFLAGS" 5059 fi 5060 PERL_LIBS=$perllibs 5061 PERL_SRC="auto/if_perl.c if_perlsfio.c" 5062 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 5063 PERL_PRO="if_perl.pro if_perlsfio.pro" 5064 $as_echo "#define FEAT_PERL 1" >>confdefs.h 5065 5066 fi 5067 fi 5068 else 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 5070$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 5071 fi 5072 fi 5073 5074 if test "x$MACOSX" = "xyes"; then 5075 dir=/System/Library/Perl 5076 darwindir=$dir/darwin 5077 if test -d $darwindir; then 5078 PERL=/usr/bin/perl 5079 else 5080 dir=/System/Library/Perl/5.8.1 5081 darwindir=$dir/darwin-thread-multi-2level 5082 if test -d $darwindir; then 5083 PERL=/usr/bin/perl 5084 fi 5085 fi 5086 if test -n "$PERL"; then 5087 PERL_DIR="$dir" 5088 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 5089 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 5090 PERL_LIBS="-L$darwindir/CORE -lperl" 5091 fi 5092 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5093 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5094 fi 5095 if test "$enable_perlinterp" = "dynamic"; then 5096 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 5097 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 5098 5099 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 5100 fi 5101 fi 5102fi 5103 5104 5105 5106 5107 5108 5109 5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 5111$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 5112# Check whether --enable-pythoninterp was given. 5113if test "${enable_pythoninterp+set}" = set; then : 5114 enableval=$enable_pythoninterp; 5115else 5116 enable_pythoninterp="no" 5117fi 5118 5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 5120$as_echo "$enable_pythoninterp" >&6; } 5121if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 5122 # Extract the first word of "python", so it can be a program name with args. 5123set dummy python; ac_word=$2 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5125$as_echo_n "checking for $ac_word... " >&6; } 5126if test "${ac_cv_path_vi_cv_path_python+set}" = set; then : 5127 $as_echo_n "(cached) " >&6 5128else 5129 case $vi_cv_path_python in 5130 [\\/]* | ?:[\\/]*) 5131 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 5132 ;; 5133 *) 5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5135for as_dir in $PATH 5136do 5137 IFS=$as_save_IFS 5138 test -z "$as_dir" && as_dir=. 5139 for ac_exec_ext in '' $ac_executable_extensions; do 5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5141 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5143 break 2 5144 fi 5145done 5146 done 5147IFS=$as_save_IFS 5148 5149 ;; 5150esac 5151fi 5152vi_cv_path_python=$ac_cv_path_vi_cv_path_python 5153if test -n "$vi_cv_path_python"; then 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 5155$as_echo "$vi_cv_path_python" >&6; } 5156else 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5158$as_echo "no" >&6; } 5159fi 5160 5161 5162 if test "X$vi_cv_path_python" != "X"; then 5163 5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 5165$as_echo_n "checking Python version... " >&6; } 5166if test "${vi_cv_var_python_version+set}" = set; then : 5167 $as_echo_n "(cached) " >&6 5168else 5169 vi_cv_var_python_version=` 5170 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 5171 5172fi 5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 5174$as_echo "$vi_cv_var_python_version" >&6; } 5175 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 1.4 or better" >&5 5177$as_echo_n "checking Python is 1.4 or better... " >&6; } 5178 if ${vi_cv_path_python} -c \ 5179 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" 5180 then 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 5182$as_echo "yep" >&6; } 5183 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 5185$as_echo_n "checking Python's install prefix... " >&6; } 5186if test "${vi_cv_path_python_pfx+set}" = set; then : 5187 $as_echo_n "(cached) " >&6 5188else 5189 vi_cv_path_python_pfx=` 5190 ${vi_cv_path_python} -c \ 5191 "import sys; print sys.prefix"` 5192fi 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 5194$as_echo "$vi_cv_path_python_pfx" >&6; } 5195 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 5197$as_echo_n "checking Python's execution prefix... " >&6; } 5198if test "${vi_cv_path_python_epfx+set}" = set; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 vi_cv_path_python_epfx=` 5202 ${vi_cv_path_python} -c \ 5203 "import sys; print sys.exec_prefix"` 5204fi 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 5206$as_echo "$vi_cv_path_python_epfx" >&6; } 5207 5208 5209 if test "${vi_cv_path_pythonpath+set}" = set; then : 5210 $as_echo_n "(cached) " >&6 5211else 5212 vi_cv_path_pythonpath=` 5213 unset PYTHONPATH; 5214 ${vi_cv_path_python} -c \ 5215 "import sys, string; print string.join(sys.path,':')"` 5216fi 5217 5218 5219 5220 5221# Check whether --with-python-config-dir was given. 5222if test "${with_python_config_dir+set}" = set; then : 5223 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" 5224fi 5225 5226 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 5228$as_echo_n "checking Python's configuration directory... " >&6; } 5229if test "${vi_cv_path_python_conf+set}" = set; then : 5230 $as_echo_n "(cached) " >&6 5231else 5232 5233 vi_cv_path_python_conf= 5234 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 5235 for subdir in lib64 lib share; do 5236 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 5237 if test -d "$d" && test -f "$d/config.c"; then 5238 vi_cv_path_python_conf="$d" 5239 fi 5240 done 5241 done 5242 5243fi 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 5245$as_echo "$vi_cv_path_python_conf" >&6; } 5246 5247 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 5248 5249 if test "X$PYTHON_CONFDIR" = "X"; then 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 5251$as_echo "can't find it!" >&6; } 5252 else 5253 5254 if test "${vi_cv_path_python_plibs+set}" = set; then : 5255 $as_echo_n "(cached) " >&6 5256else 5257 5258 pwd=`pwd` 5259 tmp_mkf="$pwd/config-PyMake$$" 5260 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 5261__: 5262 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 5263 @echo "python_LIBS='$(LIBS)'" 5264 @echo "python_SYSLIBS='$(SYSLIBS)'" 5265 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 5266 @echo "python_INSTSONAME='$(INSTSONAME)'" 5267eof 5268 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 5269 rm -f -- "${tmp_mkf}" 5270 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ 5271 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 5272 vi_cv_path_python_plibs="-framework Python" 5273 else 5274 if test "${vi_cv_var_python_version}" = "1.4"; then 5275 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" 5276 else 5277 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 5278 fi 5279 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 5280 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 5281 fi 5282 5283fi 5284 5285 5286 PYTHON_LIBS="${vi_cv_path_python_plibs}" 5287 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 5288 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" 5289 else 5290 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}" 5291 fi 5292 PYTHON_SRC="if_python.c" 5293 if test "x$MACOSX" = "xyes"; then 5294 PYTHON_OBJ="objects/if_python.o" 5295 else 5296 PYTHON_OBJ="objects/if_python.o objects/py_config.o" 5297 fi 5298 if test "${vi_cv_var_python_version}" = "1.4"; then 5299 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 5300 fi 5301 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 5302 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 5304$as_echo_n "checking if -pthread should be used... " >&6; } 5305 threadsafe_flag= 5306 thread_lib= 5307 if test "`(uname) 2>/dev/null`" != Darwin; then 5308 test "$GCC" = yes && threadsafe_flag="-pthread" 5309 if test "`(uname) 2>/dev/null`" = FreeBSD; then 5310 threadsafe_flag="-D_THREAD_SAFE" 5311 thread_lib="-pthread" 5312 fi 5313 fi 5314 libs_save_old=$LIBS 5315 if test -n "$threadsafe_flag"; then 5316 cflags_save=$CFLAGS 5317 CFLAGS="$CFLAGS $threadsafe_flag" 5318 LIBS="$LIBS $thread_lib" 5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320/* end confdefs.h. */ 5321 5322int 5323main () 5324{ 5325 5326 ; 5327 return 0; 5328} 5329_ACEOF 5330if ac_fn_c_try_link "$LINENO"; then : 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5332$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 5333else 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5335$as_echo "no" >&6; }; LIBS=$libs_save_old 5336 5337fi 5338rm -f core conftest.err conftest.$ac_objext \ 5339 conftest$ac_exeext conftest.$ac_ext 5340 CFLAGS=$cflags_save 5341 else 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5343$as_echo "no" >&6; } 5344 fi 5345 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 5347$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 5348 cflags_save=$CFLAGS 5349 libs_save=$LIBS 5350 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 5351 LIBS="$LIBS $PYTHON_LIBS" 5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5353/* end confdefs.h. */ 5354 5355int 5356main () 5357{ 5358 5359 ; 5360 return 0; 5361} 5362_ACEOF 5363if ac_fn_c_try_link "$LINENO"; then : 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5365$as_echo "yes" >&6; }; python_ok=yes 5366else 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 5368$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 5369fi 5370rm -f core conftest.err conftest.$ac_objext \ 5371 conftest$ac_exeext conftest.$ac_ext 5372 CFLAGS=$cflags_save 5373 LIBS=$libs_save 5374 if test $python_ok = yes; then 5375 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 5376 5377 else 5378 LIBS=$libs_save_old 5379 PYTHON_SRC= 5380 PYTHON_OBJ= 5381 PYTHON_LIBS= 5382 PYTHON_CFLAGS= 5383 fi 5384 5385 fi 5386 else 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 5388$as_echo "too old" >&6; } 5389 fi 5390 fi 5391fi 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 5402$as_echo_n "checking --enable-python3interp argument... " >&6; } 5403# Check whether --enable-python3interp was given. 5404if test "${enable_python3interp+set}" = set; then : 5405 enableval=$enable_python3interp; 5406else 5407 enable_python3interp="no" 5408fi 5409 5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 5411$as_echo "$enable_python3interp" >&6; } 5412if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 5413 # Extract the first word of "python3", so it can be a program name with args. 5414set dummy python3; ac_word=$2 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5416$as_echo_n "checking for $ac_word... " >&6; } 5417if test "${ac_cv_path_vi_cv_path_python3+set}" = set; then : 5418 $as_echo_n "(cached) " >&6 5419else 5420 case $vi_cv_path_python3 in 5421 [\\/]* | ?:[\\/]*) 5422 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 5423 ;; 5424 *) 5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5426for as_dir in $PATH 5427do 5428 IFS=$as_save_IFS 5429 test -z "$as_dir" && as_dir=. 5430 for ac_exec_ext in '' $ac_executable_extensions; do 5431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5432 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5434 break 2 5435 fi 5436done 5437 done 5438IFS=$as_save_IFS 5439 5440 ;; 5441esac 5442fi 5443vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 5444if test -n "$vi_cv_path_python3"; then 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 5446$as_echo "$vi_cv_path_python3" >&6; } 5447else 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5449$as_echo "no" >&6; } 5450fi 5451 5452 5453 if test "X$vi_cv_path_python3" != "X"; then 5454 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 5456$as_echo_n "checking Python version... " >&6; } 5457if test "${vi_cv_var_python3_version+set}" = set; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 vi_cv_var_python3_version=` 5461 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 5462 5463fi 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 5465$as_echo "$vi_cv_var_python3_version" >&6; } 5466 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 5468$as_echo_n "checking Python's install prefix... " >&6; } 5469if test "${vi_cv_path_python3_pfx+set}" = set; then : 5470 $as_echo_n "(cached) " >&6 5471else 5472 vi_cv_path_python3_pfx=` 5473 ${vi_cv_path_python3} -c \ 5474 "import sys; print(sys.prefix)"` 5475fi 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 5477$as_echo "$vi_cv_path_python3_pfx" >&6; } 5478 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 5480$as_echo_n "checking Python's execution prefix... " >&6; } 5481if test "${vi_cv_path_python3_epfx+set}" = set; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 vi_cv_path_python3_epfx=` 5485 ${vi_cv_path_python3} -c \ 5486 "import sys; print(sys.exec_prefix)"` 5487fi 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 5489$as_echo "$vi_cv_path_python3_epfx" >&6; } 5490 5491 5492 if test "${vi_cv_path_python3path+set}" = set; then : 5493 $as_echo_n "(cached) " >&6 5494else 5495 vi_cv_path_python3path=` 5496 unset PYTHONPATH; 5497 ${vi_cv_path_python3} -c \ 5498 "import sys, string; print(':'.join(sys.path))"` 5499fi 5500 5501 5502 5503 5504# Check whether --with-python3-config-dir was given. 5505if test "${with_python3_config_dir+set}" = set; then : 5506 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}" 5507fi 5508 5509 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 5511$as_echo_n "checking Python's configuration directory... " >&6; } 5512if test "${vi_cv_path_python3_conf+set}" = set; then : 5513 $as_echo_n "(cached) " >&6 5514else 5515 5516 vi_cv_path_python3_conf= 5517 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 5518 for subdir in lib64 lib share; do 5519 d="${path}/${subdir}/python${vi_cv_var_python3_version}/config" 5520 if test -d "$d" && test -f "$d/config.c"; then 5521 vi_cv_path_python3_conf="$d" 5522 fi 5523 done 5524 done 5525 5526fi 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 5528$as_echo "$vi_cv_path_python3_conf" >&6; } 5529 5530 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 5531 5532 if test "X$PYTHON3_CONFDIR" = "X"; then 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 5534$as_echo "can't find it!" >&6; } 5535 else 5536 5537 if test "${vi_cv_path_python3_plibs+set}" = set; then : 5538 $as_echo_n "(cached) " >&6 5539else 5540 5541 pwd=`pwd` 5542 tmp_mkf="$pwd/config-PyMake$$" 5543 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 5544__: 5545 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 5546 @echo "python3_LIBS='$(LIBS)'" 5547 @echo "python3_SYSLIBS='$(SYSLIBS)'" 5548 @echo "python3_LINKFORSHARED='$(LINKFORSHARED)'" 5549 @echo "python3_INSTSONAME='$(INSTSONAME)'" 5550eof 5551 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 5552 rm -f -- "${tmp_mkf}" 5553 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}" 5554 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS} ${python3_LINKFORSHARED}" 5555 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 5556 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 5557 5558fi 5559 5560 5561 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 5562 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 5563 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}" 5564 else 5565 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version} -I${vi_cv_path_python3_epfx}/include/python${vi_cv_var_python3_version}" 5566 fi 5567 PYTHON3_SRC="if_python3.c" 5568 if test "x$MACOSX" = "xyes"; then 5569 PYTHON3_OBJ="objects/if_python3.o" 5570 else 5571 PYTHON3_OBJ="objects/if_python3.o objects/py3_config.o" 5572 fi 5573 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 5575$as_echo_n "checking if -pthread should be used... " >&6; } 5576 threadsafe_flag= 5577 thread_lib= 5578 if test "`(uname) 2>/dev/null`" != Darwin; then 5579 test "$GCC" = yes && threadsafe_flag="-pthread" 5580 if test "`(uname) 2>/dev/null`" = FreeBSD; then 5581 threadsafe_flag="-D_THREAD_SAFE" 5582 thread_lib="-pthread" 5583 fi 5584 fi 5585 libs_save_old=$LIBS 5586 if test -n "$threadsafe_flag"; then 5587 cflags_save=$CFLAGS 5588 CFLAGS="$CFLAGS $threadsafe_flag" 5589 LIBS="$LIBS $thread_lib" 5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591/* end confdefs.h. */ 5592 5593int 5594main () 5595{ 5596 5597 ; 5598 return 0; 5599} 5600_ACEOF 5601if ac_fn_c_try_link "$LINENO"; then : 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5603$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 5604else 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5606$as_echo "no" >&6; }; LIBS=$libs_save_old 5607 5608fi 5609rm -f core conftest.err conftest.$ac_objext \ 5610 conftest$ac_exeext conftest.$ac_ext 5611 CFLAGS=$cflags_save 5612 else 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5614$as_echo "no" >&6; } 5615 fi 5616 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 5618$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 5619 cflags_save=$CFLAGS 5620 libs_save=$LIBS 5621 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 5622 LIBS="$LIBS $PYTHON3_LIBS" 5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5624/* end confdefs.h. */ 5625 5626int 5627main () 5628{ 5629 5630 ; 5631 return 0; 5632} 5633_ACEOF 5634if ac_fn_c_try_link "$LINENO"; then : 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5636$as_echo "yes" >&6; }; python3_ok=yes 5637else 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 5639$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 5640fi 5641rm -f core conftest.err conftest.$ac_objext \ 5642 conftest$ac_exeext conftest.$ac_ext 5643 CFLAGS=$cflags_save 5644 LIBS=$libs_save 5645 if test "$python3_ok" = yes; then 5646 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 5647 5648 else 5649 LIBS=$libs_save_old 5650 PYTHON3_SRC= 5651 PYTHON3_OBJ= 5652 PYTHON3_LIBS= 5653 PYTHON3_CFLAGS= 5654 fi 5655 fi 5656 fi 5657fi 5658 5659 5660 5661 5662 5663 5664 5665if test "$python_ok" = yes && test "$python3_ok" = yes; then 5666 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 5667 5668 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 5669 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL" >&5 5671$as_echo_n "checking whether we can do without RTLD_GLOBAL... " >&6; } 5672 cflags_save=$CFLAGS 5673 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 5674 ldflags_save=$LDFLAGS 5675 LDFLAGS="$LDFLAGS -ldl" 5676 if test "$cross_compiling" = yes; then : 5677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5679as_fn_error "cannot run test program while cross compiling 5680See \`config.log' for more details." "$LINENO" 5; } 5681else 5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5683/* end confdefs.h. */ 5684 5685 #include <dlfcn.h> 5686 /* If this program fails, then RTLD_GLOBAL is needed. 5687 * RTLD_GLOBAL will be used and then it is not possible to 5688 * have both python versions enabled in the same vim instance. 5689 * Only the first pyhton version used will be switched on. 5690 */ 5691 5692 int no_rtl_global_needed_for(char *python_instsoname) 5693 { 5694 int needed = 0; 5695 void* pylib = dlopen(python_instsoname, RTLD_LAZY); 5696 if (pylib != 0) 5697 { 5698 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 5699 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 5700 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 5701 (*init)(); 5702 needed = (*simple)("import termios") == -1; 5703 (*final)(); 5704 dlclose(pylib); 5705 } 5706 return !needed; 5707 } 5708 5709 int main(int argc, char** argv) 5710 { 5711 int not_needed = 0; 5712 if (no_rtl_global_needed_for("libpython2.7.so.1.0") && no_rtl_global_needed_for("libpython3.1.so.1.0")) 5713 not_needed = 1; 5714 return !not_needed; 5715 } 5716_ACEOF 5717if ac_fn_c_try_run "$LINENO"; then : 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5719$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 5720 5721else 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5723$as_echo "no" >&6; } 5724fi 5725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5726 conftest.$ac_objext conftest.beam conftest.$ac_ext 5727fi 5728 5729 CFLAGS=$cflags_save 5730 LDFLAGS=$ldflags_save 5731 PYTHON_SRC="if_python.c" 5732 PYTHON_OBJ="objects/if_python.o" 5733 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${python_INSTSONAME}\\\"" 5734 PYTHON_LIBS= 5735 PYTHON3_SRC="if_python3.c" 5736 PYTHON3_OBJ="objects/if_python3.o" 5737 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${python3_INSTSONAME}\\\"" 5738 PYTHON3_LIBS= 5739elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 5740 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 5741 5742 PYTHON_SRC="if_python.c" 5743 PYTHON_OBJ="objects/if_python.o" 5744 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${python_INSTSONAME}\\\"" 5745 PYTHON_LIBS= 5746elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 5747 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 5748 5749 PYTHON3_SRC="if_python3.c" 5750 PYTHON3_OBJ="objects/if_python3.o" 5751 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${python3_INSTSONAME}\\\"" 5752 PYTHON3_LIBS= 5753fi 5754 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 5756$as_echo_n "checking --enable-tclinterp argument... " >&6; } 5757# Check whether --enable-tclinterp was given. 5758if test "${enable_tclinterp+set}" = set; then : 5759 enableval=$enable_tclinterp; 5760else 5761 enable_tclinterp="no" 5762fi 5763 5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 5765$as_echo "$enable_tclinterp" >&6; } 5766 5767if test "$enable_tclinterp" = "yes"; then 5768 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 5770$as_echo_n "checking --with-tclsh argument... " >&6; } 5771 5772# Check whether --with-tclsh was given. 5773if test "${with_tclsh+set}" = set; then : 5774 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 5775$as_echo "$tclsh_name" >&6; } 5776else 5777 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5778$as_echo "no" >&6; } 5779fi 5780 5781 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5782set dummy $tclsh_name; ac_word=$2 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5784$as_echo_n "checking for $ac_word... " >&6; } 5785if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5786 $as_echo_n "(cached) " >&6 5787else 5788 case $vi_cv_path_tcl in 5789 [\\/]* | ?:[\\/]*) 5790 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5791 ;; 5792 *) 5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5794for as_dir in $PATH 5795do 5796 IFS=$as_save_IFS 5797 test -z "$as_dir" && as_dir=. 5798 for ac_exec_ext in '' $ac_executable_extensions; do 5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5800 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5802 break 2 5803 fi 5804done 5805 done 5806IFS=$as_save_IFS 5807 5808 ;; 5809esac 5810fi 5811vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5812if test -n "$vi_cv_path_tcl"; then 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5814$as_echo "$vi_cv_path_tcl" >&6; } 5815else 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5817$as_echo "no" >&6; } 5818fi 5819 5820 5821 5822 5823 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 5824 tclsh_name="tclsh8.4" 5825 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5826set dummy $tclsh_name; ac_word=$2 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5828$as_echo_n "checking for $ac_word... " >&6; } 5829if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5830 $as_echo_n "(cached) " >&6 5831else 5832 case $vi_cv_path_tcl in 5833 [\\/]* | ?:[\\/]*) 5834 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5835 ;; 5836 *) 5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5838for as_dir in $PATH 5839do 5840 IFS=$as_save_IFS 5841 test -z "$as_dir" && as_dir=. 5842 for ac_exec_ext in '' $ac_executable_extensions; do 5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5844 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5846 break 2 5847 fi 5848done 5849 done 5850IFS=$as_save_IFS 5851 5852 ;; 5853esac 5854fi 5855vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5856if test -n "$vi_cv_path_tcl"; then 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5858$as_echo "$vi_cv_path_tcl" >&6; } 5859else 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5861$as_echo "no" >&6; } 5862fi 5863 5864 5865 fi 5866 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 5867 tclsh_name="tclsh8.2" 5868 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5869set dummy $tclsh_name; ac_word=$2 5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5871$as_echo_n "checking for $ac_word... " >&6; } 5872if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5873 $as_echo_n "(cached) " >&6 5874else 5875 case $vi_cv_path_tcl in 5876 [\\/]* | ?:[\\/]*) 5877 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5878 ;; 5879 *) 5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5881for as_dir in $PATH 5882do 5883 IFS=$as_save_IFS 5884 test -z "$as_dir" && as_dir=. 5885 for ac_exec_ext in '' $ac_executable_extensions; do 5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5887 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5889 break 2 5890 fi 5891done 5892 done 5893IFS=$as_save_IFS 5894 5895 ;; 5896esac 5897fi 5898vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5899if test -n "$vi_cv_path_tcl"; then 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5901$as_echo "$vi_cv_path_tcl" >&6; } 5902else 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5904$as_echo "no" >&6; } 5905fi 5906 5907 5908 fi 5909 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 5910 tclsh_name="tclsh8.0" 5911 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5912set dummy $tclsh_name; ac_word=$2 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5914$as_echo_n "checking for $ac_word... " >&6; } 5915if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5916 $as_echo_n "(cached) " >&6 5917else 5918 case $vi_cv_path_tcl in 5919 [\\/]* | ?:[\\/]*) 5920 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5921 ;; 5922 *) 5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5924for as_dir in $PATH 5925do 5926 IFS=$as_save_IFS 5927 test -z "$as_dir" && as_dir=. 5928 for ac_exec_ext in '' $ac_executable_extensions; do 5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5930 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5932 break 2 5933 fi 5934done 5935 done 5936IFS=$as_save_IFS 5937 5938 ;; 5939esac 5940fi 5941vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5942if test -n "$vi_cv_path_tcl"; then 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5944$as_echo "$vi_cv_path_tcl" >&6; } 5945else 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5947$as_echo "no" >&6; } 5948fi 5949 5950 5951 fi 5952 if test "X$vi_cv_path_tcl" = "X"; then 5953 tclsh_name="tclsh" 5954 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5955set dummy $tclsh_name; ac_word=$2 5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5957$as_echo_n "checking for $ac_word... " >&6; } 5958if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5959 $as_echo_n "(cached) " >&6 5960else 5961 case $vi_cv_path_tcl in 5962 [\\/]* | ?:[\\/]*) 5963 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5964 ;; 5965 *) 5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5967for as_dir in $PATH 5968do 5969 IFS=$as_save_IFS 5970 test -z "$as_dir" && as_dir=. 5971 for ac_exec_ext in '' $ac_executable_extensions; do 5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5973 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5975 break 2 5976 fi 5977done 5978 done 5979IFS=$as_save_IFS 5980 5981 ;; 5982esac 5983fi 5984vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5985if test -n "$vi_cv_path_tcl"; then 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5987$as_echo "$vi_cv_path_tcl" >&6; } 5988else 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5990$as_echo "no" >&6; } 5991fi 5992 5993 5994 fi 5995 if test "X$vi_cv_path_tcl" != "X"; then 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 5997$as_echo_n "checking Tcl version... " >&6; } 5998 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then 5999 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 6001$as_echo "$tclver - OK" >&6; }; 6002 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 -` 6003 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 6005$as_echo_n "checking for location of Tcl include... " >&6; } 6006 if test "x$MACOSX" != "xyes"; then 6007 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 6008 else 6009 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 6010 fi 6011 TCL_INC= 6012 for try in $tclinc; do 6013 if test -f "$try/tcl.h"; then 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 6015$as_echo "$try/tcl.h" >&6; } 6016 TCL_INC=$try 6017 break 6018 fi 6019 done 6020 if test -z "$TCL_INC"; then 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6022$as_echo "<not found>" >&6; } 6023 SKIP_TCL=YES 6024 fi 6025 if test -z "$SKIP_TCL"; then 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 6027$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 6028 if test "x$MACOSX" != "xyes"; then 6029 tclcnf=`echo $tclinc | sed s/include/lib/g` 6030 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 6031 else 6032 tclcnf="/System/Library/Frameworks/Tcl.framework" 6033 fi 6034 for try in $tclcnf; do 6035 if test -f $try/tclConfig.sh; then 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 6037$as_echo "$try/tclConfig.sh" >&6; } 6038 . $try/tclConfig.sh 6039 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 6040 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'` 6041 break 6042 fi 6043 done 6044 if test -z "$TCL_LIBS"; then 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6046$as_echo "<not found>" >&6; } 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 6048$as_echo_n "checking for Tcl library by myself... " >&6; } 6049 tcllib=`echo $tclinc | sed s/include/lib/g` 6050 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 6051 for ext in .so .a ; do 6052 for ver in "" $tclver ; do 6053 for try in $tcllib ; do 6054 trylib=tcl$ver$ext 6055 if test -f $try/lib$trylib ; then 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 6057$as_echo "$try/lib$trylib" >&6; } 6058 TCL_LIBS="-L$try -ltcl$ver -ldl -lm" 6059 if test "`(uname) 2>/dev/null`" = SunOS && 6060 uname -r | grep '^5' >/dev/null; then 6061 TCL_LIBS="$TCL_LIBS -R $try" 6062 fi 6063 break 3 6064 fi 6065 done 6066 done 6067 done 6068 if test -z "$TCL_LIBS"; then 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6070$as_echo "<not found>" >&6; } 6071 SKIP_TCL=YES 6072 fi 6073 fi 6074 if test -z "$SKIP_TCL"; then 6075 $as_echo "#define FEAT_TCL 1" >>confdefs.h 6076 6077 TCL_SRC=if_tcl.c 6078 TCL_OBJ=objects/if_tcl.o 6079 TCL_PRO=if_tcl.pro 6080 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 6081 fi 6082 fi 6083 else 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 6085$as_echo "too old; need Tcl version 8.0 or later" >&6; } 6086 fi 6087 fi 6088fi 6089 6090 6091 6092 6093 6094 6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 6096$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 6097# Check whether --enable-rubyinterp was given. 6098if test "${enable_rubyinterp+set}" = set; then : 6099 enableval=$enable_rubyinterp; 6100else 6101 enable_rubyinterp="no" 6102fi 6103 6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 6105$as_echo "$enable_rubyinterp" >&6; } 6106if test "$enable_rubyinterp" = "yes"; then 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 6108$as_echo_n "checking --with-ruby-command argument... " >&6; } 6109 6110# Check whether --with-ruby-command was given. 6111if test "${with_ruby_command+set}" = set; then : 6112 withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 6113$as_echo "$RUBY_CMD" >&6; } 6114else 6115 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 6116$as_echo "defaulting to $RUBY_CMD" >&6; } 6117fi 6118 6119 6120 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 6121set dummy $RUBY_CMD; ac_word=$2 6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6123$as_echo_n "checking for $ac_word... " >&6; } 6124if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then : 6125 $as_echo_n "(cached) " >&6 6126else 6127 case $vi_cv_path_ruby in 6128 [\\/]* | ?:[\\/]*) 6129 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 6130 ;; 6131 *) 6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6133for as_dir in $PATH 6134do 6135 IFS=$as_save_IFS 6136 test -z "$as_dir" && as_dir=. 6137 for ac_exec_ext in '' $ac_executable_extensions; do 6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6139 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6141 break 2 6142 fi 6143done 6144 done 6145IFS=$as_save_IFS 6146 6147 ;; 6148esac 6149fi 6150vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 6151if test -n "$vi_cv_path_ruby"; then 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 6153$as_echo "$vi_cv_path_ruby" >&6; } 6154else 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6156$as_echo "no" >&6; } 6157fi 6158 6159 6160 if test "X$vi_cv_path_ruby" != "X"; then 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 6162$as_echo_n "checking Ruby version... " >&6; } 6163 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 6165$as_echo "OK" >&6; } 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 6167$as_echo_n "checking Ruby header files... " >&6; } 6168 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` 6169 if test "X$rubyhdrdir" != "X"; then 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 6171$as_echo "$rubyhdrdir" >&6; } 6172 RUBY_CFLAGS="-I$rubyhdrdir" 6173 rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'` 6174 if test -d "$rubyhdrdir/$rubyarch"; then 6175 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch" 6176 fi 6177 rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'` 6178 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 6179 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` 6180 if test "X$rubylibs" != "X"; then 6181 RUBY_LIBS="$rubylibs" 6182 fi 6183 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` 6184 if test -f "$rubyhdrdir/$librubyarg"; then 6185 librubyarg="$rubyhdrdir/$librubyarg" 6186 else 6187 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` 6188 if test -f "$rubylibdir/$librubyarg"; then 6189 librubyarg="$rubylibdir/$librubyarg" 6190 elif test "$librubyarg" = "libruby.a"; then 6191 librubyarg="-lruby" 6192 else 6193 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` 6194 fi 6195 fi 6196 6197 if test "X$librubyarg" != "X"; then 6198 RUBY_LIBS="$librubyarg $RUBY_LIBS" 6199 fi 6200 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` 6201 if test "X$rubyldflags" != "X"; then 6202 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 6203 if test "X$rubyldflags" != "X"; then 6204 LDFLAGS="$rubyldflags $LDFLAGS" 6205 fi 6206 fi 6207 RUBY_SRC="if_ruby.c" 6208 RUBY_OBJ="objects/if_ruby.o" 6209 RUBY_PRO="if_ruby.pro" 6210 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 6211 6212 else 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 6214$as_echo "not found; disabling Ruby" >&6; } 6215 fi 6216 else 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 6218$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 6219 fi 6220 fi 6221fi 6222 6223 6224 6225 6226 6227 6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 6229$as_echo_n "checking --enable-cscope argument... " >&6; } 6230# Check whether --enable-cscope was given. 6231if test "${enable_cscope+set}" = set; then : 6232 enableval=$enable_cscope; 6233else 6234 enable_cscope="no" 6235fi 6236 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 6238$as_echo "$enable_cscope" >&6; } 6239if test "$enable_cscope" = "yes"; then 6240 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 6241 6242fi 6243 6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5 6245$as_echo_n "checking --enable-workshop argument... " >&6; } 6246# Check whether --enable-workshop was given. 6247if test "${enable_workshop+set}" = set; then : 6248 enableval=$enable_workshop; 6249else 6250 enable_workshop="no" 6251fi 6252 6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5 6254$as_echo "$enable_workshop" >&6; } 6255if test "$enable_workshop" = "yes"; then 6256 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h 6257 6258 WORKSHOP_SRC="workshop.c integration.c" 6259 6260 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 6261 6262 if test "${enable_gui-xxx}" = xxx; then 6263 enable_gui=motif 6264 fi 6265fi 6266 6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 6268$as_echo_n "checking --disable-netbeans argument... " >&6; } 6269# Check whether --enable-netbeans was given. 6270if test "${enable_netbeans+set}" = set; then : 6271 enableval=$enable_netbeans; 6272else 6273 enable_netbeans="yes" 6274fi 6275 6276if test "$enable_netbeans" = "yes"; then 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6278$as_echo "no" >&6; } 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 6280$as_echo_n "checking for socket in -lsocket... " >&6; } 6281if test "${ac_cv_lib_socket_socket+set}" = set; then : 6282 $as_echo_n "(cached) " >&6 6283else 6284 ac_check_lib_save_LIBS=$LIBS 6285LIBS="-lsocket $LIBS" 6286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6287/* end confdefs.h. */ 6288 6289/* Override any GCC internal prototype to avoid an error. 6290 Use char because int might match the return type of a GCC 6291 builtin and then its argument prototype would still apply. */ 6292#ifdef __cplusplus 6293extern "C" 6294#endif 6295char socket (); 6296int 6297main () 6298{ 6299return socket (); 6300 ; 6301 return 0; 6302} 6303_ACEOF 6304if ac_fn_c_try_link "$LINENO"; then : 6305 ac_cv_lib_socket_socket=yes 6306else 6307 ac_cv_lib_socket_socket=no 6308fi 6309rm -f core conftest.err conftest.$ac_objext \ 6310 conftest$ac_exeext conftest.$ac_ext 6311LIBS=$ac_check_lib_save_LIBS 6312fi 6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 6314$as_echo "$ac_cv_lib_socket_socket" >&6; } 6315if test "x$ac_cv_lib_socket_socket" = x""yes; then : 6316 cat >>confdefs.h <<_ACEOF 6317#define HAVE_LIBSOCKET 1 6318_ACEOF 6319 6320 LIBS="-lsocket $LIBS" 6321 6322fi 6323 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 6325$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 6326if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 6327 $as_echo_n "(cached) " >&6 6328else 6329 ac_check_lib_save_LIBS=$LIBS 6330LIBS="-lnsl $LIBS" 6331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6332/* end confdefs.h. */ 6333 6334/* Override any GCC internal prototype to avoid an error. 6335 Use char because int might match the return type of a GCC 6336 builtin and then its argument prototype would still apply. */ 6337#ifdef __cplusplus 6338extern "C" 6339#endif 6340char gethostbyname (); 6341int 6342main () 6343{ 6344return gethostbyname (); 6345 ; 6346 return 0; 6347} 6348_ACEOF 6349if ac_fn_c_try_link "$LINENO"; then : 6350 ac_cv_lib_nsl_gethostbyname=yes 6351else 6352 ac_cv_lib_nsl_gethostbyname=no 6353fi 6354rm -f core conftest.err conftest.$ac_objext \ 6355 conftest$ac_exeext conftest.$ac_ext 6356LIBS=$ac_check_lib_save_LIBS 6357fi 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 6359$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6360if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 6361 cat >>confdefs.h <<_ACEOF 6362#define HAVE_LIBNSL 1 6363_ACEOF 6364 6365 LIBS="-lnsl $LIBS" 6366 6367fi 6368 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling netbeans integration is possible" >&5 6370$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; } 6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6372/* end confdefs.h. */ 6373 6374#include <stdio.h> 6375#include <stdlib.h> 6376#include <stdarg.h> 6377#include <fcntl.h> 6378#include <netdb.h> 6379#include <netinet/in.h> 6380#include <errno.h> 6381#include <sys/types.h> 6382#include <sys/socket.h> 6383 /* Check bitfields */ 6384 struct nbbuf { 6385 unsigned int initDone:1; 6386 ushort signmaplen; 6387 }; 6388 6389int 6390main () 6391{ 6392 6393 /* Check creating a socket. */ 6394 struct sockaddr_in server; 6395 (void)socket(AF_INET, SOCK_STREAM, 0); 6396 (void)htons(100); 6397 (void)gethostbyname("microsoft.com"); 6398 if (errno == ECONNREFUSED) 6399 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 6400 6401 ; 6402 return 0; 6403} 6404_ACEOF 6405if ac_fn_c_try_link "$LINENO"; then : 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6407$as_echo "yes" >&6; } 6408else 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6410$as_echo "no" >&6; }; enable_netbeans="no" 6411fi 6412rm -f core conftest.err conftest.$ac_objext \ 6413 conftest$ac_exeext conftest.$ac_ext 6414else 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6416$as_echo "yes" >&6; } 6417fi 6418if test "$enable_netbeans" = "yes"; then 6419 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 6420 6421 NETBEANS_SRC="netbeans.c" 6422 6423 NETBEANS_OBJ="objects/netbeans.o" 6424 6425fi 6426 6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-sniff argument" >&5 6428$as_echo_n "checking --enable-sniff argument... " >&6; } 6429# Check whether --enable-sniff was given. 6430if test "${enable_sniff+set}" = set; then : 6431 enableval=$enable_sniff; 6432else 6433 enable_sniff="no" 6434fi 6435 6436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sniff" >&5 6437$as_echo "$enable_sniff" >&6; } 6438if test "$enable_sniff" = "yes"; then 6439 $as_echo "#define FEAT_SNIFF 1" >>confdefs.h 6440 6441 SNIFF_SRC="if_sniff.c" 6442 6443 SNIFF_OBJ="objects/if_sniff.o" 6444 6445fi 6446 6447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 6448$as_echo_n "checking --enable-multibyte argument... " >&6; } 6449# Check whether --enable-multibyte was given. 6450if test "${enable_multibyte+set}" = set; then : 6451 enableval=$enable_multibyte; 6452else 6453 enable_multibyte="no" 6454fi 6455 6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 6457$as_echo "$enable_multibyte" >&6; } 6458if test "$enable_multibyte" = "yes"; then 6459 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 6460 6461fi 6462 6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 6464$as_echo_n "checking --enable-hangulinput argument... " >&6; } 6465# Check whether --enable-hangulinput was given. 6466if test "${enable_hangulinput+set}" = set; then : 6467 enableval=$enable_hangulinput; 6468else 6469 enable_hangulinput="no" 6470fi 6471 6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 6473$as_echo "$enable_hangulinput" >&6; } 6474 6475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 6476$as_echo_n "checking --enable-xim argument... " >&6; } 6477# Check whether --enable-xim was given. 6478if test "${enable_xim+set}" = set; then : 6479 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 6480$as_echo "$enable_xim" >&6; } 6481else 6482 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 6483$as_echo "defaulting to auto" >&6; } 6484fi 6485 6486 6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 6488$as_echo_n "checking --enable-fontset argument... " >&6; } 6489# Check whether --enable-fontset was given. 6490if test "${enable_fontset+set}" = set; then : 6491 enableval=$enable_fontset; 6492else 6493 enable_fontset="no" 6494fi 6495 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 6497$as_echo "$enable_fontset" >&6; } 6498 6499test -z "$with_x" && with_x=yes 6500test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 6501if test "$with_x" = no; then 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 6503$as_echo "defaulting to: don't HAVE_X11" >&6; } 6504else 6505 6506 # Extract the first word of "xmkmf", so it can be a program name with args. 6507set dummy xmkmf; ac_word=$2 6508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6509$as_echo_n "checking for $ac_word... " >&6; } 6510if test "${ac_cv_path_xmkmfpath+set}" = set; then : 6511 $as_echo_n "(cached) " >&6 6512else 6513 case $xmkmfpath in 6514 [\\/]* | ?:[\\/]*) 6515 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 6516 ;; 6517 *) 6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6519for as_dir in $PATH 6520do 6521 IFS=$as_save_IFS 6522 test -z "$as_dir" && as_dir=. 6523 for ac_exec_ext in '' $ac_executable_extensions; do 6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6525 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6527 break 2 6528 fi 6529done 6530 done 6531IFS=$as_save_IFS 6532 6533 ;; 6534esac 6535fi 6536xmkmfpath=$ac_cv_path_xmkmfpath 6537if test -n "$xmkmfpath"; then 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 6539$as_echo "$xmkmfpath" >&6; } 6540else 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6542$as_echo "no" >&6; } 6543fi 6544 6545 6546 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 6548$as_echo_n "checking for X... " >&6; } 6549 6550 6551# Check whether --with-x was given. 6552if test "${with_x+set}" = set; then : 6553 withval=$with_x; 6554fi 6555 6556# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6557if test "x$with_x" = xno; then 6558 # The user explicitly disabled X. 6559 have_x=disabled 6560else 6561 case $x_includes,$x_libraries in #( 6562 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 6563 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 6564 $as_echo_n "(cached) " >&6 6565else 6566 # One or both of the vars are not set, and there is no cached value. 6567ac_x_includes=no ac_x_libraries=no 6568rm -f -r conftest.dir 6569if mkdir conftest.dir; then 6570 cd conftest.dir 6571 cat >Imakefile <<'_ACEOF' 6572incroot: 6573 @echo incroot='${INCROOT}' 6574usrlibdir: 6575 @echo usrlibdir='${USRLIBDIR}' 6576libdir: 6577 @echo libdir='${LIBDIR}' 6578_ACEOF 6579 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 6580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6581 for ac_var in incroot usrlibdir libdir; do 6582 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 6583 done 6584 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 6585 for ac_extension in a so sl dylib la dll; do 6586 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 6587 test -f "$ac_im_libdir/libX11.$ac_extension"; then 6588 ac_im_usrlibdir=$ac_im_libdir; break 6589 fi 6590 done 6591 # Screen out bogus values from the imake configuration. They are 6592 # bogus both because they are the default anyway, and because 6593 # using them would break gcc on systems where it needs fixed includes. 6594 case $ac_im_incroot in 6595 /usr/include) ac_x_includes= ;; 6596 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 6597 esac 6598 case $ac_im_usrlibdir in 6599 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 6600 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 6601 esac 6602 fi 6603 cd .. 6604 rm -f -r conftest.dir 6605fi 6606 6607# Standard set of common directories for X headers. 6608# Check X11 before X11Rn because it is often a symlink to the current release. 6609ac_x_header_dirs=' 6610/usr/X11/include 6611/usr/X11R7/include 6612/usr/X11R6/include 6613/usr/X11R5/include 6614/usr/X11R4/include 6615 6616/usr/include/X11 6617/usr/include/X11R7 6618/usr/include/X11R6 6619/usr/include/X11R5 6620/usr/include/X11R4 6621 6622/usr/local/X11/include 6623/usr/local/X11R7/include 6624/usr/local/X11R6/include 6625/usr/local/X11R5/include 6626/usr/local/X11R4/include 6627 6628/usr/local/include/X11 6629/usr/local/include/X11R7 6630/usr/local/include/X11R6 6631/usr/local/include/X11R5 6632/usr/local/include/X11R4 6633 6634/usr/X386/include 6635/usr/x386/include 6636/usr/XFree86/include/X11 6637 6638/usr/include 6639/usr/local/include 6640/usr/unsupported/include 6641/usr/athena/include 6642/usr/local/x11r5/include 6643/usr/lpp/Xamples/include 6644 6645/usr/openwin/include 6646/usr/openwin/share/include' 6647 6648if test "$ac_x_includes" = no; then 6649 # Guess where to find include files, by looking for Xlib.h. 6650 # First, try using that file with no special directory specified. 6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6652/* end confdefs.h. */ 6653#include <X11/Xlib.h> 6654_ACEOF 6655if ac_fn_c_try_cpp "$LINENO"; then : 6656 # We can compile using X headers with no special include directory. 6657ac_x_includes= 6658else 6659 for ac_dir in $ac_x_header_dirs; do 6660 if test -r "$ac_dir/X11/Xlib.h"; then 6661 ac_x_includes=$ac_dir 6662 break 6663 fi 6664done 6665fi 6666rm -f conftest.err conftest.$ac_ext 6667fi # $ac_x_includes = no 6668 6669if test "$ac_x_libraries" = no; then 6670 # Check for the libraries. 6671 # See if we find them without any special options. 6672 # Don't add to $LIBS permanently. 6673 ac_save_LIBS=$LIBS 6674 LIBS="-lX11 $LIBS" 6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6676/* end confdefs.h. */ 6677#include <X11/Xlib.h> 6678int 6679main () 6680{ 6681XrmInitialize () 6682 ; 6683 return 0; 6684} 6685_ACEOF 6686if ac_fn_c_try_link "$LINENO"; then : 6687 LIBS=$ac_save_LIBS 6688# We can link X programs with no special library path. 6689ac_x_libraries= 6690else 6691 LIBS=$ac_save_LIBS 6692for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6693do 6694 # Don't even attempt the hair of trying to link an X program! 6695 for ac_extension in a so sl dylib la dll; do 6696 if test -r "$ac_dir/libX11.$ac_extension"; then 6697 ac_x_libraries=$ac_dir 6698 break 2 6699 fi 6700 done 6701done 6702fi 6703rm -f core conftest.err conftest.$ac_objext \ 6704 conftest$ac_exeext conftest.$ac_ext 6705fi # $ac_x_libraries = no 6706 6707case $ac_x_includes,$ac_x_libraries in #( 6708 no,* | *,no | *\'*) 6709 # Didn't find X, or a directory has "'" in its name. 6710 ac_cv_have_x="have_x=no";; #( 6711 *) 6712 # Record where we found X for the cache. 6713 ac_cv_have_x="have_x=yes\ 6714 ac_x_includes='$ac_x_includes'\ 6715 ac_x_libraries='$ac_x_libraries'" 6716esac 6717fi 6718;; #( 6719 *) have_x=yes;; 6720 esac 6721 eval "$ac_cv_have_x" 6722fi # $with_x != no 6723 6724if test "$have_x" != yes; then 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 6726$as_echo "$have_x" >&6; } 6727 no_x=yes 6728else 6729 # If each of the values was on the command line, it overrides each guess. 6730 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6731 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6732 # Update the cache value to reflect the command line values. 6733 ac_cv_have_x="have_x=yes\ 6734 ac_x_includes='$x_includes'\ 6735 ac_x_libraries='$x_libraries'" 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 6737$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 6738fi 6739 6740if test "$no_x" = yes; then 6741 # Not all programs may use this symbol, but it does not hurt to define it. 6742 6743$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 6744 6745 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 6746else 6747 if test -n "$x_includes"; then 6748 X_CFLAGS="$X_CFLAGS -I$x_includes" 6749 fi 6750 6751 # It would also be nice to do this for all -L options, not just this one. 6752 if test -n "$x_libraries"; then 6753 X_LIBS="$X_LIBS -L$x_libraries" 6754 # For Solaris; some versions of Sun CC require a space after -R and 6755 # others require no space. Words are not sufficient . . . . 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 6757$as_echo_n "checking whether -R must be followed by a space... " >&6; } 6758 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 6759 ac_xsave_c_werror_flag=$ac_c_werror_flag 6760 ac_c_werror_flag=yes 6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6762/* end confdefs.h. */ 6763 6764int 6765main () 6766{ 6767 6768 ; 6769 return 0; 6770} 6771_ACEOF 6772if ac_fn_c_try_link "$LINENO"; then : 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6774$as_echo "no" >&6; } 6775 X_LIBS="$X_LIBS -R$x_libraries" 6776else 6777 LIBS="$ac_xsave_LIBS -R $x_libraries" 6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6779/* end confdefs.h. */ 6780 6781int 6782main () 6783{ 6784 6785 ; 6786 return 0; 6787} 6788_ACEOF 6789if ac_fn_c_try_link "$LINENO"; then : 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6791$as_echo "yes" >&6; } 6792 X_LIBS="$X_LIBS -R $x_libraries" 6793else 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 6795$as_echo "neither works" >&6; } 6796fi 6797rm -f core conftest.err conftest.$ac_objext \ 6798 conftest$ac_exeext conftest.$ac_ext 6799fi 6800rm -f core conftest.err conftest.$ac_objext \ 6801 conftest$ac_exeext conftest.$ac_ext 6802 ac_c_werror_flag=$ac_xsave_c_werror_flag 6803 LIBS=$ac_xsave_LIBS 6804 fi 6805 6806 # Check for system-dependent libraries X programs must link with. 6807 # Do this before checking for the system-independent R6 libraries 6808 # (-lICE), since we may need -lsocket or whatever for X linking. 6809 6810 if test "$ISC" = yes; then 6811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 6812 else 6813 # Martyn Johnson says this is needed for Ultrix, if the X 6814 # libraries were built with DECnet support. And Karl Berry says 6815 # the Alpha needs dnet_stub (dnet does not exist). 6816 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818/* end confdefs.h. */ 6819 6820/* Override any GCC internal prototype to avoid an error. 6821 Use char because int might match the return type of a GCC 6822 builtin and then its argument prototype would still apply. */ 6823#ifdef __cplusplus 6824extern "C" 6825#endif 6826char XOpenDisplay (); 6827int 6828main () 6829{ 6830return XOpenDisplay (); 6831 ; 6832 return 0; 6833} 6834_ACEOF 6835if ac_fn_c_try_link "$LINENO"; then : 6836 6837else 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 6839$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 6840if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 6841 $as_echo_n "(cached) " >&6 6842else 6843 ac_check_lib_save_LIBS=$LIBS 6844LIBS="-ldnet $LIBS" 6845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6846/* end confdefs.h. */ 6847 6848/* Override any GCC internal prototype to avoid an error. 6849 Use char because int might match the return type of a GCC 6850 builtin and then its argument prototype would still apply. */ 6851#ifdef __cplusplus 6852extern "C" 6853#endif 6854char dnet_ntoa (); 6855int 6856main () 6857{ 6858return dnet_ntoa (); 6859 ; 6860 return 0; 6861} 6862_ACEOF 6863if ac_fn_c_try_link "$LINENO"; then : 6864 ac_cv_lib_dnet_dnet_ntoa=yes 6865else 6866 ac_cv_lib_dnet_dnet_ntoa=no 6867fi 6868rm -f core conftest.err conftest.$ac_objext \ 6869 conftest$ac_exeext conftest.$ac_ext 6870LIBS=$ac_check_lib_save_LIBS 6871fi 6872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6873$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 6874if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 6875 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6876fi 6877 6878 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 6880$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 6881if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : 6882 $as_echo_n "(cached) " >&6 6883else 6884 ac_check_lib_save_LIBS=$LIBS 6885LIBS="-ldnet_stub $LIBS" 6886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6887/* end confdefs.h. */ 6888 6889/* Override any GCC internal prototype to avoid an error. 6890 Use char because int might match the return type of a GCC 6891 builtin and then its argument prototype would still apply. */ 6892#ifdef __cplusplus 6893extern "C" 6894#endif 6895char dnet_ntoa (); 6896int 6897main () 6898{ 6899return dnet_ntoa (); 6900 ; 6901 return 0; 6902} 6903_ACEOF 6904if ac_fn_c_try_link "$LINENO"; then : 6905 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6906else 6907 ac_cv_lib_dnet_stub_dnet_ntoa=no 6908fi 6909rm -f core conftest.err conftest.$ac_objext \ 6910 conftest$ac_exeext conftest.$ac_ext 6911LIBS=$ac_check_lib_save_LIBS 6912fi 6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6914$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 6915if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : 6916 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6917fi 6918 6919 fi 6920fi 6921rm -f core conftest.err conftest.$ac_objext \ 6922 conftest$ac_exeext conftest.$ac_ext 6923 LIBS="$ac_xsave_LIBS" 6924 6925 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 6926 # to get the SysV transport functions. 6927 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6928 # needs -lnsl. 6929 # The nsl library prevents programs from opening the X display 6930 # on Irix 5.2, according to T.E. Dickey. 6931 # The functions gethostbyname, getservbyname, and inet_addr are 6932 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6933 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 6934if test "x$ac_cv_func_gethostbyname" = x""yes; then : 6935 6936fi 6937 6938 if test $ac_cv_func_gethostbyname = no; then 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 6940$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 6941if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 6942 $as_echo_n "(cached) " >&6 6943else 6944 ac_check_lib_save_LIBS=$LIBS 6945LIBS="-lnsl $LIBS" 6946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6947/* end confdefs.h. */ 6948 6949/* Override any GCC internal prototype to avoid an error. 6950 Use char because int might match the return type of a GCC 6951 builtin and then its argument prototype would still apply. */ 6952#ifdef __cplusplus 6953extern "C" 6954#endif 6955char gethostbyname (); 6956int 6957main () 6958{ 6959return gethostbyname (); 6960 ; 6961 return 0; 6962} 6963_ACEOF 6964if ac_fn_c_try_link "$LINENO"; then : 6965 ac_cv_lib_nsl_gethostbyname=yes 6966else 6967 ac_cv_lib_nsl_gethostbyname=no 6968fi 6969rm -f core conftest.err conftest.$ac_objext \ 6970 conftest$ac_exeext conftest.$ac_ext 6971LIBS=$ac_check_lib_save_LIBS 6972fi 6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 6974$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6975if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 6976 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6977fi 6978 6979 if test $ac_cv_lib_nsl_gethostbyname = no; then 6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 6981$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 6982if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : 6983 $as_echo_n "(cached) " >&6 6984else 6985 ac_check_lib_save_LIBS=$LIBS 6986LIBS="-lbsd $LIBS" 6987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6988/* end confdefs.h. */ 6989 6990/* Override any GCC internal prototype to avoid an error. 6991 Use char because int might match the return type of a GCC 6992 builtin and then its argument prototype would still apply. */ 6993#ifdef __cplusplus 6994extern "C" 6995#endif 6996char gethostbyname (); 6997int 6998main () 6999{ 7000return gethostbyname (); 7001 ; 7002 return 0; 7003} 7004_ACEOF 7005if ac_fn_c_try_link "$LINENO"; then : 7006 ac_cv_lib_bsd_gethostbyname=yes 7007else 7008 ac_cv_lib_bsd_gethostbyname=no 7009fi 7010rm -f core conftest.err conftest.$ac_objext \ 7011 conftest$ac_exeext conftest.$ac_ext 7012LIBS=$ac_check_lib_save_LIBS 7013fi 7014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 7015$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 7016if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : 7017 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 7018fi 7019 7020 fi 7021 fi 7022 7023 # lieder@skyler.mavd.honeywell.com says without -lsocket, 7024 # socket/setsockopt and other routines are undefined under SCO ODT 7025 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 7026 # on later versions), says Simon Leinen: it contains gethostby* 7027 # variants that don't use the name server (or something). -lsocket 7028 # must be given before -lnsl if both are needed. We assume that 7029 # if connect needs -lnsl, so does gethostbyname. 7030 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 7031if test "x$ac_cv_func_connect" = x""yes; then : 7032 7033fi 7034 7035 if test $ac_cv_func_connect = no; then 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 7037$as_echo_n "checking for connect in -lsocket... " >&6; } 7038if test "${ac_cv_lib_socket_connect+set}" = set; then : 7039 $as_echo_n "(cached) " >&6 7040else 7041 ac_check_lib_save_LIBS=$LIBS 7042LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 7043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7044/* end confdefs.h. */ 7045 7046/* Override any GCC internal prototype to avoid an error. 7047 Use char because int might match the return type of a GCC 7048 builtin and then its argument prototype would still apply. */ 7049#ifdef __cplusplus 7050extern "C" 7051#endif 7052char connect (); 7053int 7054main () 7055{ 7056return connect (); 7057 ; 7058 return 0; 7059} 7060_ACEOF 7061if ac_fn_c_try_link "$LINENO"; then : 7062 ac_cv_lib_socket_connect=yes 7063else 7064 ac_cv_lib_socket_connect=no 7065fi 7066rm -f core conftest.err conftest.$ac_objext \ 7067 conftest$ac_exeext conftest.$ac_ext 7068LIBS=$ac_check_lib_save_LIBS 7069fi 7070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 7071$as_echo "$ac_cv_lib_socket_connect" >&6; } 7072if test "x$ac_cv_lib_socket_connect" = x""yes; then : 7073 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 7074fi 7075 7076 fi 7077 7078 # Guillermo Gomez says -lposix is necessary on A/UX. 7079 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 7080if test "x$ac_cv_func_remove" = x""yes; then : 7081 7082fi 7083 7084 if test $ac_cv_func_remove = no; then 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 7086$as_echo_n "checking for remove in -lposix... " >&6; } 7087if test "${ac_cv_lib_posix_remove+set}" = set; then : 7088 $as_echo_n "(cached) " >&6 7089else 7090 ac_check_lib_save_LIBS=$LIBS 7091LIBS="-lposix $LIBS" 7092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7093/* end confdefs.h. */ 7094 7095/* Override any GCC internal prototype to avoid an error. 7096 Use char because int might match the return type of a GCC 7097 builtin and then its argument prototype would still apply. */ 7098#ifdef __cplusplus 7099extern "C" 7100#endif 7101char remove (); 7102int 7103main () 7104{ 7105return remove (); 7106 ; 7107 return 0; 7108} 7109_ACEOF 7110if ac_fn_c_try_link "$LINENO"; then : 7111 ac_cv_lib_posix_remove=yes 7112else 7113 ac_cv_lib_posix_remove=no 7114fi 7115rm -f core conftest.err conftest.$ac_objext \ 7116 conftest$ac_exeext conftest.$ac_ext 7117LIBS=$ac_check_lib_save_LIBS 7118fi 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 7120$as_echo "$ac_cv_lib_posix_remove" >&6; } 7121if test "x$ac_cv_lib_posix_remove" = x""yes; then : 7122 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 7123fi 7124 7125 fi 7126 7127 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 7128 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 7129if test "x$ac_cv_func_shmat" = x""yes; then : 7130 7131fi 7132 7133 if test $ac_cv_func_shmat = no; then 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 7135$as_echo_n "checking for shmat in -lipc... " >&6; } 7136if test "${ac_cv_lib_ipc_shmat+set}" = set; then : 7137 $as_echo_n "(cached) " >&6 7138else 7139 ac_check_lib_save_LIBS=$LIBS 7140LIBS="-lipc $LIBS" 7141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7142/* end confdefs.h. */ 7143 7144/* Override any GCC internal prototype to avoid an error. 7145 Use char because int might match the return type of a GCC 7146 builtin and then its argument prototype would still apply. */ 7147#ifdef __cplusplus 7148extern "C" 7149#endif 7150char shmat (); 7151int 7152main () 7153{ 7154return shmat (); 7155 ; 7156 return 0; 7157} 7158_ACEOF 7159if ac_fn_c_try_link "$LINENO"; then : 7160 ac_cv_lib_ipc_shmat=yes 7161else 7162 ac_cv_lib_ipc_shmat=no 7163fi 7164rm -f core conftest.err conftest.$ac_objext \ 7165 conftest$ac_exeext conftest.$ac_ext 7166LIBS=$ac_check_lib_save_LIBS 7167fi 7168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 7169$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 7170if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : 7171 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 7172fi 7173 7174 fi 7175 fi 7176 7177 # Check for libraries that X11R6 Xt/Xaw programs need. 7178 ac_save_LDFLAGS=$LDFLAGS 7179 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 7180 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 7181 # check for ICE first), but we must link in the order -lSM -lICE or 7182 # we get undefined symbols. So assume we have SM if we have ICE. 7183 # These have to be linked with before -lX11, unlike the other 7184 # libraries we check for below, so use a different variable. 7185 # John Interrante, Karl Berry 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 7187$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 7188if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : 7189 $as_echo_n "(cached) " >&6 7190else 7191 ac_check_lib_save_LIBS=$LIBS 7192LIBS="-lICE $X_EXTRA_LIBS $LIBS" 7193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7194/* end confdefs.h. */ 7195 7196/* Override any GCC internal prototype to avoid an error. 7197 Use char because int might match the return type of a GCC 7198 builtin and then its argument prototype would still apply. */ 7199#ifdef __cplusplus 7200extern "C" 7201#endif 7202char IceConnectionNumber (); 7203int 7204main () 7205{ 7206return IceConnectionNumber (); 7207 ; 7208 return 0; 7209} 7210_ACEOF 7211if ac_fn_c_try_link "$LINENO"; then : 7212 ac_cv_lib_ICE_IceConnectionNumber=yes 7213else 7214 ac_cv_lib_ICE_IceConnectionNumber=no 7215fi 7216rm -f core conftest.err conftest.$ac_objext \ 7217 conftest$ac_exeext conftest.$ac_ext 7218LIBS=$ac_check_lib_save_LIBS 7219fi 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 7221$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 7222if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : 7223 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 7224fi 7225 7226 LDFLAGS=$ac_save_LDFLAGS 7227 7228fi 7229 7230 7231 if test "$zOSUnix" = "yes"; then 7232 CFLAGS="$CFLAGS -W c,dll" 7233 LDFLAGS="$LDFLAGS -W l,dll" 7234 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 7235 fi 7236 7237 7238 if test -d "$x_includes" && test ! -d "$x_libraries"; then 7239 x_libraries=`echo "$x_includes" | sed s/include/lib/` 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 7241$as_echo "Corrected X libraries to $x_libraries" >&6; } 7242 X_LIBS="$X_LIBS -L$x_libraries" 7243 if test "`(uname) 2>/dev/null`" = SunOS && 7244 uname -r | grep '^5' >/dev/null; then 7245 X_LIBS="$X_LIBS -R $x_libraries" 7246 fi 7247 fi 7248 7249 if test -d "$x_libraries" && test ! -d "$x_includes"; then 7250 x_includes=`echo "$x_libraries" | sed s/lib/include/` 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 7252$as_echo "Corrected X includes to $x_includes" >&6; } 7253 X_CFLAGS="$X_CFLAGS -I$x_includes" 7254 fi 7255 7256 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 7257 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 7258 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 7259 7260 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 7262$as_echo_n "checking if X11 header files can be found... " >&6; } 7263 cflags_save=$CFLAGS 7264 CFLAGS="$CFLAGS $X_CFLAGS" 7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7266/* end confdefs.h. */ 7267#include <X11/Xlib.h> 7268#include <X11/Intrinsic.h> 7269int 7270main () 7271{ 7272 7273 ; 7274 return 0; 7275} 7276_ACEOF 7277if ac_fn_c_try_compile "$LINENO"; then : 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7279$as_echo "yes" >&6; } 7280else 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7282$as_echo "no" >&6; }; no_x=yes 7283fi 7284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7285 CFLAGS=$cflags_save 7286 7287 if test "${no_x-no}" = yes; then 7288 with_x=no 7289 else 7290 $as_echo "#define HAVE_X11 1" >>confdefs.h 7291 7292 X_LIB="-lXt -lX11"; 7293 7294 7295 ac_save_LDFLAGS="$LDFLAGS" 7296 LDFLAGS="-L$x_libraries $LDFLAGS" 7297 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 7299$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 7300if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then : 7301 $as_echo_n "(cached) " >&6 7302else 7303 ac_check_lib_save_LIBS=$LIBS 7304LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 7305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7306/* end confdefs.h. */ 7307 7308/* Override any GCC internal prototype to avoid an error. 7309 Use char because int might match the return type of a GCC 7310 builtin and then its argument prototype would still apply. */ 7311#ifdef __cplusplus 7312extern "C" 7313#endif 7314char _XdmcpAuthDoIt (); 7315int 7316main () 7317{ 7318return _XdmcpAuthDoIt (); 7319 ; 7320 return 0; 7321} 7322_ACEOF 7323if ac_fn_c_try_link "$LINENO"; then : 7324 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 7325else 7326 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 7327fi 7328rm -f core conftest.err conftest.$ac_objext \ 7329 conftest$ac_exeext conftest.$ac_ext 7330LIBS=$ac_check_lib_save_LIBS 7331fi 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 7333$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 7334if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then : 7335 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 7336fi 7337 7338 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 7340$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 7341if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then : 7342 $as_echo_n "(cached) " >&6 7343else 7344 ac_check_lib_save_LIBS=$LIBS 7345LIBS="-lICE $X_EXTRA_LIBS $LIBS" 7346cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7347/* end confdefs.h. */ 7348 7349/* Override any GCC internal prototype to avoid an error. 7350 Use char because int might match the return type of a GCC 7351 builtin and then its argument prototype would still apply. */ 7352#ifdef __cplusplus 7353extern "C" 7354#endif 7355char IceOpenConnection (); 7356int 7357main () 7358{ 7359return IceOpenConnection (); 7360 ; 7361 return 0; 7362} 7363_ACEOF 7364if ac_fn_c_try_link "$LINENO"; then : 7365 ac_cv_lib_ICE_IceOpenConnection=yes 7366else 7367 ac_cv_lib_ICE_IceOpenConnection=no 7368fi 7369rm -f core conftest.err conftest.$ac_objext \ 7370 conftest$ac_exeext conftest.$ac_ext 7371LIBS=$ac_check_lib_save_LIBS 7372fi 7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 7374$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 7375if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then : 7376 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 7377fi 7378 7379 7380 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 7382$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 7383if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then : 7384 $as_echo_n "(cached) " >&6 7385else 7386 ac_check_lib_save_LIBS=$LIBS 7387LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 7388cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7389/* end confdefs.h. */ 7390 7391/* Override any GCC internal prototype to avoid an error. 7392 Use char because int might match the return type of a GCC 7393 builtin and then its argument prototype would still apply. */ 7394#ifdef __cplusplus 7395extern "C" 7396#endif 7397char XpmCreatePixmapFromData (); 7398int 7399main () 7400{ 7401return XpmCreatePixmapFromData (); 7402 ; 7403 return 0; 7404} 7405_ACEOF 7406if ac_fn_c_try_link "$LINENO"; then : 7407 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 7408else 7409 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 7410fi 7411rm -f core conftest.err conftest.$ac_objext \ 7412 conftest$ac_exeext conftest.$ac_ext 7413LIBS=$ac_check_lib_save_LIBS 7414fi 7415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 7416$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 7417if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then : 7418 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 7419fi 7420 7421 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 7423$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 7424 cflags_save=$CFLAGS 7425 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7427/* end confdefs.h. */ 7428#include <X11/Xlib.h> 7429int 7430main () 7431{ 7432 7433 ; 7434 return 0; 7435} 7436_ACEOF 7437if ac_fn_c_try_compile "$LINENO"; then : 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7439$as_echo "no" >&6; } 7440else 7441 CFLAGS="$CFLAGS -Wno-implicit-int" 7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7443/* end confdefs.h. */ 7444#include <X11/Xlib.h> 7445int 7446main () 7447{ 7448 7449 ; 7450 return 0; 7451} 7452_ACEOF 7453if ac_fn_c_try_compile "$LINENO"; then : 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7455$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 7456else 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 7458$as_echo "test failed" >&6; } 7459 7460fi 7461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7462 7463fi 7464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7465 CFLAGS=$cflags_save 7466 7467 LDFLAGS="$ac_save_LDFLAGS" 7468 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 7470$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 7471 if test "${ac_cv_small_wchar_t+set}" = set; then : 7472 $as_echo_n "(cached) " >&6 7473else 7474 if test "$cross_compiling" = yes; then : 7475 as_fn_error "failed to compile test program" "$LINENO" 5 7476else 7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7478/* end confdefs.h. */ 7479 7480#include <X11/Xlib.h> 7481#if STDC_HEADERS 7482# include <stdlib.h> 7483# include <stddef.h> 7484#endif 7485 main() 7486 { 7487 if (sizeof(wchar_t) <= 2) 7488 exit(1); 7489 exit(0); 7490 } 7491_ACEOF 7492if ac_fn_c_try_run "$LINENO"; then : 7493 ac_cv_small_wchar_t="no" 7494else 7495 ac_cv_small_wchar_t="yes" 7496fi 7497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7498 conftest.$ac_objext conftest.beam conftest.$ac_ext 7499fi 7500 7501fi 7502 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 7504$as_echo "$ac_cv_small_wchar_t" >&6; } 7505 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 7506 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 7507 7508 fi 7509 7510 fi 7511fi 7512 7513test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 7514 7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 7516$as_echo_n "checking --enable-gui argument... " >&6; } 7517# Check whether --enable-gui was given. 7518if test "${enable_gui+set}" = set; then : 7519 enableval=$enable_gui; 7520else 7521 enable_gui="auto" 7522fi 7523 7524 7525enable_gui_canon=`echo "_$enable_gui" | \ 7526 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 7527 7528SKIP_GTK2=YES 7529SKIP_GNOME=YES 7530SKIP_MOTIF=YES 7531SKIP_ATHENA=YES 7532SKIP_NEXTAW=YES 7533SKIP_PHOTON=YES 7534SKIP_CARBON=YES 7535GUITYPE=NONE 7536 7537if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 7538 SKIP_PHOTON= 7539 case "$enable_gui_canon" in 7540 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 7541$as_echo "no GUI support" >&6; } 7542 SKIP_PHOTON=YES ;; 7543 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 7544$as_echo "yes - automatic GUI support" >&6; } ;; 7545 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 7546$as_echo "auto - automatic GUI support" >&6; } ;; 7547 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 7548$as_echo "Photon GUI support" >&6; } ;; 7549 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 7550$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 7551 SKIP_PHOTON=YES ;; 7552 esac 7553 7554elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then 7555 SKIP_CARBON= 7556 case "$enable_gui_canon" in 7557 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 7558$as_echo "no GUI support" >&6; } 7559 SKIP_CARBON=YES ;; 7560 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 7561$as_echo "yes - automatic GUI support" >&6; } ;; 7562 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 7563$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 7564 SKIP_CARBON=YES ;; 7565 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 7566$as_echo "Carbon GUI support" >&6; } ;; 7567 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 7568$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 7569 SKIP_CARBON=YES ;; 7570 esac 7571 7572else 7573 7574 case "$enable_gui_canon" in 7575 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 7576$as_echo "no GUI support" >&6; } ;; 7577 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 7578$as_echo "yes/auto - automatic GUI support" >&6; } 7579 SKIP_GTK2= 7580 SKIP_GNOME= 7581 SKIP_MOTIF= 7582 SKIP_ATHENA= 7583 SKIP_NEXTAW= 7584 SKIP_CARBON=;; 7585 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 7586$as_echo "GTK+ 2.x GUI support" >&6; } 7587 SKIP_GTK2=;; 7588 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 7589$as_echo "GNOME 2.x GUI support" >&6; } 7590 SKIP_GNOME= 7591 SKIP_GTK2=;; 7592 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 7593$as_echo "Motif GUI support" >&6; } 7594 SKIP_MOTIF=;; 7595 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 7596$as_echo "Athena GUI support" >&6; } 7597 SKIP_ATHENA=;; 7598 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 7599$as_echo "neXtaw GUI support" >&6; } 7600 SKIP_NEXTAW=;; 7601 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 7602$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 7603 esac 7604 7605fi 7606 7607if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 7608 -a "$enable_gui_canon" != "gnome2"; then 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 7610$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 7611 # Check whether --enable-gtk2-check was given. 7612if test "${enable_gtk2_check+set}" = set; then : 7613 enableval=$enable_gtk2_check; 7614else 7615 enable_gtk2_check="yes" 7616fi 7617 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 7619$as_echo "$enable_gtk2_check" >&6; } 7620 if test "x$enable_gtk2_check" = "xno"; then 7621 SKIP_GTK2=YES 7622 SKIP_GNOME=YES 7623 fi 7624fi 7625 7626if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 7628$as_echo_n "checking whether or not to look for GNOME... " >&6; } 7629 # Check whether --enable-gnome-check was given. 7630if test "${enable_gnome_check+set}" = set; then : 7631 enableval=$enable_gnome_check; 7632else 7633 enable_gnome_check="no" 7634fi 7635 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 7637$as_echo "$enable_gnome_check" >&6; } 7638 if test "x$enable_gnome_check" = "xno"; then 7639 SKIP_GNOME=YES 7640 fi 7641fi 7642 7643if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 7645$as_echo_n "checking whether or not to look for Motif... " >&6; } 7646 # Check whether --enable-motif-check was given. 7647if test "${enable_motif_check+set}" = set; then : 7648 enableval=$enable_motif_check; 7649else 7650 enable_motif_check="yes" 7651fi 7652 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 7654$as_echo "$enable_motif_check" >&6; } 7655 if test "x$enable_motif_check" = "xno"; then 7656 SKIP_MOTIF=YES 7657 fi 7658fi 7659 7660if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 7662$as_echo_n "checking whether or not to look for Athena... " >&6; } 7663 # Check whether --enable-athena-check was given. 7664if test "${enable_athena_check+set}" = set; then : 7665 enableval=$enable_athena_check; 7666else 7667 enable_athena_check="yes" 7668fi 7669 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 7671$as_echo "$enable_athena_check" >&6; } 7672 if test "x$enable_athena_check" = "xno"; then 7673 SKIP_ATHENA=YES 7674 fi 7675fi 7676 7677if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 7679$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 7680 # Check whether --enable-nextaw-check was given. 7681if test "${enable_nextaw_check+set}" = set; then : 7682 enableval=$enable_nextaw_check; 7683else 7684 enable_nextaw_check="yes" 7685fi 7686 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 7688$as_echo "$enable_nextaw_check" >&6; }; 7689 if test "x$enable_nextaw_check" = "xno"; then 7690 SKIP_NEXTAW=YES 7691 fi 7692fi 7693 7694if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 7696$as_echo_n "checking whether or not to look for Carbon... " >&6; } 7697 # Check whether --enable-carbon-check was given. 7698if test "${enable_carbon_check+set}" = set; then : 7699 enableval=$enable_carbon_check; 7700else 7701 enable_carbon_check="yes" 7702fi 7703 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 7705$as_echo "$enable_carbon_check" >&6; }; 7706 if test "x$enable_carbon_check" = "xno"; then 7707 SKIP_CARBON=YES 7708 fi 7709fi 7710 7711 7712if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 7714$as_echo_n "checking for Carbon GUI... " >&6; } 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7716$as_echo "yes" >&6; }; 7717 GUITYPE=CARBONGUI 7718 if test "$VIMNAME" = "vim"; then 7719 VIMNAME=Vim 7720 fi 7721 7722 if test "x$MACARCH" = "xboth"; then 7723 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 7724 else 7725 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 7726 fi 7727 7728 if test x$prefix = xNONE; then 7729 prefix=/Applications 7730 fi 7731 7732 datadir='${prefix}/Vim.app/Contents/Resources' 7733 7734 SKIP_GTK2=YES; 7735 SKIP_GNOME=YES; 7736 SKIP_MOTIF=YES; 7737 SKIP_ATHENA=YES; 7738 SKIP_NEXTAW=YES; 7739 SKIP_PHOTON=YES; 7740 SKIP_CARBON=YES 7741fi 7742 7743 7744 7745 7746 7747 7748 7749 7750if test -z "$SKIP_GTK2"; then 7751 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 7753$as_echo_n "checking --disable-gtktest argument... " >&6; } 7754 # Check whether --enable-gtktest was given. 7755if test "${enable_gtktest+set}" = set; then : 7756 enableval=$enable_gtktest; 7757else 7758 enable_gtktest=yes 7759fi 7760 7761 if test "x$enable_gtktest" = "xyes" ; then 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 7763$as_echo "gtk test enabled" >&6; } 7764 else 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 7766$as_echo "gtk test disabled" >&6; } 7767 fi 7768 7769 if test "X$PKG_CONFIG" = "X"; then 7770 # Extract the first word of "pkg-config", so it can be a program name with args. 7771set dummy pkg-config; ac_word=$2 7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7773$as_echo_n "checking for $ac_word... " >&6; } 7774if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 7775 $as_echo_n "(cached) " >&6 7776else 7777 case $PKG_CONFIG in 7778 [\\/]* | ?:[\\/]*) 7779 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7780 ;; 7781 *) 7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7783for as_dir in $PATH 7784do 7785 IFS=$as_save_IFS 7786 test -z "$as_dir" && as_dir=. 7787 for ac_exec_ext in '' $ac_executable_extensions; do 7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7789 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7791 break 2 7792 fi 7793done 7794 done 7795IFS=$as_save_IFS 7796 7797 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7798 ;; 7799esac 7800fi 7801PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7802if test -n "$PKG_CONFIG"; then 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7804$as_echo "$PKG_CONFIG" >&6; } 7805else 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7807$as_echo "no" >&6; } 7808fi 7809 7810 7811 fi 7812 7813 if test "x$PKG_CONFIG" != "xno"; then 7814 7815 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 7816 { 7817 min_gtk_version=2.2.0 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 7819$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 7820 no_gtk="" 7821 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 7822 && $PKG_CONFIG --exists gtk+-2.0; then 7823 { 7824 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 7825 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 7826 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 7827 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7828 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 7829 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7830 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 7831 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7832 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 7833 } 7834 else 7835 no_gtk=yes 7836 fi 7837 7838 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 7839 { 7840 ac_save_CFLAGS="$CFLAGS" 7841 ac_save_LIBS="$LIBS" 7842 CFLAGS="$CFLAGS $GTK_CFLAGS" 7843 LIBS="$LIBS $GTK_LIBS" 7844 7845 rm -f conf.gtktest 7846 if test "$cross_compiling" = yes; then : 7847 echo $ac_n "cross compiling; assumed OK... $ac_c" 7848else 7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7850/* end confdefs.h. */ 7851 7852#include <gtk/gtk.h> 7853#include <stdio.h> 7854#if STDC_HEADERS 7855# include <stdlib.h> 7856# include <stddef.h> 7857#endif 7858 7859int 7860main () 7861{ 7862int major, minor, micro; 7863char *tmp_version; 7864 7865system ("touch conf.gtktest"); 7866 7867/* HP/UX 9 (%@#!) writes to sscanf strings */ 7868tmp_version = g_strdup("$min_gtk_version"); 7869if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 7870 printf("%s, bad version string\n", "$min_gtk_version"); 7871 exit(1); 7872 } 7873 7874if ((gtk_major_version > major) || 7875 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 7876 ((gtk_major_version == major) && (gtk_minor_version == minor) && 7877 (gtk_micro_version >= micro))) 7878{ 7879 return 0; 7880} 7881return 1; 7882} 7883 7884_ACEOF 7885if ac_fn_c_try_run "$LINENO"; then : 7886 7887else 7888 no_gtk=yes 7889fi 7890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7891 conftest.$ac_objext conftest.beam conftest.$ac_ext 7892fi 7893 7894 CFLAGS="$ac_save_CFLAGS" 7895 LIBS="$ac_save_LIBS" 7896 } 7897 fi 7898 if test "x$no_gtk" = x ; then 7899 if test "x$enable_gtktest" = "xyes"; then 7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 7901$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 7902 else 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 7904$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 7905 fi 7906 GUI_LIB_LOC="$GTK_LIBDIR" 7907 GTK_LIBNAME="$GTK_LIBS" 7908 GUI_INC_LOC="$GTK_CFLAGS" 7909 else 7910 { 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7912$as_echo "no" >&6; } 7913 GTK_CFLAGS="" 7914 GTK_LIBS="" 7915 : 7916 } 7917 fi 7918 } 7919 else 7920 GTK_CFLAGS="" 7921 GTK_LIBS="" 7922 : 7923 fi 7924 7925 7926 rm -f conf.gtktest 7927 7928 if test "x$GTK_CFLAGS" != "x"; then 7929 SKIP_ATHENA=YES 7930 SKIP_NEXTAW=YES 7931 SKIP_MOTIF=YES 7932 GUITYPE=GTK 7933 7934 fi 7935 fi 7936 if test "x$GUITYPE" = "xGTK"; then 7937 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ 7938 || test "0$gtk_minor_version" -ge 2; then 7939 $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h 7940 7941 fi 7942 if test -z "$SKIP_GNOME"; then 7943 { 7944 7945 7946 7947 7948 7949 7950# Check whether --with-gnome-includes was given. 7951if test "${with_gnome_includes+set}" = set; then : 7952 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 7953 7954fi 7955 7956 7957 7958# Check whether --with-gnome-libs was given. 7959if test "${with_gnome_libs+set}" = set; then : 7960 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 7961 7962fi 7963 7964 7965 7966# Check whether --with-gnome was given. 7967if test "${with_gnome+set}" = set; then : 7968 withval=$with_gnome; if test x$withval = xyes; then 7969 want_gnome=yes 7970 have_gnome=yes 7971 else 7972 if test "x$withval" = xno; then 7973 want_gnome=no 7974 else 7975 want_gnome=yes 7976 LDFLAGS="$LDFLAGS -L$withval/lib" 7977 CFLAGS="$CFLAGS -I$withval/include" 7978 gnome_prefix=$withval/lib 7979 fi 7980 fi 7981else 7982 want_gnome=yes 7983fi 7984 7985 7986 if test "x$want_gnome" = xyes; then 7987 { 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 7989$as_echo_n "checking for libgnomeui-2.0... " >&6; } 7990 if $PKG_CONFIG --exists libgnomeui-2.0; then 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7992$as_echo "yes" >&6; } 7993 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 7994 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 7995 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 7996 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 7998$as_echo_n "checking for FreeBSD... " >&6; } 7999 if test "`(uname) 2>/dev/null`" = FreeBSD; then 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8001$as_echo "yes" >&6; } 8002 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 8003 GNOME_LIBS="$GNOME_LIBS -pthread" 8004 else 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8006$as_echo "no" >&6; } 8007 fi 8008 have_gnome=yes 8009 else 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8011$as_echo "not found" >&6; } 8012 if test "x" = xfail; then 8013 as_fn_error "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 8014 fi 8015 fi 8016 } 8017 fi 8018 8019 if test "x$have_gnome" = xyes ; then 8020 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 8021 8022 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 8023 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 8024 fi 8025 } 8026 fi 8027 fi 8028fi 8029 8030 8031if test -z "$SKIP_MOTIF"; then 8032 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" 8033 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 8034 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 8036$as_echo_n "checking for location of Motif GUI includes... " >&6; } 8037 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 8038 GUI_INC_LOC= 8039 for try in $gui_includes; do 8040 if test -f "$try/Xm/Xm.h"; then 8041 GUI_INC_LOC=$try 8042 fi 8043 done 8044 if test -n "$GUI_INC_LOC"; then 8045 if test "$GUI_INC_LOC" = /usr/include; then 8046 GUI_INC_LOC= 8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 8048$as_echo "in default path" >&6; } 8049 else 8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 8051$as_echo "$GUI_INC_LOC" >&6; } 8052 fi 8053 else 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 8055$as_echo "<not found>" >&6; } 8056 SKIP_MOTIF=YES 8057 fi 8058fi 8059 8060 8061if test -z "$SKIP_MOTIF"; then 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 8063$as_echo_n "checking --with-motif-lib argument... " >&6; } 8064 8065# Check whether --with-motif-lib was given. 8066if test "${with_motif_lib+set}" = set; then : 8067 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 8068fi 8069 8070 8071 if test -n "$MOTIF_LIBNAME"; then 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 8073$as_echo "$MOTIF_LIBNAME" >&6; } 8074 GUI_LIB_LOC= 8075 else 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8077$as_echo "no" >&6; } 8078 8079 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 8080 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 8082$as_echo_n "checking for location of Motif GUI libs... " >&6; } 8083 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC" 8084 GUI_LIB_LOC= 8085 for try in $gui_libs; do 8086 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 8087 if test -f "$libtry"; then 8088 GUI_LIB_LOC=$try 8089 fi 8090 done 8091 done 8092 if test -n "$GUI_LIB_LOC"; then 8093 if test "$GUI_LIB_LOC" = /usr/lib; then 8094 GUI_LIB_LOC= 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 8096$as_echo "in default path" >&6; } 8097 else 8098 if test -n "$GUI_LIB_LOC"; then 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 8100$as_echo "$GUI_LIB_LOC" >&6; } 8101 if test "`(uname) 2>/dev/null`" = SunOS && 8102 uname -r | grep '^5' >/dev/null; then 8103 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 8104 fi 8105 fi 8106 fi 8107 MOTIF_LIBNAME=-lXm 8108 else 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 8110$as_echo "<not found>" >&6; } 8111 SKIP_MOTIF=YES 8112 fi 8113 fi 8114fi 8115 8116if test -z "$SKIP_MOTIF"; then 8117 SKIP_ATHENA=YES 8118 SKIP_NEXTAW=YES 8119 GUITYPE=MOTIF 8120 8121fi 8122 8123 8124GUI_X_LIBS= 8125 8126if test -z "$SKIP_ATHENA"; then 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 8128$as_echo_n "checking if Athena header files can be found... " >&6; } 8129 cflags_save=$CFLAGS 8130 CFLAGS="$CFLAGS $X_CFLAGS" 8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8132/* end confdefs.h. */ 8133 8134#include <X11/Intrinsic.h> 8135#include <X11/Xaw/Paned.h> 8136int 8137main () 8138{ 8139 8140 ; 8141 return 0; 8142} 8143_ACEOF 8144if ac_fn_c_try_compile "$LINENO"; then : 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8146$as_echo "yes" >&6; } 8147else 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8149$as_echo "no" >&6; }; SKIP_ATHENA=YES 8150fi 8151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8152 CFLAGS=$cflags_save 8153fi 8154 8155if test -z "$SKIP_ATHENA"; then 8156 GUITYPE=ATHENA 8157fi 8158 8159if test -z "$SKIP_NEXTAW"; then 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 8161$as_echo_n "checking if neXtaw header files can be found... " >&6; } 8162 cflags_save=$CFLAGS 8163 CFLAGS="$CFLAGS $X_CFLAGS" 8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8165/* end confdefs.h. */ 8166 8167#include <X11/Intrinsic.h> 8168#include <X11/neXtaw/Paned.h> 8169int 8170main () 8171{ 8172 8173 ; 8174 return 0; 8175} 8176_ACEOF 8177if ac_fn_c_try_compile "$LINENO"; then : 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8179$as_echo "yes" >&6; } 8180else 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8182$as_echo "no" >&6; }; SKIP_NEXTAW=YES 8183fi 8184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8185 CFLAGS=$cflags_save 8186fi 8187 8188if test -z "$SKIP_NEXTAW"; then 8189 GUITYPE=NEXTAW 8190fi 8191 8192if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 8193 if test -n "$GUI_INC_LOC"; then 8194 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 8195 fi 8196 if test -n "$GUI_LIB_LOC"; then 8197 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 8198 fi 8199 8200 ldflags_save=$LDFLAGS 8201 LDFLAGS="$X_LIBS $LDFLAGS" 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 8203$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 8204if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : 8205 $as_echo_n "(cached) " >&6 8206else 8207 ac_check_lib_save_LIBS=$LIBS 8208LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 8209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8210/* end confdefs.h. */ 8211 8212/* Override any GCC internal prototype to avoid an error. 8213 Use char because int might match the return type of a GCC 8214 builtin and then its argument prototype would still apply. */ 8215#ifdef __cplusplus 8216extern "C" 8217#endif 8218char XShapeQueryExtension (); 8219int 8220main () 8221{ 8222return XShapeQueryExtension (); 8223 ; 8224 return 0; 8225} 8226_ACEOF 8227if ac_fn_c_try_link "$LINENO"; then : 8228 ac_cv_lib_Xext_XShapeQueryExtension=yes 8229else 8230 ac_cv_lib_Xext_XShapeQueryExtension=no 8231fi 8232rm -f core conftest.err conftest.$ac_objext \ 8233 conftest$ac_exeext conftest.$ac_ext 8234LIBS=$ac_check_lib_save_LIBS 8235fi 8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 8237$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 8238if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : 8239 GUI_X_LIBS="-lXext" 8240fi 8241 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 8243$as_echo_n "checking for wslen in -lw... " >&6; } 8244if test "${ac_cv_lib_w_wslen+set}" = set; then : 8245 $as_echo_n "(cached) " >&6 8246else 8247 ac_check_lib_save_LIBS=$LIBS 8248LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 8249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8250/* end confdefs.h. */ 8251 8252/* Override any GCC internal prototype to avoid an error. 8253 Use char because int might match the return type of a GCC 8254 builtin and then its argument prototype would still apply. */ 8255#ifdef __cplusplus 8256extern "C" 8257#endif 8258char wslen (); 8259int 8260main () 8261{ 8262return wslen (); 8263 ; 8264 return 0; 8265} 8266_ACEOF 8267if ac_fn_c_try_link "$LINENO"; then : 8268 ac_cv_lib_w_wslen=yes 8269else 8270 ac_cv_lib_w_wslen=no 8271fi 8272rm -f core conftest.err conftest.$ac_objext \ 8273 conftest$ac_exeext conftest.$ac_ext 8274LIBS=$ac_check_lib_save_LIBS 8275fi 8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 8277$as_echo "$ac_cv_lib_w_wslen" >&6; } 8278if test "x$ac_cv_lib_w_wslen" = x""yes; then : 8279 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 8280fi 8281 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 8283$as_echo_n "checking for dlsym in -ldl... " >&6; } 8284if test "${ac_cv_lib_dl_dlsym+set}" = set; then : 8285 $as_echo_n "(cached) " >&6 8286else 8287 ac_check_lib_save_LIBS=$LIBS 8288LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 8289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8290/* end confdefs.h. */ 8291 8292/* Override any GCC internal prototype to avoid an error. 8293 Use char because int might match the return type of a GCC 8294 builtin and then its argument prototype would still apply. */ 8295#ifdef __cplusplus 8296extern "C" 8297#endif 8298char dlsym (); 8299int 8300main () 8301{ 8302return dlsym (); 8303 ; 8304 return 0; 8305} 8306_ACEOF 8307if ac_fn_c_try_link "$LINENO"; then : 8308 ac_cv_lib_dl_dlsym=yes 8309else 8310 ac_cv_lib_dl_dlsym=no 8311fi 8312rm -f core conftest.err conftest.$ac_objext \ 8313 conftest$ac_exeext conftest.$ac_ext 8314LIBS=$ac_check_lib_save_LIBS 8315fi 8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 8317$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 8318if test "x$ac_cv_lib_dl_dlsym" = x""yes; then : 8319 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 8320fi 8321 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 8323$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 8324if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then : 8325 $as_echo_n "(cached) " >&6 8326else 8327 ac_check_lib_save_LIBS=$LIBS 8328LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 8329cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8330/* end confdefs.h. */ 8331 8332/* Override any GCC internal prototype to avoid an error. 8333 Use char because int might match the return type of a GCC 8334 builtin and then its argument prototype would still apply. */ 8335#ifdef __cplusplus 8336extern "C" 8337#endif 8338char XmuCreateStippledPixmap (); 8339int 8340main () 8341{ 8342return XmuCreateStippledPixmap (); 8343 ; 8344 return 0; 8345} 8346_ACEOF 8347if ac_fn_c_try_link "$LINENO"; then : 8348 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 8349else 8350 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 8351fi 8352rm -f core conftest.err conftest.$ac_objext \ 8353 conftest$ac_exeext conftest.$ac_ext 8354LIBS=$ac_check_lib_save_LIBS 8355fi 8356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 8357$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 8358if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then : 8359 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 8360fi 8361 8362 if test -z "$SKIP_MOTIF"; then 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 8364$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 8365if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then : 8366 $as_echo_n "(cached) " >&6 8367else 8368 ac_check_lib_save_LIBS=$LIBS 8369LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 8370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8371/* end confdefs.h. */ 8372 8373/* Override any GCC internal prototype to avoid an error. 8374 Use char because int might match the return type of a GCC 8375 builtin and then its argument prototype would still apply. */ 8376#ifdef __cplusplus 8377extern "C" 8378#endif 8379char XpEndJob (); 8380int 8381main () 8382{ 8383return XpEndJob (); 8384 ; 8385 return 0; 8386} 8387_ACEOF 8388if ac_fn_c_try_link "$LINENO"; then : 8389 ac_cv_lib_Xp_XpEndJob=yes 8390else 8391 ac_cv_lib_Xp_XpEndJob=no 8392fi 8393rm -f core conftest.err conftest.$ac_objext \ 8394 conftest$ac_exeext conftest.$ac_ext 8395LIBS=$ac_check_lib_save_LIBS 8396fi 8397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 8398$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 8399if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then : 8400 GUI_X_LIBS="-lXp $GUI_X_LIBS" 8401fi 8402 8403 fi 8404 LDFLAGS=$ldflags_save 8405 8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 8407$as_echo_n "checking for extra X11 defines... " >&6; } 8408 NARROW_PROTO= 8409 rm -fr conftestdir 8410 if mkdir conftestdir; then 8411 cd conftestdir 8412 cat > Imakefile <<'EOF' 8413acfindx: 8414 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 8415EOF 8416 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 8417 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 8418 fi 8419 cd .. 8420 rm -fr conftestdir 8421 fi 8422 if test -z "$NARROW_PROTO"; then 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8424$as_echo "no" >&6; } 8425 else 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 8427$as_echo "$NARROW_PROTO" >&6; } 8428 fi 8429 8430fi 8431 8432if test "$enable_xsmp" = "yes"; then 8433 cppflags_save=$CPPFLAGS 8434 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8435 for ac_header in X11/SM/SMlib.h 8436do : 8437 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 8438if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : 8439 cat >>confdefs.h <<_ACEOF 8440#define HAVE_X11_SM_SMLIB_H 1 8441_ACEOF 8442 8443fi 8444 8445done 8446 8447 CPPFLAGS=$cppflags_save 8448fi 8449 8450 8451if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2"; then 8452 cppflags_save=$CPPFLAGS 8453 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8454 for ac_header in X11/xpm.h X11/Sunkeysym.h 8455do : 8456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8457ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8458eval as_val=\$$as_ac_Header 8459 if test "x$as_val" = x""yes; then : 8460 cat >>confdefs.h <<_ACEOF 8461#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8462_ACEOF 8463 8464fi 8465 8466done 8467 8468 8469 if test ! "$enable_xim" = "no"; then 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 8471$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8473/* end confdefs.h. */ 8474#include <X11/Xlib.h> 8475_ACEOF 8476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8477 $EGREP "XIMText" >/dev/null 2>&1; then : 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8479$as_echo "yes" >&6; } 8480else 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 8482$as_echo "no; xim has been disabled" >&6; }; enable_xim = "no" 8483fi 8484rm -f conftest* 8485 8486 fi 8487 CPPFLAGS=$cppflags_save 8488 8489 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 8490 -a "x$GUITYPE" != "xNONE" ; then 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 8492$as_echo "X GUI selected; xim has been enabled" >&6; } 8493 enable_xim="yes" 8494 fi 8495fi 8496 8497if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 8498 cppflags_save=$CPPFLAGS 8499 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 8501$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8503/* end confdefs.h. */ 8504 8505#include <X11/Intrinsic.h> 8506#include <X11/Xmu/Editres.h> 8507int 8508main () 8509{ 8510int i; i = 0; 8511 ; 8512 return 0; 8513} 8514_ACEOF 8515if ac_fn_c_try_compile "$LINENO"; then : 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8517$as_echo "yes" >&6; } 8518 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 8519 8520else 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8522$as_echo "no" >&6; } 8523fi 8524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8525 CPPFLAGS=$cppflags_save 8526fi 8527 8528if test -z "$SKIP_MOTIF"; then 8529 cppflags_save=$CPPFLAGS 8530 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8531 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \ 8532 Xm/UnhighlightT.h Xm/Notebook.h 8533do : 8534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8535ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8536eval as_val=\$$as_ac_Header 8537 if test "x$as_val" = x""yes; then : 8538 cat >>confdefs.h <<_ACEOF 8539#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8540_ACEOF 8541 8542fi 8543 8544done 8545 8546 8547 if test $ac_cv_header_Xm_XpmP_h = yes; then 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 8549$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8551/* end confdefs.h. */ 8552#include <Xm/XpmP.h> 8553int 8554main () 8555{ 8556XpmAttributes_21 attr; 8557 ; 8558 return 0; 8559} 8560_ACEOF 8561if ac_fn_c_try_compile "$LINENO"; then : 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8563$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 8564 8565else 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8567$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 8568 8569 8570fi 8571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8572 else 8573 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 8574 8575 fi 8576 CPPFLAGS=$cppflags_save 8577fi 8578 8579if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 8581$as_echo "no GUI selected; xim has been disabled" >&6; } 8582 enable_xim="no" 8583fi 8584if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 8586$as_echo "no GUI selected; fontset has been disabled" >&6; } 8587 enable_fontset="no" 8588fi 8589if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 8591$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 8592 enable_fontset="no" 8593fi 8594 8595if test -z "$SKIP_PHOTON"; then 8596 GUITYPE=PHOTONGUI 8597fi 8598 8599 8600 8601 8602 8603 8604if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 8605 as_fn_error "cannot use workshop without Motif" "$LINENO" 5 8606fi 8607 8608if test "$enable_xim" = "yes"; then 8609 $as_echo "#define FEAT_XIM 1" >>confdefs.h 8610 8611fi 8612if test "$enable_fontset" = "yes"; then 8613 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 8614 8615fi 8616 8617 8618 8619 8620if test "$enable_hangulinput" = "yes"; then 8621 if test "x$GUITYPE" = "xNONE"; then 8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 8623$as_echo "no GUI selected; hangul input has been disabled" >&6; } 8624 enable_hangulinput=no 8625 else 8626 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 8627 8628 HANGULIN_SRC=hangulin.c 8629 8630 HANGULIN_OBJ=objects/hangulin.o 8631 8632 fi 8633fi 8634 8635 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 8637$as_echo_n "checking whether toupper is broken... " >&6; } 8638if test "${vim_cv_toupper_broken+set}" = set; then : 8639 $as_echo_n "(cached) " >&6 8640else 8641 8642 if test "$cross_compiling" = yes; then : 8643 8644 as_fn_error "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 8645 8646else 8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8648/* end confdefs.h. */ 8649 8650#include "confdefs.h" 8651#include <ctype.h> 8652#if STDC_HEADERS 8653# include <stdlib.h> 8654# include <stddef.h> 8655#endif 8656main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 8657 8658_ACEOF 8659if ac_fn_c_try_run "$LINENO"; then : 8660 8661 vim_cv_toupper_broken=yes 8662 8663else 8664 8665 vim_cv_toupper_broken=no 8666 8667fi 8668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8669 conftest.$ac_objext conftest.beam conftest.$ac_ext 8670fi 8671 8672fi 8673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 8674$as_echo "$vim_cv_toupper_broken" >&6; } 8675 8676if test "x$vim_cv_toupper_broken" = "xyes" ; then 8677 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 8678 8679fi 8680 8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 8682$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 8683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8684/* end confdefs.h. */ 8685#include <stdio.h> 8686int 8687main () 8688{ 8689printf("(" __DATE__ " " __TIME__ ")"); 8690 ; 8691 return 0; 8692} 8693_ACEOF 8694if ac_fn_c_try_compile "$LINENO"; then : 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8696$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 8697 8698else 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8700$as_echo "no" >&6; } 8701fi 8702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8703 8704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 8705$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 8706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8707/* end confdefs.h. */ 8708#include <stdio.h> 8709int 8710main () 8711{ 8712int x __attribute__((unused)); 8713 ; 8714 return 0; 8715} 8716_ACEOF 8717if ac_fn_c_try_compile "$LINENO"; then : 8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8719$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 8720 8721else 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8723$as_echo "no" >&6; } 8724fi 8725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8726 8727ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 8728if test "x$ac_cv_header_elf_h" = x""yes; then : 8729 HAS_ELF=1 8730fi 8731 8732 8733if test "$HAS_ELF" = 1; then 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 8735$as_echo_n "checking for main in -lelf... " >&6; } 8736if test "${ac_cv_lib_elf_main+set}" = set; then : 8737 $as_echo_n "(cached) " >&6 8738else 8739 ac_check_lib_save_LIBS=$LIBS 8740LIBS="-lelf $LIBS" 8741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8742/* end confdefs.h. */ 8743 8744 8745int 8746main () 8747{ 8748return main (); 8749 ; 8750 return 0; 8751} 8752_ACEOF 8753if ac_fn_c_try_link "$LINENO"; then : 8754 ac_cv_lib_elf_main=yes 8755else 8756 ac_cv_lib_elf_main=no 8757fi 8758rm -f core conftest.err conftest.$ac_objext \ 8759 conftest$ac_exeext conftest.$ac_ext 8760LIBS=$ac_check_lib_save_LIBS 8761fi 8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 8763$as_echo "$ac_cv_lib_elf_main" >&6; } 8764if test "x$ac_cv_lib_elf_main" = x""yes; then : 8765 cat >>confdefs.h <<_ACEOF 8766#define HAVE_LIBELF 1 8767_ACEOF 8768 8769 LIBS="-lelf $LIBS" 8770 8771fi 8772 8773fi 8774 8775ac_header_dirent=no 8776for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8777 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 8779$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 8780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 8781 $as_echo_n "(cached) " >&6 8782else 8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8784/* end confdefs.h. */ 8785#include <sys/types.h> 8786#include <$ac_hdr> 8787 8788int 8789main () 8790{ 8791if ((DIR *) 0) 8792return 0; 8793 ; 8794 return 0; 8795} 8796_ACEOF 8797if ac_fn_c_try_compile "$LINENO"; then : 8798 eval "$as_ac_Header=yes" 8799else 8800 eval "$as_ac_Header=no" 8801fi 8802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8803fi 8804eval ac_res=\$$as_ac_Header 8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8806$as_echo "$ac_res" >&6; } 8807eval as_val=\$$as_ac_Header 8808 if test "x$as_val" = x""yes; then : 8809 cat >>confdefs.h <<_ACEOF 8810#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8811_ACEOF 8812 8813ac_header_dirent=$ac_hdr; break 8814fi 8815 8816done 8817# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8818if test $ac_header_dirent = dirent.h; then 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8820$as_echo_n "checking for library containing opendir... " >&6; } 8821if test "${ac_cv_search_opendir+set}" = set; then : 8822 $as_echo_n "(cached) " >&6 8823else 8824 ac_func_search_save_LIBS=$LIBS 8825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8826/* end confdefs.h. */ 8827 8828/* Override any GCC internal prototype to avoid an error. 8829 Use char because int might match the return type of a GCC 8830 builtin and then its argument prototype would still apply. */ 8831#ifdef __cplusplus 8832extern "C" 8833#endif 8834char opendir (); 8835int 8836main () 8837{ 8838return opendir (); 8839 ; 8840 return 0; 8841} 8842_ACEOF 8843for ac_lib in '' dir; do 8844 if test -z "$ac_lib"; then 8845 ac_res="none required" 8846 else 8847 ac_res=-l$ac_lib 8848 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8849 fi 8850 if ac_fn_c_try_link "$LINENO"; then : 8851 ac_cv_search_opendir=$ac_res 8852fi 8853rm -f core conftest.err conftest.$ac_objext \ 8854 conftest$ac_exeext 8855 if test "${ac_cv_search_opendir+set}" = set; then : 8856 break 8857fi 8858done 8859if test "${ac_cv_search_opendir+set}" = set; then : 8860 8861else 8862 ac_cv_search_opendir=no 8863fi 8864rm conftest.$ac_ext 8865LIBS=$ac_func_search_save_LIBS 8866fi 8867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8868$as_echo "$ac_cv_search_opendir" >&6; } 8869ac_res=$ac_cv_search_opendir 8870if test "$ac_res" != no; then : 8871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8872 8873fi 8874 8875else 8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8877$as_echo_n "checking for library containing opendir... " >&6; } 8878if test "${ac_cv_search_opendir+set}" = set; then : 8879 $as_echo_n "(cached) " >&6 8880else 8881 ac_func_search_save_LIBS=$LIBS 8882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8883/* end confdefs.h. */ 8884 8885/* Override any GCC internal prototype to avoid an error. 8886 Use char because int might match the return type of a GCC 8887 builtin and then its argument prototype would still apply. */ 8888#ifdef __cplusplus 8889extern "C" 8890#endif 8891char opendir (); 8892int 8893main () 8894{ 8895return opendir (); 8896 ; 8897 return 0; 8898} 8899_ACEOF 8900for ac_lib in '' x; do 8901 if test -z "$ac_lib"; then 8902 ac_res="none required" 8903 else 8904 ac_res=-l$ac_lib 8905 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8906 fi 8907 if ac_fn_c_try_link "$LINENO"; then : 8908 ac_cv_search_opendir=$ac_res 8909fi 8910rm -f core conftest.err conftest.$ac_objext \ 8911 conftest$ac_exeext 8912 if test "${ac_cv_search_opendir+set}" = set; then : 8913 break 8914fi 8915done 8916if test "${ac_cv_search_opendir+set}" = set; then : 8917 8918else 8919 ac_cv_search_opendir=no 8920fi 8921rm conftest.$ac_ext 8922LIBS=$ac_func_search_save_LIBS 8923fi 8924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8925$as_echo "$ac_cv_search_opendir" >&6; } 8926ac_res=$ac_cv_search_opendir 8927if test "$ac_res" != no; then : 8928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8929 8930fi 8931 8932fi 8933 8934 8935if test $ac_cv_header_sys_wait_h = no; then 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 8937$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8939/* end confdefs.h. */ 8940#include <sys/wait.h> 8941int 8942main () 8943{ 8944union wait xx, yy; xx = yy 8945 ; 8946 return 0; 8947} 8948_ACEOF 8949if ac_fn_c_try_compile "$LINENO"; then : 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8951$as_echo "yes" >&6; } 8952 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 8953 8954 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 8955 8956else 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8958$as_echo "no" >&6; } 8959fi 8960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8961fi 8962 8963for ac_header in stdarg.h stdint.h stdlib.h string.h \ 8964 sys/select.h sys/utsname.h termcap.h fcntl.h \ 8965 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 8966 termio.h iconv.h inttypes.h langinfo.h math.h \ 8967 unistd.h stropts.h errno.h sys/resource.h \ 8968 sys/systeminfo.h locale.h sys/stream.h termios.h \ 8969 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 8970 utime.h sys/param.h libintl.h libgen.h \ 8971 util/debug.h util/msg18n.h frame.h sys/acl.h \ 8972 sys/access.h sys/sysinfo.h wchar.h wctype.h 8973do : 8974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8975ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8976eval as_val=\$$as_ac_Header 8977 if test "x$as_val" = x""yes; then : 8978 cat >>confdefs.h <<_ACEOF 8979#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8980_ACEOF 8981 8982fi 8983 8984done 8985 8986 8987for ac_header in sys/ptem.h 8988do : 8989 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 8990# include <sys/stream.h> 8991#endif 8992" 8993if test "x$ac_cv_header_sys_ptem_h" = x""yes; then : 8994 cat >>confdefs.h <<_ACEOF 8995#define HAVE_SYS_PTEM_H 1 8996_ACEOF 8997 8998fi 8999 9000done 9001 9002 9003for ac_header in sys/sysctl.h 9004do : 9005 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 9006# include <sys/param.h> 9007#endif 9008" 9009if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then : 9010 cat >>confdefs.h <<_ACEOF 9011#define HAVE_SYS_SYSCTL_H 1 9012_ACEOF 9013 9014fi 9015 9016done 9017 9018 9019 9020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 9021$as_echo_n "checking for pthread_np.h... " >&6; } 9022cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9023/* end confdefs.h. */ 9024 9025#include <pthread.h> 9026#include <pthread_np.h> 9027int 9028main () 9029{ 9030int i; i = 0; 9031 ; 9032 return 0; 9033} 9034_ACEOF 9035if ac_fn_c_try_compile "$LINENO"; then : 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9037$as_echo "yes" >&6; } 9038 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 9039 9040else 9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9042$as_echo "no" >&6; } 9043fi 9044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9045 9046for ac_header in strings.h 9047do : 9048 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 9049if test "x$ac_cv_header_strings_h" = x""yes; then : 9050 cat >>confdefs.h <<_ACEOF 9051#define HAVE_STRINGS_H 1 9052_ACEOF 9053 9054fi 9055 9056done 9057 9058if test "x$MACOSX" = "xyes"; then 9059 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 9060 9061else 9062 9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 9064$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 9065cppflags_save=$CPPFLAGS 9066CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9067cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9068/* end confdefs.h. */ 9069 9070#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 9071# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 9072 /* but don't do it on AIX 5.1 (Uribarri) */ 9073#endif 9074#ifdef HAVE_XM_XM_H 9075# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 9076#endif 9077#ifdef HAVE_STRING_H 9078# include <string.h> 9079#endif 9080#if defined(HAVE_STRINGS_H) 9081# include <strings.h> 9082#endif 9083 9084int 9085main () 9086{ 9087int i; i = 0; 9088 ; 9089 return 0; 9090} 9091_ACEOF 9092if ac_fn_c_try_compile "$LINENO"; then : 9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9094$as_echo "yes" >&6; } 9095else 9096 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 9097 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9099$as_echo "no" >&6; } 9100fi 9101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9102CPPFLAGS=$cppflags_save 9103fi 9104 9105if test $ac_cv_c_compiler_gnu = yes; then 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 9107$as_echo_n "checking whether $CC needs -traditional... " >&6; } 9108if test "${ac_cv_prog_gcc_traditional+set}" = set; then : 9109 $as_echo_n "(cached) " >&6 9110else 9111 ac_pattern="Autoconf.*'x'" 9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9113/* end confdefs.h. */ 9114#include <sgtty.h> 9115Autoconf TIOCGETP 9116_ACEOF 9117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9118 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 9119 ac_cv_prog_gcc_traditional=yes 9120else 9121 ac_cv_prog_gcc_traditional=no 9122fi 9123rm -f conftest* 9124 9125 9126 if test $ac_cv_prog_gcc_traditional = no; then 9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9128/* end confdefs.h. */ 9129#include <termio.h> 9130Autoconf TCGETA 9131_ACEOF 9132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9133 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 9134 ac_cv_prog_gcc_traditional=yes 9135fi 9136rm -f conftest* 9137 9138 fi 9139fi 9140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 9141$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 9142 if test $ac_cv_prog_gcc_traditional = yes; then 9143 CC="$CC -traditional" 9144 fi 9145fi 9146 9147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 9148$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 9149if test "${ac_cv_c_const+set}" = set; then : 9150 $as_echo_n "(cached) " >&6 9151else 9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9153/* end confdefs.h. */ 9154 9155int 9156main () 9157{ 9158/* FIXME: Include the comments suggested by Paul. */ 9159#ifndef __cplusplus 9160 /* Ultrix mips cc rejects this. */ 9161 typedef int charset[2]; 9162 const charset cs; 9163 /* SunOS 4.1.1 cc rejects this. */ 9164 char const *const *pcpcc; 9165 char **ppc; 9166 /* NEC SVR4.0.2 mips cc rejects this. */ 9167 struct point {int x, y;}; 9168 static struct point const zero = {0,0}; 9169 /* AIX XL C 1.02.0.0 rejects this. 9170 It does not let you subtract one const X* pointer from another in 9171 an arm of an if-expression whose if-part is not a constant 9172 expression */ 9173 const char *g = "string"; 9174 pcpcc = &g + (g ? g-g : 0); 9175 /* HPUX 7.0 cc rejects these. */ 9176 ++pcpcc; 9177 ppc = (char**) pcpcc; 9178 pcpcc = (char const *const *) ppc; 9179 { /* SCO 3.2v4 cc rejects this. */ 9180 char *t; 9181 char const *s = 0 ? (char *) 0 : (char const *) 0; 9182 9183 *t++ = 0; 9184 if (s) return 0; 9185 } 9186 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 9187 int x[] = {25, 17}; 9188 const int *foo = &x[0]; 9189 ++foo; 9190 } 9191 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 9192 typedef const int *iptr; 9193 iptr p = 0; 9194 ++p; 9195 } 9196 { /* AIX XL C 1.02.0.0 rejects this saying 9197 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 9198 struct s { int j; const int *ap[3]; }; 9199 struct s *b; b->j = 5; 9200 } 9201 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 9202 const int foo = 10; 9203 if (!foo) return 0; 9204 } 9205 return !cs[0] && !zero.x; 9206#endif 9207 9208 ; 9209 return 0; 9210} 9211_ACEOF 9212if ac_fn_c_try_compile "$LINENO"; then : 9213 ac_cv_c_const=yes 9214else 9215 ac_cv_c_const=no 9216fi 9217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9218fi 9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 9220$as_echo "$ac_cv_c_const" >&6; } 9221if test $ac_cv_c_const = no; then 9222 9223$as_echo "#define const /**/" >>confdefs.h 9224 9225fi 9226 9227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 9228$as_echo_n "checking for working volatile... " >&6; } 9229if test "${ac_cv_c_volatile+set}" = set; then : 9230 $as_echo_n "(cached) " >&6 9231else 9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9233/* end confdefs.h. */ 9234 9235int 9236main () 9237{ 9238 9239volatile int x; 9240int * volatile y = (int *) 0; 9241return !x && !y; 9242 ; 9243 return 0; 9244} 9245_ACEOF 9246if ac_fn_c_try_compile "$LINENO"; then : 9247 ac_cv_c_volatile=yes 9248else 9249 ac_cv_c_volatile=no 9250fi 9251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9252fi 9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 9254$as_echo "$ac_cv_c_volatile" >&6; } 9255if test $ac_cv_c_volatile = no; then 9256 9257$as_echo "#define volatile /**/" >>confdefs.h 9258 9259fi 9260 9261ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 9262if test "x$ac_cv_type_mode_t" = x""yes; then : 9263 9264else 9265 9266cat >>confdefs.h <<_ACEOF 9267#define mode_t int 9268_ACEOF 9269 9270fi 9271 9272ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 9273if test "x$ac_cv_type_off_t" = x""yes; then : 9274 9275else 9276 9277cat >>confdefs.h <<_ACEOF 9278#define off_t long int 9279_ACEOF 9280 9281fi 9282 9283ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 9284if test "x$ac_cv_type_pid_t" = x""yes; then : 9285 9286else 9287 9288cat >>confdefs.h <<_ACEOF 9289#define pid_t int 9290_ACEOF 9291 9292fi 9293 9294ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 9295if test "x$ac_cv_type_size_t" = x""yes; then : 9296 9297else 9298 9299cat >>confdefs.h <<_ACEOF 9300#define size_t unsigned int 9301_ACEOF 9302 9303fi 9304 9305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 9306$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 9307if test "${ac_cv_type_uid_t+set}" = set; then : 9308 $as_echo_n "(cached) " >&6 9309else 9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311/* end confdefs.h. */ 9312#include <sys/types.h> 9313 9314_ACEOF 9315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9316 $EGREP "uid_t" >/dev/null 2>&1; then : 9317 ac_cv_type_uid_t=yes 9318else 9319 ac_cv_type_uid_t=no 9320fi 9321rm -f conftest* 9322 9323fi 9324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 9325$as_echo "$ac_cv_type_uid_t" >&6; } 9326if test $ac_cv_type_uid_t = no; then 9327 9328$as_echo "#define uid_t int" >>confdefs.h 9329 9330 9331$as_echo "#define gid_t int" >>confdefs.h 9332 9333fi 9334 9335ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 9336case $ac_cv_c_uint32_t in #( 9337 no|yes) ;; #( 9338 *) 9339 9340$as_echo "#define _UINT32_T 1" >>confdefs.h 9341 9342 9343cat >>confdefs.h <<_ACEOF 9344#define uint32_t $ac_cv_c_uint32_t 9345_ACEOF 9346;; 9347 esac 9348 9349 9350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 9351$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 9352if test "${ac_cv_header_time+set}" = set; then : 9353 $as_echo_n "(cached) " >&6 9354else 9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9356/* end confdefs.h. */ 9357#include <sys/types.h> 9358#include <sys/time.h> 9359#include <time.h> 9360 9361int 9362main () 9363{ 9364if ((struct tm *) 0) 9365return 0; 9366 ; 9367 return 0; 9368} 9369_ACEOF 9370if ac_fn_c_try_compile "$LINENO"; then : 9371 ac_cv_header_time=yes 9372else 9373 ac_cv_header_time=no 9374fi 9375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9376fi 9377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 9378$as_echo "$ac_cv_header_time" >&6; } 9379if test $ac_cv_header_time = yes; then 9380 9381$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 9382 9383fi 9384 9385ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 9386if test "x$ac_cv_type_ino_t" = x""yes; then : 9387 9388else 9389 9390cat >>confdefs.h <<_ACEOF 9391#define ino_t long 9392_ACEOF 9393 9394fi 9395 9396ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 9397if test "x$ac_cv_type_dev_t" = x""yes; then : 9398 9399else 9400 9401cat >>confdefs.h <<_ACEOF 9402#define dev_t unsigned 9403_ACEOF 9404 9405fi 9406 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 9408$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 9409if test "${ac_cv_c_bigendian+set}" = set; then : 9410 $as_echo_n "(cached) " >&6 9411else 9412 ac_cv_c_bigendian=unknown 9413 # See if we're dealing with a universal compiler. 9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9415/* end confdefs.h. */ 9416#ifndef __APPLE_CC__ 9417 not a universal capable compiler 9418 #endif 9419 typedef int dummy; 9420 9421_ACEOF 9422if ac_fn_c_try_compile "$LINENO"; then : 9423 9424 # Check for potential -arch flags. It is not universal unless 9425 # there are at least two -arch flags with different values. 9426 ac_arch= 9427 ac_prev= 9428 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 9429 if test -n "$ac_prev"; then 9430 case $ac_word in 9431 i?86 | x86_64 | ppc | ppc64) 9432 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 9433 ac_arch=$ac_word 9434 else 9435 ac_cv_c_bigendian=universal 9436 break 9437 fi 9438 ;; 9439 esac 9440 ac_prev= 9441 elif test "x$ac_word" = "x-arch"; then 9442 ac_prev=arch 9443 fi 9444 done 9445fi 9446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9447 if test $ac_cv_c_bigendian = unknown; then 9448 # See if sys/param.h defines the BYTE_ORDER macro. 9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9450/* end confdefs.h. */ 9451#include <sys/types.h> 9452 #include <sys/param.h> 9453 9454int 9455main () 9456{ 9457#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 9458 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 9459 && LITTLE_ENDIAN) 9460 bogus endian macros 9461 #endif 9462 9463 ; 9464 return 0; 9465} 9466_ACEOF 9467if ac_fn_c_try_compile "$LINENO"; then : 9468 # It does; now see whether it defined to BIG_ENDIAN or not. 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470/* end confdefs.h. */ 9471#include <sys/types.h> 9472 #include <sys/param.h> 9473 9474int 9475main () 9476{ 9477#if BYTE_ORDER != BIG_ENDIAN 9478 not big endian 9479 #endif 9480 9481 ; 9482 return 0; 9483} 9484_ACEOF 9485if ac_fn_c_try_compile "$LINENO"; then : 9486 ac_cv_c_bigendian=yes 9487else 9488 ac_cv_c_bigendian=no 9489fi 9490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9491fi 9492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9493 fi 9494 if test $ac_cv_c_bigendian = unknown; then 9495 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9497/* end confdefs.h. */ 9498#include <limits.h> 9499 9500int 9501main () 9502{ 9503#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 9504 bogus endian macros 9505 #endif 9506 9507 ; 9508 return 0; 9509} 9510_ACEOF 9511if ac_fn_c_try_compile "$LINENO"; then : 9512 # It does; now see whether it defined to _BIG_ENDIAN or not. 9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9514/* end confdefs.h. */ 9515#include <limits.h> 9516 9517int 9518main () 9519{ 9520#ifndef _BIG_ENDIAN 9521 not big endian 9522 #endif 9523 9524 ; 9525 return 0; 9526} 9527_ACEOF 9528if ac_fn_c_try_compile "$LINENO"; then : 9529 ac_cv_c_bigendian=yes 9530else 9531 ac_cv_c_bigendian=no 9532fi 9533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9534fi 9535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9536 fi 9537 if test $ac_cv_c_bigendian = unknown; then 9538 # Compile a test program. 9539 if test "$cross_compiling" = yes; then : 9540 # Try to guess by grepping values from an object file. 9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9542/* end confdefs.h. */ 9543short int ascii_mm[] = 9544 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9545 short int ascii_ii[] = 9546 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9547 int use_ascii (int i) { 9548 return ascii_mm[i] + ascii_ii[i]; 9549 } 9550 short int ebcdic_ii[] = 9551 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9552 short int ebcdic_mm[] = 9553 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9554 int use_ebcdic (int i) { 9555 return ebcdic_mm[i] + ebcdic_ii[i]; 9556 } 9557 extern int foo; 9558 9559int 9560main () 9561{ 9562return use_ascii (foo) == use_ebcdic (foo); 9563 ; 9564 return 0; 9565} 9566_ACEOF 9567if ac_fn_c_try_compile "$LINENO"; then : 9568 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 9569 ac_cv_c_bigendian=yes 9570 fi 9571 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9572 if test "$ac_cv_c_bigendian" = unknown; then 9573 ac_cv_c_bigendian=no 9574 else 9575 # finding both strings is unlikely to happen, but who knows? 9576 ac_cv_c_bigendian=unknown 9577 fi 9578 fi 9579fi 9580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9581else 9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9583/* end confdefs.h. */ 9584$ac_includes_default 9585int 9586main () 9587{ 9588 9589 /* Are we little or big endian? From Harbison&Steele. */ 9590 union 9591 { 9592 long int l; 9593 char c[sizeof (long int)]; 9594 } u; 9595 u.l = 1; 9596 return u.c[sizeof (long int) - 1] == 1; 9597 9598 ; 9599 return 0; 9600} 9601_ACEOF 9602if ac_fn_c_try_run "$LINENO"; then : 9603 ac_cv_c_bigendian=no 9604else 9605 ac_cv_c_bigendian=yes 9606fi 9607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9608 conftest.$ac_objext conftest.beam conftest.$ac_ext 9609fi 9610 9611 fi 9612fi 9613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9614$as_echo "$ac_cv_c_bigendian" >&6; } 9615 case $ac_cv_c_bigendian in #( 9616 yes) 9617 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9618;; #( 9619 no) 9620 ;; #( 9621 universal) 9622 9623$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9624 9625 ;; #( 9626 *) 9627 as_fn_error "unknown endianness 9628 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9629 esac 9630 9631 9632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 9633$as_echo_n "checking for rlim_t... " >&6; } 9634if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 9636$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 9637else 9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9639/* end confdefs.h. */ 9640 9641#include <sys/types.h> 9642#if STDC_HEADERS 9643# include <stdlib.h> 9644# include <stddef.h> 9645#endif 9646#ifdef HAVE_SYS_RESOURCE_H 9647# include <sys/resource.h> 9648#endif 9649 9650_ACEOF 9651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9652 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 9653 ac_cv_type_rlim_t=yes 9654else 9655 ac_cv_type_rlim_t=no 9656fi 9657rm -f conftest* 9658 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 9660$as_echo "$ac_cv_type_rlim_t" >&6; } 9661fi 9662if test $ac_cv_type_rlim_t = no; then 9663 cat >> confdefs.h <<\EOF 9664#define rlim_t unsigned long 9665EOF 9666fi 9667 9668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 9669$as_echo_n "checking for stack_t... " >&6; } 9670if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 9672$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 9673else 9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9675/* end confdefs.h. */ 9676 9677#include <sys/types.h> 9678#if STDC_HEADERS 9679# include <stdlib.h> 9680# include <stddef.h> 9681#endif 9682#include <signal.h> 9683 9684_ACEOF 9685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9686 $EGREP "stack_t" >/dev/null 2>&1; then : 9687 ac_cv_type_stack_t=yes 9688else 9689 ac_cv_type_stack_t=no 9690fi 9691rm -f conftest* 9692 9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 9694$as_echo "$ac_cv_type_stack_t" >&6; } 9695fi 9696if test $ac_cv_type_stack_t = no; then 9697 cat >> confdefs.h <<\EOF 9698#define stack_t struct sigaltstack 9699EOF 9700fi 9701 9702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 9703$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 9704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9705/* end confdefs.h. */ 9706 9707#include <sys/types.h> 9708#if STDC_HEADERS 9709# include <stdlib.h> 9710# include <stddef.h> 9711#endif 9712#include <signal.h> 9713#include "confdefs.h" 9714 9715int 9716main () 9717{ 9718stack_t sigstk; sigstk.ss_base = 0; 9719 ; 9720 return 0; 9721} 9722_ACEOF 9723if ac_fn_c_try_compile "$LINENO"; then : 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9725$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 9726 9727else 9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9729$as_echo "no" >&6; } 9730fi 9731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9732 9733olibs="$LIBS" 9734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 9735$as_echo_n "checking --with-tlib argument... " >&6; } 9736 9737# Check whether --with-tlib was given. 9738if test "${with_tlib+set}" = set; then : 9739 withval=$with_tlib; 9740fi 9741 9742if test -n "$with_tlib"; then 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 9744$as_echo "$with_tlib" >&6; } 9745 LIBS="$LIBS -l$with_tlib" 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 9747$as_echo_n "checking for linking with $with_tlib library... " >&6; } 9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9749/* end confdefs.h. */ 9750 9751int 9752main () 9753{ 9754 9755 ; 9756 return 0; 9757} 9758_ACEOF 9759if ac_fn_c_try_link "$LINENO"; then : 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 9761$as_echo "OK" >&6; } 9762else 9763 as_fn_error "FAILED" "$LINENO" 5 9764fi 9765rm -f core conftest.err conftest.$ac_objext \ 9766 conftest$ac_exeext conftest.$ac_ext 9767 olibs="$LIBS" 9768else 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 9770$as_echo "empty: automatic terminal library selection" >&6; } 9771 case "`uname -s 2>/dev/null`" in 9772 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; 9773 *) tlibs="ncurses termlib termcap curses";; 9774 esac 9775 for libname in $tlibs; do 9776 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 9777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 9778$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 9779if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : 9780 $as_echo_n "(cached) " >&6 9781else 9782 ac_check_lib_save_LIBS=$LIBS 9783LIBS="-l${libname} $LIBS" 9784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9785/* end confdefs.h. */ 9786 9787/* Override any GCC internal prototype to avoid an error. 9788 Use char because int might match the return type of a GCC 9789 builtin and then its argument prototype would still apply. */ 9790#ifdef __cplusplus 9791extern "C" 9792#endif 9793char tgetent (); 9794int 9795main () 9796{ 9797return tgetent (); 9798 ; 9799 return 0; 9800} 9801_ACEOF 9802if ac_fn_c_try_link "$LINENO"; then : 9803 eval "$as_ac_Lib=yes" 9804else 9805 eval "$as_ac_Lib=no" 9806fi 9807rm -f core conftest.err conftest.$ac_objext \ 9808 conftest$ac_exeext conftest.$ac_ext 9809LIBS=$ac_check_lib_save_LIBS 9810fi 9811eval ac_res=\$$as_ac_Lib 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9813$as_echo "$ac_res" >&6; } 9814eval as_val=\$$as_ac_Lib 9815 if test "x$as_val" = x""yes; then : 9816 cat >>confdefs.h <<_ACEOF 9817#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 9818_ACEOF 9819 9820 LIBS="-l${libname} $LIBS" 9821 9822fi 9823 9824 if test "x$olibs" != "x$LIBS"; then 9825 if test "$cross_compiling" = yes; then : 9826 res="FAIL" 9827else 9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9829/* end confdefs.h. */ 9830 9831#ifdef HAVE_TERMCAP_H 9832# include <termcap.h> 9833#endif 9834#if STDC_HEADERS 9835# include <stdlib.h> 9836# include <stddef.h> 9837#endif 9838main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 9839_ACEOF 9840if ac_fn_c_try_run "$LINENO"; then : 9841 res="OK" 9842else 9843 res="FAIL" 9844fi 9845rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9846 conftest.$ac_objext conftest.beam conftest.$ac_ext 9847fi 9848 9849 if test "$res" = "OK"; then 9850 break 9851 fi 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 9853$as_echo "$libname library is not usable" >&6; } 9854 LIBS="$olibs" 9855 fi 9856 done 9857 if test "x$olibs" = "x$LIBS"; then 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 9859$as_echo "no terminal library found" >&6; } 9860 fi 9861fi 9862 9863if test "x$olibs" = "x$LIBS"; then 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 9865$as_echo_n "checking for tgetent()... " >&6; } 9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9867/* end confdefs.h. */ 9868 9869int 9870main () 9871{ 9872char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 9873 ; 9874 return 0; 9875} 9876_ACEOF 9877if ac_fn_c_try_link "$LINENO"; then : 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9879$as_echo "yes" >&6; } 9880else 9881 as_fn_error "NOT FOUND! 9882 You need to install a terminal library; for example ncurses. 9883 Or specify the name of the library with --with-tlib." "$LINENO" 5 9884fi 9885rm -f core conftest.err conftest.$ac_objext \ 9886 conftest$ac_exeext conftest.$ac_ext 9887fi 9888 9889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 9890$as_echo_n "checking whether we talk terminfo... " >&6; } 9891if test "${vim_cv_terminfo+set}" = set; then : 9892 $as_echo_n "(cached) " >&6 9893else 9894 9895 if test "$cross_compiling" = yes; then : 9896 9897 as_fn_error "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 9898 9899else 9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9901/* end confdefs.h. */ 9902 9903#include "confdefs.h" 9904#ifdef HAVE_TERMCAP_H 9905# include <termcap.h> 9906#endif 9907#ifdef HAVE_STRING_H 9908# include <string.h> 9909#endif 9910#if STDC_HEADERS 9911# include <stdlib.h> 9912# include <stddef.h> 9913#endif 9914main() 9915{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 9916 9917_ACEOF 9918if ac_fn_c_try_run "$LINENO"; then : 9919 9920 vim_cv_terminfo=no 9921 9922else 9923 9924 vim_cv_terminfo=yes 9925 9926fi 9927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9928 conftest.$ac_objext conftest.beam conftest.$ac_ext 9929fi 9930 9931 9932fi 9933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 9934$as_echo "$vim_cv_terminfo" >&6; } 9935 9936if test "x$vim_cv_terminfo" = "xyes" ; then 9937 $as_echo "#define TERMINFO 1" >>confdefs.h 9938 9939fi 9940 9941if test "x$olibs" != "x$LIBS"; then 9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 9943$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 9944if test "${vim_cv_tgent+set}" = set; then : 9945 $as_echo_n "(cached) " >&6 9946else 9947 9948 if test "$cross_compiling" = yes; then : 9949 9950 as_fn_error "failed to compile test program." "$LINENO" 5 9951 9952else 9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9954/* end confdefs.h. */ 9955 9956#include "confdefs.h" 9957#ifdef HAVE_TERMCAP_H 9958# include <termcap.h> 9959#endif 9960#if STDC_HEADERS 9961# include <stdlib.h> 9962# include <stddef.h> 9963#endif 9964main() 9965{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 9966 9967_ACEOF 9968if ac_fn_c_try_run "$LINENO"; then : 9969 9970 vim_cv_tgent=zero 9971 9972else 9973 9974 vim_cv_tgent=non-zero 9975 9976fi 9977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9978 conftest.$ac_objext conftest.beam conftest.$ac_ext 9979fi 9980 9981 9982fi 9983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5 9984$as_echo "$vim_cv_tgent" >&6; } 9985 9986 if test "x$vim_cv_tgent" = "xzero" ; then 9987 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 9988 9989 fi 9990fi 9991 9992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 9993$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 9994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9995/* end confdefs.h. */ 9996 9997#ifdef HAVE_TERMCAP_H 9998# include <termcap.h> 9999#endif 10000 10001int 10002main () 10003{ 10004ospeed = 20000 10005 ; 10006 return 0; 10007} 10008_ACEOF 10009if ac_fn_c_try_link "$LINENO"; then : 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10011$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 10012 10013else 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10015$as_echo "no" >&6; } 10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 10017$as_echo_n "checking whether ospeed can be extern... " >&6; } 10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10019/* end confdefs.h. */ 10020 10021#ifdef HAVE_TERMCAP_H 10022# include <termcap.h> 10023#endif 10024extern short ospeed; 10025 10026int 10027main () 10028{ 10029ospeed = 20000 10030 ; 10031 return 0; 10032} 10033_ACEOF 10034if ac_fn_c_try_link "$LINENO"; then : 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10036$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 10037 10038else 10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10040$as_echo "no" >&6; } 10041fi 10042rm -f core conftest.err conftest.$ac_objext \ 10043 conftest$ac_exeext conftest.$ac_ext 10044 10045fi 10046rm -f core conftest.err conftest.$ac_objext \ 10047 conftest$ac_exeext conftest.$ac_ext 10048 10049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 10050$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 10051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10052/* end confdefs.h. */ 10053 10054#ifdef HAVE_TERMCAP_H 10055# include <termcap.h> 10056#endif 10057 10058int 10059main () 10060{ 10061if (UP == 0 && BC == 0) PC = 1 10062 ; 10063 return 0; 10064} 10065_ACEOF 10066if ac_fn_c_try_link "$LINENO"; then : 10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10068$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 10069 10070else 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10072$as_echo "no" >&6; } 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 10074$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10076/* end confdefs.h. */ 10077 10078#ifdef HAVE_TERMCAP_H 10079# include <termcap.h> 10080#endif 10081extern char *UP, *BC, PC; 10082 10083int 10084main () 10085{ 10086if (UP == 0 && BC == 0) PC = 1 10087 ; 10088 return 0; 10089} 10090_ACEOF 10091if ac_fn_c_try_link "$LINENO"; then : 10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10093$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 10094 10095else 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10097$as_echo "no" >&6; } 10098fi 10099rm -f core conftest.err conftest.$ac_objext \ 10100 conftest$ac_exeext conftest.$ac_ext 10101 10102fi 10103rm -f core conftest.err conftest.$ac_objext \ 10104 conftest$ac_exeext conftest.$ac_ext 10105 10106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 10107$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 10108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10109/* end confdefs.h. */ 10110 10111#ifdef HAVE_TERMCAP_H 10112# include <termcap.h> 10113#endif 10114 10115int 10116main () 10117{ 10118extern int xx(); tputs("test", 1, (outfuntype)xx) 10119 ; 10120 return 0; 10121} 10122_ACEOF 10123if ac_fn_c_try_compile "$LINENO"; then : 10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10125$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 10126 10127else 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10129$as_echo "no" >&6; } 10130fi 10131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10132 10133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 10134$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 10135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10136/* end confdefs.h. */ 10137 10138#include <sys/types.h> 10139#include <sys/time.h> 10140#include <sys/select.h> 10141int 10142main () 10143{ 10144 10145 ; 10146 return 0; 10147} 10148_ACEOF 10149if ac_fn_c_try_compile "$LINENO"; then : 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10151$as_echo "yes" >&6; } 10152 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 10153 10154else 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10156$as_echo "no" >&6; } 10157fi 10158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10159 10160 10161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 10162$as_echo_n "checking for /dev/ptc... " >&6; } 10163if test -r /dev/ptc; then 10164 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 10165 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10167$as_echo "yes" >&6; } 10168else 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10170$as_echo "no" >&6; } 10171fi 10172 10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 10174$as_echo_n "checking for SVR4 ptys... " >&6; } 10175if test -c /dev/ptmx ; then 10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10177/* end confdefs.h. */ 10178 10179int 10180main () 10181{ 10182ptsname(0);grantpt(0);unlockpt(0); 10183 ; 10184 return 0; 10185} 10186_ACEOF 10187if ac_fn_c_try_link "$LINENO"; then : 10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10189$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 10190 10191else 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10193$as_echo "no" >&6; } 10194fi 10195rm -f core conftest.err conftest.$ac_objext \ 10196 conftest$ac_exeext conftest.$ac_ext 10197else 10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10199$as_echo "no" >&6; } 10200fi 10201 10202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 10203$as_echo_n "checking for ptyranges... " >&6; } 10204if test -d /dev/ptym ; then 10205 pdir='/dev/ptym' 10206else 10207 pdir='/dev' 10208fi 10209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10210/* end confdefs.h. */ 10211#ifdef M_UNIX 10212 yes; 10213#endif 10214 10215_ACEOF 10216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10217 $EGREP "yes" >/dev/null 2>&1; then : 10218 ptys=`echo /dev/ptyp??` 10219else 10220 ptys=`echo $pdir/pty??` 10221fi 10222rm -f conftest* 10223 10224if test "$ptys" != "$pdir/pty??" ; then 10225 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 10226 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 10227 cat >>confdefs.h <<_ACEOF 10228#define PTYRANGE0 "$p0" 10229_ACEOF 10230 10231 cat >>confdefs.h <<_ACEOF 10232#define PTYRANGE1 "$p1" 10233_ACEOF 10234 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 10236$as_echo "$p0 / $p1" >&6; } 10237else 10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 10239$as_echo "don't know" >&6; } 10240fi 10241 10242rm -f conftest_grp 10243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 10244$as_echo_n "checking default tty permissions/group... " >&6; } 10245if test "${vim_cv_tty_group+set}" = set; then : 10246 $as_echo_n "(cached) " >&6 10247else 10248 10249 if test "$cross_compiling" = yes; then : 10250 10251 as_fn_error "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 10252 10253else 10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10255/* end confdefs.h. */ 10256 10257#include "confdefs.h" 10258#include <sys/types.h> 10259#if STDC_HEADERS 10260# include <stdlib.h> 10261# include <stddef.h> 10262#endif 10263#ifdef HAVE_UNISTD_H 10264#include <unistd.h> 10265#endif 10266#include <sys/stat.h> 10267#include <stdio.h> 10268main() 10269{ 10270 struct stat sb; 10271 char *x,*ttyname(); 10272 int om, m; 10273 FILE *fp; 10274 10275 if (!(x = ttyname(0))) exit(1); 10276 if (stat(x, &sb)) exit(1); 10277 om = sb.st_mode; 10278 if (om & 002) exit(0); 10279 m = system("mesg y"); 10280 if (m == -1 || m == 127) exit(1); 10281 if (stat(x, &sb)) exit(1); 10282 m = sb.st_mode; 10283 if (chmod(x, om)) exit(1); 10284 if (m & 002) exit(0); 10285 if (sb.st_gid == getgid()) exit(1); 10286 if (!(fp=fopen("conftest_grp", "w"))) 10287 exit(1); 10288 fprintf(fp, "%d\n", sb.st_gid); 10289 fclose(fp); 10290 exit(0); 10291} 10292 10293_ACEOF 10294if ac_fn_c_try_run "$LINENO"; then : 10295 10296 if test -f conftest_grp; then 10297 vim_cv_tty_group=`cat conftest_grp` 10298 if test "x$vim_cv_tty_mode" = "x" ; then 10299 vim_cv_tty_mode=0620 10300 fi 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 10302$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 10303 else 10304 vim_cv_tty_group=world 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 10306$as_echo "ptys are world accessible" >&6; } 10307 fi 10308 10309else 10310 10311 vim_cv_tty_group=world 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 10313$as_echo "can't determine - assume ptys are world accessible" >&6; } 10314 10315fi 10316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10317 conftest.$ac_objext conftest.beam conftest.$ac_ext 10318fi 10319 10320 10321fi 10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 10323$as_echo "$vim_cv_tty_group" >&6; } 10324rm -f conftest_grp 10325 10326if test "x$vim_cv_tty_group" != "xworld" ; then 10327 cat >>confdefs.h <<_ACEOF 10328#define PTYGROUP $vim_cv_tty_group 10329_ACEOF 10330 10331 if test "x$vim_cv_tty_mode" = "x" ; then 10332 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 (propably 0620)" "$LINENO" 5 10333 else 10334 $as_echo "#define PTYMODE 0620" >>confdefs.h 10335 10336 fi 10337fi 10338 10339 10340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 10341$as_echo_n "checking return type of signal handlers... " >&6; } 10342if test "${ac_cv_type_signal+set}" = set; then : 10343 $as_echo_n "(cached) " >&6 10344else 10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10346/* end confdefs.h. */ 10347#include <sys/types.h> 10348#include <signal.h> 10349 10350int 10351main () 10352{ 10353return *(signal (0, 0)) (0) == 1; 10354 ; 10355 return 0; 10356} 10357_ACEOF 10358if ac_fn_c_try_compile "$LINENO"; then : 10359 ac_cv_type_signal=int 10360else 10361 ac_cv_type_signal=void 10362fi 10363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10364fi 10365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 10366$as_echo "$ac_cv_type_signal" >&6; } 10367 10368cat >>confdefs.h <<_ACEOF 10369#define RETSIGTYPE $ac_cv_type_signal 10370_ACEOF 10371 10372 10373 10374if test $ac_cv_type_signal = void; then 10375 $as_echo "#define SIGRETURN return" >>confdefs.h 10376 10377else 10378 $as_echo "#define SIGRETURN return 0" >>confdefs.h 10379 10380fi 10381 10382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 10383$as_echo_n "checking for struct sigcontext... " >&6; } 10384cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10385/* end confdefs.h. */ 10386 10387#include <signal.h> 10388test_sig() 10389{ 10390 struct sigcontext *scont; 10391 scont = (struct sigcontext *)0; 10392 return 1; 10393} 10394int 10395main () 10396{ 10397 10398 ; 10399 return 0; 10400} 10401_ACEOF 10402if ac_fn_c_try_compile "$LINENO"; then : 10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10404$as_echo "yes" >&6; } 10405 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 10406 10407else 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10409$as_echo "no" >&6; } 10410fi 10411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10412 10413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 10414$as_echo_n "checking getcwd implementation is broken... " >&6; } 10415if test "${vim_cv_getcwd_broken+set}" = set; then : 10416 $as_echo_n "(cached) " >&6 10417else 10418 10419 if test "$cross_compiling" = yes; then : 10420 10421 as_fn_error "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 10422 10423else 10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10425/* end confdefs.h. */ 10426 10427#include "confdefs.h" 10428#ifdef HAVE_UNISTD_H 10429#include <unistd.h> 10430#endif 10431char *dagger[] = { "IFS=pwd", 0 }; 10432main() 10433{ 10434 char buffer[500]; 10435 extern char **environ; 10436 environ = dagger; 10437 return getcwd(buffer, 500) ? 0 : 1; 10438} 10439 10440_ACEOF 10441if ac_fn_c_try_run "$LINENO"; then : 10442 10443 vim_cv_getcwd_broken=no 10444 10445else 10446 10447 vim_cv_getcwd_broken=yes 10448 10449fi 10450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10451 conftest.$ac_objext conftest.beam conftest.$ac_ext 10452fi 10453 10454 10455fi 10456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 10457$as_echo "$vim_cv_getcwd_broken" >&6; } 10458 10459if test "x$vim_cv_getcwd_broken" = "xyes" ; then 10460 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 10461 10462fi 10463 10464for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \ 10465 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ 10466 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 10467 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 10468 sigvec strcasecmp strerror strftime stricmp strncasecmp \ 10469 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 10470 usleep utime utimes 10471do : 10472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10473ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10474eval as_val=\$$as_ac_var 10475 if test "x$as_val" = x""yes; then : 10476 cat >>confdefs.h <<_ACEOF 10477#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10478_ACEOF 10479 10480fi 10481done 10482 10483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 10484$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 10485if test "${ac_cv_sys_largefile_source+set}" = set; then : 10486 $as_echo_n "(cached) " >&6 10487else 10488 while :; do 10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10490/* end confdefs.h. */ 10491#include <sys/types.h> /* for off_t */ 10492 #include <stdio.h> 10493int 10494main () 10495{ 10496int (*fp) (FILE *, off_t, int) = fseeko; 10497 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 10498 ; 10499 return 0; 10500} 10501_ACEOF 10502if ac_fn_c_try_link "$LINENO"; then : 10503 ac_cv_sys_largefile_source=no; break 10504fi 10505rm -f core conftest.err conftest.$ac_objext \ 10506 conftest$ac_exeext conftest.$ac_ext 10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10508/* end confdefs.h. */ 10509#define _LARGEFILE_SOURCE 1 10510#include <sys/types.h> /* for off_t */ 10511 #include <stdio.h> 10512int 10513main () 10514{ 10515int (*fp) (FILE *, off_t, int) = fseeko; 10516 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 10517 ; 10518 return 0; 10519} 10520_ACEOF 10521if ac_fn_c_try_link "$LINENO"; then : 10522 ac_cv_sys_largefile_source=1; break 10523fi 10524rm -f core conftest.err conftest.$ac_objext \ 10525 conftest$ac_exeext conftest.$ac_ext 10526 ac_cv_sys_largefile_source=unknown 10527 break 10528done 10529fi 10530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 10531$as_echo "$ac_cv_sys_largefile_source" >&6; } 10532case $ac_cv_sys_largefile_source in #( 10533 no | unknown) ;; 10534 *) 10535cat >>confdefs.h <<_ACEOF 10536#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 10537_ACEOF 10538;; 10539esac 10540rm -rf conftest* 10541 10542# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 10543# in glibc 2.1.3, but that breaks too many other things. 10544# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 10545if test $ac_cv_sys_largefile_source != unknown; then 10546 10547$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 10548 10549fi 10550 10551 10552# Check whether --enable-largefile was given. 10553if test "${enable_largefile+set}" = set; then : 10554 enableval=$enable_largefile; 10555fi 10556 10557if test "$enable_largefile" != no; then 10558 10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 10560$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10561if test "${ac_cv_sys_largefile_CC+set}" = set; then : 10562 $as_echo_n "(cached) " >&6 10563else 10564 ac_cv_sys_largefile_CC=no 10565 if test "$GCC" != yes; then 10566 ac_save_CC=$CC 10567 while :; do 10568 # IRIX 6.2 and later do not support large files by default, 10569 # so use the C compiler's -n32 option if that helps. 10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10571/* end confdefs.h. */ 10572#include <sys/types.h> 10573 /* Check that off_t can represent 2**63 - 1 correctly. 10574 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10575 since some C++ compilers masquerading as C compilers 10576 incorrectly reject 9223372036854775807. */ 10577#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10579 && LARGE_OFF_T % 2147483647 == 1) 10580 ? 1 : -1]; 10581int 10582main () 10583{ 10584 10585 ; 10586 return 0; 10587} 10588_ACEOF 10589 if ac_fn_c_try_compile "$LINENO"; then : 10590 break 10591fi 10592rm -f core conftest.err conftest.$ac_objext 10593 CC="$CC -n32" 10594 if ac_fn_c_try_compile "$LINENO"; then : 10595 ac_cv_sys_largefile_CC=' -n32'; break 10596fi 10597rm -f core conftest.err conftest.$ac_objext 10598 break 10599 done 10600 CC=$ac_save_CC 10601 rm -f conftest.$ac_ext 10602 fi 10603fi 10604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 10605$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10606 if test "$ac_cv_sys_largefile_CC" != no; then 10607 CC=$CC$ac_cv_sys_largefile_CC 10608 fi 10609 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10611$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10612if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 10613 $as_echo_n "(cached) " >&6 10614else 10615 while :; do 10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10617/* end confdefs.h. */ 10618#include <sys/types.h> 10619 /* Check that off_t can represent 2**63 - 1 correctly. 10620 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10621 since some C++ compilers masquerading as C compilers 10622 incorrectly reject 9223372036854775807. */ 10623#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10625 && LARGE_OFF_T % 2147483647 == 1) 10626 ? 1 : -1]; 10627int 10628main () 10629{ 10630 10631 ; 10632 return 0; 10633} 10634_ACEOF 10635if ac_fn_c_try_compile "$LINENO"; then : 10636 ac_cv_sys_file_offset_bits=no; break 10637fi 10638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10640/* end confdefs.h. */ 10641#define _FILE_OFFSET_BITS 64 10642#include <sys/types.h> 10643 /* Check that off_t can represent 2**63 - 1 correctly. 10644 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10645 since some C++ compilers masquerading as C compilers 10646 incorrectly reject 9223372036854775807. */ 10647#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10649 && LARGE_OFF_T % 2147483647 == 1) 10650 ? 1 : -1]; 10651int 10652main () 10653{ 10654 10655 ; 10656 return 0; 10657} 10658_ACEOF 10659if ac_fn_c_try_compile "$LINENO"; then : 10660 ac_cv_sys_file_offset_bits=64; break 10661fi 10662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10663 ac_cv_sys_file_offset_bits=unknown 10664 break 10665done 10666fi 10667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 10668$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10669case $ac_cv_sys_file_offset_bits in #( 10670 no | unknown) ;; 10671 *) 10672cat >>confdefs.h <<_ACEOF 10673#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10674_ACEOF 10675;; 10676esac 10677rm -rf conftest* 10678 if test $ac_cv_sys_file_offset_bits = unknown; then 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 10680$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10681if test "${ac_cv_sys_large_files+set}" = set; then : 10682 $as_echo_n "(cached) " >&6 10683else 10684 while :; do 10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10686/* end confdefs.h. */ 10687#include <sys/types.h> 10688 /* Check that off_t can represent 2**63 - 1 correctly. 10689 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10690 since some C++ compilers masquerading as C compilers 10691 incorrectly reject 9223372036854775807. */ 10692#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10694 && LARGE_OFF_T % 2147483647 == 1) 10695 ? 1 : -1]; 10696int 10697main () 10698{ 10699 10700 ; 10701 return 0; 10702} 10703_ACEOF 10704if ac_fn_c_try_compile "$LINENO"; then : 10705 ac_cv_sys_large_files=no; break 10706fi 10707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10709/* end confdefs.h. */ 10710#define _LARGE_FILES 1 10711#include <sys/types.h> 10712 /* Check that off_t can represent 2**63 - 1 correctly. 10713 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10714 since some C++ compilers masquerading as C compilers 10715 incorrectly reject 9223372036854775807. */ 10716#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10718 && LARGE_OFF_T % 2147483647 == 1) 10719 ? 1 : -1]; 10720int 10721main () 10722{ 10723 10724 ; 10725 return 0; 10726} 10727_ACEOF 10728if ac_fn_c_try_compile "$LINENO"; then : 10729 ac_cv_sys_large_files=1; break 10730fi 10731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10732 ac_cv_sys_large_files=unknown 10733 break 10734done 10735fi 10736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 10737$as_echo "$ac_cv_sys_large_files" >&6; } 10738case $ac_cv_sys_large_files in #( 10739 no | unknown) ;; 10740 *) 10741cat >>confdefs.h <<_ACEOF 10742#define _LARGE_FILES $ac_cv_sys_large_files 10743_ACEOF 10744;; 10745esac 10746rm -rf conftest* 10747 fi 10748fi 10749 10750 10751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 10752$as_echo_n "checking for st_blksize... " >&6; } 10753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10754/* end confdefs.h. */ 10755#include <sys/types.h> 10756#include <sys/stat.h> 10757int 10758main () 10759{ 10760 struct stat st; 10761 int n; 10762 10763 stat("/", &st); 10764 n = (int)st.st_blksize; 10765 ; 10766 return 0; 10767} 10768_ACEOF 10769if ac_fn_c_try_compile "$LINENO"; then : 10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10771$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 10772 10773else 10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10775$as_echo "no" >&6; } 10776fi 10777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10778 10779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 10780$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 10781if test "${vim_cv_stat_ignores_slash+set}" = set; then : 10782 $as_echo_n "(cached) " >&6 10783else 10784 10785 if test "$cross_compiling" = yes; then : 10786 10787 as_fn_error "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 10788 10789else 10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10791/* end confdefs.h. */ 10792 10793#include "confdefs.h" 10794#if STDC_HEADERS 10795# include <stdlib.h> 10796# include <stddef.h> 10797#endif 10798#include <sys/types.h> 10799#include <sys/stat.h> 10800main() {struct stat st; exit(stat("configure/", &st) != 0); } 10801 10802_ACEOF 10803if ac_fn_c_try_run "$LINENO"; then : 10804 10805 vim_cv_stat_ignores_slash=yes 10806 10807else 10808 10809 vim_cv_stat_ignores_slash=no 10810 10811fi 10812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10813 conftest.$ac_objext conftest.beam conftest.$ac_ext 10814fi 10815 10816 10817fi 10818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 10819$as_echo "$vim_cv_stat_ignores_slash" >&6; } 10820 10821if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 10822 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 10823 10824fi 10825 10826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 10827$as_echo_n "checking for iconv_open()... " >&6; } 10828save_LIBS="$LIBS" 10829LIBS="$LIBS -liconv" 10830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10831/* end confdefs.h. */ 10832 10833#ifdef HAVE_ICONV_H 10834# include <iconv.h> 10835#endif 10836 10837int 10838main () 10839{ 10840iconv_open("fr", "to"); 10841 ; 10842 return 0; 10843} 10844_ACEOF 10845if ac_fn_c_try_link "$LINENO"; then : 10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 10847$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 10848 10849else 10850 LIBS="$save_LIBS" 10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10852/* end confdefs.h. */ 10853 10854#ifdef HAVE_ICONV_H 10855# include <iconv.h> 10856#endif 10857 10858int 10859main () 10860{ 10861iconv_open("fr", "to"); 10862 ; 10863 return 0; 10864} 10865_ACEOF 10866if ac_fn_c_try_link "$LINENO"; then : 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10868$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 10869 10870else 10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10872$as_echo "no" >&6; } 10873fi 10874rm -f core conftest.err conftest.$ac_objext \ 10875 conftest$ac_exeext conftest.$ac_ext 10876fi 10877rm -f core conftest.err conftest.$ac_objext \ 10878 conftest$ac_exeext conftest.$ac_ext 10879 10880 10881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 10882$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 10883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10884/* end confdefs.h. */ 10885 10886#ifdef HAVE_LANGINFO_H 10887# include <langinfo.h> 10888#endif 10889 10890int 10891main () 10892{ 10893char *cs = nl_langinfo(CODESET); 10894 ; 10895 return 0; 10896} 10897_ACEOF 10898if ac_fn_c_try_link "$LINENO"; then : 10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10900$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 10901 10902else 10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10904$as_echo "no" >&6; } 10905fi 10906rm -f core conftest.err conftest.$ac_objext \ 10907 conftest$ac_exeext conftest.$ac_ext 10908 10909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 10910$as_echo_n "checking for strtod in -lm... " >&6; } 10911if test "${ac_cv_lib_m_strtod+set}" = set; then : 10912 $as_echo_n "(cached) " >&6 10913else 10914 ac_check_lib_save_LIBS=$LIBS 10915LIBS="-lm $LIBS" 10916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10917/* end confdefs.h. */ 10918 10919/* Override any GCC internal prototype to avoid an error. 10920 Use char because int might match the return type of a GCC 10921 builtin and then its argument prototype would still apply. */ 10922#ifdef __cplusplus 10923extern "C" 10924#endif 10925char strtod (); 10926int 10927main () 10928{ 10929return strtod (); 10930 ; 10931 return 0; 10932} 10933_ACEOF 10934if ac_fn_c_try_link "$LINENO"; then : 10935 ac_cv_lib_m_strtod=yes 10936else 10937 ac_cv_lib_m_strtod=no 10938fi 10939rm -f core conftest.err conftest.$ac_objext \ 10940 conftest$ac_exeext conftest.$ac_ext 10941LIBS=$ac_check_lib_save_LIBS 10942fi 10943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 10944$as_echo "$ac_cv_lib_m_strtod" >&6; } 10945if test "x$ac_cv_lib_m_strtod" = x""yes; then : 10946 cat >>confdefs.h <<_ACEOF 10947#define HAVE_LIBM 1 10948_ACEOF 10949 10950 LIBS="-lm $LIBS" 10951 10952fi 10953 10954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 10955$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 10956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10957/* end confdefs.h. */ 10958 10959#ifdef HAVE_MATH_H 10960# include <math.h> 10961#endif 10962#if STDC_HEADERS 10963# include <stdlib.h> 10964# include <stddef.h> 10965#endif 10966 10967int 10968main () 10969{ 10970char *s; double d; 10971 d = strtod("1.1", &s); 10972 d = fabs(1.11); 10973 d = ceil(1.11); 10974 d = floor(1.11); 10975 d = log10(1.11); 10976 d = pow(1.11, 2.22); 10977 d = sqrt(1.11); 10978 d = sin(1.11); 10979 d = cos(1.11); 10980 d = atan(1.11); 10981 10982 ; 10983 return 0; 10984} 10985_ACEOF 10986if ac_fn_c_try_link "$LINENO"; then : 10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10988$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 10989 10990else 10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10992$as_echo "no" >&6; } 10993fi 10994rm -f core conftest.err conftest.$ac_objext \ 10995 conftest$ac_exeext conftest.$ac_ext 10996 10997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 10998$as_echo_n "checking --disable-acl argument... " >&6; } 10999# Check whether --enable-acl was given. 11000if test "${enable_acl+set}" = set; then : 11001 enableval=$enable_acl; 11002else 11003 enable_acl="yes" 11004fi 11005 11006if test "$enable_acl" = "yes"; then 11007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11008$as_echo "no" >&6; } 11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 11010$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 11011if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then : 11012 $as_echo_n "(cached) " >&6 11013else 11014 ac_check_lib_save_LIBS=$LIBS 11015LIBS="-lposix1e $LIBS" 11016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11017/* end confdefs.h. */ 11018 11019/* Override any GCC internal prototype to avoid an error. 11020 Use char because int might match the return type of a GCC 11021 builtin and then its argument prototype would still apply. */ 11022#ifdef __cplusplus 11023extern "C" 11024#endif 11025char acl_get_file (); 11026int 11027main () 11028{ 11029return acl_get_file (); 11030 ; 11031 return 0; 11032} 11033_ACEOF 11034if ac_fn_c_try_link "$LINENO"; then : 11035 ac_cv_lib_posix1e_acl_get_file=yes 11036else 11037 ac_cv_lib_posix1e_acl_get_file=no 11038fi 11039rm -f core conftest.err conftest.$ac_objext \ 11040 conftest$ac_exeext conftest.$ac_ext 11041LIBS=$ac_check_lib_save_LIBS 11042fi 11043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 11044$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 11045if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then : 11046 LIBS="$LIBS -lposix1e" 11047else 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 11049$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 11050if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then : 11051 $as_echo_n "(cached) " >&6 11052else 11053 ac_check_lib_save_LIBS=$LIBS 11054LIBS="-lacl $LIBS" 11055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11056/* end confdefs.h. */ 11057 11058/* Override any GCC internal prototype to avoid an error. 11059 Use char because int might match the return type of a GCC 11060 builtin and then its argument prototype would still apply. */ 11061#ifdef __cplusplus 11062extern "C" 11063#endif 11064char acl_get_file (); 11065int 11066main () 11067{ 11068return acl_get_file (); 11069 ; 11070 return 0; 11071} 11072_ACEOF 11073if ac_fn_c_try_link "$LINENO"; then : 11074 ac_cv_lib_acl_acl_get_file=yes 11075else 11076 ac_cv_lib_acl_acl_get_file=no 11077fi 11078rm -f core conftest.err conftest.$ac_objext \ 11079 conftest$ac_exeext conftest.$ac_ext 11080LIBS=$ac_check_lib_save_LIBS 11081fi 11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 11083$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 11084if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then : 11085 LIBS="$LIBS -lacl" 11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 11087$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 11088if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then : 11089 $as_echo_n "(cached) " >&6 11090else 11091 ac_check_lib_save_LIBS=$LIBS 11092LIBS="-lattr $LIBS" 11093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11094/* end confdefs.h. */ 11095 11096/* Override any GCC internal prototype to avoid an error. 11097 Use char because int might match the return type of a GCC 11098 builtin and then its argument prototype would still apply. */ 11099#ifdef __cplusplus 11100extern "C" 11101#endif 11102char fgetxattr (); 11103int 11104main () 11105{ 11106return fgetxattr (); 11107 ; 11108 return 0; 11109} 11110_ACEOF 11111if ac_fn_c_try_link "$LINENO"; then : 11112 ac_cv_lib_attr_fgetxattr=yes 11113else 11114 ac_cv_lib_attr_fgetxattr=no 11115fi 11116rm -f core conftest.err conftest.$ac_objext \ 11117 conftest$ac_exeext conftest.$ac_ext 11118LIBS=$ac_check_lib_save_LIBS 11119fi 11120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 11121$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 11122if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then : 11123 LIBS="$LIBS -lattr" 11124fi 11125 11126fi 11127 11128fi 11129 11130 11131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 11132$as_echo_n "checking for POSIX ACL support... " >&6; } 11133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11134/* end confdefs.h. */ 11135 11136#include <sys/types.h> 11137#ifdef HAVE_SYS_ACL_H 11138# include <sys/acl.h> 11139#endif 11140acl_t acl; 11141int 11142main () 11143{ 11144acl = acl_get_file("foo", ACL_TYPE_ACCESS); 11145 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 11146 acl_free(acl); 11147 ; 11148 return 0; 11149} 11150_ACEOF 11151if ac_fn_c_try_link "$LINENO"; then : 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11153$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 11154 11155else 11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11157$as_echo "no" >&6; } 11158fi 11159rm -f core conftest.err conftest.$ac_objext \ 11160 conftest$ac_exeext conftest.$ac_ext 11161 11162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 11163$as_echo_n "checking for Solaris ACL support... " >&6; } 11164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11165/* end confdefs.h. */ 11166 11167#ifdef HAVE_SYS_ACL_H 11168# include <sys/acl.h> 11169#endif 11170int 11171main () 11172{ 11173acl("foo", GETACLCNT, 0, NULL); 11174 11175 ; 11176 return 0; 11177} 11178_ACEOF 11179if ac_fn_c_try_link "$LINENO"; then : 11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11181$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 11182 11183else 11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11185$as_echo "no" >&6; } 11186fi 11187rm -f core conftest.err conftest.$ac_objext \ 11188 conftest$ac_exeext conftest.$ac_ext 11189 11190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 11191$as_echo_n "checking for AIX ACL support... " >&6; } 11192cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11193/* end confdefs.h. */ 11194 11195#if STDC_HEADERS 11196# include <stdlib.h> 11197# include <stddef.h> 11198#endif 11199#ifdef HAVE_SYS_ACL_H 11200# include <sys/acl.h> 11201#endif 11202#ifdef HAVE_SYS_ACCESS_H 11203# include <sys/access.h> 11204#endif 11205#define _ALL_SOURCE 11206 11207#include <sys/stat.h> 11208 11209int aclsize; 11210struct acl *aclent; 11211int 11212main () 11213{ 11214aclsize = sizeof(struct acl); 11215 aclent = (void *)malloc(aclsize); 11216 statacl("foo", STX_NORMAL, aclent, aclsize); 11217 11218 ; 11219 return 0; 11220} 11221_ACEOF 11222if ac_fn_c_try_link "$LINENO"; then : 11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11224$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 11225 11226else 11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11228$as_echo "no" >&6; } 11229fi 11230rm -f core conftest.err conftest.$ac_objext \ 11231 conftest$ac_exeext conftest.$ac_ext 11232else 11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11234$as_echo "yes" >&6; } 11235fi 11236 11237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 11238$as_echo_n "checking --disable-gpm argument... " >&6; } 11239# Check whether --enable-gpm was given. 11240if test "${enable_gpm+set}" = set; then : 11241 enableval=$enable_gpm; 11242else 11243 enable_gpm="yes" 11244fi 11245 11246 11247if test "$enable_gpm" = "yes"; then 11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11249$as_echo "no" >&6; } 11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 11251$as_echo_n "checking for gpm... " >&6; } 11252if test "${vi_cv_have_gpm+set}" = set; then : 11253 $as_echo_n "(cached) " >&6 11254else 11255 olibs="$LIBS" ; LIBS="-lgpm" 11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11257/* end confdefs.h. */ 11258#include <gpm.h> 11259 #include <linux/keyboard.h> 11260int 11261main () 11262{ 11263Gpm_GetLibVersion(NULL); 11264 ; 11265 return 0; 11266} 11267_ACEOF 11268if ac_fn_c_try_link "$LINENO"; then : 11269 vi_cv_have_gpm=yes 11270else 11271 vi_cv_have_gpm=no 11272fi 11273rm -f core conftest.err conftest.$ac_objext \ 11274 conftest$ac_exeext conftest.$ac_ext 11275 LIBS="$olibs" 11276 11277fi 11278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 11279$as_echo "$vi_cv_have_gpm" >&6; } 11280 if test $vi_cv_have_gpm = yes; then 11281 LIBS="$LIBS -lgpm" 11282 $as_echo "#define HAVE_GPM 1" >>confdefs.h 11283 11284 fi 11285else 11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11287$as_echo "yes" >&6; } 11288fi 11289 11290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 11291$as_echo_n "checking --disable-sysmouse argument... " >&6; } 11292# Check whether --enable-sysmouse was given. 11293if test "${enable_sysmouse+set}" = set; then : 11294 enableval=$enable_sysmouse; 11295else 11296 enable_sysmouse="yes" 11297fi 11298 11299 11300if test "$enable_sysmouse" = "yes"; then 11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11302$as_echo "no" >&6; } 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 11304$as_echo_n "checking for sysmouse... " >&6; } 11305if test "${vi_cv_have_sysmouse+set}" = set; then : 11306 $as_echo_n "(cached) " >&6 11307else 11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11309/* end confdefs.h. */ 11310#include <sys/consio.h> 11311 #include <signal.h> 11312 #include <sys/fbio.h> 11313int 11314main () 11315{ 11316struct mouse_info mouse; 11317 mouse.operation = MOUSE_MODE; 11318 mouse.operation = MOUSE_SHOW; 11319 mouse.u.mode.mode = 0; 11320 mouse.u.mode.signal = SIGUSR2; 11321 ; 11322 return 0; 11323} 11324_ACEOF 11325if ac_fn_c_try_link "$LINENO"; then : 11326 vi_cv_have_sysmouse=yes 11327else 11328 vi_cv_have_sysmouse=no 11329fi 11330rm -f core conftest.err conftest.$ac_objext \ 11331 conftest$ac_exeext conftest.$ac_ext 11332 11333fi 11334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 11335$as_echo "$vi_cv_have_sysmouse" >&6; } 11336 if test $vi_cv_have_sysmouse = yes; then 11337 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 11338 11339 fi 11340else 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11342$as_echo "yes" >&6; } 11343fi 11344 11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 11346$as_echo_n "checking for FD_CLOEXEC... " >&6; } 11347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11348/* end confdefs.h. */ 11349#if HAVE_FCNTL_H 11350# include <fcntl.h> 11351#endif 11352int 11353main () 11354{ 11355 int flag = FD_CLOEXEC; 11356 ; 11357 return 0; 11358} 11359_ACEOF 11360if ac_fn_c_try_compile "$LINENO"; then : 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11362$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 11363 11364else 11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 11366$as_echo "not usable" >&6; } 11367fi 11368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11369 11370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 11371$as_echo_n "checking for rename... " >&6; } 11372cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11373/* end confdefs.h. */ 11374#include <stdio.h> 11375int 11376main () 11377{ 11378rename("this", "that") 11379 ; 11380 return 0; 11381} 11382_ACEOF 11383if ac_fn_c_try_link "$LINENO"; then : 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11385$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 11386 11387else 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11389$as_echo "no" >&6; } 11390fi 11391rm -f core conftest.err conftest.$ac_objext \ 11392 conftest$ac_exeext conftest.$ac_ext 11393 11394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 11395$as_echo_n "checking for sysctl... " >&6; } 11396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11397/* end confdefs.h. */ 11398#include <sys/types.h> 11399#include <sys/sysctl.h> 11400int 11401main () 11402{ 11403 int mib[2], r; 11404 size_t len; 11405 11406 mib[0] = CTL_HW; 11407 mib[1] = HW_USERMEM; 11408 len = sizeof(r); 11409 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 11410 11411 ; 11412 return 0; 11413} 11414_ACEOF 11415if ac_fn_c_try_compile "$LINENO"; then : 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11417$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 11418 11419else 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 11421$as_echo "not usable" >&6; } 11422fi 11423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11424 11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 11426$as_echo_n "checking for sysinfo... " >&6; } 11427cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11428/* end confdefs.h. */ 11429#include <sys/types.h> 11430#include <sys/sysinfo.h> 11431int 11432main () 11433{ 11434 struct sysinfo sinfo; 11435 int t; 11436 11437 (void)sysinfo(&sinfo); 11438 t = sinfo.totalram; 11439 11440 ; 11441 return 0; 11442} 11443_ACEOF 11444if ac_fn_c_try_compile "$LINENO"; then : 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11446$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 11447 11448else 11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 11450$as_echo "not usable" >&6; } 11451fi 11452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11453 11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 11455$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 11456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11457/* end confdefs.h. */ 11458#include <sys/types.h> 11459#include <sys/sysinfo.h> 11460int 11461main () 11462{ 11463 struct sysinfo sinfo; 11464 sinfo.mem_unit = 1; 11465 11466 ; 11467 return 0; 11468} 11469_ACEOF 11470if ac_fn_c_try_compile "$LINENO"; then : 11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11472$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 11473 11474else 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11476$as_echo "no" >&6; } 11477fi 11478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11479 11480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 11481$as_echo_n "checking for sysconf... " >&6; } 11482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11483/* end confdefs.h. */ 11484#include <unistd.h> 11485int 11486main () 11487{ 11488 (void)sysconf(_SC_PAGESIZE); 11489 (void)sysconf(_SC_PHYS_PAGES); 11490 11491 ; 11492 return 0; 11493} 11494_ACEOF 11495if ac_fn_c_try_compile "$LINENO"; then : 11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11497$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 11498 11499else 11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 11501$as_echo "not usable" >&6; } 11502fi 11503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11504 11505# The cast to long int works around a bug in the HP C Compiler 11506# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11507# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11508# This bug is HP SR number 8606223364. 11509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 11510$as_echo_n "checking size of int... " >&6; } 11511if test "${ac_cv_sizeof_int+set}" = set; then : 11512 $as_echo_n "(cached) " >&6 11513else 11514 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 11515 11516else 11517 if test "$ac_cv_type_int" = yes; then 11518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11520{ as_fn_set_status 77 11521as_fn_error "cannot compute sizeof (int) 11522See \`config.log' for more details." "$LINENO" 5; }; } 11523 else 11524 ac_cv_sizeof_int=0 11525 fi 11526fi 11527 11528fi 11529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 11530$as_echo "$ac_cv_sizeof_int" >&6; } 11531 11532 11533 11534cat >>confdefs.h <<_ACEOF 11535#define SIZEOF_INT $ac_cv_sizeof_int 11536_ACEOF 11537 11538 11539# The cast to long int works around a bug in the HP C Compiler 11540# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11541# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11542# This bug is HP SR number 8606223364. 11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 11544$as_echo_n "checking size of long... " >&6; } 11545if test "${ac_cv_sizeof_long+set}" = set; then : 11546 $as_echo_n "(cached) " >&6 11547else 11548 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 11549 11550else 11551 if test "$ac_cv_type_long" = yes; then 11552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11554{ as_fn_set_status 77 11555as_fn_error "cannot compute sizeof (long) 11556See \`config.log' for more details." "$LINENO" 5; }; } 11557 else 11558 ac_cv_sizeof_long=0 11559 fi 11560fi 11561 11562fi 11563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 11564$as_echo "$ac_cv_sizeof_long" >&6; } 11565 11566 11567 11568cat >>confdefs.h <<_ACEOF 11569#define SIZEOF_LONG $ac_cv_sizeof_long 11570_ACEOF 11571 11572 11573# The cast to long int works around a bug in the HP C Compiler 11574# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11575# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11576# This bug is HP SR number 8606223364. 11577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 11578$as_echo_n "checking size of time_t... " >&6; } 11579if test "${ac_cv_sizeof_time_t+set}" = set; then : 11580 $as_echo_n "(cached) " >&6 11581else 11582 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 11583 11584else 11585 if test "$ac_cv_type_time_t" = yes; then 11586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11588{ as_fn_set_status 77 11589as_fn_error "cannot compute sizeof (time_t) 11590See \`config.log' for more details." "$LINENO" 5; }; } 11591 else 11592 ac_cv_sizeof_time_t=0 11593 fi 11594fi 11595 11596fi 11597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 11598$as_echo "$ac_cv_sizeof_time_t" >&6; } 11599 11600 11601 11602cat >>confdefs.h <<_ACEOF 11603#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 11604_ACEOF 11605 11606 11607# The cast to long int works around a bug in the HP C Compiler 11608# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11609# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11610# This bug is HP SR number 8606223364. 11611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 11612$as_echo_n "checking size of off_t... " >&6; } 11613if test "${ac_cv_sizeof_off_t+set}" = set; then : 11614 $as_echo_n "(cached) " >&6 11615else 11616 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 11617 11618else 11619 if test "$ac_cv_type_off_t" = yes; then 11620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11622{ as_fn_set_status 77 11623as_fn_error "cannot compute sizeof (off_t) 11624See \`config.log' for more details." "$LINENO" 5; }; } 11625 else 11626 ac_cv_sizeof_off_t=0 11627 fi 11628fi 11629 11630fi 11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 11632$as_echo "$ac_cv_sizeof_off_t" >&6; } 11633 11634 11635 11636cat >>confdefs.h <<_ACEOF 11637#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 11638_ACEOF 11639 11640 11641 11642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 11643$as_echo_n "checking uint32_t is 32 bits... " >&6; } 11644if test "$cross_compiling" = yes; then : 11645 as_fn_error "could not compile program using uint32_t." "$LINENO" 5 11646else 11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11648/* end confdefs.h. */ 11649 11650#ifdef HAVE_STDINT_H 11651# include <stdint.h> 11652#endif 11653#ifdef HAVE_INTTYPES_H 11654# include <inttypes.h> 11655#endif 11656main() { 11657 uint32_t nr1 = (uint32_t)-1; 11658 uint32_t nr2 = (uint32_t)0xffffffffUL; 11659 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 11660 exit(0); 11661} 11662_ACEOF 11663if ac_fn_c_try_run "$LINENO"; then : 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 11665$as_echo "ok" >&6; } 11666else 11667 as_fn_error "WRONG! uint32_t not defined correctly." "$LINENO" 5 11668fi 11669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11670 conftest.$ac_objext conftest.beam conftest.$ac_ext 11671fi 11672 11673 11674 11675bcopy_test_prog=' 11676#include "confdefs.h" 11677#ifdef HAVE_STRING_H 11678# include <string.h> 11679#endif 11680#if STDC_HEADERS 11681# include <stdlib.h> 11682# include <stddef.h> 11683#endif 11684main() { 11685 char buf[10]; 11686 strcpy(buf, "abcdefghi"); 11687 mch_memmove(buf, buf + 2, 3); 11688 if (strncmp(buf, "ababcf", 6)) 11689 exit(1); 11690 strcpy(buf, "abcdefghi"); 11691 mch_memmove(buf + 2, buf, 3); 11692 if (strncmp(buf, "cdedef", 6)) 11693 exit(1); 11694 exit(0); /* libc version works properly. */ 11695}' 11696 11697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 11698$as_echo_n "checking whether memmove handles overlaps... " >&6; } 11699if test "${vim_cv_memmove_handles_overlap+set}" = set; then : 11700 $as_echo_n "(cached) " >&6 11701else 11702 11703 if test "$cross_compiling" = yes; then : 11704 11705 as_fn_error "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 11706 11707else 11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11709/* end confdefs.h. */ 11710#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 11711_ACEOF 11712if ac_fn_c_try_run "$LINENO"; then : 11713 11714 vim_cv_memmove_handles_overlap=yes 11715 11716else 11717 11718 vim_cv_memmove_handles_overlap=no 11719 11720fi 11721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11722 conftest.$ac_objext conftest.beam conftest.$ac_ext 11723fi 11724 11725 11726fi 11727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 11728$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 11729 11730if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 11731 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 11732 11733else 11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 11735$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 11736if test "${vim_cv_bcopy_handles_overlap+set}" = set; then : 11737 $as_echo_n "(cached) " >&6 11738else 11739 11740 if test "$cross_compiling" = yes; then : 11741 11742 as_fn_error "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 11743 11744else 11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11746/* end confdefs.h. */ 11747#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 11748_ACEOF 11749if ac_fn_c_try_run "$LINENO"; then : 11750 11751 vim_cv_bcopy_handles_overlap=yes 11752 11753else 11754 11755 vim_cv_bcopy_handles_overlap=no 11756 11757fi 11758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11759 conftest.$ac_objext conftest.beam conftest.$ac_ext 11760fi 11761 11762 11763fi 11764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 11765$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 11766 11767 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 11768 $as_echo "#define USEBCOPY 1" >>confdefs.h 11769 11770 else 11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 11772$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 11773if test "${vim_cv_memcpy_handles_overlap+set}" = set; then : 11774 $as_echo_n "(cached) " >&6 11775else 11776 11777 if test "$cross_compiling" = yes; then : 11778 11779 as_fn_error "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 11780 11781else 11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11783/* end confdefs.h. */ 11784#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 11785_ACEOF 11786if ac_fn_c_try_run "$LINENO"; then : 11787 11788 vim_cv_memcpy_handles_overlap=yes 11789 11790else 11791 11792 vim_cv_memcpy_handles_overlap=no 11793 11794fi 11795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11796 conftest.$ac_objext conftest.beam conftest.$ac_ext 11797fi 11798 11799 11800fi 11801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 11802$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 11803 11804 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 11805 $as_echo "#define USEMEMCPY 1" >>confdefs.h 11806 11807 fi 11808 fi 11809fi 11810 11811 11812 11813if test "$enable_multibyte" = "yes"; then 11814 cflags_save=$CFLAGS 11815 ldflags_save=$LDFLAGS 11816 if test "x$x_includes" != "xNONE" ; then 11817 CFLAGS="$CFLAGS -I$x_includes" 11818 LDFLAGS="$X_LIBS $LDFLAGS -lX11" 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 11820$as_echo_n "checking whether X_LOCALE needed... " >&6; } 11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11822/* end confdefs.h. */ 11823#include <X11/Xlocale.h> 11824int 11825main () 11826{ 11827 11828 ; 11829 return 0; 11830} 11831_ACEOF 11832if ac_fn_c_try_compile "$LINENO"; then : 11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11834/* end confdefs.h. */ 11835 11836/* Override any GCC internal prototype to avoid an error. 11837 Use char because int might match the return type of a GCC 11838 builtin and then its argument prototype would still apply. */ 11839#ifdef __cplusplus 11840extern "C" 11841#endif 11842char _Xsetlocale (); 11843int 11844main () 11845{ 11846return _Xsetlocale (); 11847 ; 11848 return 0; 11849} 11850_ACEOF 11851if ac_fn_c_try_link "$LINENO"; then : 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11853$as_echo "yes" >&6; } 11854 $as_echo "#define X_LOCALE 1" >>confdefs.h 11855 11856else 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11858$as_echo "no" >&6; } 11859fi 11860rm -f core conftest.err conftest.$ac_objext \ 11861 conftest$ac_exeext conftest.$ac_ext 11862else 11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11864$as_echo "no" >&6; } 11865fi 11866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11867 fi 11868 CFLAGS=$cflags_save 11869 LDFLAGS=$ldflags_save 11870fi 11871 11872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 11873$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 11874if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then : 11875 $as_echo_n "(cached) " >&6 11876else 11877 ac_check_lib_save_LIBS=$LIBS 11878LIBS="-lxpg4 $LIBS" 11879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11880/* end confdefs.h. */ 11881 11882/* Override any GCC internal prototype to avoid an error. 11883 Use char because int might match the return type of a GCC 11884 builtin and then its argument prototype would still apply. */ 11885#ifdef __cplusplus 11886extern "C" 11887#endif 11888char _xpg4_setrunelocale (); 11889int 11890main () 11891{ 11892return _xpg4_setrunelocale (); 11893 ; 11894 return 0; 11895} 11896_ACEOF 11897if ac_fn_c_try_link "$LINENO"; then : 11898 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 11899else 11900 ac_cv_lib_xpg4__xpg4_setrunelocale=no 11901fi 11902rm -f core conftest.err conftest.$ac_objext \ 11903 conftest$ac_exeext conftest.$ac_ext 11904LIBS=$ac_check_lib_save_LIBS 11905fi 11906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 11907$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 11908if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then : 11909 LIBS="$LIBS -lxpg4" 11910fi 11911 11912 11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 11914$as_echo_n "checking how to create tags... " >&6; } 11915test -f tags && mv tags tags.save 11916if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 11917 TAGPRG="ctags -I INIT+ --fields=+S" 11918else 11919 TAGPRG="ctags" 11920 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 11921 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 11922 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 11923 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 11924 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 11925 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 11926 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 11927fi 11928test -f tags.save && mv tags.save tags 11929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 11930$as_echo "$TAGPRG" >&6; } 11931 11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 11933$as_echo_n "checking how to run man with a section nr... " >&6; } 11934MANDEF="man" 11935(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 11936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 11937$as_echo "$MANDEF" >&6; } 11938if test "$MANDEF" = "man -s"; then 11939 $as_echo "#define USEMAN_S 1" >>confdefs.h 11940 11941fi 11942 11943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 11944$as_echo_n "checking --disable-nls argument... " >&6; } 11945# Check whether --enable-nls was given. 11946if test "${enable_nls+set}" = set; then : 11947 enableval=$enable_nls; 11948else 11949 enable_nls="yes" 11950fi 11951 11952 11953if test "$enable_nls" = "yes"; then 11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11955$as_echo "no" >&6; } 11956 11957 INSTALL_LANGS=install-languages 11958 11959 INSTALL_TOOL_LANGS=install-tool-languages 11960 11961 11962 # Extract the first word of "msgfmt", so it can be a program name with args. 11963set dummy msgfmt; ac_word=$2 11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11965$as_echo_n "checking for $ac_word... " >&6; } 11966if test "${ac_cv_prog_MSGFMT+set}" = set; then : 11967 $as_echo_n "(cached) " >&6 11968else 11969 if test -n "$MSGFMT"; then 11970 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 11971else 11972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11973for as_dir in $PATH 11974do 11975 IFS=$as_save_IFS 11976 test -z "$as_dir" && as_dir=. 11977 for ac_exec_ext in '' $ac_executable_extensions; do 11978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11979 ac_cv_prog_MSGFMT="msgfmt" 11980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11981 break 2 11982 fi 11983done 11984 done 11985IFS=$as_save_IFS 11986 11987fi 11988fi 11989MSGFMT=$ac_cv_prog_MSGFMT 11990if test -n "$MSGFMT"; then 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 11992$as_echo "$MSGFMT" >&6; } 11993else 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11995$as_echo "no" >&6; } 11996fi 11997 11998 11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 12000$as_echo_n "checking for NLS... " >&6; } 12001 if test -f po/Makefile; then 12002 have_gettext="no" 12003 if test -n "$MSGFMT"; then 12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12005/* end confdefs.h. */ 12006#include <libintl.h> 12007int 12008main () 12009{ 12010gettext("Test"); 12011 ; 12012 return 0; 12013} 12014_ACEOF 12015if ac_fn_c_try_link "$LINENO"; then : 12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 12017$as_echo "gettext() works" >&6; }; have_gettext="yes" 12018else 12019 olibs=$LIBS 12020 LIBS="$LIBS -lintl" 12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12022/* end confdefs.h. */ 12023#include <libintl.h> 12024int 12025main () 12026{ 12027gettext("Test"); 12028 ; 12029 return 0; 12030} 12031_ACEOF 12032if ac_fn_c_try_link "$LINENO"; then : 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 12034$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes" 12035else 12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 12037$as_echo "gettext() doesn't work" >&6; }; 12038 LIBS=$olibs 12039fi 12040rm -f core conftest.err conftest.$ac_objext \ 12041 conftest$ac_exeext conftest.$ac_ext 12042fi 12043rm -f core conftest.err conftest.$ac_objext \ 12044 conftest$ac_exeext conftest.$ac_ext 12045 else 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 12047$as_echo "msgfmt not found - disabled" >&6; }; 12048 fi 12049 if test $have_gettext = "yes"; then 12050 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 12051 12052 MAKEMO=yes 12053 12054 for ac_func in bind_textdomain_codeset 12055do : 12056 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 12057if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : 12058 cat >>confdefs.h <<_ACEOF 12059#define HAVE_BIND_TEXTDOMAIN_CODESET 1 12060_ACEOF 12061 12062fi 12063done 12064 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 12066$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12068/* end confdefs.h. */ 12069#include <libintl.h> 12070 extern int _nl_msg_cat_cntr; 12071int 12072main () 12073{ 12074++_nl_msg_cat_cntr; 12075 ; 12076 return 0; 12077} 12078_ACEOF 12079if ac_fn_c_try_link "$LINENO"; then : 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12081$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 12082 12083else 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12085$as_echo "no" >&6; } 12086fi 12087rm -f core conftest.err conftest.$ac_objext \ 12088 conftest$ac_exeext conftest.$ac_ext 12089 fi 12090 else 12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 12092$as_echo "no \"po/Makefile\" - disabled" >&6; }; 12093 fi 12094else 12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12096$as_echo "yes" >&6; } 12097fi 12098 12099ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 12100if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 12101 DLL=dlfcn.h 12102else 12103 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 12104if test "x$ac_cv_header_dl_h" = x""yes; then : 12105 DLL=dl.h 12106fi 12107 12108 12109fi 12110 12111 12112if test x${DLL} = xdlfcn.h; then 12113 12114$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 12115 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 12117$as_echo_n "checking for dlopen()... " >&6; } 12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12119/* end confdefs.h. */ 12120 12121int 12122main () 12123{ 12124 12125 extern void* dlopen(); 12126 dlopen(); 12127 12128 ; 12129 return 0; 12130} 12131_ACEOF 12132if ac_fn_c_try_link "$LINENO"; then : 12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12134$as_echo "yes" >&6; }; 12135 12136$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 12137 12138else 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12140$as_echo "no" >&6; }; 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 12142$as_echo_n "checking for dlopen() in -ldl... " >&6; } 12143 olibs=$LIBS 12144 LIBS="$LIBS -ldl" 12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12146/* end confdefs.h. */ 12147 12148int 12149main () 12150{ 12151 12152 extern void* dlopen(); 12153 dlopen(); 12154 12155 ; 12156 return 0; 12157} 12158_ACEOF 12159if ac_fn_c_try_link "$LINENO"; then : 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12161$as_echo "yes" >&6; }; 12162 12163$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 12164 12165else 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12167$as_echo "no" >&6; }; 12168 LIBS=$olibs 12169fi 12170rm -f core conftest.err conftest.$ac_objext \ 12171 conftest$ac_exeext conftest.$ac_ext 12172fi 12173rm -f core conftest.err conftest.$ac_objext \ 12174 conftest$ac_exeext conftest.$ac_ext 12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 12176$as_echo_n "checking for dlsym()... " >&6; } 12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12178/* end confdefs.h. */ 12179 12180int 12181main () 12182{ 12183 12184 extern void* dlsym(); 12185 dlsym(); 12186 12187 ; 12188 return 0; 12189} 12190_ACEOF 12191if ac_fn_c_try_link "$LINENO"; then : 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12193$as_echo "yes" >&6; }; 12194 12195$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 12196 12197else 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12199$as_echo "no" >&6; }; 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 12201$as_echo_n "checking for dlsym() in -ldl... " >&6; } 12202 olibs=$LIBS 12203 LIBS="$LIBS -ldl" 12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12205/* end confdefs.h. */ 12206 12207int 12208main () 12209{ 12210 12211 extern void* dlsym(); 12212 dlsym(); 12213 12214 ; 12215 return 0; 12216} 12217_ACEOF 12218if ac_fn_c_try_link "$LINENO"; then : 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12220$as_echo "yes" >&6; }; 12221 12222$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 12223 12224else 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12226$as_echo "no" >&6; }; 12227 LIBS=$olibs 12228fi 12229rm -f core conftest.err conftest.$ac_objext \ 12230 conftest$ac_exeext conftest.$ac_ext 12231fi 12232rm -f core conftest.err conftest.$ac_objext \ 12233 conftest$ac_exeext conftest.$ac_ext 12234elif test x${DLL} = xdl.h; then 12235 12236$as_echo "#define HAVE_DL_H 1" >>confdefs.h 12237 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 12239$as_echo_n "checking for shl_load()... " >&6; } 12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12241/* end confdefs.h. */ 12242 12243int 12244main () 12245{ 12246 12247 extern void* shl_load(); 12248 shl_load(); 12249 12250 ; 12251 return 0; 12252} 12253_ACEOF 12254if ac_fn_c_try_link "$LINENO"; then : 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12256$as_echo "yes" >&6; }; 12257 12258$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 12259 12260else 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12262$as_echo "no" >&6; }; 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 12264$as_echo_n "checking for shl_load() in -ldld... " >&6; } 12265 olibs=$LIBS 12266 LIBS="$LIBS -ldld" 12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12268/* end confdefs.h. */ 12269 12270int 12271main () 12272{ 12273 12274 extern void* shl_load(); 12275 shl_load(); 12276 12277 ; 12278 return 0; 12279} 12280_ACEOF 12281if ac_fn_c_try_link "$LINENO"; then : 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12283$as_echo "yes" >&6; }; 12284 12285$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 12286 12287else 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12289$as_echo "no" >&6; }; 12290 LIBS=$olibs 12291fi 12292rm -f core conftest.err conftest.$ac_objext \ 12293 conftest$ac_exeext conftest.$ac_ext 12294fi 12295rm -f core conftest.err conftest.$ac_objext \ 12296 conftest$ac_exeext conftest.$ac_ext 12297fi 12298for ac_header in setjmp.h 12299do : 12300 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 12301if test "x$ac_cv_header_setjmp_h" = x""yes; then : 12302 cat >>confdefs.h <<_ACEOF 12303#define HAVE_SETJMP_H 1 12304_ACEOF 12305 12306fi 12307 12308done 12309 12310 12311if test "x$MACOSX" = "xyes" -a -n "$PERL"; then 12312 if echo $LIBS | grep -e '-ldl' >/dev/null; then 12313 LIBS=`echo $LIBS | sed s/-ldl//` 12314 PERL_LIBS="$PERL_LIBS -ldl" 12315 fi 12316fi 12317 12318if test "x$MACOSX" = "xyes"; then 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5 12320$as_echo_n "checking whether we need -framework Cocoa... " >&6; } 12321 if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then 12322 LIBS=$"$LIBS -framework Cocoa" 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12324$as_echo "yes" >&6; } 12325 else 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12327$as_echo "no" >&6; } 12328 fi 12329fi 12330if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 12331 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 12332fi 12333 12334DEPEND_CFLAGS_FILTER= 12335if test "$GCC" = yes; then 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 12337$as_echo_n "checking for GCC 3 or later... " >&6; } 12338 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 12339 if test "$gccmajor" -gt "2"; then 12340 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12342$as_echo "yes" >&6; } 12343 else 12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12345$as_echo "no" >&6; } 12346 fi 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 12348$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 12349 if test "$gccmajor" -gt "3"; then 12350 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'` 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12352$as_echo "yes" >&6; } 12353 else 12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12355$as_echo "no" >&6; } 12356 fi 12357fi 12358 12359 12360ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 12361 12362cat >confcache <<\_ACEOF 12363# This file is a shell script that caches the results of configure 12364# tests run on this system so they can be shared between configure 12365# scripts and configure runs, see configure's option --config-cache. 12366# It is not useful on other systems. If it contains results you don't 12367# want to keep, you may remove or edit it. 12368# 12369# config.status only pays attention to the cache file if you give it 12370# the --recheck option to rerun configure. 12371# 12372# `ac_cv_env_foo' variables (set or unset) will be overridden when 12373# loading this file, other *unset* `ac_cv_foo' will be assigned the 12374# following values. 12375 12376_ACEOF 12377 12378# The following way of writing the cache mishandles newlines in values, 12379# but we know of no workaround that is simple, portable, and efficient. 12380# So, we kill variables containing newlines. 12381# Ultrix sh set writes to stderr and can't be redirected directly, 12382# and sets the high bit in the cache file unless we assign to the vars. 12383( 12384 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12385 eval ac_val=\$$ac_var 12386 case $ac_val in #( 12387 *${as_nl}*) 12388 case $ac_var in #( 12389 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12390$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12391 esac 12392 case $ac_var in #( 12393 _ | IFS | as_nl) ;; #( 12394 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12395 *) { eval $ac_var=; unset $ac_var;} ;; 12396 esac ;; 12397 esac 12398 done 12399 12400 (set) 2>&1 | 12401 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12402 *${as_nl}ac_space=\ *) 12403 # `set' does not quote correctly, so add quotes: double-quote 12404 # substitution turns \\\\ into \\, and sed turns \\ into \. 12405 sed -n \ 12406 "s/'/'\\\\''/g; 12407 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12408 ;; #( 12409 *) 12410 # `set' quotes correctly as required by POSIX, so do not add quotes. 12411 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12412 ;; 12413 esac | 12414 sort 12415) | 12416 sed ' 12417 /^ac_cv_env_/b end 12418 t clear 12419 :clear 12420 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12421 t end 12422 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12423 :end' >>confcache 12424if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12425 if test -w "$cache_file"; then 12426 test "x$cache_file" != "x/dev/null" && 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12428$as_echo "$as_me: updating cache $cache_file" >&6;} 12429 cat confcache >$cache_file 12430 else 12431 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12432$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12433 fi 12434fi 12435rm -f confcache 12436 12437test "x$prefix" = xNONE && prefix=$ac_default_prefix 12438# Let make expand exec_prefix. 12439test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12440 12441DEFS=-DHAVE_CONFIG_H 12442 12443ac_libobjs= 12444ac_ltlibobjs= 12445for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12446 # 1. Remove the extension, and $U if already installed. 12447 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12448 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12449 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12450 # will be set to the directory where LIBOBJS objects are built. 12451 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12452 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12453done 12454LIBOBJS=$ac_libobjs 12455 12456LTLIBOBJS=$ac_ltlibobjs 12457 12458 12459 12460 12461: ${CONFIG_STATUS=./config.status} 12462ac_write_fail=0 12463ac_clean_files_save=$ac_clean_files 12464ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12465{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12466$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12467as_write_fail=0 12468cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12469#! $SHELL 12470# Generated by $as_me. 12471# Run this file to recreate the current configuration. 12472# Compiler output produced by configure, useful for debugging 12473# configure, is in config.log if it exists. 12474 12475debug=false 12476ac_cs_recheck=false 12477ac_cs_silent=false 12478 12479SHELL=\${CONFIG_SHELL-$SHELL} 12480export SHELL 12481_ASEOF 12482cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12483## -------------------- ## 12484## M4sh Initialization. ## 12485## -------------------- ## 12486 12487# Be more Bourne compatible 12488DUALCASE=1; export DUALCASE # for MKS sh 12489if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12490 emulate sh 12491 NULLCMD=: 12492 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12493 # is contrary to our usage. Disable this feature. 12494 alias -g '${1+"$@"}'='"$@"' 12495 setopt NO_GLOB_SUBST 12496else 12497 case `(set -o) 2>/dev/null` in #( 12498 *posix*) : 12499 set -o posix ;; #( 12500 *) : 12501 ;; 12502esac 12503fi 12504 12505 12506as_nl=' 12507' 12508export as_nl 12509# Printing a long string crashes Solaris 7 /usr/bin/printf. 12510as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12511as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12512as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12513# Prefer a ksh shell builtin over an external printf program on Solaris, 12514# but without wasting forks for bash or zsh. 12515if test -z "$BASH_VERSION$ZSH_VERSION" \ 12516 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12517 as_echo='print -r --' 12518 as_echo_n='print -rn --' 12519elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12520 as_echo='printf %s\n' 12521 as_echo_n='printf %s' 12522else 12523 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12524 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12525 as_echo_n='/usr/ucb/echo -n' 12526 else 12527 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12528 as_echo_n_body='eval 12529 arg=$1; 12530 case $arg in #( 12531 *"$as_nl"*) 12532 expr "X$arg" : "X\\(.*\\)$as_nl"; 12533 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12534 esac; 12535 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12536 ' 12537 export as_echo_n_body 12538 as_echo_n='sh -c $as_echo_n_body as_echo' 12539 fi 12540 export as_echo_body 12541 as_echo='sh -c $as_echo_body as_echo' 12542fi 12543 12544# The user is always right. 12545if test "${PATH_SEPARATOR+set}" != set; then 12546 PATH_SEPARATOR=: 12547 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12548 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12549 PATH_SEPARATOR=';' 12550 } 12551fi 12552 12553 12554# IFS 12555# We need space, tab and new line, in precisely that order. Quoting is 12556# there to prevent editors from complaining about space-tab. 12557# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12558# splitting by setting IFS to empty value.) 12559IFS=" "" $as_nl" 12560 12561# Find who we are. Look in the path if we contain no directory separator. 12562case $0 in #(( 12563 *[\\/]* ) as_myself=$0 ;; 12564 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12565for as_dir in $PATH 12566do 12567 IFS=$as_save_IFS 12568 test -z "$as_dir" && as_dir=. 12569 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12570 done 12571IFS=$as_save_IFS 12572 12573 ;; 12574esac 12575# We did not find ourselves, most probably we were run as `sh COMMAND' 12576# in which case we are not to be found in the path. 12577if test "x$as_myself" = x; then 12578 as_myself=$0 12579fi 12580if test ! -f "$as_myself"; then 12581 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12582 exit 1 12583fi 12584 12585# Unset variables that we do not need and which cause bugs (e.g. in 12586# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12587# suppresses any "Segmentation fault" message there. '((' could 12588# trigger a bug in pdksh 5.2.14. 12589for as_var in BASH_ENV ENV MAIL MAILPATH 12590do eval test x\${$as_var+set} = xset \ 12591 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12592done 12593PS1='$ ' 12594PS2='> ' 12595PS4='+ ' 12596 12597# NLS nuisances. 12598LC_ALL=C 12599export LC_ALL 12600LANGUAGE=C 12601export LANGUAGE 12602 12603# CDPATH. 12604(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12605 12606 12607# as_fn_error ERROR [LINENO LOG_FD] 12608# --------------------------------- 12609# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12610# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12611# script with status $?, using 1 if that was 0. 12612as_fn_error () 12613{ 12614 as_status=$?; test $as_status -eq 0 && as_status=1 12615 if test "$3"; then 12616 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12617 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 12618 fi 12619 $as_echo "$as_me: error: $1" >&2 12620 as_fn_exit $as_status 12621} # as_fn_error 12622 12623 12624# as_fn_set_status STATUS 12625# ----------------------- 12626# Set $? to STATUS, without forking. 12627as_fn_set_status () 12628{ 12629 return $1 12630} # as_fn_set_status 12631 12632# as_fn_exit STATUS 12633# ----------------- 12634# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12635as_fn_exit () 12636{ 12637 set +e 12638 as_fn_set_status $1 12639 exit $1 12640} # as_fn_exit 12641 12642# as_fn_unset VAR 12643# --------------- 12644# Portably unset VAR. 12645as_fn_unset () 12646{ 12647 { eval $1=; unset $1;} 12648} 12649as_unset=as_fn_unset 12650# as_fn_append VAR VALUE 12651# ---------------------- 12652# Append the text in VALUE to the end of the definition contained in VAR. Take 12653# advantage of any shell optimizations that allow amortized linear growth over 12654# repeated appends, instead of the typical quadratic growth present in naive 12655# implementations. 12656if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12657 eval 'as_fn_append () 12658 { 12659 eval $1+=\$2 12660 }' 12661else 12662 as_fn_append () 12663 { 12664 eval $1=\$$1\$2 12665 } 12666fi # as_fn_append 12667 12668# as_fn_arith ARG... 12669# ------------------ 12670# Perform arithmetic evaluation on the ARGs, and store the result in the 12671# global $as_val. Take advantage of shells that can avoid forks. The arguments 12672# must be portable across $(()) and expr. 12673if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12674 eval 'as_fn_arith () 12675 { 12676 as_val=$(( $* )) 12677 }' 12678else 12679 as_fn_arith () 12680 { 12681 as_val=`expr "$@" || test $? -eq 1` 12682 } 12683fi # as_fn_arith 12684 12685 12686if expr a : '\(a\)' >/dev/null 2>&1 && 12687 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12688 as_expr=expr 12689else 12690 as_expr=false 12691fi 12692 12693if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12694 as_basename=basename 12695else 12696 as_basename=false 12697fi 12698 12699if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12700 as_dirname=dirname 12701else 12702 as_dirname=false 12703fi 12704 12705as_me=`$as_basename -- "$0" || 12706$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12707 X"$0" : 'X\(//\)$' \| \ 12708 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12709$as_echo X/"$0" | 12710 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12711 s//\1/ 12712 q 12713 } 12714 /^X\/\(\/\/\)$/{ 12715 s//\1/ 12716 q 12717 } 12718 /^X\/\(\/\).*/{ 12719 s//\1/ 12720 q 12721 } 12722 s/.*/./; q'` 12723 12724# Avoid depending upon Character Ranges. 12725as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12726as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12727as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12728as_cr_digits='0123456789' 12729as_cr_alnum=$as_cr_Letters$as_cr_digits 12730 12731ECHO_C= ECHO_N= ECHO_T= 12732case `echo -n x` in #((((( 12733-n*) 12734 case `echo 'xy\c'` in 12735 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12736 xy) ECHO_C='\c';; 12737 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12738 ECHO_T=' ';; 12739 esac;; 12740*) 12741 ECHO_N='-n';; 12742esac 12743 12744rm -f conf$$ conf$$.exe conf$$.file 12745if test -d conf$$.dir; then 12746 rm -f conf$$.dir/conf$$.file 12747else 12748 rm -f conf$$.dir 12749 mkdir conf$$.dir 2>/dev/null 12750fi 12751if (echo >conf$$.file) 2>/dev/null; then 12752 if ln -s conf$$.file conf$$ 2>/dev/null; then 12753 as_ln_s='ln -s' 12754 # ... but there are two gotchas: 12755 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12756 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12757 # In both cases, we have to default to `cp -p'. 12758 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12759 as_ln_s='cp -p' 12760 elif ln conf$$.file conf$$ 2>/dev/null; then 12761 as_ln_s=ln 12762 else 12763 as_ln_s='cp -p' 12764 fi 12765else 12766 as_ln_s='cp -p' 12767fi 12768rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12769rmdir conf$$.dir 2>/dev/null 12770 12771 12772# as_fn_mkdir_p 12773# ------------- 12774# Create "$as_dir" as a directory, including parents if necessary. 12775as_fn_mkdir_p () 12776{ 12777 12778 case $as_dir in #( 12779 -*) as_dir=./$as_dir;; 12780 esac 12781 test -d "$as_dir" || eval $as_mkdir_p || { 12782 as_dirs= 12783 while :; do 12784 case $as_dir in #( 12785 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12786 *) as_qdir=$as_dir;; 12787 esac 12788 as_dirs="'$as_qdir' $as_dirs" 12789 as_dir=`$as_dirname -- "$as_dir" || 12790$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12791 X"$as_dir" : 'X\(//\)[^/]' \| \ 12792 X"$as_dir" : 'X\(//\)$' \| \ 12793 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12794$as_echo X"$as_dir" | 12795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12796 s//\1/ 12797 q 12798 } 12799 /^X\(\/\/\)[^/].*/{ 12800 s//\1/ 12801 q 12802 } 12803 /^X\(\/\/\)$/{ 12804 s//\1/ 12805 q 12806 } 12807 /^X\(\/\).*/{ 12808 s//\1/ 12809 q 12810 } 12811 s/.*/./; q'` 12812 test -d "$as_dir" && break 12813 done 12814 test -z "$as_dirs" || eval "mkdir $as_dirs" 12815 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 12816 12817 12818} # as_fn_mkdir_p 12819if mkdir -p . 2>/dev/null; then 12820 as_mkdir_p='mkdir -p "$as_dir"' 12821else 12822 test -d ./-p && rmdir ./-p 12823 as_mkdir_p=false 12824fi 12825 12826if test -x / >/dev/null 2>&1; then 12827 as_test_x='test -x' 12828else 12829 if ls -dL / >/dev/null 2>&1; then 12830 as_ls_L_option=L 12831 else 12832 as_ls_L_option= 12833 fi 12834 as_test_x=' 12835 eval sh -c '\'' 12836 if test -d "$1"; then 12837 test -d "$1/."; 12838 else 12839 case $1 in #( 12840 -*)set "./$1";; 12841 esac; 12842 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12843 ???[sx]*):;;*)false;;esac;fi 12844 '\'' sh 12845 ' 12846fi 12847as_executable_p=$as_test_x 12848 12849# Sed expression to map a string onto a valid CPP name. 12850as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12851 12852# Sed expression to map a string onto a valid variable name. 12853as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12854 12855 12856exec 6>&1 12857## ----------------------------------- ## 12858## Main body of $CONFIG_STATUS script. ## 12859## ----------------------------------- ## 12860_ASEOF 12861test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12862 12863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12864# Save the log message, to keep $0 and so on meaningful, and to 12865# report actual input values of CONFIG_FILES etc. instead of their 12866# values after options handling. 12867ac_log=" 12868This file was extended by $as_me, which was 12869generated by GNU Autoconf 2.65. Invocation command line was 12870 12871 CONFIG_FILES = $CONFIG_FILES 12872 CONFIG_HEADERS = $CONFIG_HEADERS 12873 CONFIG_LINKS = $CONFIG_LINKS 12874 CONFIG_COMMANDS = $CONFIG_COMMANDS 12875 $ $0 $@ 12876 12877on `(hostname || uname -n) 2>/dev/null | sed 1q` 12878" 12879 12880_ACEOF 12881 12882case $ac_config_files in *" 12883"*) set x $ac_config_files; shift; ac_config_files=$*;; 12884esac 12885 12886case $ac_config_headers in *" 12887"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12888esac 12889 12890 12891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12892# Files that config.status was made for. 12893config_files="$ac_config_files" 12894config_headers="$ac_config_headers" 12895 12896_ACEOF 12897 12898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12899ac_cs_usage="\ 12900\`$as_me' instantiates files and other configuration actions 12901from templates according to the current configuration. Unless the files 12902and actions are specified as TAGs, all are instantiated by default. 12903 12904Usage: $0 [OPTION]... [TAG]... 12905 12906 -h, --help print this help, then exit 12907 -V, --version print version number and configuration settings, then exit 12908 --config print configuration, then exit 12909 -q, --quiet, --silent 12910 do not print progress messages 12911 -d, --debug don't remove temporary files 12912 --recheck update $as_me by reconfiguring in the same conditions 12913 --file=FILE[:TEMPLATE] 12914 instantiate the configuration file FILE 12915 --header=FILE[:TEMPLATE] 12916 instantiate the configuration header FILE 12917 12918Configuration files: 12919$config_files 12920 12921Configuration headers: 12922$config_headers 12923 12924Report bugs to the package provider." 12925 12926_ACEOF 12927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12928ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12929ac_cs_version="\\ 12930config.status 12931configured by $0, generated by GNU Autoconf 2.65, 12932 with options \\"\$ac_cs_config\\" 12933 12934Copyright (C) 2009 Free Software Foundation, Inc. 12935This config.status script is free software; the Free Software Foundation 12936gives unlimited permission to copy, distribute and modify it." 12937 12938ac_pwd='$ac_pwd' 12939srcdir='$srcdir' 12940AWK='$AWK' 12941test -n "\$AWK" || AWK=awk 12942_ACEOF 12943 12944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12945# The default lists apply if the user does not specify any file. 12946ac_need_defaults=: 12947while test $# != 0 12948do 12949 case $1 in 12950 --*=*) 12951 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12952 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12953 ac_shift=: 12954 ;; 12955 *) 12956 ac_option=$1 12957 ac_optarg=$2 12958 ac_shift=shift 12959 ;; 12960 esac 12961 12962 case $ac_option in 12963 # Handling of the options. 12964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12965 ac_cs_recheck=: ;; 12966 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12967 $as_echo "$ac_cs_version"; exit ;; 12968 --config | --confi | --conf | --con | --co | --c ) 12969 $as_echo "$ac_cs_config"; exit ;; 12970 --debug | --debu | --deb | --de | --d | -d ) 12971 debug=: ;; 12972 --file | --fil | --fi | --f ) 12973 $ac_shift 12974 case $ac_optarg in 12975 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12976 esac 12977 as_fn_append CONFIG_FILES " '$ac_optarg'" 12978 ac_need_defaults=false;; 12979 --header | --heade | --head | --hea ) 12980 $ac_shift 12981 case $ac_optarg in 12982 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12983 esac 12984 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12985 ac_need_defaults=false;; 12986 --he | --h) 12987 # Conflict between --help and --header 12988 as_fn_error "ambiguous option: \`$1' 12989Try \`$0 --help' for more information.";; 12990 --help | --hel | -h ) 12991 $as_echo "$ac_cs_usage"; exit ;; 12992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12993 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12994 ac_cs_silent=: ;; 12995 12996 # This is an error. 12997 -*) as_fn_error "unrecognized option: \`$1' 12998Try \`$0 --help' for more information." ;; 12999 13000 *) as_fn_append ac_config_targets " $1" 13001 ac_need_defaults=false ;; 13002 13003 esac 13004 shift 13005done 13006 13007ac_configure_extra_args= 13008 13009if $ac_cs_silent; then 13010 exec 6>/dev/null 13011 ac_configure_extra_args="$ac_configure_extra_args --silent" 13012fi 13013 13014_ACEOF 13015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13016if \$ac_cs_recheck; then 13017 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13018 shift 13019 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13020 CONFIG_SHELL='$SHELL' 13021 export CONFIG_SHELL 13022 exec "\$@" 13023fi 13024 13025_ACEOF 13026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13027exec 5>>auto/config.log 13028{ 13029 echo 13030 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13031## Running $as_me. ## 13032_ASBOX 13033 $as_echo "$ac_log" 13034} >&5 13035 13036_ACEOF 13037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13038_ACEOF 13039 13040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13041 13042# Handling of arguments. 13043for ac_config_target in $ac_config_targets 13044do 13045 case $ac_config_target in 13046 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 13047 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 13048 13049 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13050 esac 13051done 13052 13053 13054# If the user did not use the arguments to specify the items to instantiate, 13055# then the envvar interface is used. Set only those that are not. 13056# We use the long form for the default assignment because of an extremely 13057# bizarre bug on SunOS 4.1.3. 13058if $ac_need_defaults; then 13059 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13060 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13061fi 13062 13063# Have a temporary directory for convenience. Make it in the build tree 13064# simply because there is no reason against having it here, and in addition, 13065# creating and moving files from /tmp can sometimes cause problems. 13066# Hook for its removal unless debugging. 13067# Note that there is a small window in which the directory will not be cleaned: 13068# after its creation but before its name has been assigned to `$tmp'. 13069$debug || 13070{ 13071 tmp= 13072 trap 'exit_status=$? 13073 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13074' 0 13075 trap 'as_fn_exit 1' 1 2 13 15 13076} 13077# Create a (secure) tmp directory for tmp files. 13078 13079{ 13080 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13081 test -n "$tmp" && test -d "$tmp" 13082} || 13083{ 13084 tmp=./conf$$-$RANDOM 13085 (umask 077 && mkdir "$tmp") 13086} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 13087 13088# Set up the scripts for CONFIG_FILES section. 13089# No need to generate them if there are no CONFIG_FILES. 13090# This happens for instance with `./config.status config.h'. 13091if test -n "$CONFIG_FILES"; then 13092 13093 13094ac_cr=`echo X | tr X '\015'` 13095# On cygwin, bash can eat \r inside `` if the user requested igncr. 13096# But we know of no other shell where ac_cr would be empty at this 13097# point, so we can use a bashism as a fallback. 13098if test "x$ac_cr" = x; then 13099 eval ac_cr=\$\'\\r\' 13100fi 13101ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13102if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13103 ac_cs_awk_cr='\r' 13104else 13105 ac_cs_awk_cr=$ac_cr 13106fi 13107 13108echo 'BEGIN {' >"$tmp/subs1.awk" && 13109_ACEOF 13110 13111 13112{ 13113 echo "cat >conf$$subs.awk <<_ACEOF" && 13114 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13115 echo "_ACEOF" 13116} >conf$$subs.sh || 13117 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13118ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13119ac_delim='%!_!# ' 13120for ac_last_try in false false false false false :; do 13121 . ./conf$$subs.sh || 13122 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13123 13124 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13125 if test $ac_delim_n = $ac_delim_num; then 13126 break 13127 elif $ac_last_try; then 13128 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13129 else 13130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13131 fi 13132done 13133rm -f conf$$subs.sh 13134 13135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13136cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13137_ACEOF 13138sed -n ' 13139h 13140s/^/S["/; s/!.*/"]=/ 13141p 13142g 13143s/^[^!]*!// 13144:repl 13145t repl 13146s/'"$ac_delim"'$// 13147t delim 13148:nl 13149h 13150s/\(.\{148\}\)..*/\1/ 13151t more1 13152s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13153p 13154n 13155b repl 13156:more1 13157s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13158p 13159g 13160s/.\{148\}// 13161t nl 13162:delim 13163h 13164s/\(.\{148\}\)..*/\1/ 13165t more2 13166s/["\\]/\\&/g; s/^/"/; s/$/"/ 13167p 13168b 13169:more2 13170s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13171p 13172g 13173s/.\{148\}// 13174t delim 13175' <conf$$subs.awk | sed ' 13176/^[^""]/{ 13177 N 13178 s/\n// 13179} 13180' >>$CONFIG_STATUS || ac_write_fail=1 13181rm -f conf$$subs.awk 13182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13183_ACAWK 13184cat >>"\$tmp/subs1.awk" <<_ACAWK && 13185 for (key in S) S_is_set[key] = 1 13186 FS = "" 13187 13188} 13189{ 13190 line = $ 0 13191 nfields = split(line, field, "@") 13192 substed = 0 13193 len = length(field[1]) 13194 for (i = 2; i < nfields; i++) { 13195 key = field[i] 13196 keylen = length(key) 13197 if (S_is_set[key]) { 13198 value = S[key] 13199 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13200 len += length(value) + length(field[++i]) 13201 substed = 1 13202 } else 13203 len += 1 + keylen 13204 } 13205 13206 print line 13207} 13208 13209_ACAWK 13210_ACEOF 13211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13212if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13213 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13214else 13215 cat 13216fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13217 || as_fn_error "could not setup config files machinery" "$LINENO" 5 13218_ACEOF 13219 13220# VPATH may cause trouble with some makes, so we remove $(srcdir), 13221# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13222# trailing colons and then remove the whole line if VPATH becomes empty 13223# (actually we leave an empty line to preserve line numbers). 13224if test "x$srcdir" = x.; then 13225 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13226s/:*\$(srcdir):*/:/ 13227s/:*\${srcdir}:*/:/ 13228s/:*@srcdir@:*/:/ 13229s/^\([^=]*=[ ]*\):*/\1/ 13230s/:*$// 13231s/^[^=]*=[ ]*$// 13232}' 13233fi 13234 13235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13236fi # test -n "$CONFIG_FILES" 13237 13238# Set up the scripts for CONFIG_HEADERS section. 13239# No need to generate them if there are no CONFIG_HEADERS. 13240# This happens for instance with `./config.status Makefile'. 13241if test -n "$CONFIG_HEADERS"; then 13242cat >"$tmp/defines.awk" <<\_ACAWK || 13243BEGIN { 13244_ACEOF 13245 13246# Transform confdefs.h into an awk script `defines.awk', embedded as 13247# here-document in config.status, that substitutes the proper values into 13248# config.h.in to produce config.h. 13249 13250# Create a delimiter string that does not exist in confdefs.h, to ease 13251# handling of long lines. 13252ac_delim='%!_!# ' 13253for ac_last_try in false false :; do 13254 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13255 if test -z "$ac_t"; then 13256 break 13257 elif $ac_last_try; then 13258 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 13259 else 13260 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13261 fi 13262done 13263 13264# For the awk script, D is an array of macro values keyed by name, 13265# likewise P contains macro parameters if any. Preserve backslash 13266# newline sequences. 13267 13268ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13269sed -n ' 13270s/.\{148\}/&'"$ac_delim"'/g 13271t rset 13272:rset 13273s/^[ ]*#[ ]*define[ ][ ]*/ / 13274t def 13275d 13276:def 13277s/\\$// 13278t bsnl 13279s/["\\]/\\&/g 13280s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13281D["\1"]=" \3"/p 13282s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13283d 13284:bsnl 13285s/["\\]/\\&/g 13286s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13287D["\1"]=" \3\\\\\\n"\\/p 13288t cont 13289s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13290t cont 13291d 13292:cont 13293n 13294s/.\{148\}/&'"$ac_delim"'/g 13295t clear 13296:clear 13297s/\\$// 13298t bsnlc 13299s/["\\]/\\&/g; s/^/"/; s/$/"/p 13300d 13301:bsnlc 13302s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13303b cont 13304' <confdefs.h | sed ' 13305s/'"$ac_delim"'/"\\\ 13306"/g' >>$CONFIG_STATUS || ac_write_fail=1 13307 13308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13309 for (key in D) D_is_set[key] = 1 13310 FS = "" 13311} 13312/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13313 line = \$ 0 13314 split(line, arg, " ") 13315 if (arg[1] == "#") { 13316 defundef = arg[2] 13317 mac1 = arg[3] 13318 } else { 13319 defundef = substr(arg[1], 2) 13320 mac1 = arg[2] 13321 } 13322 split(mac1, mac2, "(") #) 13323 macro = mac2[1] 13324 prefix = substr(line, 1, index(line, defundef) - 1) 13325 if (D_is_set[macro]) { 13326 # Preserve the white space surrounding the "#". 13327 print prefix "define", macro P[macro] D[macro] 13328 next 13329 } else { 13330 # Replace #undef with comments. This is necessary, for example, 13331 # in the case of _POSIX_SOURCE, which is predefined and required 13332 # on some systems where configure will not decide to define it. 13333 if (defundef == "undef") { 13334 print "/*", prefix defundef, macro, "*/" 13335 next 13336 } 13337 } 13338} 13339{ print } 13340_ACAWK 13341_ACEOF 13342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13343 as_fn_error "could not setup config headers machinery" "$LINENO" 5 13344fi # test -n "$CONFIG_HEADERS" 13345 13346 13347eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 13348shift 13349for ac_tag 13350do 13351 case $ac_tag in 13352 :[FHLC]) ac_mode=$ac_tag; continue;; 13353 esac 13354 case $ac_mode$ac_tag in 13355 :[FHL]*:*);; 13356 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 13357 :[FH]-) ac_tag=-:-;; 13358 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13359 esac 13360 ac_save_IFS=$IFS 13361 IFS=: 13362 set x $ac_tag 13363 IFS=$ac_save_IFS 13364 shift 13365 ac_file=$1 13366 shift 13367 13368 case $ac_mode in 13369 :L) ac_source=$1;; 13370 :[FH]) 13371 ac_file_inputs= 13372 for ac_f 13373 do 13374 case $ac_f in 13375 -) ac_f="$tmp/stdin";; 13376 *) # Look for the file first in the build tree, then in the source tree 13377 # (if the path is not absolute). The absolute path cannot be DOS-style, 13378 # because $ac_f cannot contain `:'. 13379 test -f "$ac_f" || 13380 case $ac_f in 13381 [\\/$]*) false;; 13382 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13383 esac || 13384 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13385 esac 13386 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13387 as_fn_append ac_file_inputs " '$ac_f'" 13388 done 13389 13390 # Let's still pretend it is `configure' which instantiates (i.e., don't 13391 # use $as_me), people would be surprised to read: 13392 # /* config.h. Generated by config.status. */ 13393 configure_input='Generated from '` 13394 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13395 `' by configure.' 13396 if test x"$ac_file" != x-; then 13397 configure_input="$ac_file. $configure_input" 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13399$as_echo "$as_me: creating $ac_file" >&6;} 13400 fi 13401 # Neutralize special characters interpreted by sed in replacement strings. 13402 case $configure_input in #( 13403 *\&* | *\|* | *\\* ) 13404 ac_sed_conf_input=`$as_echo "$configure_input" | 13405 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13406 *) ac_sed_conf_input=$configure_input;; 13407 esac 13408 13409 case $ac_tag in 13410 *:-:* | *:-) cat >"$tmp/stdin" \ 13411 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 13412 esac 13413 ;; 13414 esac 13415 13416 ac_dir=`$as_dirname -- "$ac_file" || 13417$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13418 X"$ac_file" : 'X\(//\)[^/]' \| \ 13419 X"$ac_file" : 'X\(//\)$' \| \ 13420 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13421$as_echo X"$ac_file" | 13422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13423 s//\1/ 13424 q 13425 } 13426 /^X\(\/\/\)[^/].*/{ 13427 s//\1/ 13428 q 13429 } 13430 /^X\(\/\/\)$/{ 13431 s//\1/ 13432 q 13433 } 13434 /^X\(\/\).*/{ 13435 s//\1/ 13436 q 13437 } 13438 s/.*/./; q'` 13439 as_dir="$ac_dir"; as_fn_mkdir_p 13440 ac_builddir=. 13441 13442case "$ac_dir" in 13443.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13444*) 13445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13446 # A ".." for each directory in $ac_dir_suffix. 13447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13448 case $ac_top_builddir_sub in 13449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13451 esac ;; 13452esac 13453ac_abs_top_builddir=$ac_pwd 13454ac_abs_builddir=$ac_pwd$ac_dir_suffix 13455# for backward compatibility: 13456ac_top_builddir=$ac_top_build_prefix 13457 13458case $srcdir in 13459 .) # We are building in place. 13460 ac_srcdir=. 13461 ac_top_srcdir=$ac_top_builddir_sub 13462 ac_abs_top_srcdir=$ac_pwd ;; 13463 [\\/]* | ?:[\\/]* ) # Absolute name. 13464 ac_srcdir=$srcdir$ac_dir_suffix; 13465 ac_top_srcdir=$srcdir 13466 ac_abs_top_srcdir=$srcdir ;; 13467 *) # Relative name. 13468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13469 ac_top_srcdir=$ac_top_build_prefix$srcdir 13470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13471esac 13472ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13473 13474 13475 case $ac_mode in 13476 :F) 13477 # 13478 # CONFIG_FILE 13479 # 13480 13481_ACEOF 13482 13483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13484# If the template does not know about datarootdir, expand it. 13485# FIXME: This hack should be removed a few years after 2.60. 13486ac_datarootdir_hack=; ac_datarootdir_seen= 13487ac_sed_dataroot=' 13488/datarootdir/ { 13489 p 13490 q 13491} 13492/@datadir@/p 13493/@docdir@/p 13494/@infodir@/p 13495/@localedir@/p 13496/@mandir@/p' 13497case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13498*datarootdir*) ac_datarootdir_seen=yes;; 13499*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13501$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13502_ACEOF 13503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13504 ac_datarootdir_hack=' 13505 s&@datadir@&$datadir&g 13506 s&@docdir@&$docdir&g 13507 s&@infodir@&$infodir&g 13508 s&@localedir@&$localedir&g 13509 s&@mandir@&$mandir&g 13510 s&\\\${datarootdir}&$datarootdir&g' ;; 13511esac 13512_ACEOF 13513 13514# Neutralize VPATH when `$srcdir' = `.'. 13515# Shell code in configure.ac might set extrasub. 13516# FIXME: do we really want to maintain this feature? 13517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13518ac_sed_extra="$ac_vpsub 13519$extrasub 13520_ACEOF 13521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13522:t 13523/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13524s|@configure_input@|$ac_sed_conf_input|;t t 13525s&@top_builddir@&$ac_top_builddir_sub&;t t 13526s&@top_build_prefix@&$ac_top_build_prefix&;t t 13527s&@srcdir@&$ac_srcdir&;t t 13528s&@abs_srcdir@&$ac_abs_srcdir&;t t 13529s&@top_srcdir@&$ac_top_srcdir&;t t 13530s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13531s&@builddir@&$ac_builddir&;t t 13532s&@abs_builddir@&$ac_abs_builddir&;t t 13533s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13534$ac_datarootdir_hack 13535" 13536eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13537 || as_fn_error "could not create $ac_file" "$LINENO" 5 13538 13539test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13540 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13541 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13543which seems to be undefined. Please make sure it is defined." >&5 13544$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13545which seems to be undefined. Please make sure it is defined." >&2;} 13546 13547 rm -f "$tmp/stdin" 13548 case $ac_file in 13549 -) cat "$tmp/out" && rm -f "$tmp/out";; 13550 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13551 esac \ 13552 || as_fn_error "could not create $ac_file" "$LINENO" 5 13553 ;; 13554 :H) 13555 # 13556 # CONFIG_HEADER 13557 # 13558 if test x"$ac_file" != x-; then 13559 { 13560 $as_echo "/* $configure_input */" \ 13561 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13562 } >"$tmp/config.h" \ 13563 || as_fn_error "could not create $ac_file" "$LINENO" 5 13564 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13566$as_echo "$as_me: $ac_file is unchanged" >&6;} 13567 else 13568 rm -f "$ac_file" 13569 mv "$tmp/config.h" "$ac_file" \ 13570 || as_fn_error "could not create $ac_file" "$LINENO" 5 13571 fi 13572 else 13573 $as_echo "/* $configure_input */" \ 13574 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13575 || as_fn_error "could not create -" "$LINENO" 5 13576 fi 13577 ;; 13578 13579 13580 esac 13581 13582done # for ac_tag 13583 13584 13585as_fn_exit 0 13586_ACEOF 13587ac_clean_files=$ac_clean_files_save 13588 13589test $ac_write_fail = 0 || 13590 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 13591 13592 13593# configure is writing to config.log, and then calls config.status. 13594# config.status does its own redirection, appending to config.log. 13595# Unfortunately, on DOS this fails, as config.log is still kept open 13596# by configure, so config.status won't be able to write to it; its 13597# output is simply discarded. So we exec the FD to /dev/null, 13598# effectively closing config.log, so it can be properly (re)opened and 13599# appended to by config.status. When coming back to configure, we 13600# need to make the FD available again. 13601if test "$no_create" != yes; then 13602 ac_cs_success=: 13603 ac_config_status_args= 13604 test "$silent" = yes && 13605 ac_config_status_args="$ac_config_status_args --quiet" 13606 exec 5>/dev/null 13607 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13608 exec 5>>auto/config.log 13609 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13610 # would make configure fail if this is the last instruction. 13611 $ac_cs_success || as_fn_exit $? 13612fi 13613if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13615$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13616fi 13617 13618 13619